Skip to main content

axiom_io_port_access_spec

Function axiom_io_port_access_spec 

Source
pub broadcast proof fn axiom_io_port_access_spec<T>(port: u16)
Expand description
ensures
#[trigger] obeys_io_port_access_spec::<T>()
    ==> (#[trigger] valid_io_port_access::<T>(port)
        <==> {
            &&& size_of::<T>() == 1 || size_of::<T>() == 2 || size_of::<T>() == 4
            &&& port + size_of::<T>() <= u16::MAX + 1

        }),

Trusted: types obeying the model use a 1-, 2-, or 4-byte access within the PIO space.