Skip to content

Commit

Permalink
SZS status GaveUp and new line for -dkterm (#40)
Browse files Browse the repository at this point in the history
* Output SZS status GaveUp when the proof search space is exhausted

* Add new line at the end of -dkterm output
  • Loading branch information
gburel committed Sep 17, 2024
1 parent eba0f13 commit d4a7041
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lltodk.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1073,4 +1073,5 @@ let output_term oc phrases _ llp =
fprintf oc "zenon.nnpp (%a)\n(%a)"
print_dk_term dkgoal print_dk_term dkproof;
if !Globals.signature_name <> "" then fprintf oc ".";
fprintf oc "\n";
[]
4 changes: 3 additions & 1 deletion main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type szs_error =
NoSuccess
| Unknown
| ResourceOut
| GaveUp

type szs_status =
Suc of szs_success
Expand All @@ -33,6 +34,7 @@ let szs_status out (status, file) =
| Err NoSuccess -> fprintf out "NoSuccess"
| Err Unknown -> fprintf out "Unknown"
| Err ResourceOut -> fprintf out "ResourceOut"
| Err GaveUp -> fprintf out "GaveUp"
)
status file

Expand Down Expand Up @@ -553,7 +555,7 @@ let main () =
| Prove.NoProof ->
retcode := 12;
if not !quiet_flag then
print_status (Err Unknown) file
print_status (Err GaveUp) file
| Prove.LimitsExceeded ->
retcode := 13;
if not !quiet_flag then
Expand Down

0 comments on commit d4a7041

Please sign in to comment.