mirror of https://github.com/YosysHQ/abc.git
read_cex: Allow reading cex that has extra registers
This commit is contained in:
parent
09a7e6dac7
commit
69ffaa0912
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue