Useful to avoid issues when a language is not set and it cannot be easily inferred (for example via the API). Since the language that covers most operators in CVC4 is the SMT one we use that as default now.
`Result::Entailment` along with corresponding changes to the enum values.
* Java API change: The name of CVC4's package is now `edu.stanford.CVC4`
instead of `edu.nyu.acsys.CVC4`.
+* The default output language is changed from CVC to SMT-LIB 2.6. The
+ default output language is used when the problem language cannot be
+ easily inferred (for example when CVC4 is used from the API).
* Printing of BV constants: previously CVC4 would print BV constant
values as indexed symbols by default and in binary notation with the
option --bv-print-consts-in-binary. To be SMT-LIB compliant the
lang = language::toOutputLanguage(options::inputLanguage());
}
}
- if(lang == language::output::LANG_AUTO) {
- lang = language::output::LANG_CVC4; // default
- }
+ if (lang == language::output::LANG_AUTO)
+ {
+ lang = language::output::LANG_SMTLIB_V2_6; // default
+ }
}
if(d_printers[lang] == NULL) {
d_printers[lang] = makePrinter(lang);
TS_ASSERT_EQUALS(d_solver->mkBitVector("1010", 2),
d_solver->mkBitVector("a", 16));
TS_ASSERT_EQUALS(d_solver->mkBitVector(8, "01010101", 2).toString(),
- "0bin01010101");
- TS_ASSERT_EQUALS(d_solver->mkBitVector(8, "F", 16).toString(),
- "0bin00001111");
+ "#b01010101");
+ TS_ASSERT_EQUALS(d_solver->mkBitVector(8, "F", 16).toString(), "#b00001111");
TS_ASSERT_EQUALS(d_solver->mkBitVector(8, "-1", 10),
d_solver->mkBitVector(8, "FF", 16));
}