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
ddc522a0
Commit
ddc522a0
authored
Mar 05, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix in reader/writer of 'r' section.
parent
6c932493
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/aig/gia/giaAiger.c
+5
-2
No files found.
src/aig/gia/giaAiger.c
View file @
ddc522a0
...
...
@@ -662,10 +662,12 @@ Gia_Man_t * Gia_AigerReadFromMemory( char * pContents, int nFileSize, int fSkipS
{
int
i
,
nRegs
;
pCur
++
;
nRegs
=
Gia_AigerReadInt
(
pCur
)
/
4
;
pCur
+=
4
;
pCurTemp
=
pCur
+
Gia_AigerReadInt
(
pCur
)
+
4
;
pCur
+=
4
;
nRegs
=
Gia_AigerReadInt
(
pCur
);
pCur
+=
4
;
pNew
->
vRegClasses
=
Vec_IntAlloc
(
nRegs
);
for
(
i
=
0
;
i
<
nRegs
;
i
++
)
Vec_IntPush
(
pNew
->
vRegClasses
,
Gia_AigerReadInt
(
pCur
)
),
pCur
+=
4
;
assert
(
pCur
==
pCurTemp
);
if
(
fVerbose
)
printf
(
"Finished reading extension
\"
r
\"
.
\n
"
);
}
// read choices
...
...
@@ -1260,7 +1262,8 @@ void Gia_AigerWrite( Gia_Man_t * pInit, char * pFileName, int fWriteSymbols, int
{
int
i
;
fprintf
(
pFile
,
"r"
);
Gia_FileWriteBufferSize
(
pFile
,
4
*
Vec_IntSize
(
p
->
vRegClasses
)
);
Gia_FileWriteBufferSize
(
pFile
,
4
*
(
Vec_IntSize
(
p
->
vRegClasses
)
+
1
)
);
Gia_FileWriteBufferSize
(
pFile
,
Vec_IntSize
(
p
->
vRegClasses
)
);
for
(
i
=
0
;
i
<
Vec_IntSize
(
p
->
vRegClasses
);
i
++
)
Gia_FileWriteBufferSize
(
pFile
,
Vec_IntEntry
(
p
->
vRegClasses
,
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