File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash -eu
22# SPDX-License-Identifier: PMPL-1.0
3- cd $SRC /absolute-zero
3+ cd " $SRC " /absolute-zero
44cargo +nightly fuzz build
55for target in $( cargo +nightly fuzz list) ; do
66 cp ./target/x86_64-unknown-linux-gnu/release/$target $OUT /
Original file line number Diff line number Diff line change @@ -123,7 +123,11 @@ if [ ${#MISSING_TOOLS[@]} -gt 0 ]; then
123123 echo " Install with:"
124124 echo " Fedora: sudo dnf install coq z3 && cargo install just"
125125 echo " Ubuntu: sudo apt install coq z3 && cargo install just"
126+ # WARNING: Pipe-to-shell is unsafe — download and verify first
127+ # WARNING: Pipe-to-shell is unsafe — download and verify first
126128 echo " Deno: curl -fsSL https://deno.land/install.sh | sh"
129+ # WARNING: Pipe-to-shell is unsafe — download and verify first
130+ # WARNING: Pipe-to-shell is unsafe — download and verify first
127131 echo " Lean 4: curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh"
128132 echo " "
129133fi
@@ -217,7 +221,7 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
217221 if command -v coqc & > /dev/null; then
218222 echo " Building Coq proofs..."
219223 cd proofs/coq/common && coqc CNO.v || echo " ⚠ CNO.v failed"
220- cd $REPO_ROOT
224+ cd " $REPO_ROOT "
221225 fi
222226
223227 # Try Z3
@@ -230,7 +234,7 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
230234 if command -v lake & > /dev/null; then
231235 echo " Building Lean 4..."
232236 cd proofs/lean4 && lake build || echo " ⚠ Lean build failed"
233- cd $REPO_ROOT
237+ cd " $REPO_ROOT "
234238 fi
235239 fi
236240fi
Original file line number Diff line number Diff line change @@ -242,10 +242,15 @@ instructionCrossPlatform = InvariantProof
242242public export
243243verifyAlignment : (p : Platform) -> (t : Type ) ->
244244 HasAlignment t n -> So (n `mod` (ptrSize p `div` 8) == 0)
245+ -- PROOF_TODO: Replace believe_me with actual proof
245246verifyAlignment Linux t (AlignProof {n}) = believe_me Oh
247+ -- PROOF_TODO: Replace believe_me with actual proof
246248verifyAlignment Windows t (AlignProof {n}) = believe_me Oh
249+ -- PROOF_TODO: Replace believe_me with actual proof
247250verifyAlignment MacOS t (AlignProof {n}) = believe_me Oh
251+ -- PROOF_TODO: Replace believe_me with actual proof
248252verifyAlignment BSD t (AlignProof {n}) = believe_me Oh
253+ -- PROOF_TODO: Replace believe_me with actual proof
249254verifyAlignment WASM t (AlignProof {n}) = believe_me Oh
250255
251256||| ProgramState alignment is valid on all platforms
@@ -277,6 +282,7 @@ alignedSize size align =
277282public export
278283alignedSizeCorrect : (size : Nat ) -> (align : Nat ) -> {auto 0 nonZero : So (align /= 0)} ->
279284 So (alignedSize size align `mod` align == 0)
285+ -- PROOF_TODO: Replace believe_me with actual proof
280286alignedSizeCorrect size align = believe_me Oh
281287
282288-- ------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments