mirror of
https://github.com/YosysHQ/abc.git
synced 2026-08-30 01:29:01 +02:00
pyabc: handle a few corner cases
This commit is contained in:
+8
-2
@@ -744,15 +744,21 @@ void _set_death_signal();
|
||||
class _Cex(object):
|
||||
|
||||
def __new__(cls, pCex):
|
||||
|
||||
if not pCex:
|
||||
return None
|
||||
return None
|
||||
|
||||
if int(pCex)==1:
|
||||
return True
|
||||
|
||||
return object.__new__(cls)
|
||||
|
||||
def __init__(self, pCex):
|
||||
self.pCex = pCex
|
||||
|
||||
def __del__(self):
|
||||
_cex_free(self.pCex)
|
||||
if _cex_free:
|
||||
_cex_free(self.pCex)
|
||||
|
||||
def n_regs(self):
|
||||
return _cex_n_regs(self.pCex)
|
||||
|
||||
Reference in New Issue
Block a user