printf("The number of symbols in the input patterns (%d) does not divide evenly on the number of test variables (%d).\n",Vec_IntSize(vTests),nFuncVars);
Vec_IntFree(vTests);
return;
}
// select algorithm
// select algorithm
if(Algo==1)
if(Algo==1)
{
{
assert(Gia_ManRegNum(p)>0);
assert(Gia_ManRegNum(p)>0);
nFuncVars=Gia_ManRegNum(p)+2*Gia_ManPiNum(p);
p0=Gia_ManFaultUnfold(p,0,fComplVars);
p0=Gia_ManFaultUnfold(p,0,fComplVars);
p1=Gia_ManFaultUnfold(p,1,fComplVars);
p1=Gia_ManFaultUnfold(p,1,fComplVars);
}
}
elseif(Algo==2)
elseif(Algo==2)
{
{
nFuncVars=Gia_ManCiNum(p);
p0=Gia_ManStuckAtUnfold(p,0,fComplVars);
p0=Gia_ManStuckAtUnfold(p,0,fComplVars);
p1=Gia_ManStuckAtUnfold(p,1,fComplVars);
p1=Gia_ManStuckAtUnfold(p,1,fComplVars);
}
}
elseif(Algo==3)
elseif(Algo==3)
{
{
nFuncVars=Gia_ManCiNum(p);
p0=Gia_ManFlipUnfold(p,0,fComplVars);
p0=Gia_ManFlipUnfold(p,0,fComplVars);
p1=Gia_ManFlipUnfold(p,1,fComplVars);
p1=Gia_ManFlipUnfold(p,1,fComplVars);
}
}
...
@@ -366,9 +467,36 @@ void Gia_ManFaultTest( Gia_Man_t * p, int Algo, int fComplVars, int nTimeOut, in
...
@@ -366,9 +467,36 @@ void Gia_ManFaultTest( Gia_Man_t * p, int Algo, int fComplVars, int nTimeOut, in