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
582ad21b
Commit
582ad21b
authored
3 years ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] Results: exports [are_available].
parent
7a5ec248
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/value/utils/results.ml
+5
-0
5 additions, 0 deletions
src/plugins/value/utils/results.ml
src/plugins/value/utils/results.mli
+10
-0
10 additions, 0 deletions
src/plugins/value/utils/results.mli
with
15 additions
and
0 deletions
src/plugins/value/utils/results.ml
+
5
−
0
View file @
582ad21b
...
@@ -22,6 +22,11 @@
...
@@ -22,6 +22,11 @@
open
Lattice_bounds
open
Lattice_bounds
let
are_available
kf
=
match
Analysis
.
status
kf
with
|
Analyzed
(
Complete
|
Partial
)
->
true
|
SpecUsed
|
Builtin
_
|
Unreachable
|
Analyzed
NoResults
->
false
module
Callstack
=
Value_types
.
Callstack
module
Callstack
=
Value_types
.
Callstack
type
callstack
=
Callstack
.
t
type
callstack
=
Callstack
.
t
...
...
This diff is collapsed.
Click to expand it.
src/plugins/value/utils/results.mli
+
10
−
0
View file @
582ad21b
...
@@ -54,6 +54,16 @@
...
@@ -54,6 +54,16 @@
default O (as_int (eval_var vi (in_callstack cs (before stmt))))
default O (as_int (eval_var vi (in_callstack cs (before stmt))))
*)
*)
(** Are results available for a given function? True if the function body has
been has been analyzed and the results have been saved.
False if:
- the function has not been reached by the analysis: all requests in the
function will lead to a Bottom error.
- a specification or a builtin has been used instead of analyzing the
function body: all requests in the function will lead to a Top error.
- results have not been saved, due to the [-eva-no-results] parameter:
all requests in the function will lead to a Top error. *)
val
are_available
:
Cil_types
.
kernel_function
->
bool
type
callstack
=
(
Cil_types
.
kernel_function
*
Cil_types
.
kinstr
)
list
type
callstack
=
(
Cil_types
.
kernel_function
*
Cil_types
.
kinstr
)
list
...
...
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