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
adf93e9c
Commit
adf93e9c
authored
5 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[wp] deprecates lc_open (for counter-examples)
parent
db1ef3fa
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/qed/logic.ml
+3
-0
3 additions, 0 deletions
src/plugins/qed/logic.ml
src/plugins/qed/term.ml
+3
-3
3 additions, 3 deletions
src/plugins/qed/term.ml
with
6 additions
and
3 deletions
src/plugins/qed/logic.ml
+
3
−
0
View file @
adf93e9c
...
@@ -306,6 +306,9 @@ sig
...
@@ -306,6 +306,9 @@ sig
(** Bind the given variable if it appears free in the term,
(** Bind the given variable if it appears free in the term,
or return the term unchanged. *)
or return the term unchanged. *)
val
lc_open
:
var
->
lc_term
->
term
[
@@
deprecated
"Use e_unbind instead"
]
val
e_unbind
:
var
->
lc_term
->
term
val
e_unbind
:
var
->
lc_term
->
term
(** Opens the top-most bound variable with a (fresh) variable.
(** Opens the top-most bound variable with a (fresh) variable.
Can be only applied on top-most lc-term from `Bind(_,_,_)`,
Can be only applied on top-most lc-term from `Bind(_,_,_)`,
...
...
This diff is collapsed.
Click to expand it.
src/plugins/qed/term.ml
+
3
−
3
View file @
adf93e9c
...
@@ -2004,7 +2004,7 @@ struct
...
@@ -2004,7 +2004,7 @@ struct
|
Bind
(
q
,
t
,
e
)
->
c_bind
q
t
(
f
e
)
|
Bind
(
q
,
t
,
e
)
->
c_bind
q
t
(
f
e
)
(* Alpha-convert free-variable x with the top-most bound variable *)
(* Alpha-convert free-variable x with the top-most bound variable *)
let
lc_
bind
x
(
lc
:
lc_term
)
:
lc_term
=
let
lc_
close
x
(
lc
:
lc_term
)
:
lc_term
=
let
rec
walk
mu
x
lc
=
let
rec
walk
mu
x
lc
=
if
Vars
.
mem
x
lc
.
vars
then
if
Vars
.
mem
x
lc
.
vars
then
get
mu
(
lc_alpha
(
walk
mu
x
))
lc
get
mu
(
lc_alpha
(
walk
mu
x
))
lc
...
@@ -2170,7 +2170,7 @@ struct
...
@@ -2170,7 +2170,7 @@ struct
possible to insert a recursive call to let-intro
possible to insert a recursive call to let-intro
it will use a new instance of e_subst_var that
it will use a new instance of e_subst_var that
will work on a different sigma *)
will work on a different sigma *)
c_bind
q
t
(
lc_
bind
x
e
)
c_bind
q
t
(
lc_
close
x
e
)
else
e
else
e
)
(
subst
sigma
alpha
e
)
qs
)
(
subst
sigma
alpha
e
)
qs
...
@@ -2302,7 +2302,7 @@ struct
...
@@ -2302,7 +2302,7 @@ struct
match
q
with
Forall
|
Exists
->
Vars
.
mem
x
e
.
vars
|
Lambda
->
true
in
match
q
with
Forall
|
Exists
->
Vars
.
mem
x
e
.
vars
|
Lambda
->
true
in
if
do_bind
then
if
do_bind
then
match
let_intro_case
q
x
e
with
match
let_intro_case
q
x
e
with
|
None
->
c_bind
q
(
tau_of_var
x
)
(
lc_
bind
x
e
)
|
None
->
c_bind
q
(
tau_of_var
x
)
(
lc_
close
x
e
)
|
Some
v
->
e_subst_var
x
v
e
(* case [let x = v ; e] *)
|
Some
v
->
e_subst_var
x
v
e
(* case [let x = v ; e] *)
else
e
else
e
...
...
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