mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
parent
626380b3c7
commit
84af521514
5 changed files with 17 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue