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
8281b56e
Commit
8281b56e
authored
Feb 23, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compiler warnings.
parent
1c744cf1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
src/proof/pdr/pdrCnf.c
+2
-0
src/sat/bsat/satSolver.c
+4
-0
src/sat/bsat/satSolver.h
+1
-0
No files found.
src/proof/pdr/pdrCnf.c
View file @
8281b56e
...
@@ -86,6 +86,7 @@ static inline int Pdr_ObjSatVar2FindOrAdd( Pdr_Man_t * p, int k, Aig_Obj_t * pOb
...
@@ -86,6 +86,7 @@ static inline int Pdr_ObjSatVar2FindOrAdd( Pdr_Man_t * p, int k, Aig_Obj_t * pOb
int
Lit
=
toLitCond
(
iVarNew
,
1
);
int
Lit
=
toLitCond
(
iVarNew
,
1
);
int
RetValue
=
sat_solver_addclause
(
pSat
,
&
Lit
,
&
Lit
+
1
);
int
RetValue
=
sat_solver_addclause
(
pSat
,
&
Lit
,
&
Lit
+
1
);
assert
(
RetValue
==
1
);
assert
(
RetValue
==
1
);
(
void
)
RetValue
;
sat_solver_compress
(
pSat
);
sat_solver_compress
(
pSat
);
}
}
}
}
...
@@ -131,6 +132,7 @@ int Pdr_ObjSatVar2( Pdr_Man_t * p, int k, Aig_Obj_t * pObj )
...
@@ -131,6 +132,7 @@ int Pdr_ObjSatVar2( Pdr_Man_t * p, int k, Aig_Obj_t * pObj )
}
}
RetValue
=
sat_solver_addclause
(
pSat
,
Vec_IntArray
(
vLits
),
Vec_IntArray
(
vLits
)
+
Vec_IntSize
(
vLits
)
);
RetValue
=
sat_solver_addclause
(
pSat
,
Vec_IntArray
(
vLits
),
Vec_IntArray
(
vLits
)
+
Vec_IntSize
(
vLits
)
);
assert
(
RetValue
);
assert
(
RetValue
);
(
void
)
RetValue
;
}
}
Vec_IntFree
(
vLits
);
Vec_IntFree
(
vLits
);
return
iVarThis
;
return
iVarThis
;
...
...
src/sat/bsat/satSolver.c
View file @
8281b56e
...
@@ -546,6 +546,7 @@ static void sat_solver_record(sat_solver* s, veci* cls)
...
@@ -546,6 +546,7 @@ static void sat_solver_record(sat_solver* s, veci* cls)
{
{
int
RetValue
=
Sto_ManAddClause
(
(
Sto_Man_t
*
)
s
->
pStore
,
begin
,
end
);
int
RetValue
=
Sto_ManAddClause
(
(
Sto_Man_t
*
)
s
->
pStore
,
begin
,
end
);
assert
(
RetValue
);
assert
(
RetValue
);
(
void
)
RetValue
;
}
}
///////////////////////////////////
///////////////////////////////////
/*
/*
...
@@ -1333,6 +1334,7 @@ int sat_solver_addclause(sat_solver* s, lit* begin, lit* end)
...
@@ -1333,6 +1334,7 @@ int sat_solver_addclause(sat_solver* s, lit* begin, lit* end)
{
{
int
RetValue
=
Sto_ManAddClause
(
(
Sto_Man_t
*
)
s
->
pStore
,
begin
,
end
);
int
RetValue
=
Sto_ManAddClause
(
(
Sto_Man_t
*
)
s
->
pStore
,
begin
,
end
);
assert
(
RetValue
);
assert
(
RetValue
);
(
void
)
RetValue
;
}
}
///////////////////////////////////
///////////////////////////////////
...
@@ -1522,6 +1524,7 @@ int sat_solver_solve(sat_solver* s, lit* begin, lit* end, ABC_INT64_T nConfLimit
...
@@ -1522,6 +1524,7 @@ int sat_solver_solve(sat_solver* s, lit* begin, lit* end, ABC_INT64_T nConfLimit
{
{
int
RetValue
=
Sto_ManAddClause
(
(
Sto_Man_t
*
)
s
->
pStore
,
NULL
,
NULL
);
int
RetValue
=
Sto_ManAddClause
(
(
Sto_Man_t
*
)
s
->
pStore
,
NULL
,
NULL
);
assert
(
RetValue
);
assert
(
RetValue
);
(
void
)
RetValue
;
}
}
return
l_False
;
return
l_False
;
}
}
...
@@ -1692,6 +1695,7 @@ int sat_solver_solve(sat_solver* s, lit* begin, lit* end, ABC_INT64_T nConfLimit
...
@@ -1692,6 +1695,7 @@ int sat_solver_solve(sat_solver* s, lit* begin, lit* end, ABC_INT64_T nConfLimit
{
{
int
RetValue
=
Sto_ManAddClause
(
(
Sto_Man_t
*
)
s
->
pStore
,
NULL
,
NULL
);
int
RetValue
=
Sto_ManAddClause
(
(
Sto_Man_t
*
)
s
->
pStore
,
NULL
,
NULL
);
assert
(
RetValue
);
assert
(
RetValue
);
(
void
)
RetValue
;
}
}
////////////////////////////////////////////////
////////////////////////////////////////////////
return
status
;
return
status
;
...
...
src/sat/bsat/satSolver.h
View file @
8281b56e
...
@@ -203,6 +203,7 @@ static void sat_solver_compress(sat_solver* s)
...
@@ -203,6 +203,7 @@ static void sat_solver_compress(sat_solver* s)
{
{
int
RetValue
=
sat_solver_simplify
(
s
);
int
RetValue
=
sat_solver_simplify
(
s
);
assert
(
RetValue
!=
0
);
assert
(
RetValue
!=
0
);
(
void
)
RetValue
;
}
}
}
}
...
...
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