Skip to content

Commit

Permalink
make clean yices, update gigahorse client
Browse files Browse the repository at this point in the history
  • Loading branch information
ruaronicola committed Aug 24, 2023
1 parent 0b96ec1 commit 68ce948
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
23 changes: 19 additions & 4 deletions resources/patches/gigahorse_greed_client.patch
Original file line number Diff line number Diff line change
@@ -1,20 +1,36 @@
diff --git a/clientlib/greed_client.dl b/clientlib/greed_client.dl
new file mode 100644
index 0000000..d88493b
index 0000000..d71017d
--- /dev/null
+++ b/clientlib/greed_client.dl
@@ -0,0 +1,30 @@
@@ -0,0 +1,46 @@
+#include "decompiler_imports.dl"
+
+#include "guards.dl"
+#include "loops_semantics.dl"
+
+#include "memory_modeling/memory_modeling.dl"
+#include "storage_modeling/storage_modeling.dl"
+
+// storage layout output
+.output StorageVariableType
+.output StorageOffset_Type
+.output StorageVariableInfo
+
+// guards analysis output
+.output StaticallyGuardedBlock
+.output Dominates
+
+// calldata arrays (and loops) output
+.output BlockInStructuredLoop
+.output InductionVariable
+.output InductionVariableStartsAtConst
+.output InductionVariableIncreasesByConst
+.output InductionVariableUpperBoundVar
+.output InductionVariableDecreasesByConst
+.output InductionVariableLowerBoundVar
+.output CallDataCopyLoop
+.output MemoryCopyLoop
+
+
+// more required outputs (see greed's TAC_parser.py)
+// .output IRInFunctionFiltered(IO="file", filename="InFunction.csv", delimiter="\t")
Expand All @@ -34,4 +50,3 @@ index 0000000..d88493b
+// .output IRFunctionEntry
+// .output FormalArgs
+// .output StaticallyGuardedBlock
\ No newline at end of file
1 change: 1 addition & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ dpkg -l | grep -q gperf || { echo "${bold}${red}gperf is not installed. Please i
dpkg -l | grep -q libgmp-dev || { echo "${bold}${red}libgmp-dev is not installed. Please install it before proceeding (e.g., sudo apt install libgmp-dev)${normal}"; exit 1; }

# install
make clean || { echo "${bold}${red}Failed to run make clean ${normal}"; exit 1; }
autoconf || { echo "${bold}${red}Failed to run autoconf${normal}"; exit 1; }
./configure --enable-thread-safety || { echo "${bold}${red}Failed to run ./configure${normal}"; exit 1; }
make || { echo "${bold}${red}Failed to run make${normal}"; exit 1; }
Expand Down

0 comments on commit 68ce948

Please sign in to comment.