# exit if anything fails
set -e
INPUT=$(realpath $1)
mkdir -p target
cd holey-bytes/hbasm
cat $INPUT | cargo run > ../../target/out
cd ../hbvm
cat ../../target/out | cargo run