Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Why3
why3
Commits
68e17edd
Commit
68e17edd
authored
Jun 04, 2011
by
Andrei Paskevich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check for duplicate arguments in function definitions
parent
401c4ce9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/core/decl.ml
src/core/decl.ml
+3
-0
No files found.
src/core/decl.ml
View file @
68e17edd
...
...
@@ -47,6 +47,9 @@ let check_vl ty v = ty_equal_check ty v.vs_ty
let
check_tl
ty
t
=
ty_equal_check
ty
(
t_type
t
)
let
make_ls_defn
ls
vl
t
=
(* check for duplicate arguments *)
let
add_v
s
v
=
Svs
.
add_new
v
(
DuplicateVar
v
)
s
in
ignore
(
List
.
fold_left
add_v
Svs
.
empty
vl
);
(* build the definition axiom *)
let
hd
=
t_app
ls
(
List
.
map
t_var
vl
)
t
.
t_ty
in
let
bd
=
TermTF
.
t_selecti
t_equ
t_iff
hd
t
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