defer po.CheckIntegrity()
}
if n1.ID == n2.ID {
- panic("should not call Equal with n1==n2")
+ panic("should not call NonEqual with n1==n2")
}
if po.isnoneq(n1.ID, n2.ID) {
return true
return false
}
-// setOrder records that n1<n2 or n1<=n2 (depending on strict).
+// setOrder records that n1<n2 or n1<=n2 (depending on strict). Returns false
+// if this is a contradiction.
// Implements SetOrder() and SetOrderOrEqual()
func (po *poset) setOrder(n1, n2 *Value, strict bool) bool {
// If we are trying to record n1<=n2 but we learned that n1!=n2,
defer po.CheckIntegrity()
}
if n1.ID == n2.ID {
- panic("should not call Equal with n1==n2")
+ panic("should not call SetNonEqual with n1==n2")
}
// See if we already know this