Unverified Commit 18634305 by Jannis Harder Committed by GitHub

Merge pull request #16 from jix/read_cex_chagnes

read_cex: Allow reading cex that has extra registers
parents 09a7e6da 69ffaa09
...@@ -777,6 +777,12 @@ int Abc_NtkReadCexFile( char * pFileName, Abc_Ntk_t * pNtk, Abc_Cex_t ** ppCex, ...@@ -777,6 +777,12 @@ int Abc_NtkReadCexFile( char * pFileName, Abc_Ntk_t * pNtk, Abc_Cex_t ** ppCex,
} }
nRegs = Vec_IntSize(vNums); nRegs = Vec_IntSize(vNums);
} }
else if ( nRegs > nRegsNtk )
{
printf( "WARNING: Register number is larger then in Ntk. Truncating.\n" );
Vec_IntShrink( vNums, nRegsNtk );
nRegs = nRegsNtk;
}
state = 3; state = 3;
break; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment