Skip to content

Commit e8f4ab7

Browse files
committed
Update expected output, remove Accounts test
1 parent df4e23c commit e8f4ab7

10 files changed

+362
-89
lines changed

src/tests/integration/test-data/foundry-dependency-all

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ ArithmeticContract.add_sub_external(uint256,uint256,uint256)
77
CSETest.test_add_const(uint256,uint256)
88
CSETest.test_identity(uint256,uint256)
99
ConstructorTest.test_contract_call()
10-
ContractFieldTest.testEscrowToken()
11-
CompositionalAccounts.getEscrowToken()
1210
Identity.applyOp(uint256)
1311
Identity.identity(uint256)
1412
ImportedContract.set(uint256)

src/tests/integration/test-data/foundry/src/cse/Accounts.sol

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/tests/integration/test-data/show/AddConst.applyOp(uint256).cse.expected

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
│ statusCode: STATUSCODE:StatusCode
77
88
┃ (branch)
9-
┣━━┓ constraint: VV0_x_114b9705:Int <=Int ( maxUInt256 -Int #lookup ( STORAGE_CONTRACT_ID:Map , 0 ) )
9+
┣━━┓ constraint: VV0_x_114b9705:Int <=Int ( maxUInt256 -Int #lookup ( CONTRACT_STORAGE:Map , 0 ) )
1010
┃ │
1111
┃ ├─ 8
1212
┃ │ k: #execute ~> CONTINUATION:K
@@ -29,7 +29,7 @@
2929
┃ callDepth: CALLDEPTH_CELL_5d410f2a:Int
3030
┃ statusCode: STATUSCODE_FINAL:StatusCode
3131
32-
┗━━┓ constraint: ( maxUInt256 -Int #lookup ( STORAGE_CONTRACT_ID:Map , 0 ) ) <Int VV0_x_114b9705:Int
32+
┗━━┓ constraint: ( maxUInt256 -Int #lookup ( CONTRACT_STORAGE:Map , 0 ) ) <Int VV0_x_114b9705:Int
3333
3434
├─ 9
3535
│ k: #execute ~> CONTINUATION:K
@@ -76,7 +76,7 @@ module SUMMARY-SRC%CSE%ADDCONST.APPLYOP(UINT256):0
7676
<ethereum>
7777
<evm>
7878
<output>
79-
( _OUTPUT_CELL => #buf ( 32 , ( VV0_x_114b9705:Int +Int #lookup ( STORAGE_CONTRACT_ID:Map , 0 ) ) ) )
79+
( _OUTPUT_CELL => #buf ( 32 , ( VV0_x_114b9705:Int +Int #lookup ( CONTRACT_STORAGE:Map , 0 ) ) ) )
8080
</output>
8181
<statusCode>
8282
( _STATUSCODE => EVMC_SUCCESS )
@@ -98,7 +98,7 @@ module SUMMARY-SRC%CSE%ADDCONST.APPLYOP(UINT256):0
9898
( .WordStack => ( selector ( "applyOp(uint256)" ) : .WordStack ) )
9999
</wordStack>
100100
<localMem>
101-
( b"" => b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" +Bytes #buf ( 32 , ( VV0_x_114b9705:Int +Int #lookup ( STORAGE_CONTRACT_ID:Map , 0 ) ) ) )
101+
( b"" => b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" +Bytes #buf ( 32 , ( VV0_x_114b9705:Int +Int #lookup ( CONTRACT_STORAGE:Map , 0 ) ) ) )
102102
</localMem>
103103
<memoryUsed>
104104
0
@@ -138,7 +138,7 @@ module SUMMARY-SRC%CSE%ADDCONST.APPLYOP(UINT256):0
138138
CONTRACT_BAL:Int
139139
</balance>
140140
<storage>
141-
STORAGE_CONTRACT_ID:Map
141+
CONTRACT_STORAGE:Map
142142
</storage>
143143
<nonce>
144144
CONTRACT_NONCE:Int
@@ -247,7 +247,7 @@ module SUMMARY-SRC%CSE%ADDCONST.APPLYOP(UINT256):0
247247
andBool ( ( notBool #range ( 0 < CALLER_ID:Int <= 9 ) )
248248
andBool ( ( notBool #range ( 0 < ORIGIN_ID:Int <= 9 ) )
249249
andBool ( ( notBool #range ( 0 < CONTRACT_ID:Int <= 9 ) )
250-
andBool ( VV0_x_114b9705:Int <=Int ( maxUInt256 -Int #lookup ( STORAGE_CONTRACT_ID:Map , 0 ) )
250+
andBool ( VV0_x_114b9705:Int <=Int ( maxUInt256 -Int #lookup ( CONTRACT_STORAGE:Map , 0 ) )
251251
))))))))))))))))))))))))
252252
[priority(20), label(BASIC-BLOCK-8-TO-6)]
253253

@@ -288,7 +288,7 @@ module SUMMARY-SRC%CSE%ADDCONST.APPLYOP(UINT256):0
288288
0
289289
</callValue>
290290
<wordStack>
291-
( .WordStack => ( 0 : ( VV0_x_114b9705:Int : ( #lookup ( STORAGE_CONTRACT_ID:Map , 0 ) : ( 118 : ( 0 : ( VV0_x_114b9705:Int : ( 70 : ( selector ( "applyOp(uint256)" ) : .WordStack ) ) ) ) ) ) ) ) )
291+
( .WordStack => ( 0 : ( VV0_x_114b9705:Int : ( #lookup ( CONTRACT_STORAGE:Map , 0 ) : ( 118 : ( 0 : ( VV0_x_114b9705:Int : ( 70 : ( selector ( "applyOp(uint256)" ) : .WordStack ) ) ) ) ) ) ) ) )
292292
</wordStack>
293293
<localMem>
294294
( b"" => b"NH{q\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80" )
@@ -331,7 +331,7 @@ module SUMMARY-SRC%CSE%ADDCONST.APPLYOP(UINT256):0
331331
CONTRACT_BAL:Int
332332
</balance>
333333
<storage>
334-
STORAGE_CONTRACT_ID:Map
334+
CONTRACT_STORAGE:Map
335335
</storage>
336336
<nonce>
337337
CONTRACT_NONCE:Int
@@ -440,7 +440,7 @@ module SUMMARY-SRC%CSE%ADDCONST.APPLYOP(UINT256):0
440440
andBool ( ( notBool #range ( 0 < CALLER_ID:Int <= 9 ) )
441441
andBool ( ( notBool #range ( 0 < ORIGIN_ID:Int <= 9 ) )
442442
andBool ( ( notBool #range ( 0 < CONTRACT_ID:Int <= 9 ) )
443-
andBool ( ( maxUInt256 -Int #lookup ( STORAGE_CONTRACT_ID:Map , 0 ) ) <Int VV0_x_114b9705:Int
443+
andBool ( ( maxUInt256 -Int #lookup ( CONTRACT_STORAGE:Map , 0 ) ) <Int VV0_x_114b9705:Int
444444
))))))))))))))))))))))))
445445
[priority(20), label(BASIC-BLOCK-9-TO-7)]
446446

0 commit comments

Comments
 (0)