From 94cafc96dcb3d4517ce857e70a6e9150ae0c4a80 Mon Sep 17 00:00:00 2001 From: palinatolmach Date: Tue, 8 Oct 2024 18:50:29 +0800 Subject: [PATCH] Update expected output for CSE tests --- ...t.test_double_add(uint256,uint256).cse.expected | 4 ++-- ...le_add_double_sub(uint256,uint256).cse.expected | 14 +++++++------- ..._external(uint256,uint256,uint256).cse.expected | 12 ++++++------ ..._external(uint256,uint256,uint256).cse.expected | 4 ++-- ...rnance.getEscrowTokenTotalSupply().cse.expected | 2 +- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/tests/integration/test-data/show/ArithmeticCallTest.test_double_add(uint256,uint256).cse.expected b/src/tests/integration/test-data/show/ArithmeticCallTest.test_double_add(uint256,uint256).cse.expected index 761ba63a7..3362524ca 100644 --- a/src/tests/integration/test-data/show/ArithmeticCallTest.test_double_add(uint256,uint256).cse.expected +++ b/src/tests/integration/test-data/show/ArithmeticCallTest.test_double_add(uint256,uint256).cse.expected @@ -61,8 +61,8 @@ ┣━━┓ subst: .Subst ┃ ┃ constraint: ┃ ┃ VV0_x_114b9705:Int <=Int ( maxUInt256 -Int VV1_y_114b9705:Int ) -┃ ┃ ( VV0_x_114b9705:Int +Int VV1_y_114b9705:Int ) <=Int ( maxUInt256 -Int VV1_y_114b9705:Int ) ┃ ┃ VV0_x_114b9705:Int #return 128 32 ~> #pc [ STATICCALL ] ~> #execute ~> CONTINUATION:K @@ -92,8 +92,8 @@ ┗━━┓ subst: .Subst ┃ constraint: ┃ VV0_x_114b9705:Int <=Int ( maxUInt256 -Int VV1_y_114b9705:Int ) - ┃ ( VV0_x_114b9705:Int +Int VV1_y_114b9705:Int ) <=Int ( maxUInt256 -Int VV1_y_114b9705:Int ) ┃ ( ( VV0_x_114b9705:Int +Int VV1_y_114b9705:Int ) +Int VV1_y_114b9705:Int ) <=Int VV0_x_114b9705:Int + ┃ ( VV0_x_114b9705:Int +Int VV1_y_114b9705:Int ) <=Int ( maxUInt256 -Int VV1_y_114b9705:Int ) │ ├─ 25 │ k: #execute ~> #return 128 32 ~> #pc [ STATICCALL ] ~> #execute ~> CONTINUATION:K diff --git a/src/tests/integration/test-data/show/ArithmeticCallTest.test_double_add_double_sub(uint256,uint256).cse.expected b/src/tests/integration/test-data/show/ArithmeticCallTest.test_double_add_double_sub(uint256,uint256).cse.expected index 1b2cecdf3..2f4701df4 100644 --- a/src/tests/integration/test-data/show/ArithmeticCallTest.test_double_add_double_sub(uint256,uint256).cse.expected +++ b/src/tests/integration/test-data/show/ArithmeticCallTest.test_double_add_double_sub(uint256,uint256).cse.expected @@ -60,9 +60,9 @@ ┃ ┣━━┓ subst: .Subst ┃ ┃ constraint: +┃ ┃ VV0_x_114b9705:Int #return 128 32 ~> #pc [ STATICCALL ] ~> #execute ~> CONTINUATION:K @@ -82,10 +82,10 @@ ┃ ┣━━┓ subst: .Subst ┃ ┃ constraint: -┃ ┃ VV0_x_114b9705:Int <=Int ( maxUInt256 -Int VV1_y_114b9705:Int ) -┃ ┃ ( VV0_x_114b9705:Int +Int VV1_y_114b9705:Int ) <=Int ( maxUInt256 -Int VV1_y_114b9705:Int ) ┃ ┃ VV1_y_114b9705:Int <=Int VV0_x_114b9705:Int ┃ ┃ ( VV0_x_114b9705:Int -Int VV1_y_114b9705:Int ) #return 128 32 ~> #pc [ STATICCALL ] ~> #execute ~> CONTINUATION:K @@ -105,10 +105,10 @@ ┃ ┣━━┓ subst: .Subst ┃ ┃ constraint: -┃ ┃ VV0_x_114b9705:Int <=Int ( maxUInt256 -Int VV1_y_114b9705:Int ) -┃ ┃ ( VV0_x_114b9705:Int +Int VV1_y_114b9705:Int ) <=Int ( maxUInt256 -Int VV1_y_114b9705:Int ) ┃ ┃ VV1_y_114b9705:Int <=Int VV0_x_114b9705:Int ┃ ┃ VV1_y_114b9705:Int <=Int ( VV0_x_114b9705:Int -Int VV1_y_114b9705:Int ) +┃ ┃ VV0_x_114b9705:Int <=Int ( maxUInt256 -Int VV1_y_114b9705:Int ) +┃ ┃ ( VV0_x_114b9705:Int +Int VV1_y_114b9705:Int ) <=Int ( maxUInt256 -Int VV1_y_114b9705:Int ) ┃ ┃ ( notBool ( ( ( VV0_x_114b9705:Int +Int VV1_y_114b9705:Int ) +Int VV1_y_114b9705:Int ) -Int ( ( VV0_x_114b9705:Int -Int VV1_y_114b9705:Int ) -Int VV1_y_114b9705:Int ) ) ==Int 0 ) ┃ │ ┃ ├─ 46 @@ -138,10 +138,10 @@ ┃ ┗━━┓ subst: .Subst ┃ constraint: - ┃ VV0_x_114b9705:Int <=Int ( maxUInt256 -Int VV1_y_114b9705:Int ) - ┃ ( VV0_x_114b9705:Int +Int VV1_y_114b9705:Int ) <=Int ( maxUInt256 -Int VV1_y_114b9705:Int ) ┃ VV1_y_114b9705:Int <=Int VV0_x_114b9705:Int ┃ VV1_y_114b9705:Int <=Int ( VV0_x_114b9705:Int -Int VV1_y_114b9705:Int ) + ┃ VV0_x_114b9705:Int <=Int ( maxUInt256 -Int VV1_y_114b9705:Int ) + ┃ ( VV0_x_114b9705:Int +Int VV1_y_114b9705:Int ) <=Int ( maxUInt256 -Int VV1_y_114b9705:Int ) ┃ 0 ==Int ( ( ( VV0_x_114b9705:Int +Int VV1_y_114b9705:Int ) +Int VV1_y_114b9705:Int ) -Int ( ( VV0_x_114b9705:Int -Int VV1_y_114b9705:Int ) -Int VV1_y_114b9705:Int ) ) │ ├─ 47 diff --git a/src/tests/integration/test-data/show/ArithmeticCallTest.test_double_add_sub_external(uint256,uint256,uint256).cse.expected b/src/tests/integration/test-data/show/ArithmeticCallTest.test_double_add_sub_external(uint256,uint256,uint256).cse.expected index 9e9b902fa..a10c9e8f9 100644 --- a/src/tests/integration/test-data/show/ArithmeticCallTest.test_double_add_sub_external(uint256,uint256,uint256).cse.expected +++ b/src/tests/integration/test-data/show/ArithmeticCallTest.test_double_add_sub_external(uint256,uint256,uint256).cse.expected @@ -62,8 +62,8 @@ ┃ ┣━━┓ subst: .Subst ┃ ┃ constraint: -┃ ┃ VV0_x_114b9705:Int <=Int ( maxUInt256 -Int VV1_y_114b9705:Int ) ┃ ┃ VV2_z_114b9705:Int <=Int ( VV0_x_114b9705:Int +Int VV1_y_114b9705:Int ) +┃ ┃ VV0_x_114b9705:Int <=Int ( maxUInt256 -Int VV1_y_114b9705:Int ) ┃ ┃ ( ( ( VV0_x_114b9705:Int +Int VV1_y_114b9705:Int ) -Int VV2_z_114b9705:Int ) +Int VV1_y_114b9705:Int ) CONTINUATION:K @@ -110,8 +110,8 @@ ┗━━┓ subst: .Subst ┃ constraint: ┃ CALLDEPTH_CELL:Int CONTINUATION:K diff --git a/src/tests/integration/test-data/show/TGovernance.getEscrowTokenTotalSupply().cse.expected b/src/tests/integration/test-data/show/TGovernance.getEscrowTokenTotalSupply().cse.expected index e853fcdd7..f6fa3ddc7 100644 --- a/src/tests/integration/test-data/show/TGovernance.getEscrowTokenTotalSupply().cse.expected +++ b/src/tests/integration/test-data/show/TGovernance.getEscrowTokenTotalSupply().cse.expected @@ -53,8 +53,8 @@ ┃ ┣━━┓ subst: .Subst ┃ ┃ constraint: -┃ ┃ CALLDEPTH_CELL:Int CONTINUATION:K