示例#1
0
/*
 * Initialize core for pure SAT solving:
 * - n = number of boolean variables
 * (since index 0 is reserved for the boolean constant, the n variables
 *  are indexed from 1 to n)
 */
static void init_sat_solver(smt_core_t *core, uint32_t n) {
  init_smt_core(core, n+1, NULL, &null_theory_ctrl, &null_theory_smt, SMT_MODE_BASIC);
  add_boolean_variables(core, n);
}
示例#2
0
/*
 * Initialize all
 */
static void init(void) {
  init_smt_core(&solver, 0, NULL, &null_theory_ctrl, &null_theory_smt, SMT_MODE_BASIC);
  init_remap_table(&remap);
  init_bit_blaster(&blaster, &solver, &remap);
}
示例#3
0
static void init_solver(egraph_t *egraph, smt_core_t *core) {
  init_egraph(egraph, __yices_globals.types);
  init_smt_core(core, DEFAULT_NVARS, egraph, egraph_ctrl_interface(egraph),
		egraph_smt_interface(egraph), SMT_MODE_PUSHPOP);
  egraph_attach_core(egraph, core);
}