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
50a52018
Commit
50a52018
authored
Mar 15, 2018
by
Mário Pereira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compile.ml: cosmetic
parent
33c8e6b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
src/mlw/compile.ml
src/mlw/compile.ml
+2
-6
No files found.
src/mlw/compile.ml
View file @
50a52018
...
...
@@ -180,7 +180,7 @@ module ML = struct
|
Dmodule
(
_
,
dl
)
->
List
.
iter
(
iter_deps
f
)
dl
let
mk_expr
e_node
e_ity
e_effect
e_label
=
{
e_node
=
e_node
;
e_ity
=
e_ity
;
e_effect
=
e_effect
;
e_label
=
e_label
;
}
{
e_node
;
e_ity
;
e_effect
;
e_label
;
}
let
tunit
=
Ttuple
[]
...
...
@@ -646,8 +646,6 @@ module Translate = struct
assert
false
(* cannot have constructors or fields *)
end
(* exception ExtractionVal of rsymbol *)
let
is_val
=
function
|
Eexec
({
c_node
=
Cany
}
,
_
)
->
true
|
_
->
false
...
...
@@ -655,7 +653,6 @@ module Translate = struct
let
rec
fun_expr_of_mask
mask
e
=
let
open
Mltree
in
let
mk_e
e_node
=
{
e
with
e_node
=
e_node
}
in
(* assert (mask <> MaskGhost); *)
match
e
.
e_node
with
|
Econst
_
|
Evar
_
|
Efun
_
|
Eassign
_
|
Ewhile
_
|
Efor
_
|
Eraise
_
|
Eexn
_
|
Eabsurd
|
Ehole
when
mask
=
MaskGhost
->
...
...
@@ -684,8 +681,7 @@ module Translate = struct
|
Etry
(
e1
,
xspvel
)
->
let
mk_xspvel
(
xs
,
pvl
,
ee
)
=
(
xs
,
pvl
,
fun_expr_of_mask
mask
ee
)
in
mk_e
(
Etry
(
e1
,
List
.
map
mk_xspvel
xspvel
))
|
Eignore
ee
->
let
ee
=
fun_expr_of_mask
mask
ee
in
|
Eignore
ee
->
let
ee
=
fun_expr_of_mask
mask
ee
in
mk_e
(
Eignore
ee
)
(* pids: identifiers from cloned modules without definitions *)
...
...
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