Skip to content

Commit

Permalink
Relax requirement for naming functions in harnesses
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavung committed May 29, 2024
1 parent 3290165 commit 8685fef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/saida_vis.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,11 @@ class acsl2tricera out = object (self)
| TVoid _ -> ""
| _ -> (get_type_decl_string hf.return_type) ^ " " ^ self#result_string ^ " = "
in
self#print_line (s ^ "main2("^ params ^");\n");
let fname = curr_func.svar.vname in
if fname = "main" then
self#print_line (s ^ "main2("^ params ^");\n")
else
self#print_line (s ^ fname ^ "("^ params ^");\n");
| None -> ();
in
(*Print the asserts, from the post-cond*)
Expand Down

0 comments on commit 8685fef

Please sign in to comment.