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
a68593c4
Commit
a68593c4
authored
Dec 08, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deriving CEX after phase/tempor/reparam.
parent
8e5d771f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
src/base/abci/abc.c
+7
-8
No files found.
src/base/abci/abc.c
View file @
a68593c4
...
@@ -17972,8 +17972,7 @@ int Abc_CommandDarPhase( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -17972,8 +17972,7 @@ int Abc_CommandDarPhase( Abc_Frame_t * pAbc, int argc, char ** argv )
return
1
;
return
1
;
}
}
pCexNew
=
Abc_CexTransformPhase
(
pAbc
->
pCex
,
Abc_NtkPiNum
(
pNtk
),
Abc_NtkPoNum
(
pNtk
),
Abc_NtkLatchNum
(
pNtk
)
);
pCexNew
=
Abc_CexTransformPhase
(
pAbc
->
pCex
,
Abc_NtkPiNum
(
pNtk
),
Abc_NtkPoNum
(
pNtk
),
Abc_NtkLatchNum
(
pNtk
)
);
Abc_CexFree
(
pAbc
->
pCex
);
Abc_FrameReplaceCex
(
pAbc
,
&
pCexNew
);
pAbc
->
pCex
=
pCexNew
;
return
0
;
return
0
;
}
}
if
(
!
Abc_NtkLatchNum
(
pNtk
)
)
if
(
!
Abc_NtkLatchNum
(
pNtk
)
)
...
@@ -21546,8 +21545,7 @@ int Abc_CommandTempor( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -21546,8 +21545,7 @@ int Abc_CommandTempor( Abc_Frame_t * pAbc, int argc, char ** argv )
return
1
;
return
1
;
}
}
pCexNew
=
Abc_CexTransformTempor
(
pAbc
->
pCex
,
Abc_NtkPiNum
(
pNtk
),
Abc_NtkPoNum
(
pNtk
),
Abc_NtkLatchNum
(
pNtk
)
);
pCexNew
=
Abc_CexTransformTempor
(
pAbc
->
pCex
,
Abc_NtkPiNum
(
pNtk
),
Abc_NtkPoNum
(
pNtk
),
Abc_NtkLatchNum
(
pNtk
)
);
Abc_CexFree
(
pAbc
->
pCex
);
Abc_FrameReplaceCex
(
pAbc
,
&
pCexNew
);
pAbc
->
pCex
=
pCexNew
;
return
0
;
return
0
;
}
}
// modify the current network
// modify the current network
...
@@ -22492,8 +22490,8 @@ int Abc_CommandReconcile( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -22492,8 +22490,8 @@ int Abc_CommandReconcile( Abc_Frame_t * pAbc, int argc, char ** argv )
extern
Aig_Man_t
*
Abc_NtkToDar
(
Abc_Ntk_t
*
pNtk
,
int
fExors
,
int
fRegisters
);
extern
Aig_Man_t
*
Abc_NtkToDar
(
Abc_Ntk_t
*
pNtk
,
int
fExors
,
int
fRegisters
);
extern
Abc_Cex_t
*
Llb4_Nonlin4NormalizeCex
(
Aig_Man_t
*
pAigOrg
,
Aig_Man_t
*
pAigRpm
,
Abc_Cex_t
*
pCexRpm
);
extern
Abc_Cex_t
*
Llb4_Nonlin4NormalizeCex
(
Aig_Man_t
*
pAigOrg
,
Aig_Man_t
*
pAigRpm
,
Abc_Cex_t
*
pCexRpm
);
Abc_Cex_t
*
pCex
;
Abc_Cex_t
*
pCex
;
Abc_Ntk_t
*
pNtk1
,
*
pNtk2
;
Abc_Ntk_t
*
pNtk1
=
NULL
,
*
pNtk2
=
NULL
;
Aig_Man_t
*
pAig1
,
*
pAig2
;
Aig_Man_t
*
pAig1
=
NULL
,
*
pAig2
=
NULL
;
int
c
;
int
c
;
Extra_UtilGetoptReset
();
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"h"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"h"
)
)
!=
EOF
)
...
@@ -22555,15 +22553,16 @@ int Abc_CommandReconcile( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -22555,15 +22553,16 @@ int Abc_CommandReconcile( Abc_Frame_t * pAbc, int argc, char ** argv )
pCex
=
Llb4_Nonlin4NormalizeCex
(
pAig1
,
pAig2
,
pAbc
->
pCex
);
pCex
=
Llb4_Nonlin4NormalizeCex
(
pAig1
,
pAig2
,
pAbc
->
pCex
);
Aig_ManStop
(
pAig1
);
Aig_ManStop
(
pAig1
);
Aig_ManStop
(
pAig2
);
Aig_ManStop
(
pAig2
);
Abc_NtkDelete
(
pNtk2
);
if
(
pNtk2
)
Abc_NtkDelete
(
pNtk2
);
if
(
pCex
==
NULL
)
if
(
pCex
==
NULL
)
{
{
Abc_Print
(
1
,
"Counter-example computation has failed.
\n
"
);
Abc_Print
(
1
,
"Counter-example computation has failed.
\n
"
);
Abc_NtkDelete
(
pNtk1
);
if
(
pNtk1
)
Abc_NtkDelete
(
pNtk1
);
return
1
;
return
1
;
}
}
// replace the current network
// replace the current network
if
(
pNtk1
)
Abc_FrameReplaceCurrentNetwork
(
pAbc
,
pNtk1
);
Abc_FrameReplaceCurrentNetwork
(
pAbc
,
pNtk1
);
// update the counter-example
// update the counter-example
pAbc
->
nFrames
=
pCex
->
iFrame
;
pAbc
->
nFrames
=
pCex
->
iFrame
;
...
...
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