| 1207 | } |
| 1208 | |
| 1209 | bool 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 | |
| 1222 | bool seq_util::rex::is_loop(expr const* n, expr*& body, unsigned& lo) const { |
| 1223 | if (is_loop(n)) { |
no test coverage detected