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
203322f7
Commit
203322f7
authored
Mar 31, 2017
by
Jean-Christophe Filliâtre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extraction: cosmetic changes
parent
1ecfbcc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
src/mlw/compile.ml
src/mlw/compile.ml
+3
-3
src/mlw/ocaml_printer.ml
src/mlw/ocaml_printer.ml
+5
-5
No files found.
src/mlw/compile.ml
View file @
203322f7
...
...
@@ -835,10 +835,10 @@ module Transform = struct
open
ML
let
no_reads_writes_conflict
spv
spv_mreg
=
let
is_
reg
{
pv_ity
=
ity
}
=
match
ity
.
ity_node
with
let
is_
not_write
{
pv_ity
=
ity
}
=
match
ity
.
ity_node
with
|
Ityreg
rho
->
not
(
Mreg
.
mem
rho
spv_mreg
)
|
_
->
true
in
Spv
.
for_all
is_
reg
spv
Spv
.
for_all
is_
not_write
spv
type
subst
=
expr
Mpv
.
t
...
...
@@ -879,7 +879,7 @@ module Transform = struct
|
_
->
false
in
let
restrict_subst
=
Mpv
.
filter
p
subst
in
(* We begin the inlining of proxy variables in an [Efun] with a
restricted substituion. This keeps some proxy lets, preventing
restricted substitu
t
ion. This keeps some proxy lets, preventing
undiserable captures inside the [Efun] expression. *)
let
e
,
spv
=
expr
info
restrict_subst
e
in
mk
(
Efun
(
vl
,
e
))
,
spv
...
...
src/mlw/ocaml_printer.ml
View file @
203322f7
...
...
@@ -260,12 +260,12 @@ module Print = struct
syntax_arguments
s
print_constant
fmt
pvl
|
_
,
Some
s
,
_
->
syntax_arguments
s
(
print_expr
~
paren
:
true
info
)
fmt
pvl
;
|
_
,
_
,
tl
when
is_rs_tuple
rs
->
|
_
,
None
,
tl
when
is_rs_tuple
rs
->
fprintf
fmt
"@[(%a)@]"
(
print_list
comma
(
print_expr
info
))
tl
|
_
,
_
,
[
t1
]
when
isfield
->
|
_
,
None
,
[
t1
]
when
isfield
->
fprintf
fmt
"%a.%a"
(
print_expr
info
)
t1
print_ident
rs
.
rs_name
|
_
,
_
,
tl
when
isconstructor
()
->
|
_
,
None
,
tl
when
isconstructor
()
->
let
pjl
=
get_record
info
rs
in
begin
match
pjl
,
tl
with
|
[]
,
[]
->
...
...
@@ -280,9 +280,9 @@ module Print = struct
fprintf
fmt
"@[<hov 2>{ %a }@]"
(
print_list2
semi
equal
(
print_rs
info
)
(
print_expr
info
))
(
pjl
,
tl
)
end
|
_
,
_
,
[]
->
|
_
,
None
,
[]
->
(
print_lident
info
)
fmt
rs
.
rs_name
|
_
,
_
,
tl
->
|
_
,
None
,
tl
->
fprintf
fmt
(
protect_on
paren
"@[<hov 2>%a %a@]"
)
(
print_lident
info
)
rs
.
rs_name
(
print_list
space
(
print_expr
~
paren
:
true
info
))
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