Skip to content

Commit

Permalink
chore: add timeout for long-running files (#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasgrosser authored Dec 25, 2024
1 parent f2b36bf commit 73acc8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions SSA/Projects/InstCombine/TacticAuto.lean
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ macro "bv_bench": tactic =>
"bv_normalize" : (bv_normalize; done),
"bv_decide" : (bv_decide; done),
"bv_auto" : (bv_auto; done),
"bv_automata_circuit" : (bv_automata_circuit (config := { circuitSizeThreshold := 30 } ); done),
"bv_normalize_automata_circuit" : ((try (solve | bv_normalize)); (try bv_automata_circuit (config := { circuitSizeThreshold := 30 } )); done)
"bv_automata_circuit" : (bv_automata_circuit; done),
"bv_normalize_automata_circuit" : ((try (solve | bv_normalize)); (try bv_automata_circuit); done)
]
try bv_auto
try sorry
Expand Down
2 changes: 1 addition & 1 deletion bv-evaluation/compare-leansat-vs-bitwuzla-llvm-sym.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def run_file(file: str):
with open(log_file_path, 'w') as log_file:
cmd = 'lake lean ' + file_path
print(cmd)
subprocess.Popen(cmd, cwd=ROOT_DIR, stdout=log_file, stderr=log_file, shell=True).wait()
subprocess.Popen(cmd, cwd=ROOT_DIR, stdout=log_file, stderr=log_file, shell=True).wait(timeout=1800)
subprocess.Popen('sed -i -E \'s,bv_bench,simp_alive_benchmark,g\' ' + file_path, cwd=ROOT_DIR, shell=True).wait()

def process(jobs: int):
Expand Down

0 comments on commit 73acc8f

Please sign in to comment.