fix(kernel/justification): bug in depends_on

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-05-02 12:15:01 -07:00
parent 94ca82ec85
commit e4f69bd780

View file

@ -137,8 +137,8 @@ bool depends_on(justification const & j, unsigned i) {
return true;
break;
case justification_kind::Composite: case justification_kind::ExtComposite:
for (unsigned i = 0; i < 2; i++) {
justification c = to_composite(curr)->m_child[i];
for (unsigned k = 0; k < 2; k++) {
justification c = to_composite(curr)->m_child[k];
if (may_contain(get_approx_assumption_set(c), i))
todo.push_back(c.raw());
}