Closed drautb closed 6 years ago
@anniecherk I realized during our discussion today that when I was working on making the core generate the full CNF file, I hadn't seen variable 41 in the formula at all. I think this may just be an off-by-one error. The frontend is providing 41 to the backend as the fresh variable, but then maybe the backend increments fresh before using it, so it starts with 42, leaving 41 unconstrained?
I haven't verified, but that's what came to mind this morning. I imagine that if the frontend provided the last used variable as the fresh variable, rather than 1 + the last used variable, then this wouldn't be an issue.
This was resolved by 9e5f537de6a84d3e67e2c5b8f6a7d59fa5cc277d.
I've noticed that sometimes when I run SweetPea on the basic Stroop test, the following solution is output twice:
The two corresponding solutions from
unigen
are:The assignments for the first 24 variables are identical, which explains the duplicate output. In fact, the only variable assignment that is different between the two solutions is
41
, it's true for one solution, and false in the other.I'm not sure yet if this is a bug in what the python code is generating, or the backend, but I figured I'd record it here so we don't forget about it.