@@ -40,13 +40,14 @@ def run_opt(d: Path, timeout: str = '2s', passes: str = 'instcombine', save_resu
4040 return None
4141
4242def run_tv (before : Path , after : Path , timeout : str = '2m' , no_undef : bool = False , no_poison : bool = False ):
43- tv_args = ['timeout' , timeout , 'alive-tv' , after .absolute ().as_posix (), before .absolute ().as_posix ()]
43+ tv_args = ['timeout' , timeout , 'alive-tv' , before .absolute ().as_posix (), after .absolute ().as_posix ()]
4444 if no_undef :
4545 tv_args .append ('--disable-undef-input' )
4646 if no_poison :
4747 tv_args .append ('--disable-poison-input' )
4848 tv_p = sp .run (tv_args , capture_output = True , text = True )
4949 if "1 incorrect" in tv_p .stdout :
50+ print (tv_p .stdout , file = sys .stderr )
5051 return "incorrect"
5152 return "pass"
5253
@@ -87,7 +88,7 @@ def process_file(target: Path, crash_dir: Path):
8788
8889
8990def postmortem (covers_dir : Path , crash_dir : Path , jobs : int , cont : bool = False ):
90- files = [d .absolute () for d in covers_dir .iterdir () if d .suffix == '.ll' ]
91+ files = [d .absolute () for d in covers_dir .iterdir () if d .suffix == '.ll' and 'opt.ll' not in d . name ]
9192 files = unique_sorted_files (files )
9293 print (f"Found { len (files )} files to process" , file = sys .stderr )
9394
0 commit comments