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
df83fb5e
Commit
df83fb5e
authored
Nov 21, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix in reading flop classes.
parent
cf2f9364
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
src/aig/gia/giaAiger.c
+9
-6
src/base/abc/abcHieGia.c
+0
-7
src/misc/util/abc_global.h
+4
-0
No files found.
src/aig/gia/giaAiger.c
View file @
df83fb5e
...
...
@@ -655,11 +655,12 @@ Gia_Man_t * Gia_AigerReadFromMemory( char * pContents, int nFileSize, int fSkipS
// read register classes
else
if
(
*
pCur
==
'r'
)
{
int
nRegs
;
int
i
,
nRegs
;
pCur
++
;
nRegs
=
Gia_AigerReadInt
(
pCur
);
pCur
+=
4
;
pNew
->
vRegClasses
=
Vec_IntStart
(
nRegs
);
memcpy
(
Vec_IntArray
(
pNew
->
vRegClasses
),
pCur
,
4
*
nRegs
);
pCur
+=
4
*
nRegs
;
nRegs
=
Gia_AigerReadInt
(
pCur
)
/
4
;
pCur
+=
4
;
pNew
->
vRegClasses
=
Vec_IntAlloc
(
nRegs
);
for
(
i
=
0
;
i
<
nRegs
;
i
++
)
Vec_IntPush
(
pNew
->
vRegClasses
,
Gia_AigerReadInt
(
pCur
)
),
pCur
+=
4
;
if
(
fVerbose
)
printf
(
"Finished reading extension
\"
r
\"
.
\n
"
);
}
// read choices
...
...
@@ -1252,9 +1253,11 @@ void Gia_AigerWrite( Gia_Man_t * pInit, char * pFileName, int fWriteSymbols, int
// write register classes
if
(
p
->
vRegClasses
)
{
int
i
;
fprintf
(
pFile
,
"r"
);
Gia_FileWriteBufferSize
(
pFile
,
Vec_IntSize
(
p
->
vRegClasses
)
);
fwrite
(
Vec_IntArray
(
p
->
vRegClasses
),
1
,
4
*
Vec_IntSize
(
p
->
vRegClasses
),
pFile
);
Gia_FileWriteBufferSize
(
pFile
,
4
*
Vec_IntSize
(
p
->
vRegClasses
)
);
for
(
i
=
0
;
i
<
Vec_IntSize
(
p
->
vRegClasses
);
i
++
)
Gia_FileWriteBufferSize
(
pFile
,
Vec_IntEntry
(
p
->
vRegClasses
,
i
)
);
}
// write choices
if
(
Gia_ManHasChoices
(
p
)
)
...
...
src/base/abc/abcHieGia.c
View file @
df83fb5e
...
...
@@ -332,13 +332,6 @@ box = array containing model name, instance name, followed by pairs of formal
*/
static
inline
int
Abc_Ptr2Int
(
void
*
p
)
{
return
(
int
)(
ABC_PTRINT_T
)
p
;
}
static
inline
void
*
Abc_Int2Ptr
(
int
i
)
{
return
(
void
*
)(
ABC_PTRINT_T
)
i
;
}
static
inline
word
Abc_Ptr2Wrd
(
void
*
p
)
{
return
(
word
)(
ABC_PTRUINT_T
)
p
;
}
static
inline
void
*
Abc_Wrd2Ptr
(
word
i
)
{
return
(
void
*
)(
ABC_PTRUINT_T
)
i
;
}
/**Function*************************************************************
Synopsis [Node type conversions.]
...
...
src/misc/util/abc_global.h
View file @
df83fb5e
...
...
@@ -269,6 +269,10 @@ static inline int Abc_LitRegular( int Lit ) { return Lit & ~01
static
inline
int
Abc_Lit2LitV
(
int
*
pMap
,
int
Lit
)
{
return
Abc_Var2Lit
(
pMap
[
Abc_Lit2Var
(
Lit
)],
Abc_LitIsCompl
(
Lit
)
);
}
static
inline
int
Abc_Lit2LitL
(
int
*
pMap
,
int
Lit
)
{
return
Abc_LitNotCond
(
pMap
[
Abc_Lit2Var
(
Lit
)],
Abc_LitIsCompl
(
Lit
)
);
}
static
inline
int
Abc_Ptr2Int
(
void
*
p
)
{
return
(
int
)(
ABC_PTRINT_T
)
p
;
}
static
inline
void
*
Abc_Int2Ptr
(
int
i
)
{
return
(
void
*
)(
ABC_PTRINT_T
)
i
;
}
static
inline
word
Abc_Ptr2Wrd
(
void
*
p
)
{
return
(
word
)(
ABC_PTRUINT_T
)
p
;
}
static
inline
void
*
Abc_Wrd2Ptr
(
word
i
)
{
return
(
void
*
)(
ABC_PTRUINT_T
)
i
;
}
// time counting
typedef
ABC_INT64_T
abctime
;
...
...
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