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
d3f0595d
Commit
d3f0595d
authored
Dec 19, 2017
by
Mário Pereira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extraction: extract unit when mask is MaskGhost but the expression is not ghost
parent
2f5afda0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
drivers/ocaml64.drv
drivers/ocaml64.drv
+15
-0
src/mlw/compile.ml
src/mlw/compile.ml
+3
-0
src/mlw/ocaml_printer.ml
src/mlw/ocaml_printer.ml
+0
-3
No files found.
drivers/ocaml64.drv
View file @
d3f0595d
...
...
@@ -253,6 +253,21 @@ module mach.int.State63
syntax val random_int63 "SHOULD_NOT_BE_HERE"
end
module set.Fset
syntax val mem "SHOULD_NOT_BE_HERE"
syntax val (==) "SHOULD_NOT_BE_HERE"
syntax val subset "SHOULD_NOT_BE_HERE"
syntax val is_empty "SHOULD_NOT_BE_HERE"
syntax val empty "SHOULD_NOT_BE_HERE"
syntax val add "SHOULD_NOT_BE_HERE"
syntax val remove "SHOULD_NOT_BE_HERE"
syntax val union "SHOULD_NOT_BE_HERE"
syntax val inter "SHOULD_NOT_BE_HERE"
syntax val diff "SHOULD_NOT_BE_HERE"
syntax val choose "SHOULD_NOT_BE_HERE"
syntax val cardinal "SHOULD_NOT_BE_HERE"
end
module mach.peano.Peano
syntax type t "int"
syntax val to_int "Z.of_int %1"
...
...
src/mlw/compile.ml
View file @
d3f0595d
...
...
@@ -655,6 +655,9 @@ module Translate = struct
(* assert (mask <> MaskGhost); *)
match
e
.
e_node
with
|
Econst
_
|
Evar
_
|
Efun
_
|
Eassign
_
|
Ewhile
_
|
Efor
_
|
Eraise
_
|
Eexn
_
|
Eabsurd
|
Ehole
when
mask
=
MaskGhost
->
ML
.
e_unit
|
Econst
_
|
Evar
_
|
Efun
_
|
Eassign
_
|
Ewhile
_
|
Efor
_
|
Eraise
_
|
Eexn
_
|
Eabsurd
|
Ehole
->
e
|
Eapp
(
rs
,
el
)
when
is_rs_tuple
rs
->
begin
match
visible_of_mask
mask
el
with
...
...
src/mlw/ocaml_printer.ml
View file @
d3f0595d
...
...
@@ -534,9 +534,6 @@ module Print = struct
(
print_uident
info
)
xs
.
xs_name
(
print_ty
~
paren
:
true
info
)
t
(
print_expr
info
)
e
|
Eignore
e
->
fprintf
fmt
"ignore (%a)"
(
print_expr
info
)
e
(* | Enot _ -> (\* TODO *\) assert false *)
(* | Ebinop _ -> (\* TODO *\) assert false *)
(* | Ecast _ -> (\* TODO *\) assert false *)
and
print_branch
info
fmt
(
p
,
e
)
=
fprintf
fmt
"@[<hov 2>| %a ->@ @[%a@]@]"
...
...
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