-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathlakefile.lean
More file actions
67 lines (55 loc) · 1.81 KB
/
lakefile.lean
File metadata and controls
67 lines (55 loc) · 1.81 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
59
60
61
62
63
64
65
66
67
import Lake
open Lake DSL
package «verity» where
version := v!"1.0.0"
require evmyul from git
"https://github.com/lfglabs-dev/EVMYulLean.git"@"7785a9bba344db917e42b7f1033ee8346197bb40"
@[default_target]
lean_lib «Verity» where
globs := #[
.one `Verity,
.andSubmodules `Verity.Core,
.submodules `Verity.EVM,
.andSubmodules `Verity.Macro,
.submodules `Verity.Stdlib,
.andSubmodules `Verity.Specs.Common,
.submodules `Verity.Proofs.Stdlib
]
lean_lib «Contracts» where
globs := #[
.one `Contracts,
.one `Contracts.Common,
.one `Contracts.Specs,
.one `Contracts.Interpreter,
.one `Contracts.Smoke,
.andSubmodules `Contracts.Counter,
.andSubmodules `Contracts.SimpleStorage,
.andSubmodules `Contracts.Owned,
.andSubmodules `Contracts.OwnedCounter,
.andSubmodules `Contracts.SafeCounter,
.andSubmodules `Contracts.Ledger,
.andSubmodules `Contracts.Vault,
.andSubmodules `Contracts.ERC20,
.andSubmodules `Contracts.ERC721,
.andSubmodules `Contracts.SimpleToken,
.andSubmodules `Contracts.CryptoHash,
.andSubmodules `Contracts.ReentrancyExample
]
lean_lib «Compiler» where
globs := #[.andSubmodules `Compiler]
-- Axiom dependency audit: imports all proof modules so `lake build PrintAxioms`
-- compiles them, then `lake env lean PrintAxioms.lean` can run #print axioms.
lean_lib «PrintAxioms» where
globs := #[.one `PrintAxioms]
lean_exe «verity-compiler» where
root := `Compiler.Main
lean_exe «verity-compiler-patched» where
root := `Compiler.MainPatched
lean_exe «difftest-interpreter» where
root := `Contracts.Interpreter
lean_exe «random-gen» where
root := `Compiler.RandomGen
lean_exe «gas-report» where
root := `Compiler.Gas.Report
lean_exe «compiler-main-test» where
root := `Compiler.MainTestRunner