use of org.evosuite.symbolic.solver.smt.SmtIntConstant in project evosuite by EvoSuite.
the class RegExpToCVC4Visitor method visitRepeatMin.
@Override
public SmtExpr visitRepeatMin(RegExp e, int min) {
SmtExpr regExpr = this.visitRegExp(e);
if (regExpr == null) {
return null;
}
if (min == 1) {
SmtExpr kleeneCrossExpr = SmtExprBuilder.mkRegExpKleeCross(regExpr);
return kleeneCrossExpr;
} else {
SmtIntConstant minExpr = SmtExprBuilder.mkIntConstant(min);
SmtExpr loopExpr = SmtExprBuilder.mkLoop(regExpr, minExpr);
return loopExpr;
}
}
Aggregations