/* * VARIABLE SUBSTITUTIONS */ void print_bv_solver_partition(FILE *f, bv_solver_t *solver) { mtbl_t *mtbl; uint32_t i, n; thvar_t x; mtbl = &solver->mtbl; n = mtbl->top; for (i=0; i<n; i++) { x = mtbl_get_root(mtbl, i); if (x != i) { print_bvvar(f, i); fputs(" --> ", f); print_bvvar(f, x); fputc('\n', f); } } }
/* * Check whether x and y are in the same class */ bool mtbl_equiv(mtbl_t *table, int32_t x, int32_t y) { return mtbl_get_root(table, x) == mtbl_get_root(table, y); }