-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hi @audemard,
I came accross an unexpected situation: I'm using the NoGoodsEngine with variable that have their domains defined as DomainValue.
In NoGoodsEngine::notifyNewDecision, I have added the following code:
auto valueId = x->valueId();
auto value = x->value();
auto other = x->domain.toIdv(value);
assert(valueId == other);
With the assumption that the value id should be the same regarding I retrieve it through the variable directly or through the domain.
However, this doesn´t appear to be the case as the assert is being triggered.
I've spotted this as in the code for 'NoGoodsEngine::notifiyDeleteDecision', the value id is obtained through the domain and not through the variable. Therefore, the positive decision for the value is not the same as the one that was added in the notifiyNewDecision.
Could you help me understand what I might be doing wrong?
Best regards,
Tomo