Example #1
0
 /// <summary>
 /// Create the optional regular expression.
 /// </summary>
 public ReExpr MOption(ReExpr re)
 {
     Contract.Requires(re != null);
     Contract.Ensures(Contract.Result<ReExpr>() != null);
     return new ReExpr(this, Native.Z3_mk_re_option(nCtx, re.NativeObject));            
 }
Example #2
0
 /// <summary>
 /// Check for regular expression membership.
 /// </summary>
 public BoolExpr MkInRe(SeqExpr s, ReExpr re)
 {
     Contract.Requires(s != null);
     Contract.Requires(re != null);
     Contract.Ensures(Contract.Result<BoolExpr>() != null);
     CheckContextMatch(s, re);
     return new BoolExpr(this, Native.Z3_mk_seq_in_re(nCtx, s.NativeObject, re.NativeObject));            
 }