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
9842a666
Commit
9842a666
authored
Jun 18, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Experiments with CNF generation.
parent
590f74e9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
7 deletions
+13
-7
src/aig/gia/giaJf.c
+4
-1
src/bool/rsb/rsbDec6.c
+1
-1
src/misc/util/utilTruth.h
+8
-5
No files found.
src/aig/gia/giaJf.c
View file @
9842a666
...
...
@@ -397,7 +397,10 @@ void Jf_ManFree( Jf_Man_t * p )
if
(
p
->
pPars
->
fVerbose
&&
p
->
pDsd
)
Sdm_ManPrintDsdStats
(
p
->
pDsd
,
0
);
if
(
p
->
pPars
->
fVerbose
&&
p
->
vTtMem
)
printf
(
"Unique truth tables = %d. Memory = %.2f MB
\n
"
,
Vec_MemEntryNum
(
p
->
vTtMem
),
Vec_MemMemory
(
p
->
vTtMem
)
/
(
1
<<
20
)
);
{
printf
(
"Unique truth tables = %d. Memory = %.2f MB "
,
Vec_MemEntryNum
(
p
->
vTtMem
),
Vec_MemMemory
(
p
->
vTtMem
)
/
(
1
<<
20
)
);
Abc_PrintTime
(
1
,
"Time"
,
Abc_Clock
()
-
p
->
clkStart
);
}
if
(
p
->
pPars
->
fVeryVerbose
&&
p
->
pPars
->
fCutMin
&&
p
->
pPars
->
fFuncDsd
)
Jf_ManProfileClasses
(
p
);
if
(
p
->
pPars
->
fCoarsen
)
...
...
src/bool/rsb/rsbDec6.c
View file @
9842a666
...
...
@@ -519,7 +519,7 @@ void Rsb_DecPrintFunc( Rsb_Man_t * p, unsigned Truth4, word * f, word ** ppGs, i
word
Copy
=
Truth4
;
word
wOn
=
Abc_Tt6Stretch
(
Copy
>>
(
1
<<
nVars
),
nVars
);
word
wOnDc
=
~
Abc_Tt6Stretch
(
Copy
,
nVars
);
word
wIsop
=
Abc_Tt6Isop
(
wOn
,
wOnDc
,
nVars
);
word
wIsop
=
Abc_Tt6Isop
(
wOn
,
wOnDc
,
nVars
,
NULL
);
int
i
;
printf
(
"Offset : "
);
...
...
src/misc/util/utilTruth.h
View file @
9842a666
...
...
@@ -1416,16 +1416,19 @@ static inline void Abc_TtReverseBits( word * pTruth, int nVars )
SeeAlso []
***********************************************************************/
static
inline
word
Abc_Tt6Isop
(
word
uOn
,
word
uOnDc
,
int
nVars
)
static
inline
word
Abc_Tt6Isop
(
word
uOn
,
word
uOnDc
,
int
nVars
,
int
*
pnCubes
)
{
word
uOn0
,
uOn1
,
uOnDc0
,
uOnDc1
,
uRes0
,
uRes1
,
uRes2
;
int
Var
;
assert
(
nVars
<=
5
);
assert
(
nVars
<=
6
);
assert
(
(
uOn
&
~
uOnDc
)
==
0
);
if
(
uOn
==
0
)
return
0
;
if
(
uOnDc
==
~
(
word
)
0
)
{
(
*
pnCubes
)
++
;
return
~
(
word
)
0
;
}
assert
(
nVars
>
0
);
// find the topmost var
for
(
Var
=
nVars
-
1
;
Var
>=
0
;
Var
--
)
...
...
@@ -1438,9 +1441,9 @@ static inline word Abc_Tt6Isop( word uOn, word uOnDc, int nVars )
uOnDc0
=
Abc_Tt6Cofactor0
(
uOnDc
,
Var
);
uOnDc1
=
Abc_Tt6Cofactor1
(
uOnDc
,
Var
);
// solve for cofactors
uRes0
=
Abc_Tt6Isop
(
uOn0
&
~
uOnDc1
,
uOnDc0
,
Var
);
uRes1
=
Abc_Tt6Isop
(
uOn1
&
~
uOnDc0
,
uOnDc1
,
Var
);
uRes2
=
Abc_Tt6Isop
(
(
uOn0
&
~
uRes0
)
|
(
uOn1
&
~
uRes1
),
uOnDc0
&
uOnDc1
,
Var
);
uRes0
=
Abc_Tt6Isop
(
uOn0
&
~
uOnDc1
,
uOnDc0
,
Var
,
pnCubes
);
uRes1
=
Abc_Tt6Isop
(
uOn1
&
~
uOnDc0
,
uOnDc1
,
Var
,
pnCubes
);
uRes2
=
Abc_Tt6Isop
(
(
uOn0
&
~
uRes0
)
|
(
uOn1
&
~
uRes1
),
uOnDc0
&
uOnDc1
,
Var
,
pnCubes
);
// derive the final truth table
uRes2
|=
(
uRes0
&
s_Truths6Neg
[
Var
])
|
(
uRes1
&
s_Truths6
[
Var
]);
assert
(
(
uOn
&
~
uRes2
)
==
0
);
...
...
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