C# Class Microsoft.Z3.Expr

Inheritance: AST
显示文件 Open project: sslab-gatech/juxta Class Usage Examples

Private Properties

Property Type Description
CheckNativeObject void
Create Expr
Create Expr

Public Methods

Method Description
Simplify ( Params p = null ) : Expr

Returns a simplified version of the expression.

Substitute ( Expr from, Expr to ) : Expr

Substitute every occurrence of from[i] in the expression with to[i], for i smaller than num_exprs.

The result is the new expression. The arrays from and to must have size num_exprs. For every i smaller than num_exprs, we must have that sort of from[i] must be equal to sort of to[i].

SubstituteVars ( Expr to ) : Expr

Substitute the free variables in the expression with the expressions in to

For every i smaller than num_exprs, the variable with de-Bruijn index i is replaced with term to[i].

ToString ( ) : string

Returns a string representation of the expression.

Translate ( Context ctx ) : Expr

Translates (copies) the term to the Context ctx.

Update ( Expr args ) : void

Update the arguments of the expression using the arguments args The number of new arguments should coincide with the current number of arguments.

Protected Methods

Method Description
Expr ( Context ctx ) : System

Constructor for Expr

Expr ( Context ctx, IntPtr obj ) : System

Constructor for Expr

Private Methods

Method Description
CheckNativeObject ( IntPtr obj ) : void
Create ( Context ctx, FuncDecl f ) : Expr
Create ( Context ctx, IntPtr obj ) : Expr

Method Details

Expr() protected method

Constructor for Expr
protected Expr ( Context ctx ) : System
ctx Context
return System

Expr() protected method

Constructor for Expr
protected Expr ( Context ctx, IntPtr obj ) : System
ctx Context
obj System.IntPtr
return System

Simplify() public method

Returns a simplified version of the expression.
public Simplify ( Params p = null ) : Expr
p Params A set of parameters to configure the simplifier
return Expr

Substitute() public method

Substitute every occurrence of from[i] in the expression with to[i], for i smaller than num_exprs.
The result is the new expression. The arrays from and to must have size num_exprs. For every i smaller than num_exprs, we must have that sort of from[i] must be equal to sort of to[i].
public Substitute ( Expr from, Expr to ) : Expr
from Expr
to Expr
return Expr

SubstituteVars() public method

Substitute the free variables in the expression with the expressions in to
For every i smaller than num_exprs, the variable with de-Bruijn index i is replaced with term to[i].
public SubstituteVars ( Expr to ) : Expr
to Expr
return Expr

ToString() public method

Returns a string representation of the expression.
public ToString ( ) : string
return string

Translate() public method

Translates (copies) the term to the Context ctx.
public Translate ( Context ctx ) : Expr
ctx Context A context
return Expr

Update() public method

Update the arguments of the expression using the arguments args The number of new arguments should coincide with the current number of arguments.
public Update ( Expr args ) : void
args Expr
return void