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
7dc1d6dc
Commit
7dc1d6dc
authored
Mar 06, 2014
by
Jean-Christophe Filliâtre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extraction: equality on type int is extracted to Why3__BigInt.eq
(OCaml polymorphic equality fails on big nums)
parent
9e21c93b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/whyml/mlw_ocaml.ml
src/whyml/mlw_ocaml.ml
+5
-0
No files found.
src/whyml/mlw_ocaml.ml
View file @
7dc1d6dc
...
...
@@ -407,6 +407,8 @@ let print_binop fmt = function
|
Tiff
->
fprintf
fmt
"="
|
Timplies
->
assert
false
let
oty_int
=
Some
ty_int
let
rec
print_app
?
(
paren
=
false
)
ls
info
fmt
tl
=
let
isconstr
=
is_constructor
info
ls
in
let
is_field
(
_
,
csl
)
=
match
csl
with
...
...
@@ -451,6 +453,9 @@ and print_term ?(paren=false) info fmt t = match t.t_node with
print_const
~
paren
fmt
c
|
Tapp
(
fs
,
tl
)
when
is_fs_tuple
fs
->
fprintf
fmt
"(%a)"
(
print_list
comma
(
print_term
info
))
tl
|
Tapp
(
fs
,
[
t1
;
t2
])
when
ls_equal
fs
ps_equ
&&
oty_equal
t1
.
t_ty
oty_int
->
fprintf
fmt
"(Why3__BigInt.eq %a %a)"
(
print_term_p
info
)
t1
(
print_term_p
info
)
t2
|
Tapp
(
fs
,
tl
)
->
begin
match
query_syntax
info
.
info_syn
fs
.
ls_name
with
|
Some
s
->
syntax_arguments
s
(
print_term_p
info
)
fmt
tl
...
...
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