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
17
Merge Requests
17
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
b939cb83
Commit
b939cb83
authored
Feb 22, 2016
by
Andrei Paskevich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pmodule: fix a silly mistake in type cloning
name shadowing kills kittens
parent
def34e58
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
TODO
TODO
+0
-2
src/mlw/pmodule.ml
src/mlw/pmodule.ml
+2
-2
No files found.
TODO
View file @
b939cb83
...
...
@@ -32,8 +32,6 @@ library/gallery migration
- no warning on lemma functions
cf examples/tests/lemma_functions.mlw
- cloning a recursive data type (e.g. clone list.List)
- "old" and "at" in program code gives a syntax error
(bench/programs/bad-to-keep/old3.mlw), we can do better
...
...
src/mlw/pmodule.ml
View file @
b939cb83
...
...
@@ -639,8 +639,8 @@ let clone_type_decl inst cl tdl =
if
Sits
.
mem
s
alg
then
begin
if
not
(
Mts
.
mem
s
.
its_ts
cl
.
ts_table
)
then
let
id
=
id_clone
s
.
its_ts
.
ts_name
in
let
s
=
create_rec_itysymbol
id
s
.
its_ts
.
ts_args
in
cl
.
ts_table
<-
Mts
.
add
s
.
its_ts
s
cl
.
ts_table
let
s
'
=
create_rec_itysymbol
id
s
.
its_ts
.
ts_args
in
cl
.
ts_table
<-
Mts
.
add
s
.
its_ts
s
'
cl
.
ts_table
end
else
Opt
.
iter
(
visit
alg
s
)
(
Mits
.
find_opt
s
def
);
List
.
iter
down
tl
|
Ityvar
_
->
()
in
...
...
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