Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
62a307d8
Commit
62a307d8
authored
3 years ago
by
Basile Desloges
Browse files
Options
Downloads
Patches
Plain Diff
[eacsl] Remove assertion in `Label.get_stmt`
If `BuiltinLabel` or `FormalLabel` are encountered, raise `not_yet`.
parent
833a1918
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/plugins/e-acsl/src/code_generator/label.ml
+6
-3
6 additions, 3 deletions
src/plugins/e-acsl/src/code_generator/label.ml
with
6 additions
and
3 deletions
src/plugins/e-acsl/src/code_generator/label.ml
+
6
−
3
View file @
62a307d8
...
@@ -68,11 +68,14 @@ let get_stmt kf llabel =
...
@@ -68,11 +68,14 @@ let get_stmt kf llabel =
|
BuiltinLabel
Here
->
Error
.
not_yet
"Label 'Here'"
|
BuiltinLabel
Here
->
Error
.
not_yet
"Label 'Here'"
|
BuiltinLabel
(
Old
|
Pre
)
->
|
BuiltinLabel
(
Old
|
Pre
)
->
(
try
Kernel_function
.
find_first_stmt
kf
(
try
Kernel_function
.
find_first_stmt
kf
with
Kernel_function
.
No_Statement
->
assert
false
)
with
Kernel_function
.
No_Statement
->
assert
false
(* Frama-C invariant*)
)
|
BuiltinLabel
(
Post
)
->
|
BuiltinLabel
(
Post
)
->
(
try
Kernel_function
.
find_return
kf
(
try
Kernel_function
.
find_return
kf
with
Kernel_function
.
No_Statement
->
assert
false
)
with
Kernel_function
.
No_Statement
->
assert
false
(* Frama-C invariant*)
)
|
BuiltinLabel
_
|
FormalLabel
_
->
assert
false
|
BuiltinLabel
_
->
Error
.
not_yet
(
Format
.
asprintf
"Label '%a'"
Printer
.
pp_logic_label
llabel
)
|
FormalLabel
_
->
Error
.
not_yet
"FormalLabel"
in
in
(* the pointed statement has been visited and modified by the injector:
(* the pointed statement has been visited and modified by the injector:
get its new version. *)
get its new version. *)
...
...
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