Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
f905b31b
Commit
f905b31b
authored
Oct 19, 2015
by
Martin Clochard
Committed by
Guillaume Melquiond
Feb 05, 2016
Browse files
simplify_trivial_quantification: occurences 'v1 = v2' could not be selected for v2
parent
de81a872
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/transform/simplify_formula.ml
View file @
f905b31b
...
...
@@ -57,12 +57,14 @@ exception Subst_found of term
let
rec
fmla_find_subst
boundvars
var
sign
f
=
let
fnF
=
fmla_find_subst
boundvars
var
in
let
test
ls
vs
t
tv
=
sign
&&
ls_equal
ls
ps_equ
&&
vs_equal
vs
var
&&
not
(
t_equal
t
tv
)
&&
not
(
t_boundvars_in
boundvars
t
)
in
match
f
.
t_node
with
|
Tapp
(
ls
,
[{
t_node
=
Tvar
vs
}
as
tv
;
t
])
when
test
ls
vs
t
tv
->
raise
(
Subst_found
t
)
|
Tapp
(
ls
,
[
t
;{
t_node
=
Tvar
vs
}
as
tv
])
when
sign
&&
ls_equal
ls
ps_equ
&&
vs_equal
vs
var
&&
not
(
t_equal
t
tv
)
&&
not
(
t_boundvars_in
boundvars
t
)
->
raise
(
Subst_found
t
)
when
test
ls
vs
t
tv
->
raise
(
Subst_found
t
)
|
Tbinop
(
Tor
,
f1
,
f2
)
when
not
sign
->
(
fnF
sign
f1
);
(
fnF
sign
f2
)
|
Tbinop
(
Tand
,
f1
,
f2
)
when
sign
->
(
fnF
sign
f1
);
(
fnF
sign
f2
)
|
Tbinop
(
Timplies
,
f1
,
f2
)
when
not
sign
->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment