|
1 | 1 | package it.unipr; |
2 | 2 |
|
3 | 3 | import it.unipr.analysis.*; |
4 | | -import it.unipr.analysis.contract.BasicBlock; |
5 | 4 | import it.unipr.analysis.contract.SmartContract; |
6 | 5 | import it.unipr.analysis.taint.TimestampDependencyAbstractDomain; |
7 | 6 | import it.unipr.analysis.taint.TxOriginAbstractDomain; |
@@ -137,33 +136,6 @@ public static void enableTxOriginChecker() { |
137 | 136 | ENABLE_TXORIGIN_CHECKER = true; |
138 | 137 | } |
139 | 138 |
|
140 | | - /** |
141 | | - * Runs example analyses on smart contracts. |
142 | | - * |
143 | | - * @throws Exception if an error occurs during execution |
144 | | - */ |
145 | | - private void examples() throws Exception { |
146 | | - // Single case (address) |
147 | | - SmartContract sc = new SmartContract("0x3932f366886d2b981485503a182173da80d15c97"); |
148 | | - EVMLiSA.analyzeContract(sc); |
149 | | - sc.generateCFGWithBasicBlocks(); // generate .dot file |
150 | | - sc.toFile(); // save results to file |
151 | | - // print basic blocks as (from_block, to_block) pairs |
152 | | - log.debug(BasicBlock.basicBlocksToLongArrayToString( |
153 | | - BasicBlock.basicBlocksToLongArray(sc.getBasicBlocks()))); |
154 | | - |
155 | | - // Single case (bytecode as a path) |
156 | | - EVMLiSA.analyzeContract(new SmartContract(Path.of("execution", "results", |
157 | | - "0x26366920975b24A89CD991A495d0D70CB8E1BA1F", "0x26366920975b24A89CD991A495d0D70CB8E1BA1F.bytecode"))); |
158 | | - |
159 | | - // Single case (bytecode as a string) |
160 | | - EVMLiSA.analyzeContract(new SmartContract().setBytecode( |
161 | | - "0x608060405234801561001057600080fd5b50600436106100415760003560e01c80636146195414610046578063d88bba1114610050578063fbc7f20e14610087575b600080fd5b61004e6100a2565b005b61006b735a98fcbea516cf06857215779fd812ca3bef1b3281565b6040516001600160a01b03909116815260200160405180910390f35b61006b7387d93d9b2c672bf9c9642d853a8682546a5012b581565b6040516328a1b1ad60e21b8152735a98fcbea516cf06857215779fd812ca3bef1b3260048201527387d93d9b2c672bf9c9642d853a8682546a5012b5602482015273223d844fc4b006d67c0cdbd39371a9f73f69d9749063a286c6b490604401600060405180830381600087803b15801561011c57600080fd5b505af1158015610130573d6000803e3d6000fd5b5050505056fea2646970667358221220bae0c5370f53dc13f1e3000d78511979d423220e1cd1c5e47b343314ab833ff964736f6c63430008110033")); |
162 | | - |
163 | | - // Multiple contracts |
164 | | - EVMLiSA.analyzeSetOfContracts(Path.of("benchmark", "50-ground-truth.txt")); |
165 | | - } |
166 | | - |
167 | 139 | /** |
168 | 140 | * Executes the analysis workflow. |
169 | 141 | * |
|
0 commit comments