Skip to content

Commit b09315b

Browse files
committed
Update test expectations with eof-enabled ethdebug
1 parent f468ca8 commit b09315b

File tree

4 files changed

+251
-4
lines changed

4 files changed

+251
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
--experimental-eof-version 1 --evm-version osaka --ethdebug --via-ir
1+
--experimental-eof-version 1 --evm-version osaka --ethdebug --via-ir --pretty-json --json-indent 4

test/cmdlineTests/ethdebug_eof_container_osaka/err

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/cmdlineTests/ethdebug_eof_container_osaka/exit

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 250 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,253 @@
11
======= Debug Data (ethdebug/format/info/resources) =======
2-
{"compilation":{"compiler":{"name":"solc","version": "<VERSION REMOVED>"},"sources":[{"id":0,"path":"input.sol"}]}}
2+
{
3+
"compilation": {
4+
"compiler": {
5+
"name": "solc",
6+
"version": "<VERSION REMOVED>"
7+
},
8+
"sources": [
9+
{
10+
"id": 0,
11+
"path": "input.sol"
12+
}
13+
]
14+
}
15+
}
316

417
======= input.sol:C =======
18+
Debug Data (ethdebug/format/program):
19+
{
20+
"contract": {
21+
"definition": {
22+
"source": {
23+
"id": 0
24+
}
25+
},
26+
"name": "C"
27+
},
28+
"environment": "create",
29+
"instructions": [
30+
{
31+
"context": {
32+
"code": {
33+
"range": {
34+
"length": 41,
35+
"offset": 60
36+
},
37+
"source": {
38+
"id": 0
39+
}
40+
}
41+
},
42+
"offset": 30,
43+
"operation": {
44+
"arguments": [
45+
"0x80"
46+
],
47+
"mnemonic": "PUSH1"
48+
}
49+
},
50+
{
51+
"context": {
52+
"code": {
53+
"range": {
54+
"length": 41,
55+
"offset": 60
56+
},
57+
"source": {
58+
"id": 0
59+
}
60+
}
61+
},
62+
"offset": 32,
63+
"operation": {
64+
"arguments": [
65+
"0x40"
66+
],
67+
"mnemonic": "PUSH1"
68+
}
69+
},
70+
{
71+
"context": {
72+
"code": {
73+
"range": {
74+
"length": 41,
75+
"offset": 60
76+
},
77+
"source": {
78+
"id": 0
79+
}
80+
}
81+
},
82+
"offset": 34,
83+
"operation": {
84+
"mnemonic": "MSTORE"
85+
}
86+
},
87+
{
88+
"context": {
89+
"code": {
90+
"range": {
91+
"length": 41,
92+
"offset": 60
93+
},
94+
"source": {
95+
"id": 0
96+
}
97+
}
98+
},
99+
"offset": 35,
100+
"operation": {
101+
"mnemonic": "CALLVALUE"
102+
}
103+
},
104+
{
105+
"context": {
106+
"code": {
107+
"range": {
108+
"length": 41,
109+
"offset": 60
110+
},
111+
"source": {
112+
"id": 0
113+
}
114+
}
115+
},
116+
"offset": 36,
117+
"operation": {
118+
"arguments": [
119+
"0x0005"
120+
],
121+
"mnemonic": "RJUMPI"
122+
}
123+
},
124+
{
125+
"context": {
126+
"code": {
127+
"range": {
128+
"length": 41,
129+
"offset": 60
130+
},
131+
"source": {
132+
"id": 0
133+
}
134+
}
135+
},
136+
"offset": 39,
137+
"operation": {
138+
"mnemonic": "PUSH0"
139+
}
140+
},
141+
{
142+
"context": {
143+
"code": {
144+
"range": {
145+
"length": 41,
146+
"offset": 60
147+
},
148+
"source": {
149+
"id": 0
150+
}
151+
}
152+
},
153+
"offset": 40,
154+
"operation": {
155+
"arguments": [
156+
"0x80"
157+
],
158+
"mnemonic": "PUSH1"
159+
}
160+
},
161+
{
162+
"context": {
163+
"code": {
164+
"range": {
165+
"length": 41,
166+
"offset": 60
167+
},
168+
"source": {
169+
"id": 0
170+
}
171+
}
172+
},
173+
"offset": 42,
174+
"operation": {
175+
"arguments": [
176+
"0x00"
177+
],
178+
"mnemonic": "RETURNCONTRACT"
179+
}
180+
},
181+
{
182+
"context": {
183+
"code": {
184+
"range": {
185+
"length": 41,
186+
"offset": 60
187+
},
188+
"source": {
189+
"id": 0
190+
}
191+
}
192+
},
193+
"offset": 44,
194+
"operation": {
195+
"arguments": [
196+
"0x0001"
197+
],
198+
"mnemonic": "JUMPF"
199+
}
200+
},
201+
{
202+
"context": {
203+
"code": {
204+
"range": {
205+
"length": 41,
206+
"offset": 60
207+
},
208+
"source": {
209+
"id": 0
210+
}
211+
}
212+
},
213+
"offset": 47,
214+
"operation": {
215+
"mnemonic": "PUSH0"
216+
}
217+
},
218+
{
219+
"context": {
220+
"code": {
221+
"range": {
222+
"length": 41,
223+
"offset": 60
224+
},
225+
"source": {
226+
"id": 0
227+
}
228+
}
229+
},
230+
"offset": 48,
231+
"operation": {
232+
"mnemonic": "DUP1"
233+
}
234+
},
235+
{
236+
"context": {
237+
"code": {
238+
"range": {
239+
"length": 41,
240+
"offset": 60
241+
},
242+
"source": {
243+
"id": 0
244+
}
245+
}
246+
},
247+
"offset": 49,
248+
"operation": {
249+
"mnemonic": "REVERT"
250+
}
251+
}
252+
]
253+
}

0 commit comments

Comments
 (0)