Stopped duplicate background knowledge being added in the equation generation, thus fixing some tests

This commit is contained in:
Neil Brown 2009-01-15 18:39:08 +00:00
parent 155714abcb
commit de153283a3

View File

@ -580,8 +580,8 @@ squareAndPair ::
(EqualityConstraintEquation, EqualityConstraintEquation) ->
[((labelStripped, labelStripped), VarMap, (EqualityProblem, InequalityProblem))]
squareAndPair lookupBK strip repVars s v lh
= [(transformPair strip strip labels, s,squareEquations (bkEqA ++ bkEqB ++
eq, bkIneqA ++ bkIneqB ++ ineq ++ concat (applyAll (eq,ineq) (map addExtra repVars))))
= [(transformPair strip strip labels, s,squareEquations (nub (bkEqA ++ bkEqB) ++
eq, nub (bkIneqA ++ bkIneqB) ++ ineq ++ concat (applyAll (eq,ineq) (map addExtra repVars))))
| (labels, eq,ineq) <- pairEqsAndBounds v lh
,and (map (primeImpliesPlain (eq,ineq)) repVars)
,((bkEqA, bkIneqA), (bkEqB, bkIneqB)) <-