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
ea1e369f
Commit
ea1e369f
authored
Jul 09, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to false path detection.
parent
b389f205
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
25 deletions
+21
-25
src/aig/gia/giaFalse.c
+21
-25
No files found.
src/aig/gia/giaFalse.c
View file @
ea1e369f
...
...
@@ -390,34 +390,30 @@ Gia_Man_t * Gia_ManCheckOne( Gia_Man_t * p, int iOut, int iObj, int nTimeOut, in
// add CNF for the path
Gia_ManForEachObjVec
(
vPath
,
p
,
pObj
,
i
)
{
if
(
Gia_ObjIsAnd
(
pObj
)
)
if
(
!
Gia_ObjIsAnd
(
pObj
)
)
continue
;
assert
(
i
>
0
);
pFanin
=
Gia_ManObj
(
p
,
Vec_IntEntry
(
vPath
,
i
-
1
)
);
if
(
pFanin
==
Gia_ObjFanin0
(
pObj
)
)
{
assert
(
i
>
0
);
pFanin
=
Gia_ManObj
(
p
,
Vec_IntEntry
(
vPath
,
i
-
1
)
);
if
(
pFanin
==
Gia_ObjFanin0
(
pObj
)
)
{
sat_solver_add_and
(
pSat
,
i
+
1
*
Vec_IntSize
(
vPath
),
i
-
1
+
1
*
Vec_IntSize
(
vPath
),
Gia_ObjFanin1
(
pObj
)
->
Value
+
Shift
[
0
],
Gia_ObjFaninC0
(
pObj
),
Gia_ObjFaninC1
(
pObj
),
0
);
sat_solver_add_and
(
pSat
,
i
+
2
*
Vec_IntSize
(
vPath
),
i
-
1
+
2
*
Vec_IntSize
(
vPath
),
Gia_ObjFanin1
(
pObj
)
->
Value
+
Shift
[
1
],
Gia_ObjFaninC0
(
pObj
),
Gia_ObjFaninC1
(
pObj
),
0
);
}
else
if
(
pFanin
==
Gia_ObjFanin1
(
pObj
)
)
{
sat_solver_add_and
(
pSat
,
i
+
1
*
Vec_IntSize
(
vPath
),
Gia_ObjFanin0
(
pObj
)
->
Value
+
Shift
[
0
],
i
-
1
+
1
*
Vec_IntSize
(
vPath
),
Gia_ObjFaninC0
(
pObj
),
Gia_ObjFaninC1
(
pObj
),
0
);
sat_solver_add_and
(
pSat
,
i
+
2
*
Vec_IntSize
(
vPath
),
Gia_ObjFanin0
(
pObj
)
->
Value
+
Shift
[
1
],
i
-
1
+
2
*
Vec_IntSize
(
vPath
),
Gia_ObjFaninC0
(
pObj
),
Gia_ObjFaninC1
(
pObj
),
0
);
}
else
assert
(
0
);
sat_solver_add_xor
(
pSat
,
i
,
i
+
1
*
Vec_IntSize
(
vPath
),
i
+
2
*
Vec_IntSize
(
vPath
),
0
);
sat_solver_add_and
(
pSat
,
i
+
1
*
Vec_IntSize
(
vPath
),
i
-
1
+
1
*
Vec_IntSize
(
vPath
),
Gia_ObjFanin1
(
pObj
)
->
Value
+
Shift
[
0
],
Gia_ObjFaninC0
(
pObj
),
Gia_ObjFaninC1
(
pObj
),
0
);
sat_solver_add_and
(
pSat
,
i
+
2
*
Vec_IntSize
(
vPath
),
i
-
1
+
2
*
Vec_IntSize
(
vPath
),
Gia_ObjFanin1
(
pObj
)
->
Value
+
Shift
[
1
],
Gia_ObjFaninC0
(
pObj
),
Gia_ObjFaninC1
(
pObj
),
0
);
}
else
if
(
pFanin
==
Gia_ObjFanin1
(
pObj
)
)
{
sat_solver_add_and
(
pSat
,
i
+
1
*
Vec_IntSize
(
vPath
),
Gia_ObjFanin0
(
pObj
)
->
Value
+
Shift
[
0
],
i
-
1
+
1
*
Vec_IntSize
(
vPath
),
Gia_ObjFaninC0
(
pObj
),
Gia_ObjFaninC1
(
pObj
),
0
);
sat_solver_add_and
(
pSat
,
i
+
2
*
Vec_IntSize
(
vPath
),
Gia_ObjFanin0
(
pObj
)
->
Value
+
Shift
[
1
],
i
-
1
+
2
*
Vec_IntSize
(
vPath
),
Gia_ObjFaninC0
(
pObj
),
Gia_ObjFaninC1
(
pObj
),
0
);
}
else
if
(
Gia_ObjIsCi
(
pObj
)
)
sat_solver_add_xor
(
pSat
,
i
,
pObj
->
Value
+
Shift
[
0
],
pObj
->
Value
+
Shift
[
1
],
0
);
else
assert
(
0
);
sat_solver_add_xor
(
pSat
,
i
,
i
+
1
*
Vec_IntSize
(
vPath
),
i
+
2
*
Vec_IntSize
(
vPath
),
0
);
Vec_IntPush
(
vLits
,
Abc_Var2Lit
(
i
,
0
)
);
}
// call the SAT solver
...
...
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