assert task2_status is not None
assert task2_status == "FAIL"
- job.summary.append("counterexample trace: %s/engine_%d/trace.vcd" % (job.workdir, engine_idx))
+ if os.path.exists("%s/engine_%d/trace.vcd" % (job.workdir, engine_idx)):
+ job.summary.append("counterexample trace: %s/engine_%d/trace.vcd" % (job.workdir, engine_idx))
task2.output_callback = output_callback2
task2.exit_callback = exit_callback2
else:
assert task2_status == "FAIL"
- job.summary.append("counterexample trace: %s/engine_%d/trace.vcd" % (job.workdir, engine_idx))
+ if os.path.exists("%s/engine_%d/trace.vcd" % (job.workdir, engine_idx)):
+ job.summary.append("counterexample trace: %s/engine_%d/trace.vcd" % (job.workdir, engine_idx))
task2.output_callback = output_callback2
task2.exit_callback = exit_callback2
job.summary.append("engine_%d (%s) returned %s" % (engine_idx, " ".join(engine), task_status))
if task_status == "FAIL" and mode != "cover":
- job.summary.append("counterexample trace: %s/engine_%d/trace.vcd" % (job.workdir, engine_idx))
+ if os.path.exists("%s/engine_%d/trace.vcd" % (job.workdir, engine_idx)):
+ job.summary.append("counterexample trace: %s/engine_%d/trace.vcd" % (job.workdir, engine_idx))
job.terminate()
else:
job.update_status(task_status)
- job.summary.append("counterexample trace: %s/engine_%d/trace.vcd" % (job.workdir, engine_idx))
+ if os.path.exists("%s/engine_%d/trace.vcd" % (job.workdir, engine_idx)):
+ job.summary.append("counterexample trace: %s/engine_%d/trace.vcd" % (job.workdir, engine_idx))
job.terminate()
elif mode == "prove_induction":