leo_passes/
lib.rs

1// Copyright (C) 2019-2025 Provable Inc.
2// This file is part of the Leo library.
3
4// The Leo library is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// The Leo library is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
16
17#![forbid(unsafe_code)]
18#![doc = include_str!("../README.md")]
19
20mod static_analysis;
21pub use static_analysis::*;
22
23mod code_generation;
24pub use code_generation::*;
25
26mod common;
27pub use common::*;
28
29mod const_propagation;
30pub use const_propagation::*;
31
32mod const_propagation_and_unrolling;
33pub use const_propagation_and_unrolling::*;
34
35mod dead_code_elimination;
36pub use dead_code_elimination::*;
37
38mod destructuring;
39pub use destructuring::*;
40
41mod flattening;
42pub use flattening::*;
43
44mod function_inlining;
45pub use function_inlining::*;
46
47mod monomorphization;
48pub use monomorphization::*;
49
50mod loop_unrolling;
51pub use loop_unrolling::*;
52
53mod pass;
54pub use pass::*;
55
56mod processing_script;
57pub use processing_script::*;
58
59mod static_single_assignment;
60pub use static_single_assignment::*;
61
62mod symbol_table_creation;
63pub use symbol_table_creation::*;
64
65mod type_checking;
66pub use type_checking::*;
67
68mod write_transforming;
69pub use write_transforming::*;