1. Install SVF and its dependence (LLVM pre-built binary) via npm
npm i --silent svf-lib --prefix ${HOME}
2. Clone repository
git clone https://github.com/SVF-tools/SVF-Python
3. Install repository
cd noce_modules/svf-lib
./llvm_install.sh
For mac arm64 system replace two files
node_modules/SVF/Release-build/svf/libSvfCore.a
node_modules/SVF/Release-build/svf-llvm/libSvfLLVM.a
to the given file in MacLib respectively
For mac arm64 system need to use
brew install llvm@14
install the correct llvm for the arm64 then open the terminal and input
cd /opt/homebrew/Cellar
then copy the file llvm@14 and paste it into node_modules
and replace the original llvm-14.0.0.obj