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
8b8b410a
Commit
8b8b410a
authored
Jan 11, 2017
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changing file naming in 'show' and '&show'.
parent
89d08cfd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
src/aig/aig/aigShow.c
+2
-3
src/aig/gia/giaShow.c
+2
-6
No files found.
src/aig/aig/aigShow.c
View file @
8b8b410a
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
***********************************************************************/
***********************************************************************/
#include "aig.h"
#include "aig.h"
#include "misc/extra/extra.h"
ABC_NAMESPACE_IMPL_START
ABC_NAMESPACE_IMPL_START
...
@@ -340,12 +341,10 @@ void Aig_WriteDotAig( Aig_Man_t * pMan, char * pFileName, int fHaig, Vec_Ptr_t *
...
@@ -340,12 +341,10 @@ void Aig_WriteDotAig( Aig_Man_t * pMan, char * pFileName, int fHaig, Vec_Ptr_t *
void
Aig_ManShow
(
Aig_Man_t
*
pMan
,
int
fHaig
,
Vec_Ptr_t
*
vBold
)
void
Aig_ManShow
(
Aig_Man_t
*
pMan
,
int
fHaig
,
Vec_Ptr_t
*
vBold
)
{
{
extern
void
Abc_ShowFile
(
char
*
FileNameDot
);
extern
void
Abc_ShowFile
(
char
*
FileNameDot
);
static
int
Counter
=
0
;
char
FileNameDot
[
200
];
char
FileNameDot
[
200
];
FILE
*
pFile
;
FILE
*
pFile
;
// create the file name
// create the file name
// Aig_ShowGetFileName( pMan->pName, FileNameDot );
sprintf
(
FileNameDot
,
"%s"
,
Extra_FileNameGenericAppend
(
pMan
->
pName
,
".dot"
)
);
sprintf
(
FileNameDot
,
"temp%02d.dot"
,
Counter
++
);
// check that the file can be opened
// check that the file can be opened
if
(
(
pFile
=
fopen
(
FileNameDot
,
"w"
))
==
NULL
)
if
(
(
pFile
=
fopen
(
FileNameDot
,
"w"
))
==
NULL
)
{
{
...
...
src/aig/gia/giaShow.c
View file @
8b8b410a
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
#include "gia.h"
#include "gia.h"
#include "proof/cec/cec.h"
#include "proof/cec/cec.h"
#include "proof/acec/acec.h"
#include "proof/acec/acec.h"
#include "misc/extra/extra.h"
ABC_NAMESPACE_IMPL_START
ABC_NAMESPACE_IMPL_START
...
@@ -815,15 +816,10 @@ void Gia_ShowProcess( Gia_Man_t * p, char * pFileName, Vec_Int_t * vAdds, Vec_In
...
@@ -815,15 +816,10 @@ void Gia_ShowProcess( Gia_Man_t * p, char * pFileName, Vec_Int_t * vAdds, Vec_In
void
Gia_ManShow
(
Gia_Man_t
*
pMan
,
Vec_Int_t
*
vBold
,
int
fAdders
,
int
fFadds
)
void
Gia_ManShow
(
Gia_Man_t
*
pMan
,
Vec_Int_t
*
vBold
,
int
fAdders
,
int
fFadds
)
{
{
extern
void
Abc_ShowFile
(
char
*
FileNameDot
);
extern
void
Abc_ShowFile
(
char
*
FileNameDot
);
static
int
Counter
=
0
;
char
FileNameDot
[
200
];
char
FileNameDot
[
200
];
FILE
*
pFile
;
FILE
*
pFile
;
Vec_Int_t
*
vXors
,
*
vAdds
=
Ree_ManComputeCuts
(
pMan
,
&
vXors
,
0
);
Vec_Int_t
*
vXors
,
*
vAdds
=
Ree_ManComputeCuts
(
pMan
,
&
vXors
,
0
);
sprintf
(
FileNameDot
,
"%s"
,
Extra_FileNameGenericAppend
(
pMan
->
pName
,
".dot"
)
);
// create the file name
// Gia_ShowGetFileName( pMan->pName, FileNameDot );
sprintf
(
FileNameDot
,
"temp%02d.dot"
,
Counter
++
);
// check that the file can be opened
// check that the file can be opened
if
(
(
pFile
=
fopen
(
FileNameDot
,
"w"
))
==
NULL
)
if
(
(
pFile
=
fopen
(
FileNameDot
,
"w"
))
==
NULL
)
{
{
...
...
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