git clone https://github.com/arch-of-shadow/aps-compiler.git
git submodule update --init --recursive
pip install uv && uv venv && source ./.venv/bin/activate
uv pip install -r ./requirements.txt
apt update && apt install cmake ninja-build build-essensial clang-14
bash build.shcd ${COMPILER_PATH}/3rdparty/aps-synth
cargo run --bin aps -- -i samples/xys_ntt.cadl -a rocc export
cp ./__generated/arch.json ../../cachethe generated json lies in ${COMPILER_PATH}/cache
source ${COMPILER_PATH}/.venv/bin/activate
cd ${COMPILER_PATH}/Opt/PatternMatch/Parser && python3 test_main.pythe match function will automatically generated at ${COMPILER_PATH}/Opt/PatternMatch/offline_gen/matched.cpp