Skip to main content

Lift

Trait Lift 

Source
pub trait Lift {
    // Required methods
    fn notation(&self) -> &'static str;
    fn lift(
        &self,
        module: &ForeignModule,
        functions: &[(FfnId, &str)],
        consts: &[&str],
    ) -> Result<HashMap<FfnId, FnContract>>;
}
Expand description

One foreign language’s contract lifting.

Required Methods§

Source

fn notation(&self) -> &'static str

What a lifting error calls the contract’s notation.

Source

fn lift( &self, module: &ForeignModule, functions: &[(FfnId, &str)], consts: &[&str], ) -> Result<HashMap<FfnId, FnContract>>

The contracts of functions, called functions of module by name, in the neutral IR, by function. consts are the .fis constants a clause may name.

§Errors

A clause outside fic’s subset, or an identifier that is neither a parameter nor a constant.

Implementors§