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
119
Issues
119
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
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
3fb9edf5
Commit
3fb9edf5
authored
Mar 05, 2010
by
Francois Bobot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correction des transformations, toujours pas de Duse apres applatissement
parent
acb71631
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
src/core/transform.ml
src/core/transform.ml
+2
-2
src/main.ml
src/main.ml
+2
-0
src/transform/simplify_recursive_definition.ml
src/transform/simplify_recursive_definition.ml
+5
-0
No files found.
src/core/transform.ml
View file @
3fb9edf5
...
...
@@ -35,7 +35,7 @@ let apply f x = f.all x
let
clear
f
=
f
.
clear
()
let
memo
f
tag
h
x
=
try
Hashtbl
.
find
h
(
tag
x
:
int
)
try
Hashtbl
.
find
h
(
tag
x
)
with
Not_found
->
let
r
=
f
x
in
Hashtbl
.
add
h
(
tag
x
)
r
;
...
...
@@ -66,7 +66,7 @@ let fold_map_up ?clear f_fold v_empty =
|
Some
(
decls
,
ctxt2
)
->
try
let
ecdone
=
Hashtbl
.
find
memo_t
ctxt2
.
ctxt_tag
in
rewind
ecdone
todo
rewind
ecdone
((
decls
,
ctxt
)
::
todo
)
with
Not_found
->
f
((
decls
,
ctxt
)
::
todo
)
ctxt2
in
t
(
f
[]
)
clear
(
fun
()
->
Hashtbl
.
clear
memo_t
)
...
...
src/main.ml
View file @
3fb9edf5
...
...
@@ -58,6 +58,8 @@ let rec report fmt = function
fprintf
fmt
"syntax error"
|
Typing
.
Error
e
->
Typing
.
report
fmt
e
|
Theory
.
Context
.
UnknownIdent
i
->
fprintf
fmt
"anomaly: unknownident %s"
i
.
Ident
.
id_short
|
e
->
fprintf
fmt
"anomaly: %s"
(
Printexc
.
to_string
e
)
...
...
src/transform/simplify_recursive_definition.ml
View file @
3fb9edf5
...
...
@@ -146,4 +146,9 @@ let elt d =
List
.
map
(
fun
e
->
create_type
(
List
.
map
(
Hid
.
find
mem
)
e
))
l
|
Dclone
_
|
Duse
_
->
[
d
]
let
elt
d
=
let
r
=
elt
d
in
(* Format.printf "srd : %a -> %a@\n" Pretty.print_decl d Pretty.print_decl_list r;*)
r
let
t
=
Transform
.
elt
elt
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