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
3cf3ee20
Commit
3cf3ee20
authored
6 years ago
by
Valentin Perrelle
Committed by
Virgile Prevosto
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[aorai] print the incriminated transition using an uninitialized metavariable
parent
82efbf69
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/aorai/aorai_metavariables.ml
+9
-2
9 additions, 2 deletions
src/plugins/aorai/aorai_metavariables.ml
src/plugins/aorai/tests/ya/oracle/metavariables-wrong.res.oracle
+4
-1
4 additions, 1 deletion
...gins/aorai/tests/ya/oracle/metavariables-wrong.res.oracle
with
13 additions
and
3 deletions
src/plugins/aorai/aorai_metavariables.ml
+
9
−
2
View file @
3cf3ee20
...
@@ -89,6 +89,12 @@ struct
...
@@ -89,6 +89,12 @@ struct
let
pretty_state
fmt
st
=
let
pretty_state
fmt
st
=
Format
.
pp_print_string
fmt
st
.
Promelaast
.
name
Format
.
pp_print_string
fmt
st
.
Promelaast
.
name
let
pretty_trans
fmt
tr
=
let
cond
,
act
=
tr
.
cross
in
Promelaoutput
.
print_condition
fmt
cond
;
if
act
<>
[]
then
Format
.
fprintf
fmt
"{@[%a@]}"
Promelaoutput
.
print_action
act
let
pretty_set
fmt
set
=
let
pretty_set
fmt
set
=
let
l
=
Set
.
elements
set
in
let
l
=
Set
.
elements
set
in
Pretty_utils
.
pp_list
~
sep
:
", "
Cil_printer
.
pp_varinfo
fmt
l
Pretty_utils
.
pp_list
~
sep
:
", "
Cil_printer
.
pp_varinfo
fmt
l
...
@@ -97,13 +103,14 @@ struct
...
@@ -97,13 +103,14 @@ struct
|
Bottom
->
Format
.
printf
"Bottom"
|
Bottom
->
Format
.
printf
"Bottom"
|
InitializedSet
set
->
pretty_set
fmt
set
|
InitializedSet
set
->
pretty_set
fmt
set
let
alarm
(
src
,
_
tr
,
dst
)
vars
=
let
alarm
(
src
,
tr
,
dst
)
vars
=
Aorai_option
.
abort
Aorai_option
.
abort
"The metavariables %a may not be initialized before the transition \
"The metavariables %a may not be initialized before the transition \
from %a to %a."
from %a to %a
(%a)
."
pretty_set
vars
pretty_set
vars
pretty_state
src
pretty_state
src
pretty_state
dst
pretty_state
dst
pretty_trans
tr
let
analyze
((
src
,
tr
,
dst
)
as
edge
)
=
function
let
analyze
((
src
,
tr
,
dst
)
as
edge
)
=
function
|
Bottom
->
Bottom
|
Bottom
->
Bottom
...
...
This diff is collapsed.
Click to expand it.
src/plugins/aorai/tests/ya/oracle/metavariables-wrong.res.oracle
+
4
−
1
View file @
3cf3ee20
[kernel] Parsing tests/aorai/metavariables-wrong.i (no preprocessing)
[kernel] Parsing tests/aorai/metavariables-wrong.i (no preprocessing)
[aorai] Welcome to the Aorai plugin
[aorai] Welcome to the Aorai plugin
[aorai] User Error: The metavariables aorai_x may not be initialized before the transition from e to f_0.
[aorai] User Error: The metavariables aorai_x may not be initialized before the transition from e to f_0 (
(Call(h))
and
((aorai_x) > (0))).
[kernel] Plug-in aorai aborted: invalid user input.
[kernel] Plug-in aorai aborted: invalid user input.
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