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

RIP parameters.ml*

parent 57e15850
No related branches found
No related tags found
No related merge requests found
......@@ -52,10 +52,10 @@ let mk_call ?(loc=Location.unknown) ?result fname args =
(* Build a C conditional doing a runtime assertion check. *)
let mk_e_acsl_guard ?(reverse=false) e p =
let loc = p.loc in
let unicode = Parameters.Unicode.get () in
Parameters.Unicode.off ();
let unicode = Kernel.Unicode.get () in
Kernel.Unicode.off ();
let msg = Pretty_utils.sfprintf "%a@?" Cil.d_predicate_named p in
Parameters.Unicode.set unicode;
Kernel.Unicode.set unicode;
let s = mk_call ~loc "e_acsl_fail" [ mkString loc msg ] in
let e = if reverse then new_exp ~loc:e.eloc (UnOp(LNot, e, intType)) else e in
mkStmt ~valid_sid:true (If(e, mkBlock [ s ], mkBlock [], loc))
......
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