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
4a937ef3
Commit
4a937ef3
authored
Nov 12, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporary debugging change.
parent
03cd9e19
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
src/map/if/ifDec16.c
+18
-3
No files found.
src/map/if/ifDec16.c
View file @
4a937ef3
...
@@ -689,7 +689,10 @@ void If_CluVerify3( word * pF, int nVars, If_Grp_t * g, If_Grp_t * g2, If_Grp_t
...
@@ -689,7 +689,10 @@ void If_CluVerify3( word * pF, int nVars, If_Grp_t * g, If_Grp_t * g2, If_Grp_t
If_CluInitTruthTables
();
If_CluInitTruthTables
();
for
(
i
=
0
;
i
<
g
->
nVars
;
i
++
)
for
(
i
=
0
;
i
<
g
->
nVars
;
i
++
)
{
If_CluCopy
(
pTTFans
[
i
],
TruthAll
[
g
->
pVars
[
i
]],
nVars
);
If_CluCopy
(
pTTFans
[
i
],
TruthAll
[
g
->
pVars
[
i
]],
nVars
);
Kit_DsdPrintFromTruth
(
(
unsigned
*
)
pTTFans
[
i
],
nVars
);
printf
(
"
\n
"
);
}
If_CluComposeLut
(
nVars
,
g
,
&
BStruth
,
pTTFans
,
pTTWire
);
If_CluComposeLut
(
nVars
,
g
,
&
BStruth
,
pTTFans
,
pTTWire
);
for
(
i
=
0
;
i
<
g2
->
nVars
;
i
++
)
for
(
i
=
0
;
i
<
g2
->
nVars
;
i
++
)
...
@@ -1966,7 +1969,7 @@ int If_CutPerformCheck16( If_Man_t * p, unsigned * pTruth, int nVars, int nLeave
...
@@ -1966,7 +1969,7 @@ int If_CutPerformCheck16( If_Man_t * p, unsigned * pTruth, int nVars, int nLeave
// testing procedure
// testing procedure
void
If_CluTest
()
void
If_CluTest
3
()
{
{
// word t = 0xff00f0f0ccccaaaa;
// word t = 0xff00f0f0ccccaaaa;
// word t = 0xfedcba9876543210;
// word t = 0xfedcba9876543210;
...
@@ -2030,8 +2033,20 @@ void If_CluTest()
...
@@ -2030,8 +2033,20 @@ void If_CluTest()
// If_CluPrintGroup( &G );
// If_CluPrintGroup( &G );
}
}
void
If_CluTest
()
{
word
pF
[
1024
]
=
{
0
};
If_Grp_t
G
=
{
6
,
4
,
{
'e'
-
'a'
,
'f'
-
'a'
,
'c'
-
'a'
,
'a'
-
'a'
,
'b'
-
'a'
,
'g'
-
'a'
}
};
If_Grp_t
G2
=
{
6
,
4
,
{
'e'
-
'a'
,
'f'
-
'a'
,
'c'
-
'a'
,
'a'
-
'a'
,
'b'
-
'a'
,
'g'
-
'a'
}
};
If_Grp_t
R
=
{
5
,
0
,
{
'j'
-
'a'
,
'k'
-
'a'
,
'd'
-
'a'
,
'h'
-
'a'
,
'i'
-
'a'
}
};
word
BStruth
=
0x70050367E00A0C6E
;
word
BStruth2
=
0xFFAACC88E0A0C080
;
word
FStruth
=
0x003F6FFF
;
//F = 70050367E00A0C6E(a,b,c,d,e,f) Vars = 6 Myu = 4 { e f c a b g }
//F = FFAACC88E0A0C080(a,b,c,d,e,f) Vars = 6 Myu = 4 { e f c a b g }
//F = 003F6FFF(a,b,c,d,e) Vars = 5 Myu = 0 { j k d h i }
If_CluVerify3
(
pF
,
9
,
&
G
,
&
G2
,
&
R
,
BStruth
,
BStruth2
,
FStruth
);
}
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
/// END OF FILE ///
...
...
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