summaryrefslogtreecommitdiff
path: root/src/sail.ml
diff options
context:
space:
mode:
authorAlasdair2019-04-13 17:47:26 +0100
committerAlasdair2019-04-13 17:47:26 +0100
commit7cfbabc2bfba4f7d2ba0d3f91c7068ac3b1a84d1 (patch)
treefcd9dd98fc2c1ae2a30c0e4379e9d4550126b3c1 /src/sail.ml
parente89581c010b88de474f3f31748cb815a3b21d1af (diff)
SMT: Add count_leading_zeros and more builtins
Diffstat (limited to 'src/sail.ml')
-rw-r--r--src/sail.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sail.ml b/src/sail.ml
index 6f3833da..7d9d9d3b 100644
--- a/src/sail.ml
+++ b/src/sail.ml
@@ -132,7 +132,7 @@ let options = Arg.align ([
" ignore integer overflow in generated SMT");
( "-smt_int_size",
Arg.String (fun n -> Jib_smt.lint_size := int_of_string n),
- " set a bound on the maximum integer bitwidth");
+ " set a bound on the maximum integer bitwidth for generated SMT");
( "-c",
Arg.Tuple [set_target "c"; Arg.Set Initial_check.opt_undefined_gen],
" output a C translated version of the input");
@@ -404,7 +404,7 @@ let target name out_name ast type_envs =
| Some "ir" ->
let ast_c, type_envs = Specialize.(specialize typ_ord_specialization ast type_envs) in
- let ast_c, type_envs = Specialize.(specialize' 2 int_specialization_with_externs ast_c type_envs) in
+ (* let ast_c, type_envs = Specialize.(specialize' 2 int_specialization_with_externs ast_c type_envs) in *)
let close, output_chan =
match !opt_file_out with
| Some f -> Util.opt_colors := false; (true, open_out (f ^ ".ir.sail"))
@@ -412,6 +412,7 @@ let target name out_name ast type_envs =
in
Util.opt_warnings := true;
let cdefs, _ = C_backend.jib_of_ast type_envs ast_c in
+ (* let cdefs = List.map Jib_optimize.flatten_cdef cdefs in *)
let str = Pretty_print_sail.to_string PPrint.(separate_map hardline Jib_util.pp_cdef cdefs) in
output_string output_chan (str ^ "\n");
flush output_chan;