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
cc748e4f
Commit
cc748e4f
authored
6 years ago
by
Andrei Paskevich
Browse files
Options
Downloads
Patches
Plain Diff
Parser: fix erroneous variable redefinition
thanks to Sylvain for noticing.
parent
2c43796b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/parser/parser.mly
+4
-4
4 additions, 4 deletions
src/parser/parser.mly
with
4 additions
and
4 deletions
src/parser/parser.mly
+
4
−
4
View file @
cc748e4f
...
...
@@ -969,8 +969,8 @@ single_expr_:
let
e
=
{
e
with
expr_desc
=
Ewhile
(
e1
,
inv
,
var
,
cont
e2
)
}
in
let
id
=
{
id
with
id_str
=
id
.
id_str
^
break_id
}
in
Eoptexn
(
id
,
Ity
.
MaskVisible
,
e
)
|
Efor
(
i
d
,
ef
,
dir
,
et
,
inv
,
e1
)
->
let
e
=
{
e
with
expr_desc
=
Efor
(
i
d
,
ef
,
dir
,
et
,
inv
,
cont
e1
)
}
in
|
Efor
(
i
,
ef
,
dir
,
et
,
inv
,
e1
)
->
let
e
=
{
e
with
expr_desc
=
Efor
(
i
,
ef
,
dir
,
et
,
inv
,
cont
e1
)
}
in
let
id
=
{
id
with
id_str
=
id
.
id_str
^
break_id
}
in
Eoptexn
(
id
,
Ity
.
MaskVisible
,
e
)
|
d
->
d
in
...
...
@@ -981,7 +981,7 @@ single_expr_:
let
e
=
{
$
5
with
expr_desc
=
Eoptexn
(
id_c
,
Ity
.
MaskVisible
,
$
5
)
}
in
let
e
=
mk_expr
(
Ewhile
(
$
2
,
fst
$
4
,
snd
$
4
,
e
))
$
startpos
$
endpos
in
Eoptexn
(
id_b
,
Ity
.
MaskVisible
,
e
)
}
|
FOR
lident_nq
EQUAL
seq_expr
for_dir
ection
seq_expr
DO
invariant
*
loop_body
DONE
|
FOR
lident_nq
EQUAL
seq_expr
for_dir
seq_expr
DO
invariant
*
loop_body
DONE
{
let
id_b
=
mk_id
break_id
$
startpos
(
$
7
)
$
endpos
(
$
7
)
in
let
id_c
=
mk_id
continue_id
$
startpos
(
$
7
)
$
endpos
(
$
7
)
in
let
e
=
{
$
9
with
expr_desc
=
Eoptexn
(
id_c
,
Ity
.
MaskVisible
,
$
9
)
}
in
...
...
@@ -1100,7 +1100,7 @@ assertion_kind:
|
ASSUME
{
Expr
.
Assume
}
|
CHECK
{
Expr
.
Check
}
for_dir
ection
:
for_dir
:
|
TO
{
Expr
.
To
}
|
DOWNTO
{
Expr
.
DownTo
}
...
...
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