Skip to content

Commit

Permalink
Take change
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreynol committed Oct 2, 2024
1 parent f28d34a commit 39b7b2e
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/theory/quantifiers/inst_strategy_mbqi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,13 @@ void InstStrategyMbqi::process(Node q)
for (const Node& k : skolems.d_subs)
{
TypeNode tn = k.getType();
itk = freshVarType.find(tn);
if (itk == freshVarType.end())
if (!tn.isUninterpretedSort())
{
// not an uninterpreted sort, continue
continue;
}
if (itk->second.empty())
itk = freshVarType.find(tn);
if (itk == freshVarType.end() || itk->second.empty())
{
Trace("mbqi") << "warning: failed to get vars for type " << tn
<< std::endl;
Expand Down Expand Up @@ -386,14 +386,6 @@ Node InstStrategyMbqi::convertToQuery(
{
cmap[cur] = cur;
}
else if (ck == Kind::UNINTERPRETED_SORT_VALUE)
{
// return the fresh variable for this term
Node k = sm->mkPurifySkolem(cur);
freshVarType[cur.getType()].insert(k);
cmap[cur] = k;
continue;
}
else if (ck == Kind::CONST_SEQUENCE || ck == Kind::FUNCTION_ARRAY_CONST
|| cur.isVar())
{
Expand Down Expand Up @@ -443,7 +435,17 @@ Node InstStrategyMbqi::convertToQuery(
}
}
else if (d_nonClosedKinds.find(ck) != d_nonClosedKinds.end())
{
{
// if its a constant, we can continue, we will assume it is distinct
// from all others of its type
if (cur.isConst())
{
// return the fresh variable for this term
Node k = sm->mkPurifySkolem(cur);
freshVarType[cur.getType()].insert(k);
cmap[cur] = k;
continue;
}
// if this is a bad kind, fail immediately
return Node::null();
}
Expand Down

0 comments on commit 39b7b2e

Please sign in to comment.