svf-lib 1.0.1952 → 1.0.1954

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 -11
  2. package/package.json +1 -1
package/llvm_install.sh CHANGED
@@ -4,8 +4,6 @@ sysOS=`uname -s`
4
4
  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
- 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"
9
7
  UbuntuZ3="https://github.com/Z3Prover/z3/releases/download/z3-4.8.8/z3-4.8.8-x64-ubuntu-16.04.zip"
10
8
  Z3Home="z3.obj"
11
9
  LLVMHome="llvm-${LLVMVer}.obj"
@@ -69,16 +67,16 @@ if [[ $sysOS == "Darwin" ]]
69
67
  then
70
68
  if [ ! -d "$install_path/$Z3Home" ]
71
69
  then
72
- if [[ "$arch" == "arm64" ]]; then
73
- urlZ3="$MacArmZ3"
74
- else
75
- urlZ3="$MacZ3"
76
70
  echo 'Downloading z3 binary for MacOS '
77
- curl -L $urlZ3 > z3.zip
78
- mkdir $install_path/$Z3Home
79
- echo 'Unzipping z3 binary for MacOS '
80
- unzip -q "z3.zip" && mv ./z3-*/* $install_path/$Z3Home/
81
- rm z3.zip
71
+ brew install z3
72
+ if [ $? -eq 0 ]; then
73
+ echo "z3 binary installation completed."
74
+ else
75
+ echo "z3 binary installation failed."
76
+ exit 1
77
+ fi
78
+ mkdir -p $install_path/$Z3Home
79
+ ln -s $(brew --prefix z3)/* $install_path/$Z3Home
82
80
  fi
83
81
  elif [[ $sysOS == "Linux" ]]
84
82
  then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.1952",
3
+ "version": "1.0.1954",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {