Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
why3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
125
Issues
125
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
d1a720d7
Commit
d1a720d7
authored
Apr 26, 2010
by
Andrei Paskevich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
produce a trigger when "eliminate_if" removes a definition
parent
4db16bb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/transform/eliminate_if.ml
src/transform/eliminate_if.ml
+2
-1
No files found.
src/transform/eliminate_if.ml
View file @
d1a720d7
...
...
@@ -69,9 +69,10 @@ let add_ld axl d = match d with
let
vl
,
e
=
open_ls_defn
ld
in
begin
match
e
with
|
Term
t
when
has_if
t
->
let
f
=
elim_f
(
ls_defn_axiom
ld
)
in
let
nm
=
ls
.
ls_name
.
id_short
^
"_def"
in
let
pr
=
create_prsymbol
(
id_derive
nm
ls
.
ls_name
)
in
let
hd
=
t_app
ls
(
List
.
map
t_var
vl
)
t
.
t_ty
in
let
f
=
f_forall
vl
[[
Term
hd
]]
(
elim_f
(
f_equ
hd
t
))
in
create_prop_decl
Paxiom
pr
f
::
axl
,
(
ls
,
None
)
|
_
->
axl
,
make_ls_defn
ls
vl
(
e_map
elim_t
elim_f
e
)
...
...
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