mirror of
https://github.com/Z3Prover/z3
synced 2025-08-11 05:30:51 +00:00
make get_vars populate all indices with sorts even if variable does not occur in rule. This makes the use of get_vars less prone to callers having to double check for null pointers
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
72fe197bda
commit
4957e71408
8 changed files with 16 additions and 21 deletions
|
@ -141,7 +141,7 @@ namespace datalog {
|
|||
m_cache.reset();
|
||||
m_trail.reset();
|
||||
m_eqs.reset();
|
||||
r.get_vars(vars);
|
||||
r.get_vars(m, vars);
|
||||
unsigned num_vars = vars.size();
|
||||
for (unsigned j = 0; j < utsz; ++j) {
|
||||
tail.push_back(mk_pred(num_vars, r.get_tail(j)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue