3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00
This commit is contained in:
Nikolaj Bjorner 2022-11-04 09:35:58 -07:00
parent 626380b3c7
commit 84af521514
5 changed files with 17 additions and 3 deletions

View file

@ -644,6 +644,12 @@ namespace datalog {
}
void context::add_table_fact(func_decl * pred, const table_fact & fact) {
if (!is_uninterp(pred)) {
std::stringstream strm;
strm << "Predicate " << pred->get_name() << " when used for facts should be uninterpreted";
throw default_exception(strm.str());
}
if (get_engine() == DATALOG_ENGINE) {
ensure_engine();
m_rel->add_fact(pred, fact);