Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
43d54351
Commit
43d54351
authored
Jan 25, 2013
by
Baruch Sterin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pyabc: deal better with null counter examples and remove special case handling
parent
4aa434ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
19 deletions
+7
-19
src/python/pyabc.i
+7
-19
No files found.
src/python/pyabc.i
View file @
43d54351
...
...
@@ -244,8 +244,6 @@ Abc_Cex_t* _cex_get_vec(int i)
return NULL;
}
if ( pCex == (Abc_Cex_t *)1 )
return pCex;
return Abc_CexDup( pCex, -1 );
}
...
...
@@ -669,6 +667,11 @@ void _set_death_signal();
class _Cex(object):
def __new__(cls, pCex):
if not pCex:
return None
return object.__new__(cls)
def __init__(self, pCex):
self.pCex = pCex
...
...
@@ -689,27 +692,12 @@ class _Cex(object):
def cex_get_vector():
res = []
for i in xrange(_cex_get_vec_len()):
cex = _cex_get_vec(i)
if cex is None:
res.append(None)
else:
res.append(_Cex(cex))
return res
return [ _Cex(_cex_get_vec(i)) for i in xrange(_cex_get_vec_len()) ]
def cex_get():
cex = _cex_get(
)
return _Cex( _cex_get()
)
if cex is None:
return None
return _Cex(cex)
def cex_put(cex):
assert cex is not None
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment