Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
cb20ed6b
Commit
cb20ed6b
authored
3 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[qed] Subst.find is better
parent
5ce723d9
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/plugins/qed/logic.mli
+1
-1
1 addition, 1 deletion
src/plugins/qed/logic.mli
src/plugins/qed/term.ml
+2
-2
2 additions, 2 deletions
src/plugins/qed/term.ml
src/plugins/wp/Lang.mli
+1
-1
1 addition, 1 deletion
src/plugins/wp/Lang.mli
src/plugins/wp/Letify.ml
+1
-1
1 addition, 1 deletion
src/plugins/wp/Letify.ml
with
5 additions
and
5 deletions
src/plugins/qed/logic.mli
+
1
−
1
View file @
cb20ed6b
...
...
@@ -334,7 +334,7 @@ sig
val
create
:
?
pool
:
pool
->
unit
->
t
val
fresh
:
t
->
tau
->
var
val
get
:
t
->
term
->
term
val
find
:
t
->
term
->
term
val
filter
:
t
->
term
->
bool
val
add
:
t
->
term
->
term
->
unit
...
...
This diff is collapsed.
Click to expand it.
src/plugins/qed/term.ml
+
2
−
2
View file @
cb20ed6b
...
...
@@ -2251,7 +2251,7 @@ struct
|
FUN
(
f
,
s
)
->
(
try
call
f
e
with
Not_found
->
compute
e
s
)
|
MAP
(
m
,
s
)
->
(
try
Tmap
.
find
e
m
with
Not_found
->
compute
e
s
)
let
get
sigma
a
=
compute
a
sigma
.
shared
let
find
sigma
a
=
compute
a
sigma
.
shared
let
filter
sigma
a
=
List
.
for_all
(
fun
f
->
f
a
)
sigma
.
filter
...
...
@@ -2302,7 +2302,7 @@ struct
else
e
and
compute
mu
sigma
alpha
e
=
try
Subst
.
get
sigma
e
with
Not_found
->
try
Subst
.
find
sigma
e
with
Not_found
->
let
r
=
match
e
.
repr
with
|
Bvar
(
k
,_
)
->
Intmap
.
find
k
alpha
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/Lang.mli
+
1
−
1
View file @
cb20ed6b
...
...
@@ -376,7 +376,7 @@ sig
module
Subst
:
sig
val
get
:
sigma
->
term
->
term
val
find
:
sigma
->
term
->
term
val
add
:
sigma
->
term
->
term
->
unit
val
add_map
:
sigma
->
term
Tmap
.
t
->
unit
val
add_fun
:
sigma
->
(
term
->
term
)
->
unit
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/Letify.ml
+
1
−
1
View file @
cb20ed6b
...
...
@@ -311,7 +311,7 @@ struct
}
let
mem_lit
l
sigma
=
try
F
.
Subst
.
get
(
subst
sigma
)
l
==
e_true
try
F
.
Subst
.
find
(
subst
sigma
)
l
==
e_true
with
Not_found
->
false
let
add_lit
l
sigma
=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment