sldv.assume
Proof assumption function for Stateflow charts and MATLAB Function blocks
Syntax
Description
sldv.assume( specifies that
expr)expr is true for every evaluation while proving properties.
Use any valid Boolean expression for
expr.
This function has no output and
no impact on its parenting function, other than
any indirect side effects of evaluating
expr. If you issue this function from the MATLAB® command line, the function has no
effect.
Intersperse sldv.assume proof assumptions within MATLAB code or separate the assumptions into a verification script.
The Proof assumptions option in the Property
proving pane applies to the proof assumptions represented by the
sldv.assume function and by the Proof
Assumption block.
Examples
Input Arguments
Alternatives
Instead of using the sldv.assume function, you can insert a Proof
Assumption block in your model. Using sldv.assume instead
of a Proof Assumption block offers several benefits, described in Prove Model Properties Using Simulink Design Verifier.
When proving models by using MATLAB for code generation, you can also constrain signal values without using
the sldv.assume function. Using sldv.assume
instead of directly using MATLAB for code generation eliminates the need to:
Express the assumption by using a Simulink block.
Explicitly connect the assumption output to a Simulink block.
Version History
Introduced in R2009b

