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
125
Issues
125
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
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
909e8f12
Commit
909e8f12
authored
Nov 21, 2016
by
Raphaël Rieu-Helft
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix while loops
parent
2929bbc2
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2503 additions
and
2496 deletions
+2503
-2496
drivers/c.drv
drivers/c.drv
+1
-1
examples/in_progress/multiprecision/mp2/why3session.xml
examples/in_progress/multiprecision/mp2/why3session.xml
+391
-428
examples/in_progress/multiprecision/mp2/why3shapes
examples/in_progress/multiprecision/mp2/why3shapes
+2104
-2065
src/mlw/cprinter.ml
src/mlw/cprinter.ml
+7
-2
No files found.
drivers/c.drv
View file @
909e8f12
...
...
@@ -115,7 +115,7 @@ void lsld(uint32_t * low, uint32_t * high, uint32_t x, uint32_t cnt)
"(uint32_t)(((uint64_t)%1 | ((uint64_t)%2 << 32))/(uint64_t)%3)"
syntax val lsl "%1 << %2"
syntax val
rsl
"%1 >> %2"
syntax val
lsr
"%1 >> %2"
end
...
...
examples/in_progress/multiprecision/mp2/why3session.xml
View file @
909e8f12
This diff is collapsed.
Click to expand it.
examples/in_progress/multiprecision/mp2/why3shapes
View file @
909e8f12
This diff is collapsed.
Click to expand it.
src/mlw/cprinter.ml
View file @
909e8f12
...
...
@@ -599,8 +599,13 @@ module Translate = struct
begin
match
cs
with
|
C
.
Sexpr
ce
->
cd
,
C
.
Swhile
(
ce
,
C
.
Sblock
b
)
|
_
->
let
s
,
e
=
C
.
get_last_expr
cs
in
cd
,
C
.
Sseq
(
s
,
C
.
Swhile
(
e
,
C
.
Sblock
b
))
begin
match
C
.
get_last_expr
cs
with
|
C
.
Snop
,
e
->
cd
,
C
.(
Swhile
(
e
,
C
.
Sblock
b
))
|
s
,
e
->
cd
,
C
.(
Swhile
(
Econst
(
Cint
"1"
)
,
Sseq
(
s
,
Sseq
(
Sif
(
Eunop
(
Unot
,
e
)
,
Sbreak
,
Snop
)
,
C
.
Sblock
b
))))
end
end
|
Etry
(
b
,
exm
)
->
Format
.
printf
"TRY@."
;
...
...
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