We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
find_or_add
1 parent 334307e commit f728c4fCopy full SHA for f728c4f
dd/cudd_add.pyx
@@ -1605,16 +1605,13 @@ cdef class ADD:
1605
if level >= high.level:
1606
raise ValueError(
1607
level, high.level, 'high.level')
1608
- r: DdRef
1609
index = self._index_of_var[var]
1610
- if high == self.zero:
1611
- r = low.node
1612
- else:
1613
- r = cuddUniqueInter(
1614
- self.manager, index,
1615
- high.node, low.node)
1616
- if r is NULL:
1617
- raise CouldNotCreateNode()
+
+ r = cuddUniqueInter(
+ self.manager, index,
+ high.node, low.node)
+ if r is NULL:
+ raise CouldNotCreateNode()
1618
f = wrap(self, r)
1619
if level > f.level:
1620
raise AssertionError(
0 commit comments