Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Why3
why3
Commits
3acf2fef
Commit
3acf2fef
authored
7 years ago
by
Raphaël Rieu-Helft
Browse files
Options
Downloads
Patches
Plain Diff
Support C extraction of unit return values and arguments
parent
2dd6af2e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mlw/cprinter.ml
+3
-1
3 additions, 1 deletion
src/mlw/cprinter.ml
with
3 additions
and
1 deletion
src/mlw/cprinter.ml
+
3
−
1
View file @
3acf2fef
...
...
@@ -593,6 +593,7 @@ module MLToC = struct
|
Some
s
->
C
.
Tsyntax
(
s
,
List
.
map
(
ty_of_mlty
info
)
tl
)
|
None
->
C
.
Tnosyntax
end
|
Ttuple
[]
->
C
.
Tvoid
|
Ttuple
_
->
raise
(
Unsupported
"tuple parameters"
)
let
rec
ty_of_ty
info
ty
=
(*FIXME try to use only ML tys*)
...
...
@@ -1019,7 +1020,8 @@ module MLToC = struct
begin
try
let
params
=
List
.
map
(
fun
(
id
,
ty
,
_gh
)
->
(
ty_of_mlty
info
ty
,
id
))
(
List
.
filter
(
fun
(
_
,_,
gh
)
->
not
gh
)
vl
)
in
(
List
.
filter
(
fun
(
_
,_,
gh
)
->
not
gh
)
vl
)
in
let
params
=
List
.
filter
(
fun
(
ty
,
_
)
->
ty
<>
C
.
Tvoid
)
params
in
let
env
=
{
computes_return_value
=
true
;
in_unguarded_loop
=
false
;
current_function
=
rs
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment