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
96b9192c
Commit
96b9192c
authored
Jul 08, 2021
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Experiments with MUX decomposition.
parent
5a135c87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
src/aig/gia/giaSimBase.c
+1
-0
src/map/if/ifCut.c
+4
-4
No files found.
src/aig/gia/giaSimBase.c
View file @
96b9192c
...
@@ -211,6 +211,7 @@ Gia_Man_t * Gia_ManPerformMuxDec( Gia_Man_t * p )
...
@@ -211,6 +211,7 @@ Gia_Man_t * Gia_ManPerformMuxDec( Gia_Man_t * p )
Gia_ManHashAlloc
(
pNew
);
Gia_ManHashAlloc
(
pNew
);
for
(
o
=
0
;
o
<
Gia_ManCoNum
(
p
);
o
++
)
for
(
o
=
0
;
o
<
Gia_ManCoNum
(
p
);
o
++
)
{
{
Abc_TtReverseVars
(
pRes
+
o
*
nWords
,
nWords
);
Vec_IntClear
(
vDatas
);
Vec_IntClear
(
vDatas
);
for
(
i
=
0
;
i
<
nWords
;
i
++
)
for
(
i
=
0
;
i
<
nWords
;
i
++
)
Vec_IntPush
(
vDatas
,
Kit_TruthToGia
(
pNew
,
(
unsigned
*
)(
pRes
+
o
*
nWords
+
i
),
6
,
vMemory
,
vLeaves
,
1
)
);
Vec_IntPush
(
vDatas
,
Kit_TruthToGia
(
pNew
,
(
unsigned
*
)(
pRes
+
o
*
nWords
+
i
),
6
,
vMemory
,
vLeaves
,
1
)
);
...
...
src/map/if/ifCut.c
View file @
96b9192c
...
@@ -1219,8 +1219,8 @@ float If_CutEdgeDerefed( If_Man_t * p, If_Cut_t * pCut )
...
@@ -1219,8 +1219,8 @@ float If_CutEdgeDerefed( If_Man_t * p, If_Cut_t * pCut )
return
pCut
->
nLeaves
;
return
pCut
->
nLeaves
;
aResult2
=
If_CutEdgeRef
(
p
,
pCut
);
aResult2
=
If_CutEdgeRef
(
p
,
pCut
);
aResult
=
If_CutEdgeDeref
(
p
,
pCut
);
aResult
=
If_CutEdgeDeref
(
p
,
pCut
);
assert
(
aResult
>
aResult2
-
3
*
p
->
fEpsilon
);
//
assert( aResult > aResult2 - 3*p->fEpsilon );
assert
(
aResult
<
aResult2
+
3
*
p
->
fEpsilon
);
//
assert( aResult < aResult2 + 3*p->fEpsilon );
return
aResult
;
return
aResult
;
}
}
...
@@ -1242,8 +1242,8 @@ float If_CutEdgeRefed( If_Man_t * p, If_Cut_t * pCut )
...
@@ -1242,8 +1242,8 @@ float If_CutEdgeRefed( If_Man_t * p, If_Cut_t * pCut )
return
pCut
->
nLeaves
;
return
pCut
->
nLeaves
;
aResult2
=
If_CutEdgeDeref
(
p
,
pCut
);
aResult2
=
If_CutEdgeDeref
(
p
,
pCut
);
aResult
=
If_CutEdgeRef
(
p
,
pCut
);
aResult
=
If_CutEdgeRef
(
p
,
pCut
);
assert
(
aResult
>
aResult2
-
p
->
fEpsilon
);
//
assert( aResult > aResult2 - p->fEpsilon );
assert
(
aResult
<
aResult2
+
p
->
fEpsilon
);
//
assert( aResult < aResult2 + p->fEpsilon );
return
aResult
;
return
aResult
;
}
}
...
...
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