Skip to content
Snippets Groups Projects
Commit 3faeacad authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[aorai] warns if an observable of the automaton is not defined (hence ignored).

parent a2fa8aec
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment