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
5b8fa41b
Commit
5b8fa41b
authored
Jan 21, 2022
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suggested bug fixes in the old code.
parent
d892e632
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
9 deletions
+8
-9
src/aig/aig/aigUtil.c
+1
-1
src/aig/gia/giaCex.c
+1
-1
src/aig/ioa/ioaReadAig.c
+1
-1
src/base/abci/abcExact.c
+1
-1
src/base/wlc/wlcMem.c
+1
-1
src/map/amap/amapUniq.c
+3
-4
No files found.
src/aig/aig/aigUtil.c
View file @
5b8fa41b
...
...
@@ -1333,7 +1333,7 @@ void Aig_ManCounterExampleValueStart( Aig_Man_t * pAig, Abc_Cex_t * pCex )
pAig
->
pData2
=
ABC_CALLOC
(
unsigned
,
Abc_BitWordNum
(
(
pCex
->
iFrame
+
1
)
*
Aig_ManObjNumMax
(
pAig
)
)
);
// the register values in the counter-example should be zero
Saig_ManForEachLo
(
pAig
,
pObj
,
k
)
assert
(
Abc_InfoHasBit
(
pCex
->
pData
,
iBit
++
)
==
0
)
;
assert
(
Abc_InfoHasBit
(
pCex
->
pData
,
iBit
)
==
0
),
iBit
++
;
// iterate through the timeframes
nObjs
=
Aig_ManObjNumMax
(
pAig
);
for
(
i
=
0
;
i
<=
pCex
->
iFrame
;
i
++
)
...
...
src/aig/gia/giaCex.c
View file @
5b8fa41b
...
...
@@ -195,7 +195,7 @@ void Gia_ManCounterExampleValueStart( Gia_Man_t * pGia, Abc_Cex_t * pCex )
pGia
->
pData2
=
ABC_CALLOC
(
unsigned
,
Abc_BitWordNum
(
(
pCex
->
iFrame
+
1
)
*
Gia_ManObjNum
(
pGia
)
)
);
// the register values in the counter-example should be zero
Gia_ManForEachRo
(
pGia
,
pObj
,
k
)
assert
(
Abc_InfoHasBit
(
pCex
->
pData
,
iBit
++
)
==
0
)
;
assert
(
Abc_InfoHasBit
(
pCex
->
pData
,
iBit
)
==
0
),
iBit
++
;
// iterate through the timeframes
nObjs
=
Gia_ManObjNum
(
pGia
);
for
(
i
=
0
;
i
<=
pCex
->
iFrame
;
i
++
)
...
...
src/aig/ioa/ioaReadAig.c
View file @
5b8fa41b
...
...
@@ -438,7 +438,7 @@ Aig_Man_t * Ioa_ReadAiger( char * pFileName, int fCheck )
// read the file into the buffer
nFileSize
=
Ioa_FileSize
(
pFileName
);
pFile
=
fopen
(
pFileName
,
"rb"
);
pContents
=
ABC_
ALLOC
(
char
,
nFileSize
);
pContents
=
ABC_
CALLOC
(
char
,
nFileSize
+
1
);
RetValue
=
fread
(
pContents
,
nFileSize
,
1
,
pFile
);
fclose
(
pFile
);
...
...
src/base/abci/abcExact.c
View file @
5b8fa41b
...
...
@@ -1034,7 +1034,7 @@ static word * Ses_ManDeriveTruth( Ses_Man_t * pSes, char * pSol, int fInvert )
for
(
i
=
0
;
i
<
nGates
;
++
i
)
{
f
=
*
p
++
;
assert
(
*
p
++
==
2
)
;
assert
(
*
p
==
2
),
p
++
;
j
=
*
p
++
;
k
=
*
p
++
;
...
...
src/base/wlc/wlcMem.c
View file @
5b8fa41b
...
...
@@ -800,7 +800,7 @@ void Wlc_NtkTrace_rec( Wlc_Ntk_t * p, Wlc_Obj_t * pObj, int iFrame, Vec_Int_t *
{
int
Index
=
3
*
(
iFrame
*
Vec_IntSize
(
vMemObjs
)
+
iNum
);
int
Value
=
(
int
)
Vec_WrdEntry
(
vValues
,
Index
);
assert
(
Value
==
0
&&
Value
==
1
);
assert
(
Value
==
0
||
Value
==
1
);
Wlc_NtkTrace_rec
(
p
,
Value
?
Wlc_ObjFanin2
(
p
,
pObj
)
:
Wlc_ObjFanin1
(
p
,
pObj
),
iFrame
,
vMemObjs
,
vValues
,
ValueA
,
vRes
);
Vec_IntPush
(
vRes
,
(
iObj
<<
11
)
|
(
iFrame
<<
1
)
|
Value
);
}
...
...
src/map/amap/amapUniq.c
View file @
5b8fa41b
...
...
@@ -278,15 +278,14 @@ Abc_Lit2Var(iFan2), (Abc_LitIsCompl(iFan2)?'-':'+') );
int
**
Amap_LibLookupTableAlloc
(
Vec_Ptr_t
*
vVec
,
int
fVerbose
)
{
Vec_Int_t
*
vOne
;
int
**
pRes
,
*
pBuffer
;
int
**
pRes
;
int
i
,
k
,
nTotal
,
nSize
,
nEntries
,
Value
;
// count the total size
nEntries
=
nSize
=
Vec_PtrSize
(
vVec
);
Vec_PtrForEachEntry
(
Vec_Int_t
*
,
vVec
,
vOne
,
i
)
nEntries
+=
Vec_IntSize
(
vOne
);
pBuffer
=
ABC_ALLOC
(
int
,
nSize
*
sizeof
(
void
*
)
+
nEntries
);
pRes
=
(
int
**
)
pBuffer
;
pRes
[
0
]
=
pBuffer
+
nSize
*
sizeof
(
void
*
);
pRes
=
(
int
**
)
ABC_ALLOC
(
char
,
nSize
*
sizeof
(
void
*
)
+
nEntries
*
sizeof
(
int
)
);
pRes
[
0
]
=
(
int
*
)((
char
*
)
pRes
+
nSize
*
sizeof
(
void
*
));
nTotal
=
0
;
Vec_PtrForEachEntry
(
Vec_Int_t
*
,
vVec
,
vOne
,
i
)
{
...
...
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