#!/bin/bash # Table of masks for two punctures (two full classes) at the budgets 30 to 33 (IIS-Q-0003). # The script run_tables.sh computes the budgets 34 to 38 in 12 parts. This script computes the # four smaller budgets for each of the 1540 pairs of classes, then runs q3_p2_low_summary.py. # I wrote this script after the first run of these commands. The file of the logs holds the log # of the run with this script. # Clean environment: lean_env.sh sets the variables and removes the variables that can hold a secret. # usage (from the root of the workspace): /bin/bash -c '. work/lean_env.sh && bash work/capset/q0003/run_p2_low.sh' W=$(cd "$(dirname "$0")/../../.." && pwd) # the root of the workspace; this script is in work/capset/q0003 D=$W/work/capset/q0003 Q=$D/q3_check L=$D/logs PY3=/opt/homebrew/bin/python3 { echo "start $(date -u +%Y-%m-%dT%H:%M:%SZ)" echo "binary sha256 $(shasum -a 256 "$Q" | cut -d' ' -f1)" for LAYER in 0 1; do echo "layer $LAYER two punctures (two full classes), strict rule, budgets 30 to 33" /usr/bin/time -p "$Q" tables "$LAYER" p2 30,31,32,33 > "$L/q3_p2_low_L$LAYER.txt" echo "exit $?" done echo "summary script sha256 $(shasum -a 256 "$D/q3_p2_low_summary.py" | cut -d' ' -f1)" "$PY3" -I "$D/q3_p2_low_summary.py" "$L" echo "summary exit $?" echo "end $(date -u +%Y-%m-%dT%H:%M:%SZ)" } > "$L/q3_p2_low_run.log" 2>&1