# Reproduce the bounded job586 checks with one CPU and2GiB address space. import subprocess,resource,os,time,sys from pathlib import Path os.chdir(Path(__file__).parent) def cap(): resource.setrlimit(resource.RLIMIT_AS,(2*1024**3,2*1024**3));resource.setrlimit(resource.RLIMIT_CPU,(600,600)) os.sched_setaffinity(0,{min(os.sched_getaffinity(0))}) subprocess.run(['g++','-O3','-std=c++17','stream_check.cpp','-o','stream_check'],check=True) subprocess.run([sys.executable,'check_small.py'],check=True,preexec_fn=cap) t=time.monotonic() with open('T29-check.txt','w') as f:subprocess.run(['./stream_check','29'],stdout=f,check=True,preexec_fn=cap) subprocess.run([sys.executable,'compare_and_witness.py'],check=True,preexec_fn=cap) subprocess.run([sys.executable,'onset_check.py'],check=True,preexec_fn=cap) print(f'large/check wall_seconds={time.monotonic()-t:.3f}',file=sys.stderr)