pintc 0.14.0

Compiler for the Pint language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod const_folding;
mod dead_code_elimination;

use const_folding::const_folding;
use dead_code_elimination::dead_code_elimination;

use crate::error::Handler;

impl super::Contract {
    pub fn optimize(mut self, handler: &Handler) -> Self {
        const_folding(handler, &mut self);

        dead_code_elimination(handler, &mut self);

        self
    }
}