]> git.ipfire.org Git - thirdparty/libsolv.git/commit
Add functions to make proof reporting easier
authorMichael Schroeder <mls@suse.de>
Fri, 9 Sep 2022 12:10:16 +0000 (14:10 +0200)
committerMichael Schroeder <mls@suse.de>
Fri, 9 Sep 2022 12:10:16 +0000 (14:10 +0200)
commitba58eebc3cb907aaad2488425df245cb9ceb532a
tree992fc4dc0bb46ac9c4479a84e728984d4415eafb
parent26fcfa714a29d1feb393e9a61f9d1a04556866a6
Add functions to make proof reporting easier

solver_get_learnt: return all rearnt rules used in the proof
of a problem or another learnt rule.

solver_get_proof: return the decisions that led to the
problem or learnt rule.

Note that this is experimental and subject to change. We will
need to add some sorting code to solver_get_proof() to group
similar steps, but this means that we need to get the
ruleinfo for the involved rules. But in that case we can
as well also return the ruleinfo data with the call.
ext/testcase.c
ext/testcase.h
src/libsolv.ver
src/problems.c
src/problems.h
src/solver.c