Skip to content

Commit 59def8a

Browse files
disable proof hint generation during call to get_exit_code (#1153)
Previously, the get_exit_code call would emit events into the proof trace. This is not actually part of the proof of execution though, so we should omit these events. --------- Co-authored-by: rv-jenkins <[email protected]>
1 parent 315f1d4 commit 59def8a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

runtime/util/finish_rewriting.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,12 @@ void init_outputs(char const *output_filename) {
6868
write_configuration_to_proof_trace(proof_writer, subject, false);
6969
}
7070

71+
bool was_proof_output = proof_output;
72+
proof_output = false;
73+
7174
auto exit_code = error ? 113 : get_exit_code(subject);
7275

73-
if (proof_output) {
76+
if (was_proof_output) {
7477
w->end_of_trace();
7578
}
7679

test/output/exit-cell/exec0.output-cell.proof.out.diff

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,3 @@ rule: 144 3
2626
Var'Unds'Gen0 = kore[\dv{SortInt{}}("1")]
2727
VarI = kore[\dv{SortInt{}}("0")]
2828
config: kore[Lbl'-LT-'generatedTop'-GT-'{}(Lbl'-LT-'k'-GT-'{}(dotk{}()),Lbl'-LT-'status-code'-GT-'{}(\dv{SortInt{}}("0")),Lbl'-LT-'generatedCounter'-GT-'{}(\dv{SortInt{}}("0")))]
29-
rule: 189 3
30-
Var'Unds'Gen0 = kore[Lbl'-LT-'k'-GT-'{}(dotk{}())]
31-
Var'Unds'Gen1 = kore[Lbl'-LT-'generatedCounter'-GT-'{}(\dv{SortInt{}}("0"))]
32-
VarExit = kore[\dv{SortInt{}}("0")]

0 commit comments

Comments
 (0)