-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c19305
commit 57235bb
Showing
5 changed files
with
36 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
# Define paths | ||
foundryTomlPath="foundry.toml" | ||
backupFoundryTomlPath="foundry.toml.backup" | ||
smtScriptPath="scripts/smt-checker/smt/smt.ts" | ||
|
||
# Copy foundry.toml to backup file | ||
cp -p "$foundryTomlPath" "$backupFoundryTomlPath" | ||
|
||
# Run smt.ts script | ||
npx tsx "$smtScriptPath" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# Install dependencies | ||
apt-get update && sudo apt-get install -y g++ && \ | ||
apt-get install -y wget | ||
apt-get install -y z3 && \ | ||
apt-get install -y libz3-dev && \ | ||
|
||
# Download and install Z3 | ||
wget https://github.com/Z3Prover/z3/archive/refs/tags/z3-4.11.0.tar.gz && \ | ||
tar -zxvf z3-4.11.0.tar.gz && \ | ||
cd z3-z3-4.11.0 && \ | ||
python3 scripts/mk_make.py && \ | ||
cd build && \ | ||
make -j$(nproc) && \ | ||
make install && \ | ||
cp libz3.so libz3.so.4.11 && \ | ||
mv libz3.so.4.11 /usr/lib/x86_64-linux-gnu && \ | ||
echo "Successfully copied Z3 to the system" && \ | ||
|
||
# Print success message | ||
echo "Z3 installation completed successfully!" |
22 changes: 0 additions & 22 deletions
22
packages/contracts/scripts/smt-checker/update-deps-ubuntu.sh
This file was deleted.
Oops, something went wrong.