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
f6dc4a58
Commit
f6dc4a58
authored
Jan 02, 2020
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making sure arrival time of constant node is -infinity.
parent
c4b12fae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
src/map/if/ifMap.c
+2
-0
src/opt/lpk/lpkMux.c
+34
-0
No files found.
src/map/if/ifMap.c
View file @
f6dc4a58
...
...
@@ -633,6 +633,8 @@ int If_ManPerformMappingRound( If_Man_t * p, int nCutsUsed, int Mode, int fPrepr
}
else
if
(
If_ObjIsConst1
(
pObj
)
)
{
arrTime
=
-
IF_INFINITY
;
If_ObjSetArrTime
(
pObj
,
arrTime
);
}
else
assert
(
0
);
...
...
src/opt/lpk/lpkMux.c
View file @
f6dc4a58
...
...
@@ -243,6 +243,40 @@ If_Obj_t * Lpk_MapSuppRedDec_rec( Lpk_Man_t * p, unsigned * pTruth, int nVars, I
return
pObjNew
;
}
/**Function*************************************************************
Synopsis [Evaluates 4-LUT decompositions of larger functions.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void
Lpk_TryDec
(
word
*
pTruth
,
int
nVars
)
{
extern
word
If_Dec6Perform
(
word
t
,
int
fDerive
);
extern
void
If_Dec6Verify
(
word
t
,
word
z
);
int
nWords
=
Abc_Truth6WordNum
(
nVars
);
assert
(
nVars
==
8
);
printf
(
"%d"
,
If_Dec6Perform
(
pTruth
[
0
],
1
)
>
0
);
printf
(
"%d"
,
If_Dec6Perform
(
pTruth
[
1
],
1
)
>
0
);
printf
(
"%d"
,
If_Dec6Perform
(
pTruth
[
2
],
1
)
>
0
);
printf
(
"%d"
,
If_Dec6Perform
(
pTruth
[
3
],
1
)
>
0
);
printf
(
"
\n
"
);
}
void
Lpk_TryDecTest
()
{
word
t0
=
ABC_CONST
(
0x4f1ead396f247a04
);
word
t1
=
ABC_CONST
(
0x10bdb210c006eab5
);
word
t2
=
ABC_CONST
(
0x68ab4bfa8acb7a13
);
word
t3
=
ABC_CONST
(
0xb14ede67096c6eed
);
word
Truth
[
4
]
=
{
t0
,
t1
,
t2
,
t3
};
Lpk_TryDec
(
Truth
,
8
);
}
////////////////////////////////////////////////////////////////////////
/// 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