MCPcopy Create free account
hub / github.com/Z3Prover/z3 / is_loop

Method is_loop

src/ast/seq_decl_plugin.cpp:1209–1220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1207}
1208
1209bool seq_util::rex::is_loop(expr const* n, expr*& body, unsigned& lo, unsigned& hi) const {
1210 if (is_loop(n)) {
1211 app const* a = to_app(n);
1212 if (a->get_num_args() == 1 && a->get_decl()->get_num_parameters() == 2) {
1213 body = a->get_arg(0);
1214 lo = a->get_decl()->get_parameter(0).get_int();
1215 hi = a->get_decl()->get_parameter(1).get_int();
1216 return true;
1217 }
1218 }
1219 return false;
1220}
1221
1222bool seq_util::rex::is_loop(expr const* n, expr*& body, unsigned& lo) const {
1223 if (is_loop(n)) {

Callers 12

next_charMethod · 0.45
is_nullable_recMethod · 0.45
mk_re_reverseMethod · 0.45
mk_regex_reverseMethod · 0.45
mk_derivative_recMethod · 0.45
mk_re_concatMethod · 0.45
is_subsetMethod · 0.45
mk_re_loopMethod · 0.45
reduce_re_is_emptyMethod · 0.45

Calls 6

to_appFunction · 0.70
get_num_argsMethod · 0.45
get_num_parametersMethod · 0.45
get_declMethod · 0.45
get_argMethod · 0.45
get_intMethod · 0.45

Tested by

no test coverage detected