Difference in treatment of None for conj/disj in compile and propagator engines

Open
#389 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Start with the datatype/bool/conj_disj_mixed test and evaluator.py, then reproduce the supplied example in both the compile and propagator engines. Compare how None is handled by conj/disj and identify the intended consistent result. Done means the engines agree and the mixed-value test covers the regression.

Written by the indexing model from the issue text.

Description

When None is used in the conj/disj operators the compile engine has different behaviour to the propagator(evaluator.py). This can be seen in the "datatype/bool/conj_disj_mixed" test. Here is another example:

variable_define(result, operation(limp,(operation(conj,(operation(lnot,(variable(a),())),(variable(b),()))),(val(bool,false),())))).
variable_define(a, val(none,none)).
variable_define(b, val(bool,true)).

Compile result: bad
Propagator result: None

Dominant language
Python
Stars
4
Forks
0
Avg merge
2d 9h
Merged PRs (30d)
19

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from potassco/constraint-handler

All issues in potassco/constraint-handler

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.