svf-lib 1.0.1951 → 1.0.1953

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/llvm_install.sh +9 -2
  2. package/package.json +1 -1
package/llvm_install.sh CHANGED
@@ -5,6 +5,7 @@ MajorLLVMVer=16
5
5
  LLVMVer=${MajorLLVMVer}.0.0
6
6
  UbuntuLLVM="https://github.com/llvm/llvm-project/releases/download/llvmorg-${LLVMVer}/clang+llvm-${LLVMVer}-x86_64-linux-gnu-ubuntu-18.04.tar.xz"
7
7
  MacZ3="https://github.com/Z3Prover/z3/releases/download/z3-4.8.8/z3-4.8.8-x64-osx-10.14.6.zip"
8
+ MacArmZ3="https://github.com/Z3Prover/z3/releases/download/z3-4.9.1/z3-4.9.1-arm64-osx-11.0.zip"
8
9
  UbuntuZ3="https://github.com/Z3Prover/z3/releases/download/z3-4.8.8/z3-4.8.8-x64-ubuntu-16.04.zip"
9
10
  Z3Home="z3.obj"
10
11
  LLVMHome="llvm-${LLVMVer}.obj"
@@ -63,15 +64,21 @@ echo "LLVM_DIR=$LLVM_DIR"
63
64
  ########
64
65
  # Download z3 binary
65
66
  ########
67
+ urlZ3=""
66
68
  if [[ $sysOS == "Darwin" ]]
67
69
  then
68
70
  if [ ! -d "$install_path/$Z3Home" ]
69
71
  then
72
+ if [[ "$arch" == "arm64" ]]; then
73
+ urlZ3="$MacArmZ3"
74
+ else
75
+ urlZ3="$MacZ3"
76
+ fi
70
77
  echo 'Downloading z3 binary for MacOS '
71
- curl -L $MacZ3 > z3.zip
78
+ curl -L $urlZ3 > z3.zip
72
79
  mkdir $install_path/$Z3Home
73
80
  echo 'Unzipping z3 binary for MacOS '
74
- unzip -q "z3.zip" && mv ./z3-*/* $install_path/$Z3Home/
81
+ unzip -q "z3.zip" && mv ./z3-*/* $install_path/$Z3Home/
75
82
  rm z3.zip
76
83
  fi
77
84
  elif [[ $sysOS == "Linux" ]]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.1951",
3
+ "version": "1.0.1953",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {