public static final class Stmt.Assume extends wybs.lang.SyntacticElement.Impl implements Stmt
assume e, where
e is a boolean expression. The following illustrates:
function abs(int x) -> int:
if x < 0:
x = -x
assume x >= 0
return x
Assumptions are assumed by the verifier and, since this may be unsound,
always turned into runtime checks.Stmt.Assert, Stmt.Assign, Stmt.Assume, Stmt.Break, Stmt.Case, Stmt.Continue, Stmt.Debug, Stmt.DoWhile, Stmt.Fail, Stmt.IfElse, Stmt.NamedBlock, Stmt.Return, Stmt.Skip, Stmt.Switch, Stmt.VariableDeclaration, Stmt.While| Constructor and Description |
|---|
Assume(Expr expr,
wybs.lang.Attribute... attributes)
Create a given assume statement.
|
Assume(String msg,
Expr expr,
Collection<wybs.lang.Attribute> attributes)
Create a given assume statement.
|
public Expr expr
public Assume(Expr expr, wybs.lang.Attribute... attributes)
expr - the assumed condition, which may not be null.attributes - public Assume(String msg, Expr expr, Collection<wybs.lang.Attribute> attributes)
expr - the assumed condition, which may not be null.attributes - Copyright © 2017. All rights reserved.