From 376bf3a70392d683322a3bb74a3f5f623848b8e5 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Sat, 7 Jan 2012 11:19:03 +0700 Subject: Bug fix: changing output number to 0 in the CEX after ORing POs. --- src/base/abci/abc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/base/abci') diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index f1a8a1e6..36f948f5 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -5789,6 +5789,9 @@ int Abc_CommandOrPos( Abc_Frame_t * pAbc, int argc, char ** argv ) Abc_Print( -1, "ORing the POs has failed.\n" ); return 1; } + // Bug fix: there is now only one PO. make sure the counterexample points to the right one + if ( pAbc->pCex ) + pAbc->pCex->iPo = 0; // replace the current network // Abc_FrameReplaceCurrentNetwork( pAbc, pNtkRes ); return 0; -- cgit v1.2.3