Skip to content

Commit

Permalink
Fix error when --dump-smt & folder already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
NatKarmios committed Dec 5, 2023
1 parent f1ef91f commit 5c283a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion GillianCore/z3/z3_encoding.ml
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,9 @@ let dump_smt =
let created = ref false in
let create () =
created := true;
Unix.mkdir folder_name 0o755
try Unix.mkdir folder_name 0o755 with
| Unix.Unix_error (Unix.EEXIST, _, _) -> ()
| e -> raise e
in
fun () ->
let () = if not !created then create () in
Expand Down

0 comments on commit 5c283a7

Please sign in to comment.