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
216fc33a
Commit
216fc33a
authored
Jul 29, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compiler warnings.
parent
8982bf58
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/base/abci/abcDec.c
+2
-2
src/sat/bsat/satUtil.c
+2
-2
No files found.
src/base/abci/abcDec.c
View file @
216fc33a
...
...
@@ -176,7 +176,7 @@ char * Abc_FileRead( char * pFileName )
{
FILE
*
pFile
;
char
*
pBuffer
;
int
nFileSize
;
int
nFileSize
,
RetValue
;
pFile
=
fopen
(
pFileName
,
"rb"
);
if
(
pFile
==
NULL
)
{
...
...
@@ -190,7 +190,7 @@ char * Abc_FileRead( char * pFileName )
rewind
(
pFile
);
// load the contents of the file into memory
pBuffer
=
(
char
*
)
malloc
(
nFileSize
+
3
);
fread
(
pBuffer
,
nFileSize
,
1
,
pFile
);
RetValue
=
fread
(
pBuffer
,
nFileSize
,
1
,
pFile
);
// add several empty lines at the end
// (these will be used to signal the end of parsing)
pBuffer
[
nFileSize
+
0
]
=
'\n'
;
...
...
src/sat/bsat/satUtil.c
View file @
216fc33a
...
...
@@ -89,7 +89,7 @@ void Sat_SolverWriteDimacs( sat_solver * p, char * pFileName, lit* assumpBegin,
return
;
}
// fprintf( pFile, "c CNF generated by ABC on %s\n", Extra_TimeStamp() );
fprintf
(
pFile
,
"p cnf %d %d
\n
"
,
p
->
size
,
Sat_MemEntryNum
(
&
p
->
Mem
,
0
)
+
Sat_MemEntryNum
(
&
p
->
Mem
,
1
)
+
nUnits
+
(
assumpEnd
-
assumpBegin
)
);
fprintf
(
pFile
,
"p cnf %d %d
\n
"
,
p
->
size
,
Sat_MemEntryNum
(
&
p
->
Mem
,
0
)
+
Sat_MemEntryNum
(
&
p
->
Mem
,
1
)
+
nUnits
+
(
int
)(
assumpEnd
-
assumpBegin
)
);
// write the original clauses
Sat_MemForEachClause
(
pMem
,
c
,
i
,
k
)
...
...
@@ -141,7 +141,7 @@ void Sat_Solver2WriteDimacs( sat_solver2 * p, char * pFileName, lit* assumpBegin
return
;
}
// fprintf( pFile, "c CNF generated by ABC on %s\n", Extra_TimeStamp() );
fprintf
(
pFile
,
"p cnf %d %d
\n
"
,
p
->
size
,
Sat_MemEntryNum
(
&
p
->
Mem
,
0
)
+
Sat_MemEntryNum
(
&
p
->
Mem
,
1
)
+
nUnits
+
(
assumpEnd
-
assumpBegin
)
);
fprintf
(
pFile
,
"p cnf %d %d
\n
"
,
p
->
size
,
Sat_MemEntryNum
(
&
p
->
Mem
,
0
)
+
Sat_MemEntryNum
(
&
p
->
Mem
,
1
)
+
nUnits
+
(
int
)(
assumpEnd
-
assumpBegin
)
);
// write the original clauses
Sat_MemForEachClause2
(
pMem
,
c
,
i
,
k
)
...
...
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