|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| MaxWatchPb | Line # 38 | 77 | 24 | 69,7% |
0.6971831
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| (177) | |||
| Result | |||
|
0.6619718
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testndata103
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testndata103
|
1 PASS | |
|
0.6619718
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testndata83
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testndata83
|
1 PASS | |
|
0.6619718
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testndata63
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testndata63
|
1 PASS | |
|
0.6619718
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testndata43
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testndata43
|
1 PASS | |
|
0.6619718
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testncirc103
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testncirc103
|
1 PASS | |
|
0.6619718
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testncirc83
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testncirc83
|
1 PASS | |
|
0.6619718
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testncirc63
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testncirc63
|
1 PASS | |
|
0.6619718
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testncirc43
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testncirc43
|
1 PASS | |
|
0.6056338
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testnC432
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testnC432
|
1 PASS | |
|
0.59859157
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testnc8
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testnc8
|
1 PASS | |
|
0.59859157
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testncmb
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testncmb
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50SAT12
org.sat4j.minisat.AbstractM2Test.testAim50SAT12
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH49
org.sat4j.minisat.AbstractM2Test.testJNH49
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50SAT13
org.sat4j.minisat.AbstractM2Test.testAim50SAT13
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH50
org.sat4j.minisat.AbstractM2Test.testJNH50
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50SAT14
org.sat4j.minisat.AbstractM2Test.testAim50SAT14
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testHole6
org.sat4j.minisat.AbstractM2Test.testHole6
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50SAT15
org.sat4j.minisat.AbstractM2Test.testAim50SAT15
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testHole7
org.sat4j.minisat.AbstractM2Test.testHole7
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50SAT8
org.sat4j.minisat.AbstractM2Test.testAim50SAT8
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testHole8
org.sat4j.minisat.AbstractM2Test.testHole8
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50SAT9
org.sat4j.minisat.AbstractM2Test.testAim50SAT9
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testHole9
org.sat4j.minisat.AbstractM2Test.testHole9
|
3 FAIL | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50SAT10
org.sat4j.minisat.AbstractM2Test.testAim50SAT10
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50SAT11
org.sat4j.minisat.AbstractM2Test.testAim50SAT11
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH41
org.sat4j.minisat.AbstractM2Test.testJNH41
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50UNSAT4
org.sat4j.minisat.AbstractM2Test.testAim50UNSAT4
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH42
org.sat4j.minisat.AbstractM2Test.testJNH42
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50UNSAT5
org.sat4j.minisat.AbstractM2Test.testAim50UNSAT5
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH43
org.sat4j.minisat.AbstractM2Test.testJNH43
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50UNSAT6
org.sat4j.minisat.AbstractM2Test.testAim50UNSAT6
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH44
org.sat4j.minisat.AbstractM2Test.testJNH44
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50UNSAT7
org.sat4j.minisat.AbstractM2Test.testAim50UNSAT7
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH45
org.sat4j.minisat.AbstractM2Test.testJNH45
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50SAT16
org.sat4j.minisat.AbstractM2Test.testAim50SAT16
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH46
org.sat4j.minisat.AbstractM2Test.testJNH46
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50UNSAT1
org.sat4j.minisat.AbstractM2Test.testAim50UNSAT1
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH47
org.sat4j.minisat.AbstractM2Test.testJNH47
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50UNSAT2
org.sat4j.minisat.AbstractM2Test.testAim50UNSAT2
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH48
org.sat4j.minisat.AbstractM2Test.testJNH48
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50UNSAT3
org.sat4j.minisat.AbstractM2Test.testAim50UNSAT3
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50SAT5
org.sat4j.minisat.AbstractM2Test.testAim50SAT5
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50SAT4
org.sat4j.minisat.AbstractM2Test.testAim50SAT4
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50SAT7
org.sat4j.minisat.AbstractM2Test.testAim50SAT7
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50SAT6
org.sat4j.minisat.AbstractM2Test.testAim50SAT6
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50SAT1
org.sat4j.minisat.AbstractM2Test.testAim50SAT1
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50SAT3
org.sat4j.minisat.AbstractM2Test.testAim50SAT3
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50SAT2
org.sat4j.minisat.AbstractM2Test.testAim50SAT2
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH23
org.sat4j.minisat.AbstractM2Test.testJNH23
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH24
org.sat4j.minisat.AbstractM2Test.testJNH24
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH21
org.sat4j.minisat.AbstractM2Test.testJNH21
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH22
org.sat4j.minisat.AbstractM2Test.testJNH22
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH19
org.sat4j.minisat.AbstractM2Test.testJNH19
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH20
org.sat4j.minisat.AbstractM2Test.testJNH20
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH17
org.sat4j.minisat.AbstractM2Test.testJNH17
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH18
org.sat4j.minisat.AbstractM2Test.testJNH18
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH15
org.sat4j.minisat.AbstractM2Test.testJNH15
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH16
org.sat4j.minisat.AbstractM2Test.testJNH16
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH13
org.sat4j.minisat.AbstractM2Test.testJNH13
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH14
org.sat4j.minisat.AbstractM2Test.testJNH14
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH11
org.sat4j.minisat.AbstractM2Test.testJNH11
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH12
org.sat4j.minisat.AbstractM2Test.testJNH12
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH9
org.sat4j.minisat.AbstractM2Test.testJNH9
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH10
org.sat4j.minisat.AbstractM2Test.testJNH10
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH40
org.sat4j.minisat.AbstractM2Test.testJNH40
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH39
org.sat4j.minisat.AbstractM2Test.testJNH39
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH38
org.sat4j.minisat.AbstractM2Test.testJNH38
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH37
org.sat4j.minisat.AbstractM2Test.testJNH37
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH36
org.sat4j.minisat.AbstractM2Test.testJNH36
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH35
org.sat4j.minisat.AbstractM2Test.testJNH35
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH34
org.sat4j.minisat.AbstractM2Test.testJNH34
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH33
org.sat4j.minisat.AbstractM2Test.testJNH33
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH32
org.sat4j.minisat.AbstractM2Test.testJNH32
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH31
org.sat4j.minisat.AbstractM2Test.testJNH31
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH30
org.sat4j.minisat.AbstractM2Test.testJNH30
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH29
org.sat4j.minisat.AbstractM2Test.testJNH29
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH28
org.sat4j.minisat.AbstractM2Test.testJNH28
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH27
org.sat4j.minisat.AbstractM2Test.testJNH27
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH26
org.sat4j.minisat.AbstractM2Test.testJNH26
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH25
org.sat4j.minisat.AbstractM2Test.testJNH25
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testIi15
org.sat4j.minisat.AbstractM2Test.testIi15
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testIi11
org.sat4j.minisat.AbstractM2Test.testIi11
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testIi4
org.sat4j.minisat.AbstractM2Test.testIi4
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testIi5
org.sat4j.minisat.AbstractM2Test.testIi5
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testIi6
org.sat4j.minisat.AbstractM2Test.testIi6
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testAim50UNSAT8
org.sat4j.minisat.AbstractM2Test.testAim50UNSAT8
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testIi1
org.sat4j.minisat.AbstractM2Test.testIi1
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testIi3
org.sat4j.minisat.AbstractM2Test.testIi3
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH6
org.sat4j.minisat.AbstractM2Test.testJNH6
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH5
org.sat4j.minisat.AbstractM2Test.testJNH5
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH8
org.sat4j.minisat.AbstractM2Test.testJNH8
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH7
org.sat4j.minisat.AbstractM2Test.testJNH7
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH2
org.sat4j.minisat.AbstractM2Test.testJNH2
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH1
org.sat4j.minisat.AbstractM2Test.testJNH1
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH4
org.sat4j.minisat.AbstractM2Test.testJNH4
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testJNH3
org.sat4j.minisat.AbstractM2Test.testJNH3
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testIi21
org.sat4j.minisat.AbstractM2Test.testIi21
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testIi24
org.sat4j.minisat.AbstractM2Test.testIi24
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testIi23
org.sat4j.minisat.AbstractM2Test.testIi23
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testIi17
org.sat4j.minisat.AbstractM2Test.testIi17
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testIi16
org.sat4j.minisat.AbstractM2Test.testIi16
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testIi20
org.sat4j.minisat.AbstractM2Test.testIi20
|
1 PASS | |
|
0.58450705
|
org.sat4j.minisat.AbstractM2Test.testIi18
org.sat4j.minisat.AbstractM2Test.testIi18
|
1 PASS | |
|
0.57042253
|
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN5
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN5
|
1 PASS | |
|
0.57042253
|
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN4
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN4
|
1 PASS | |
|
0.57042253
|
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN7
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN7
|
1 PASS | |
|
0.57042253
|
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN6
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN6
|
1 PASS | |
|
0.57042253
|
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN9
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN9
|
1 PASS | |
|
0.57042253
|
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN8
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN8
|
1 PASS | |
|
0.57042253
|
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN10
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN10
|
3 FAIL | |
|
0.57042253
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul5051
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul5051
|
3 FAIL | |
|
0.57042253
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul3536
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul3536
|
3 FAIL | |
|
0.57042253
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul4041
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul4041
|
3 FAIL | |
|
0.57042253
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul3031
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul3031
|
3 FAIL | |
|
0.57042253
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul2021
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul2021
|
3 FAIL | |
|
0.57042253
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul1011
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul1011
|
3 FAIL | |
|
0.57042253
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul1516
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul1516
|
3 FAIL | |
|
0.57042253
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testnmux
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testnmux
|
1 PASS | |
|
0.57042253
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testnmyadder
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testnmyadder
|
1 PASS | |
|
0.5422535
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testncc
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testncc
|
1 PASS | |
|
0.5422535
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testnb1
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testnb1
|
1 PASS | |
|
0.5422535
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testnC17
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testnC17
|
1 PASS | |
|
0.5422535
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testn9symml
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testn9symml
|
1 PASS | |
|
0.5422535
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testncm42a
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testncm42a
|
1 PASS | |
|
0.5140845
|
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg3
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg3
|
1 PASS | |
|
0.5140845
|
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg1
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg1
|
1 PASS | |
|
0.5140845
|
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg2
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg2
|
1 PASS | |
|
0.5140845
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul5060
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul5060
|
3 FAIL | |
|
0.5140845
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul4050
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul4050
|
3 FAIL | |
|
0.5140845
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul4045
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul4045
|
3 FAIL | |
|
0.5140845
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul5055
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul5055
|
3 FAIL | |
|
0.5140845
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul3540
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul3540
|
3 FAIL | |
|
0.5140845
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul3545
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul3545
|
3 FAIL | |
|
0.5140845
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul2030
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul2030
|
3 FAIL | |
|
0.5140845
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul3035
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul3035
|
3 FAIL | |
|
0.5140845
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul3040
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul3040
|
3 FAIL | |
|
0.5140845
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul1520
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul1520
|
3 FAIL | |
|
0.5140845
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul1525
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul1525
|
3 FAIL | |
|
0.5140845
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul2025
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul2025
|
3 FAIL | |
|
0.5140845
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul1015
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul1015
|
3 FAIL | |
|
0.5140845
|
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul1020
org.sat4j.minisat.constraints.AbstractPseudoBooleanAndPigeonHoleTest.testaloul1020
|
3 FAIL | |
|
0.5070422
|
org.sat4j.minisat.AbstractM2Test.testIi12
org.sat4j.minisat.AbstractM2Test.testIi12
|
1 PASS | |
|
0.5070422
|
org.sat4j.minisat.AbstractM2Test.testIi13
org.sat4j.minisat.AbstractM2Test.testIi13
|
1 PASS | |
|
0.5070422
|
org.sat4j.minisat.AbstractM2Test.testIi14
org.sat4j.minisat.AbstractM2Test.testIi14
|
1 PASS | |
|
0.5070422
|
org.sat4j.minisat.AbstractM2Test.testIi8
org.sat4j.minisat.AbstractM2Test.testIi8
|
1 PASS | |
|
0.5070422
|
org.sat4j.minisat.AbstractM2Test.testIi9
org.sat4j.minisat.AbstractM2Test.testIi9
|
1 PASS | |
|
0.5070422
|
org.sat4j.minisat.AbstractM2Test.testIi10
org.sat4j.minisat.AbstractM2Test.testIi10
|
1 PASS | |
|
0.5070422
|
org.sat4j.minisat.AbstractM2Test.testIi7
org.sat4j.minisat.AbstractM2Test.testIi7
|
1 PASS | |
|
0.5070422
|
org.sat4j.minisat.AbstractM2Test.testIi2
org.sat4j.minisat.AbstractM2Test.testIi2
|
1 PASS | |
|
0.5070422
|
org.sat4j.minisat.AbstractM2Test.testIi22
org.sat4j.minisat.AbstractM2Test.testIi22
|
1 PASS | |
|
0.49295774
|
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN56
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN56
|
1 PASS | |
|
0.49295774
|
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN45
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN45
|
1 PASS | |
|
0.49295774
|
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN78
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN78
|
1 PASS | |
|
0.49295774
|
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN67
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN67
|
1 PASS | |
|
0.49295774
|
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN34
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN34
|
1 PASS | |
|
0.49295774
|
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN910
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN910
|
1 PASS | |
|
0.49295774
|
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN89
org.sat4j.minisat.constraints.AbstractPigeonHoleWithCardinalityTest.testPN89
|
1 PASS | |
|
0.43661973
|
org.sat4j.minisat.CounterPBConstrWithClauseLearningOnCNFTest.testPropagation
org.sat4j.minisat.CounterPBConstrWithClauseLearningOnCNFTest.testPropagation
|
1 PASS | |
|
0.43661973
|
org.sat4j.minisat.CounterPBConstrWithPBConstrLearningOnCNFTest.testPropagation
org.sat4j.minisat.CounterPBConstrWithPBConstrLearningOnCNFTest.testPropagation
|
1 PASS | |
|
0.32394367
|
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg9
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg9
|
1 PASS | |
|
0.32394367
|
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg7
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg7
|
1 PASS | |
|
0.32394367
|
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg8
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg8
|
1 PASS | |
|
0.32394367
|
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg5
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg5
|
1 PASS | |
|
0.32394367
|
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg6
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg6
|
1 PASS | |
|
0.32394367
|
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg4
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg4
|
1 PASS | |
|
0.26056337
|
org.sat4j.minisat.constraints.pb.WatchPbTest.testNormalize
org.sat4j.minisat.constraints.pb.WatchPbTest.testNormalize
|
1 PASS | |
|
0.21830986
|
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg15
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg15
|
1 PASS | |
|
0.21830986
|
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg16
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg16
|
1 PASS | |
|
0.21830986
|
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg13
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg13
|
1 PASS | |
|
0.21830986
|
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg14
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg14
|
1 PASS | |
|
0.21830986
|
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg11
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg11
|
1 PASS | |
|
0.21830986
|
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg12
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg12
|
1 PASS | |
|
0.21830986
|
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg10
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg10
|
1 PASS | |
|
0.21830986
|
org.sat4j.minisat.CounterPBConstrWithClauseLearningOnCNFTest.testPropagation2
org.sat4j.minisat.CounterPBConstrWithClauseLearningOnCNFTest.testPropagation2
|
1 PASS | |
|
0.21830986
|
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg18
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg18
|
1 PASS | |
|
0.21830986
|
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg17
org.sat4j.minisat.constraints.AbstractRandomCardProblemsTest.testRndDeg17
|
1 PASS | |
|
0.21830986
|
org.sat4j.minisat.CounterPBConstrWithPBConstrLearningOnCNFTest.testPropagation2
org.sat4j.minisat.CounterPBConstrWithPBConstrLearningOnCNFTest.testPropagation2
|
1 PASS | |
| 1 | /* | |
| 2 | * SAT4J: a SATisfiability library for Java Copyright (C) 2004-2006 Daniel Le Berre | |
| 3 | * | |
| 4 | * Based on the original minisat specification from: | |
| 5 | * | |
| 6 | * An extensible SAT solver. Niklas E?n and Niklas S?rensson. Proceedings of the | |
| 7 | * Sixth International Conference on Theory and Applications of Satisfiability | |
| 8 | * Testing, LNCS 2919, pp 502-518, 2003. | |
| 9 | * | |
| 10 | * This library is free software; you can redistribute it and/or modify it under | |
| 11 | * the terms of the GNU Lesser General Public License as published by the Free | |
| 12 | * Software Foundation; either version 2.1 of the License, or (at your option) | |
| 13 | * any later version. | |
| 14 | * | |
| 15 | * This library is distributed in the hope that it will be useful, but WITHOUT | |
| 16 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
| 17 | * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | |
| 18 | * details. | |
| 19 | * | |
| 20 | * You should have received a copy of the GNU Lesser General Public License | |
| 21 | * along with this library; if not, write to the Free Software Foundation, Inc., | |
| 22 | * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 23 | * | |
| 24 | */ | |
| 25 | ||
| 26 | package org.sat4j.minisat.constraints.pb; | |
| 27 | ||
| 28 | import java.math.BigInteger; | |
| 29 | ||
| 30 | import org.sat4j.core.Vec; | |
| 31 | import org.sat4j.core.VecInt; | |
| 32 | import org.sat4j.minisat.core.ILits; | |
| 33 | import org.sat4j.minisat.core.UnitPropagationListener; | |
| 34 | import org.sat4j.specs.ContradictionException; | |
| 35 | import org.sat4j.specs.IVec; | |
| 36 | import org.sat4j.specs.IVecInt; | |
| 37 | ||
| 38 | public class MaxWatchPb extends WatchPb { | |
| 39 | ||
| 40 | private static final long serialVersionUID = 1L; | |
| 41 | ||
| 42 | /** | |
| 43 | * Constructeur de base cr?ant des contraintes vides | |
| 44 | * | |
| 45 | * @param voc | |
| 46 | * Informations sur le vocabulaire employ? | |
| 47 | * @param ps | |
| 48 | * Liste des litt?raux | |
| 49 | * @param coefs | |
| 50 | * Liste des coefficients | |
| 51 | * @param moreThan | |
| 52 | * Indication sur le comparateur | |
| 53 | * @param degree | |
| 54 | * Stockage du degr? de la contrainte | |
| 55 | */ | |
| 56 | 905007 |
private MaxWatchPb(ILits voc, IDataStructurePB mpb) { |
| 57 | ||
| 58 | 905007 | super(mpb); |
| 59 | 905007 | this.voc = voc; |
| 60 | ||
| 61 | 905007 | activity = 0; |
| 62 | 905007 | watchCumul = BigInteger.ZERO; |
| 63 | 905007 | locked = false; |
| 64 | } | |
| 65 | ||
| 66 | 246528 |
private MaxWatchPb(ILits voc, int[] lits, BigInteger[] coefs, BigInteger degree) { |
| 67 | ||
| 68 | 246528 | super(lits, coefs, degree); |
| 69 | 246528 | this.voc = voc; |
| 70 | ||
| 71 | 246528 | activity = 0; |
| 72 | 246528 | watchCumul = BigInteger.ZERO; |
| 73 | 246528 | locked = false; |
| 74 | } | |
| 75 | ||
| 76 | /** | |
| 77 | * Permet l'observation de tous les litt???raux | |
| 78 | * | |
| 79 | * @see org.sat4j.minisat.constraints.WatchPb#computeWatches() | |
| 80 | */ | |
| 81 | 1151442 |
@Override |
| 82 | protected void computeWatches() throws ContradictionException { | |
| 83 | 1151442 | assert watchCumul.equals(BigInteger.ZERO); |
| 84 | 10061266 | for (int i = 0; i < lits.length; i++) { |
| 85 | 8909824 | if (voc.isFalsified(lits[i])) { |
| 86 | 2541637 | if (learnt) |
| 87 | 2541506 | voc.undos(lits[i] ^ 1).push(this); |
| 88 | } else { | |
| 89 | // Mise ? jour de la possibilit? initiale | |
| 90 | 6368187 | voc.watch(lits[i] ^ 1, this); |
| 91 | 6368187 | watchCumul = watchCumul.add(coefs[i]); |
| 92 | } | |
| 93 | } | |
| 94 | ||
| 95 | 1151442 | assert watchCumul.compareTo(recalcLeftSide()) >= 0; |
| 96 | 1151442 | if (!learnt && watchCumul.compareTo(degree) < 0) { |
| 97 | 17 | throw new ContradictionException("non satisfiable constraint"); |
| 98 | } | |
| 99 | } | |
| 100 | ||
| 101 | /* | |
| 102 | * (non-Javadoc) | |
| 103 | * | |
| 104 | * @see org.sat4j.minisat.constraints.WatchPb#computePropagation() | |
| 105 | */ | |
| 106 | 1026121 |
@Override |
| 107 | protected void computePropagation(UnitPropagationListener s) | |
| 108 | throws ContradictionException { | |
| 109 | // On propage | |
| 110 | 1026121 | int ind = 0; |
| 111 | 1026387 | while (ind < coefs.length |
| 112 | && watchCumul.subtract(coefs[ind]).compareTo(degree) < 0) { | |
| 113 | 266 | if (voc.isUnassigned(lits[ind]) && !s.enqueue(lits[ind], this)) |
| 114 | 0 | throw new ContradictionException("non satisfiable constraint"); |
| 115 | 266 | ind++; |
| 116 | } | |
| 117 | 1026121 | assert watchCumul.compareTo(recalcLeftSide()) >= 0; |
| 118 | } | |
| 119 | ||
| 120 | /** | |
| 121 | * @param s | |
| 122 | * outil pour la propagation des litt?raux | |
| 123 | * @param ps | |
| 124 | * liste des litt?raux de la nouvelle contrainte | |
| 125 | * @param coefs | |
| 126 | * liste des coefficients des litt?raux de la contrainte | |
| 127 | * @param moreThan | |
| 128 | * d?termine si c'est une sup?rieure ou ?gal ? l'origine | |
| 129 | * @param degree | |
| 130 | * fournit le degr? de la contrainte | |
| 131 | * @return une nouvelle clause si tout va bien, ou null si un conflit est | |
| 132 | * d?tect? | |
| 133 | */ | |
| 134 | 499336 |
public static MaxWatchPb maxWatchPbNew(UnitPropagationListener s, |
| 135 | ILits voc, IVecInt ps, IVecInt coefs, boolean moreThan, int degree) | |
| 136 | throws ContradictionException { | |
| 137 | 499336 | return maxWatchPbNew(s, voc, ps, toVecBigInt(coefs), moreThan, |
| 138 | toBigInt(degree)); | |
| 139 | } | |
| 140 | ||
| 141 | /** | |
| 142 | * @param s | |
| 143 | * outil pour la propagation des litt?raux | |
| 144 | * @param ps | |
| 145 | * liste des litt?raux de la nouvelle contrainte | |
| 146 | * @param coefs | |
| 147 | * liste des coefficients des litt?raux de la contrainte | |
| 148 | * @param moreThan | |
| 149 | * d?termine si c'est une sup?rieure ou ?gal ? l'origine | |
| 150 | * @param degree | |
| 151 | * fournit le degr? de la contrainte | |
| 152 | * @return une nouvelle clause si tout va bien, ou null si un conflit est | |
| 153 | * d?tect? | |
| 154 | */ | |
| 155 | 779610 |
public static MaxWatchPb maxWatchPbNew(UnitPropagationListener s, |
| 156 | ILits voc, IVecInt ps, IVec<BigInteger> coefs, boolean moreThan, | |
| 157 | BigInteger degree) throws ContradictionException { | |
| 158 | ||
| 159 | // Il ne faut pas modifier les param?tres | |
| 160 | 779610 | VecInt litsVec = new VecInt(); |
| 161 | 779610 | IVec<BigInteger> coefsVec = new Vec<BigInteger>(); |
| 162 | 779610 | ps.copyTo(litsVec); |
| 163 | 779610 | coefs.copyTo(coefsVec); |
| 164 | ||
| 165 | 779610 | IDataStructurePB mpb = niceParameters(litsVec, coefsVec, moreThan, |
| 166 | degree, voc); | |
| 167 | ||
| 168 | 779610 | if (mpb == null) { |
| 169 | 0 | return null; |
| 170 | } | |
| 171 | 779610 | MaxWatchPb outclause = new MaxWatchPb(voc, mpb); |
| 172 | ||
| 173 | 779610 | if (outclause.degree.signum() <= 0) |
| 174 | 0 | return null; |
| 175 | 779610 | outclause.computeWatches(); |
| 176 | 779593 | outclause.computePropagation(s); |
| 177 | ||
| 178 | 779593 | return outclause; |
| 179 | ||
| 180 | } | |
| 181 | ||
| 182 | /** | |
| 183 | * Propagation de la valeur de v?rit? d'un litt?ral falsifi? | |
| 184 | * | |
| 185 | * @param s | |
| 186 | * un prouveur | |
| 187 | * @param p | |
| 188 | * le litt?ral propag? (il doit etre falsifie) | |
| 189 | * @return false ssi une inconsistance est d?tect?e | |
| 190 | */ | |
| 191 | 335673260 |
public boolean propagate(UnitPropagationListener s, int p) { |
| 192 | 335673260 | voc.watch(p, this); |
| 193 | ||
| 194 | 335673260 | assert watchCumul.compareTo(recalcLeftSide()) >= 0 : "" + watchCumul |
| 195 | + "/" + recalcLeftSide() + ":" + learnt; | |
| 196 | ||
| 197 | // Si le litt?ral est impliqu? il y a un conflit | |
| 198 | 335673260 | int indiceP = 0; |
| 199 | while ((lits[indiceP] ^ 1) != p) | |
| 200 | indiceP++; | |
| 201 | ||
| 202 | 335673260 | BigInteger coefP = coefs[indiceP]; |
| 203 | ||
| 204 | 335673260 | BigInteger newcumul = watchCumul.subtract(coefP); |
| 205 | 335673260 | if (newcumul.compareTo(degree) < 0) { |
| 206 | // System.out.println(this.analyse(new ConstrHandle())); | |
| 207 | ||
| 208 | 4874569 | assert !isSatisfiable(); |
| 209 | 4874569 | return false; |
| 210 | } | |
| 211 | ||
| 212 | // On met en place la mise ? jour du compteur | |
| 213 | 330798691 | voc.undos(p).push(this); |
| 214 | 330798691 | watchCumul = newcumul; |
| 215 | ||
| 216 | // On propage | |
| 217 | 330798691 | int ind = 0; |
| 218 | 330798691 | BigInteger limit = watchCumul.subtract(degree); |
| 219 | 954826504 | while (ind < coefs.length && limit.compareTo(coefs[ind]) < 0) { |
| 220 | 624027813 | if (voc.isUnassigned(lits[ind]) && (!s.enqueue(lits[ind], this))) { |
| 221 | 0 | assert !isSatisfiable(); |
| 222 | 0 | return false; |
| 223 | } | |
| 224 | 624027813 | ind++; |
| 225 | } | |
| 226 | ||
| 227 | 330798691 | assert learnt || watchCumul.compareTo(recalcLeftSide()) >= 0; |
| 228 | 330798691 | assert watchCumul.compareTo(recalcLeftSide()) >= 0; |
| 229 | 330798691 | return true; |
| 230 | } | |
| 231 | ||
| 232 | /** | |
| 233 | * Enl???ve une contrainte du prouveur | |
| 234 | */ | |
| 235 | 0 |
public void remove() { |
| 236 | 0 | for (int i = 0; i < lits.length; i++) { |
| 237 | 0 | if (!voc.isFalsified(lits[i])) |
| 238 | 0 | voc.watches(lits[i] ^ 1).remove(this); |
| 239 | } | |
| 240 | } | |
| 241 | ||
| 242 | /** | |
| 243 | * M?thode appel?e lors du backtrack | |
| 244 | * | |
| 245 | * @param p | |
| 246 | * un litt?ral d?saffect? | |
| 247 | */ | |
| 248 | 333241869 |
public void undo(int p) { |
| 249 | 333241869 | int indiceP = 0; |
| 250 | while ((lits[indiceP] ^ 1) != p) | |
| 251 | indiceP++; | |
| 252 | ||
| 253 | 333241869 | assert coefs[indiceP].signum() > 0; |
| 254 | ||
| 255 | 333241869 | watchCumul = watchCumul.add(coefs[indiceP]); |
| 256 | } | |
| 257 | ||
| 258 | /** | |
| 259 | * | |
| 260 | */ | |
| 261 | 0 |
public static WatchPb watchPbNew(ILits voc, IVecInt lits, IVecInt coefs, |
| 262 | boolean moreThan, int degree) { | |
| 263 | 0 | return watchPbNew(voc, lits, toVecBigInt(coefs), moreThan, |
| 264 | toBigInt(degree)); | |
| 265 | } | |
| 266 | ||
| 267 | /** | |
| 268 | * | |
| 269 | */ | |
| 270 | 125397 |
public static WatchPb watchPbNew(ILits voc, IVecInt lits, |
| 271 | IVec<BigInteger> coefs, boolean moreThan, BigInteger degree) { | |
| 272 | 125397 | IDataStructurePB mpb = null; |
| 273 | 125397 | mpb = niceCheckedParameters(lits, coefs, moreThan, degree, voc); |
| 274 | 125397 | return new MaxWatchPb(voc, mpb); |
| 275 | } | |
| 276 | ||
| 277 | /** | |
| 278 | * @param s | |
| 279 | * a unit propagation listener | |
| 280 | * @param voc | |
| 281 | * the vocabulary | |
| 282 | * @param mpb | |
| 283 | * the PB constraint to normalize. | |
| 284 | * @return a new PB contraint or null if a trivial inconsistency is | |
| 285 | * detected. | |
| 286 | */ | |
| 287 | 0 |
public static MaxWatchPb normalizedMaxWatchPbNew(UnitPropagationListener s, |
| 288 | ILits voc, IDataStructurePB mpb) throws ContradictionException { | |
| 289 | // Il ne faut pas modifier les param?tres | |
| 290 | 0 | MaxWatchPb outclause = new MaxWatchPb(voc, mpb); |
| 291 | ||
| 292 | 0 | if (outclause.degree.signum() <= 0) { |
| 293 | 0 | return null; |
| 294 | } | |
| 295 | ||
| 296 | 0 | outclause.computeWatches(); |
| 297 | ||
| 298 | 0 | outclause.computePropagation(s); |
| 299 | ||
| 300 | 0 | return outclause; |
| 301 | ||
| 302 | } | |
| 303 | ||
| 304 | /** | |
| 305 | * @param s | |
| 306 | * a unit propagation listener | |
| 307 | * @param voc | |
| 308 | * the vocabulary | |
| 309 | * @param mpb | |
| 310 | * the PB constraint to normalize. | |
| 311 | * @return a new PB contraint or null if a trivial inconsistency is | |
| 312 | * detected. | |
| 313 | */ | |
| 314 | 246528 |
public static MaxWatchPb normalizedMaxWatchPbNew(UnitPropagationListener s, |
| 315 | ILits voc, int[] lits, BigInteger[] coefs, BigInteger degree) throws ContradictionException { | |
| 316 | // Il ne faut pas modifier les param?tres | |
| 317 | 246528 | MaxWatchPb outclause = new MaxWatchPb(voc, lits, coefs, degree); |
| 318 | ||
| 319 | 246528 | if (outclause.degree.signum() <= 0) { |
| 320 | 0 | return null; |
| 321 | } | |
| 322 | ||
| 323 | 246528 | outclause.computeWatches(); |
| 324 | ||
| 325 | 246528 | outclause.computePropagation(s); |
| 326 | ||
| 327 | 246528 | return outclause; |
| 328 | ||
| 329 | } | |
| 330 | ||
| 331 | } | |
|
||||||||||