Skip to content
Snippets Groups Projects
Commit d130f453 authored by Julien Signoles's avatar Julien Signoles
Browse files

[E-ACSL] do not crash anymore when there is no main entry point

parent 60dab7ed
No related branches found
No related tags found
No related merge requests found
......@@ -313,8 +313,14 @@ class e_acsl_visitor prj generate = object (self)
assert false
method private is_main old_kf =
let main, _ = Globals.entry_point () in
Kernel_function.equal old_kf main
try
let main, _ = Globals.entry_point () in
Kernel_function.equal old_kf main
with Globals.No_such_entry_point s ->
Options.warning ~once:true "%s@ \
@[The generated program may be incomplete.@]"
s;
false
method vstmt_aux stmt =
Options.debug ~level:2 "proceeding stmt (sid %d) %a@."
......
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