Skip to main content

from_foreign

Function from_foreign 

Source
pub fn from_foreign(
    func: &ForeignFn,
    found: &ForeignContract,
    consts: &[&str],
) -> Result<FnContract>
Expand description

The contract of a Pancake function from its requires/ensures annotations; any other annotation is the verifier’s and is not read. consts are the .fis constants a clause may name besides the parameters.

§Errors

A clause pancake2viper cannot parse, or outside the subset; an identifier that is neither a parameter nor a constant (Pancake globals and the heap are not modelled); or a contract FnContract::from_clauses rejects.