Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
frama-c
Commits
265122cc
Commit
265122cc
authored
Feb 25, 2019
by
David Bühler
Browse files
Change in Frama-C kernel: new assertion kind, assert or check.
parent
142cb317
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/e-acsl/demo/script.ml
View file @
265122cc
...
...
@@ -49,7 +49,7 @@ let search_assert_or_invariant kf =
Annotations
.
iter_all_code_annot
(
fun
stmt
_
a
->
match
a
.
annot_content
with
|
AAssert
(
_
,
p
)
|
AInvariant
(
_
,
_
,
p
)
->
|
AAssert
(
_
,
_
,
p
)
|
AInvariant
(
_
,
_
,
p
)
->
let
line
=
Ppt_line
.
get
()
in
if
(
fst
(
p
.
loc
))
.
Lexing
.
pos_lnum
=
line
then
raise
(
Found
(
Property
.
ip_of_code_annot_single
kf
stmt
a
,
line
))
...
...
src/plugins/e-acsl/translate.ml
View file @
265122cc
...
...
@@ -798,7 +798,7 @@ and translate_rte_annots:
let
env
=
List
.
fold_left
(
fun
env
a
->
match
a
.
annot_content
with
|
AAssert
(
_
,
p
)
->
|
AAssert
(
_
,
_
,
p
)
->
handle_error
(
fun
env
->
Options
.
feedback
~
dkey
~
level
:
4
"prevent RTE from %a"
pp
elt
;
...
...
@@ -1018,7 +1018,7 @@ let translate_post_spec kf env spec =
let
translate_pre_code_annotation
kf
env
annot
=
let
convert
env
=
match
annot
.
annot_content
with
|
AAssert
(
l
,
p
)
->
|
AAssert
(
l
,
_
,
p
)
->
if
Keep_status
.
must_translate
kf
Keep_status
.
K_Assert
then
let
env
=
Env
.
set_annotation_kind
env
Misc
.
Assertion
in
if
l
<>
[]
then
...
...
Write
Preview
Supports
Markdown
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