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
2c50c2c5
Commit
2c50c2c5
authored
Jan 20, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preserving CI/CO varible names when moving between the main space and &-space.
parent
7d454512
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
src/base/abci/abc.c
+25
-8
No files found.
src/base/abci/abc.c
View file @
2c50c2c5
...
...
@@ -504,6 +504,18 @@ void Abc_CommandUpdate9( Abc_Frame_t * pAbc, Gia_Man_t * pNew )
Abc_Print
(
-
1
,
"Abc_CommandUpdate9(): Tranformation has failed.
\n
"
);
return
;
}
// transfer names
if
(
!
pNew
->
vNamesIn
&&
pAbc
->
pGia
&&
pAbc
->
pGia
->
vNamesIn
&&
Gia_ManCiNum
(
pNew
)
==
Vec_PtrSize
(
pAbc
->
pGia
->
vNamesIn
))
{
pNew
->
vNamesIn
=
pAbc
->
pGia
->
vNamesIn
;
pAbc
->
pGia
->
vNamesIn
=
NULL
;
}
if
(
!
pNew
->
vNamesOut
&&
pAbc
->
pGia
&&
pAbc
->
pGia
->
vNamesOut
&&
Gia_ManCoNum
(
pNew
)
==
Vec_PtrSize
(
pAbc
->
pGia
->
vNamesOut
))
{
pNew
->
vNamesOut
=
pAbc
->
pGia
->
vNamesOut
;
pAbc
->
pGia
->
vNamesOut
=
NULL
;
}
// update
if
(
pAbc
->
pGia2
)
Gia_ManStop
(
pAbc
->
pGia2
);
pAbc
->
pGia2
=
pAbc
->
pGia
;
...
...
@@ -24728,15 +24740,8 @@ int Abc_CommandAbc9Put( Abc_Frame_t * pAbc, int argc, char ** argv )
extern
Abc_Ntk_t
*
Abc_NtkFromDarChoices
(
Abc_Ntk_t
*
pNtkOld
,
Aig_Man_t
*
pMan
);
Aig_Man_t
*
pMan
;
Abc_Ntk_t
*
pNtk
=
Abc_FrameReadNtk
(
pAbc
);
int
c
;
int
fVerbose
;
pNtk
=
Abc_FrameReadNtk
(
pAbc
);
int
c
,
fVerbose
=
0
;
// set defaults
fVerbose
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"vh"
)
)
!=
EOF
)
{
...
...
@@ -24778,6 +24783,18 @@ int Abc_CommandAbc9Put( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_NtkDelete
(
pNtkNoCh
);
Aig_ManStop
(
pMan
);
}
// transfer PI names to pNtk
if
(
pAbc
->
pGia
->
vNamesIn
)
{
Abc_Obj_t
*
pObj
;
int
i
;
Abc_NtkForEachCi
(
pNtk
,
pObj
,
i
)
{
if
(
i
<
Vec_PtrSize
(
pAbc
->
pGia
->
vNamesIn
))
{
Nm_ManDeleteIdName
(
pNtk
->
pManName
,
pObj
->
Id
);
Abc_ObjAssignName
(
pObj
,
Vec_PtrEntry
(
pAbc
->
pGia
->
vNamesIn
,
i
),
NULL
);
}
}
}
// replace the current network
Abc_FrameReplaceCurrentNetwork
(
pAbc
,
pNtk
);
Abc_FrameClearVerifStatus
(
pAbc
);
...
...
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