public MkRealConst ( |
||
name | ||
return |
using Microsoft.Z3; Context ctx = new Context(); RealExpr x = ctx.MkRealConst("x"); // create a new real constant symbol named "x"
using Microsoft.Z3; Context ctx = new Context(); RealExpr x = ctx.MkRealConst("x"); RealExpr y = ctx.MkRealConst("y"); RealExpr z = ctx.MkRealConst("z");In this example, we create three real constant symbols named "x", "y", and "z" and save them in variable declarations. The method calls to MkRealConst are similar to Example 1 but with different names. Package Library: Microsoft.Z3