summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rewriter.ml4
-rw-r--r--src/sail.ml3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/rewriter.ml b/src/rewriter.ml
index 34e4bfd4..3cf017d1 100644
--- a/src/rewriter.ml
+++ b/src/rewriter.ml
@@ -2566,8 +2566,8 @@ let rewrite_constraint =
| NC_not_equal (n1, n2) -> E_app_infix (mk_exp (E_sizeof n1), mk_id "!=", mk_exp (E_sizeof n2))
| NC_and (nc1, nc2) -> E_app_infix (rewrite_nc nc1, mk_id "&", rewrite_nc nc2)
| NC_or (nc1, nc2) -> E_app_infix (rewrite_nc nc1, mk_id "|", rewrite_nc nc2)
- | NC_false -> E_lit (mk_lit L_true)
- | NC_true -> E_lit (mk_lit L_false)
+ | NC_false -> E_lit (mk_lit L_false)
+ | NC_true -> E_lit (mk_lit L_true)
| NC_set (kid, ints) ->
unaux_exp (rewrite_nc (List.fold_left (fun nc int -> nc_or nc (nc_eq (nvar kid) (nconstant int))) nc_true ints))
in
diff --git a/src/sail.ml b/src/sail.ml
index 8a70cb70..2714b6a4 100644
--- a/src/sail.ml
+++ b/src/sail.ml
@@ -146,7 +146,7 @@ let _ =
let main() =
- if !(opt_print_version)
+ if !opt_print_version
then Printf.printf "Sail private release \n"
else
if !opt_memo_z3 then Constraint.load_digests () else ();
@@ -175,6 +175,7 @@ let main() =
else rewrite_ast ast in
let out_name = match !opt_file_out with
+ | None when parsed = [] -> "out.sail"
| None -> fst (List.hd parsed)
| Some f -> f ^ ".sail" in