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
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
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
Charles Southerland
frama-c
Commits
3faeacad
Commit
3faeacad
authored
4 years ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[aorai] warns if an observable of the automaton is not defined (hence ignored).
parent
a2fa8aec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/aorai/data_for_aorai.ml
+6
-1
6 additions, 1 deletion
src/plugins/aorai/data_for_aorai.ml
with
6 additions
and
1 deletion
src/plugins/aorai/data_for_aorai.ml
+
6
−
1
View file @
3faeacad
...
...
@@ -1579,7 +1579,12 @@ let check_observables auto =
|
Some
set
->
let
is_relevant
name
=
try
ignore
(
Globals
.
Functions
.
find_by_name
name
)
let
kf
=
Globals
.
Functions
.
find_by_name
name
in
if
not
(
Kernel_function
.
is_definition
kf
)
then
Aorai_option
.
warning
"Function %a is observable by the automaton but is not defined \
in the C code. It will be ignored in the instrumentation"
Printer
.
pp_varname
(
Kernel_function
.
get_name
kf
)
with
Not_found
->
Aorai_option
.
abort
"Observable %s doesn't match any function"
name
in
...
...
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