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
c5805536
Commit
c5805536
authored
4 years ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[aorai] don't try to show Aorai_curState value for non-deterministic automaton
parent
afd399a8
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/aorai/aorai_eva_analysis.enabled.ml
+13
-7
13 additions, 7 deletions
src/plugins/aorai/aorai_eva_analysis.enabled.ml
with
13 additions
and
7 deletions
src/plugins/aorai/aorai_eva_analysis.enabled.ml
+
13
−
7
View file @
c5805536
...
...
@@ -39,13 +39,21 @@ let show_val fmt (expr, v, _) =
Printer
.
pp_exp
expr
(
Cvalue
.
V
.
pretty_typ
(
Some
(
Cil
.
typeOf
expr
)))
v
let
show_aorai_state
=
"Frama_C_show_aorai_state"
let
builtin_show_aorai_state
state
args
=
let
history
=
Data_for_aorai
.(
curState
::
(
whole_history
()
))
in
Aorai_option
.
result
~
current
:
true
"@[<hv>%a@]"
(
Pretty_utils
.
pp_list
~
sep
:
" <- "
(
show_aorai_variable
state
))
history
;
if
args
<>
[]
then
begin
if
not
(
Aorai_option
.
Deterministic
.
get
()
)
then
begin
Aorai_option
.
warning
~
current
:
true
"%s can only display info for deterministic automata"
show_aorai_state
end
else
begin
let
history
=
Data_for_aorai
.(
curState
::
(
whole_history
()
))
in
Aorai_option
.
result
~
current
:
true
"@[<hv>%a@]"
(
Pretty_utils
.
pp_list
~
sep
:
","
show_val
)
args
(
Pretty_utils
.
pp_list
~
sep
:
" <- "
(
show_aorai_variable
state
))
history
;
if
args
<>
[]
then
begin
Aorai_option
.
result
~
current
:
true
"@[<hv>%a@]"
(
Pretty_utils
.
pp_list
~
sep
:
","
show_val
)
args
end
;
end
;
(* Return value : returns nothing, changes nothing *)
{
...
...
@@ -55,8 +63,6 @@ let builtin_show_aorai_state state args =
c_cacheable
=
Value_types
.
Cacheable
;
}
let
show_aorai_state
=
"Frama_C_show_aorai_state"
let
()
=
Cil_builtins
.
add_custom_builtin
(
fun
()
->
(
show_aorai_state
,
Cil
.
voidType
,
[]
,
true
))
...
...
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