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
79e298b2
Commit
79e298b2
authored
Mar 07, 2020
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding dumping json file with statistics in &mltest.
parent
7ca64b3d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/aig/gia/giaGen.c
+6
-5
No files found.
src/aig/gia/giaGen.c
View file @
79e298b2
...
...
@@ -293,7 +293,7 @@ void Gia_ManDumpPlaFiles( Gia_Man_t * p, int nCexesT, int nCexesV, int Seed, cha
SeeAlso []
***********************************************************************/
void
Gia_ManSimLogStats
(
Gia_Man_t
*
p
,
char
*
pDumpFile
,
int
Total
,
int
Correct
)
void
Gia_ManSimLogStats
(
Gia_Man_t
*
p
,
char
*
pDumpFile
,
int
Total
,
int
Correct
,
int
Guess
)
{
FILE
*
pTable
=
fopen
(
pDumpFile
,
"wb"
);
fprintf
(
pTable
,
"{
\n
"
);
...
...
@@ -301,9 +301,10 @@ void Gia_ManSimLogStats( Gia_Man_t * p, char * pDumpFile, int Total, int Correct
fprintf
(
pTable
,
"
\"
input
\"
: %d,
\n
"
,
Gia_ManCiNum
(
p
)
);
fprintf
(
pTable
,
"
\"
output
\"
: %d,
\n
"
,
Gia_ManCoNum
(
p
)
);
fprintf
(
pTable
,
"
\"
and
\"
: %d,
\n
"
,
Gia_ManAndNum
(
p
)
);
fprintf
(
pTable
,
"
\"
level
\"
: %d
\n
"
,
Gia_ManLevelNum
(
p
)
);
fprintf
(
pTable
,
"
\"
total
\"
: %d
\n
"
,
Total
);
fprintf
(
pTable
,
"
\"
correct
\"
: %d
\n
"
,
Correct
);
fprintf
(
pTable
,
"
\"
level
\"
: %d,
\n
"
,
Gia_ManLevelNum
(
p
)
);
fprintf
(
pTable
,
"
\"
total
\"
: %d,
\n
"
,
Total
);
fprintf
(
pTable
,
"
\"
correct
\"
: %d,
\n
"
,
Correct
);
fprintf
(
pTable
,
"
\"
guess
\"
: %d
\n
"
,
Guess
);
fprintf
(
pTable
,
"}
\n
"
);
fclose
(
pTable
);
}
...
...
@@ -410,7 +411,7 @@ void Gia_ManCompareValues( Gia_Man_t * p, Vec_Wrd_t * vSimsIn, Vec_Int_t * vValu
Guess
,
100
.
0
*
Guess
/
Vec_IntSize
(
vValues
));
if
(
pDumpFile
==
NULL
)
return
;
Gia_ManSimLogStats
(
p
,
pDumpFile
,
Vec_IntSize
(
vValues
),
Count
);
Gia_ManSimLogStats
(
p
,
pDumpFile
,
Vec_IntSize
(
vValues
),
Count
,
Guess
);
printf
(
"Finished dumping statistics into file
\"
%s
\"
.
\n
"
,
pDumpFile
);
}
...
...
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