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
201cb245
Commit
201cb245
authored
Sep 03, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Several minor changes.
parent
9621ae94
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
2 deletions
+43
-2
src/aig/gia/giaAbsGla2.c
+1
-1
src/map/scl/sclLoad.c
+1
-1
src/misc/extra/extraUtilFile.c
+41
-0
No files found.
src/aig/gia/giaAbsGla2.c
View file @
201cb245
...
...
@@ -1288,7 +1288,7 @@ int Ga2_GlaAbsCount( Ga2_Man_t * p, int fRo, int fAnd )
***********************************************************************/
void
Ga2_ManAbsPrintFrame
(
Ga2_Man_t
*
p
,
int
nFrames
,
int
nConfls
,
int
nCexes
,
clock_t
Time
,
int
fFinal
)
{
if
(
Abc_FrameIsBatchMode
()
&&
!
fFinal
)
if
(
Abc_FrameIsBatchMode
()
&&
!
(((
fFinal
&&
nCexes
)
||
p
->
pPars
->
fVeryVerbose
))
)
return
;
Abc_Print
(
1
,
"%4d :"
,
nFrames
);
Abc_Print
(
1
,
"%4d"
,
Abc_MinInt
(
100
,
100
*
Vec_IntSize
(
p
->
vAbs
)
/
p
->
nMarked
)
);
...
...
src/map/scl/sclLoad.c
View file @
201cb245
...
...
@@ -154,8 +154,8 @@ void Abc_SclComputeLoad( SC_Man * p )
pLoad
->
rise
+=
Vec_FltEntry
(
vWireCaps
,
k
);
pLoad
->
fall
+=
Vec_FltEntry
(
vWireCaps
,
k
);
}
}
Vec_FltFree
(
vWireCaps
);
}
}
void
Abc_SclUpdateLoad
(
SC_Man
*
p
,
Abc_Obj_t
*
pObj
,
SC_Cell
*
pOld
,
SC_Cell
*
pNew
)
{
...
...
src/misc/extra/extraUtilFile.c
View file @
201cb245
...
...
@@ -686,6 +686,47 @@ void Extra_FileSort( char * pFileName, char * pFileNameOut )
/**Function*************************************************************
Synopsis [Appends line number in the end.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void
Extra_FileLineNumAdd
(
char
*
pFileName
,
char
*
pFileNameOut
)
{
char
Buffer
[
1000
];
FILE
*
pFile
;
FILE
*
pFile2
;
int
iLine
;
pFile
=
fopen
(
pFileName
,
"rb"
);
if
(
pFile
==
NULL
)
{
printf
(
"Extra_FileLineNumAdd(): Cannot open file
\"
%s
\"
.
\n
"
,
pFileName
);
return
;
}
pFile2
=
fopen
(
pFileNameOut
,
"wb"
);
if
(
pFile2
==
NULL
)
{
fclose
(
pFile
);
printf
(
"Extra_FileLineNumAdd(): Cannot open file
\"
%s
\"
.
\n
"
,
pFileNameOut
);
return
;
}
for
(
iLine
=
0
;
fgets
(
Buffer
,
1000
,
pFile
);
iLine
++
)
{
sprintf
(
Buffer
+
strlen
(
Buffer
)
-
2
,
"%03d
\n
%c"
,
iLine
,
0
);
fputs
(
Buffer
,
pFile2
);
}
fclose
(
pFile
);
fclose
(
pFile2
);
// report the result
printf
(
"The resulting file is
\"
%s
\"
.
\n
"
,
pFileNameOut
);
}
/**Function*************************************************************
Synopsis []
Description []
...
...
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