#!/usr/bin/env bash # SPDX-License-Identifier: MIT # Rung 6: the reference's rung 4 on this crate: 7,000,000 multiplies (10^6 per form) judged by # zaydlang's hardware-fuzzed model (its C code, built by the reference's # scripts/build_referees.py): result, C and m (scripts/multiply_cases.py, cached; arm7-multiply). set -euo pipefail source "$(dirname "$0")/env.sh" require_reference if [ ! -f "$MUL_MODEL" ]; then echo "no multiply model at $MUL_MODEL: run the reference's scripts/build_referees.py" >&2 exit 2 fi nice -n 19 cargo build --release -q --manifest-path "$ROOT/Cargo.toml" (cd / && nice -n 19 python3 "$ROOT/scripts/multiply_cases.py" "$REFCACHE/multiply" --jobs "$JOBS" > /dev/null) nice -n 19 "$ROOT/target/release/arm7-multiply" "$REFCACHE/multiply"