Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
a3fd11c4
Commit
a3fd11c4
authored
Nov 03, 2016
by
Sylvain Dailler
Browse files
Using replace of Term.ml in tactics rewrite and replace.
parent
37d64c87
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/transform/case.ml
View file @
a3fd11c4
...
...
@@ -159,8 +159,7 @@ let apply pr : Task.task Trans.tlist = Trans.store (fun task ->
failwith
"After substitution, terms are not exactly identical"
))
(* Replace all occurences of f1 by f2 in t *)
let
rec
replace_in_term
f1
f2
t
=
t_map
(
fun
t
->
if
t_equal
t
f1
then
f2
else
replace_in_term
f1
f2
t
)
t
let
replace_in_term
=
Term
.
t_replace
(* TODO be careful with label copy in t_map *)
let
replace
rev
f1
f2
t
=
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment