Skip to content

IDV in NoGoodsEngine #22

@tomosonalawa

Description

@tomosonalawa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions