Repository navigation
Expand file tree
/
Copy pathBytecode.lean
More file actions
58 lines (46 loc) · 2.51 KB
/
Copy pathBytecode.lean
File metadata and controls
58 lines (46 loc) · 2.51 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
51
52
53
54
55
56
57
58
import Ethereum.Semantics
import Reasoning.JumpDest
/-!
# FeCodeScalar bytecode
Generated by `scripts/scaffold.py lean` from `runtime.hex` and `creation.hex`; do not edit.
Runtime: 55 bytes (55 executable, 0 metadata); creation: 162 bytes.
-/
open Ethereum Ethereum.EVM
namespace FeProofs.CodeScalar
set_option maxRecDepth 50000000
set_option maxHeartbeats 0
private def feCodeScalarRuntimeChunk0 : ByteArray :=
⟨#[
0x36, 0x60, 0x04, 0x90, 0x10, 0x60, 0x20, 0x57, 0x5f, 0x35, 0x60, 0xe0, 0x1c, 0x63, 0x6d, 0x4c, 0xe6, 0x3c, 0x81, 0x14, 0x60, 0x1a, 0x57, 0x60,
0x20, 0x56, 0x5b, 0x34, 0x15, 0x60, 0x24, 0x57, 0x5b, 0x5f, 0x5f, 0xfd, 0x5b, 0x38, 0x60, 0x1f, 0x19, 0x01, 0x60, 0x20, 0x90, 0x5f, 0x39, 0x5f,
0x51, 0x5f, 0x52, 0x60, 0x20, 0x5f, 0xf3
]⟩
def feCodeScalarBytecode : ByteArray :=
feCodeScalarRuntimeChunk0
/-- The `JUMPDEST` set of `feCodeScalarBytecode`, computed from the deployed runtime bytecode. -/
@[valid_jumps] theorem validJumps :
Ethereum.EVM.D_J feCodeScalarBytecode 0
= #[
⟨26⟩, ⟨32⟩, ⟨36⟩
] := by
native_decide
private def feCodeScalarCreationChunk0 : ByteArray :=
⟨#[
0x60, 0x60, 0x60, 0x40, 0x52, 0x34, 0x15, 0x60, 0x0e, 0x57, 0x5b, 0x5f, 0x5f, 0xfd, 0x5b, 0x60, 0xa2, 0x38, 0x81, 0x81, 0x10, 0x60, 0x0a, 0x57,
0x81, 0x90, 0x03, 0x80, 0x91, 0x60, 0x60, 0x39, 0x60, 0x20, 0x11, 0x60, 0x0a, 0x57, 0x60, 0x60, 0x51, 0x60, 0x80, 0x60, 0x40, 0x52, 0x60, 0x60,
0x52, 0x60, 0x60, 0x5f, 0x52, 0x60, 0x6b, 0x60, 0x37, 0x60, 0x20, 0x81, 0x01, 0x81, 0x81, 0x10, 0x15, 0x60, 0x57, 0x57, 0x63, 0x4e, 0x48, 0x7b,
0x71, 0x60, 0xe0, 0x1b, 0x5f, 0x52, 0x60, 0x11, 0x60, 0x04, 0x52, 0x60, 0x24, 0x5f, 0xfd, 0x5b, 0x60, 0x40, 0x51, 0x80, 0x93, 0x83, 0x91, 0x39,
0x90, 0x82, 0x01, 0x60, 0x60, 0x60, 0x20, 0x91, 0x5e, 0x90, 0xf3, 0x36, 0x60, 0x04, 0x90, 0x10, 0x60, 0x20, 0x57, 0x5f, 0x35, 0x60, 0xe0, 0x1c,
0x63, 0x6d, 0x4c, 0xe6, 0x3c, 0x81, 0x14, 0x60, 0x1a, 0x57, 0x60, 0x20, 0x56, 0x5b, 0x34, 0x15, 0x60, 0x24, 0x57, 0x5b, 0x5f, 0x5f, 0xfd, 0x5b,
0x38, 0x60, 0x1f, 0x19, 0x01, 0x60, 0x20, 0x90, 0x5f, 0x39, 0x5f, 0x51, 0x5f, 0x52, 0x60, 0x20, 0x5f, 0xf3
]⟩
def feCodeScalarCreationBytecode : ByteArray :=
feCodeScalarCreationChunk0
/-- The `JUMPDEST` set of `feCodeScalarCreationBytecode`, computed from the creation bytecode. -/
@[valid_jumps] theorem creationValidJumps :
Ethereum.EVM.D_J feCodeScalarCreationBytecode 0
= #[
⟨10⟩, ⟨14⟩, ⟨87⟩, ⟨133⟩, ⟨139⟩, ⟨143⟩
] := by
native_decide
end FeProofs.CodeScalar