]> git.ipfire.org Git - thirdparty/libsolv.git/commit
Strore decision reason in decisionq_reason
authorMichael Schroeder <mls@suse.de>
Fri, 7 Oct 2016 13:01:16 +0000 (15:01 +0200)
committerMichael Schroeder <mls@suse.de>
Fri, 7 Oct 2016 13:01:16 +0000 (15:01 +0200)
commita892bd05a5148d1fadabe03cdec10f21676e34fa
treedec591970ab5a5c35af72bdbe01974e9971c78ef
parent0c833337bceca33ab3009522cac1a54edfe5dba3
Strore decision reason in decisionq_reason

This makes the code simpler and more flexible. Do away with
the old way of deducting the reason from the decision index,
instead store the reason in the decision process.

Note that the decisionq_reason is indexed by level, as all
the other decisions for a level are because of unit rules.
Thus the reason queue is much smaller than the decision queue.
src/problems.c
src/solver.c
src/solver.h