cmd/compiler_proof_kernel.zi replaces cmd/zir/zir_proof_kernel.c and .h. Proof results, law diagnostics and the step budget are unchanged: the kernel test pins a trace hash recorded from the old C kernel.
15 lines
563 B
Bash
15 lines
563 B
Bash
#!/bin/sh
|
|
set -eu
|
|
ziran=$1
|
|
repo=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
module=compiler_proof_kernel_test
|
|
. "$repo/tests/lib/compiler_module.sh"
|
|
|
|
# The C boundary: exhaustive interpretation of accepted claims and the trace
|
|
# of the C kernel this module replaced.
|
|
${CC:-cc} ${VM_CFLAGS:-} -std=c11 -I"$repo/include" \
|
|
-I"$(dirname "${ZIRAN_LIB:-$repo/build/libziran.a}")/compiler-proof-kernel" \
|
|
"$repo/tests/compiler_proof_kernel_test.c" "${ZIRAN_LIB:-$repo/build/libziran.a}" \
|
|
-pthread -lm -o "$work/source-boundary"
|
|
"$work/source-boundary"
|