Repository navigation
Expand file tree
/
Copy pathBytecode.lean
More file actions
50 lines (43 loc) · 2.97 KB
/
Copy pathBytecode.lean
File metadata and controls
50 lines (43 loc) · 2.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import Ethereum.Semantics
/-!
# Case44Bank bytecode, as the Fe branch compiles it
`runtime.hex` and `creation.hex` of this directory, the output of Fe `4e385c1ae7` (branch
`fevm-precompiles`, `Case44Bank.build.json`) on `Case44Bank.fe`, with `-O 1` for Osaka: the same
bytes as the compiler the IR checker's sidecar comes from produces, on this file and on
`acceptance.fe`. The runtime calls one internal function, `credit`, twice.
Runtime: 176 bytes; creation: 195 bytes, with the runtime at offset 19.
-/
namespace FeProofs.Case44Bank
set_option maxRecDepth 50000000
def case44BankBytecode : ByteArray :=
⟨#[
0x36, 0x60, 0x04, 0x90, 0x10, 0x60, 0x1e, 0x57, 0x5f, 0x35, 0x60, 0xe0, 0x1c, 0x60, 0x01,
0x81, 0x14, 0x60, 0x17, 0x57, 0x60, 0x1e, 0x56, 0x5b, 0x50, 0x34, 0x15, 0x60, 0x22, 0x57,
0x5b, 0x5f, 0x5f, 0xfd, 0x5b, 0x36, 0x60, 0x04, 0x90, 0x03, 0x60, 0x40, 0x90, 0x12, 0x60,
0x1e, 0x57, 0x60, 0x04, 0x35, 0x80, 0x60, 0xa0, 0x1c, 0x60, 0x1e, 0x57, 0x60, 0x24, 0x35,
0x81, 0x81, 0x60, 0x44, 0x91, 0x60, 0x79, 0x56, 0x5b, 0x81, 0x81, 0x60, 0x4d, 0x91, 0x60,
0x79, 0x56, 0x5b, 0x60, 0x01, 0x54, 0x90, 0x81, 0x01, 0x90, 0x81, 0x10, 0x60, 0x9c, 0x57,
0x80, 0x60, 0x01, 0x55, 0x90, 0x5f, 0x52, 0x5f, 0x60, 0x20, 0x52, 0x60, 0x40, 0x5f, 0x20,
0x54, 0x90, 0x81, 0x01, 0x90, 0x81, 0x10, 0x60, 0x9c, 0x57, 0x5f, 0x52, 0x60, 0x20, 0x5f,
0xf3, 0x5b, 0x80, 0x5f, 0x52, 0x5f, 0x60, 0x20, 0x52, 0x60, 0x40, 0x5f, 0x20, 0x54, 0x91,
0x82, 0x01, 0x91, 0x82, 0x10, 0x60, 0x9c, 0x57, 0x5b, 0x5f, 0x52, 0x5f, 0x60, 0x20, 0x52,
0x60, 0x40, 0x5f, 0x20, 0x55, 0x56, 0x5b, 0x63, 0x4e, 0x48, 0x7b, 0x71, 0x60, 0xe0, 0x1b,
0x5f, 0x52, 0x60, 0x11, 0x60, 0x04, 0x52, 0x60, 0x24, 0x5f, 0xfd
]⟩
def case44BankCreationBytecode : ByteArray :=
⟨#[
0x34, 0x15, 0x60, 0x08, 0x57, 0x5f, 0x5f, 0xfd, 0x5b, 0x60, 0x13, 0x60, 0xb0, 0x80, 0x91,
0x5f, 0x39, 0x5f, 0xf3, 0x36, 0x60, 0x04, 0x90, 0x10, 0x60, 0x1e, 0x57, 0x5f, 0x35, 0x60,
0xe0, 0x1c, 0x60, 0x01, 0x81, 0x14, 0x60, 0x17, 0x57, 0x60, 0x1e, 0x56, 0x5b, 0x50, 0x34,
0x15, 0x60, 0x22, 0x57, 0x5b, 0x5f, 0x5f, 0xfd, 0x5b, 0x36, 0x60, 0x04, 0x90, 0x03, 0x60,
0x40, 0x90, 0x12, 0x60, 0x1e, 0x57, 0x60, 0x04, 0x35, 0x80, 0x60, 0xa0, 0x1c, 0x60, 0x1e,
0x57, 0x60, 0x24, 0x35, 0x81, 0x81, 0x60, 0x44, 0x91, 0x60, 0x79, 0x56, 0x5b, 0x81, 0x81,
0x60, 0x4d, 0x91, 0x60, 0x79, 0x56, 0x5b, 0x60, 0x01, 0x54, 0x90, 0x81, 0x01, 0x90, 0x81,
0x10, 0x60, 0x9c, 0x57, 0x80, 0x60, 0x01, 0x55, 0x90, 0x5f, 0x52, 0x5f, 0x60, 0x20, 0x52,
0x60, 0x40, 0x5f, 0x20, 0x54, 0x90, 0x81, 0x01, 0x90, 0x81, 0x10, 0x60, 0x9c, 0x57, 0x5f,
0x52, 0x60, 0x20, 0x5f, 0xf3, 0x5b, 0x80, 0x5f, 0x52, 0x5f, 0x60, 0x20, 0x52, 0x60, 0x40,
0x5f, 0x20, 0x54, 0x91, 0x82, 0x01, 0x91, 0x82, 0x10, 0x60, 0x9c, 0x57, 0x5b, 0x5f, 0x52,
0x5f, 0x60, 0x20, 0x52, 0x60, 0x40, 0x5f, 0x20, 0x55, 0x56, 0x5b, 0x63, 0x4e, 0x48, 0x7b,
0x71, 0x60, 0xe0, 0x1b, 0x5f, 0x52, 0x60, 0x11, 0x60, 0x04, 0x52, 0x60, 0x24, 0x5f, 0xfd
]⟩
end FeProofs.Case44Bank