fixes
This commit is contained in:
parent
102e54ba7d
commit
1600bb44a0
|
@ -69,10 +69,9 @@ unsigned int browse(struct Automate* pAutomate, const char* pString, const char
|
||||||
/* (1) Check current state choices */
|
/* (1) Check current state choices */
|
||||||
dotmem[c] = pAutomate->dCurrent;
|
dotmem[c] = pAutomate->dCurrent;
|
||||||
dotPtr = pAutomate->dot[dotmem[c]];
|
dotPtr = pAutomate->dot[dotmem[c]];
|
||||||
indexmem[c] = strIndex;
|
i = ( indexmem[c] == strIndex ) ? pathmem[c] : 0;
|
||||||
|
// indexmem[c] = strIndex;
|
||||||
l = dotPtr.n;
|
l = dotPtr.n;
|
||||||
i = pathmem[c];
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* (2) If no more path for this branch -> exit */
|
/* (2) If no more path for this branch -> exit */
|
||||||
|
@ -197,6 +196,7 @@ unsigned int browse(struct Automate* pAutomate, const char* pString, const char
|
||||||
pAutomate->path[c] = pAutomate->dCurrent;
|
pAutomate->path[c] = pAutomate->dCurrent;
|
||||||
|
|
||||||
|
|
||||||
|
indexmem[c] = strIndex;
|
||||||
pathmem[c] = 0;
|
pathmem[c] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -452,8 +452,8 @@ void mergeAutomate(struct Automate* pMaster, const char pSlaveIndex){
|
||||||
/* (6) For each @pSlave duplicated dot, add dot's edges to @pMaster */
|
/* (6) For each @pSlave duplicated dot, add dot's edges to @pMaster */
|
||||||
|
|
||||||
// {1} Direct out from @pSlave replacement //
|
// {1} Direct out from @pSlave replacement //
|
||||||
(ADB&0x01) && printf(" OUT: direct link from MASTER.dot.%d to MASTER.dot.%d\n", dotOffset+pSlave->dots-1, pMaster->dot[dot].dot[edge]) ;
|
(ADB&0x01) && printf(" OUT: direct link from MASTER.dot.%d to MASTER.dot.%d\n", dotOffset+pSlave->dFinal, pMaster->dot[dot].dot[edge]) ;
|
||||||
linkDots(pMaster, dotOffset+pSlave->dots-1, pMaster->dot[dot].dot[edge], DIRECT_T, 0);
|
linkDots(pMaster, dotOffset+pSlave->dFinal, pMaster->dot[dot].dot[edge], DIRECT_T, 0);
|
||||||
|
|
||||||
// {2} Direct link to @pSlave replacement //
|
// {2} Direct link to @pSlave replacement //
|
||||||
pMaster->dot[dot].type[edge] = DIRECT_T;
|
pMaster->dot[dot].type[edge] = DIRECT_T;
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
} AutomateType;
|
} AutomateType;
|
||||||
|
|
||||||
|
|
||||||
#define ADB 0x01
|
#define ADB 0x00
|
||||||
|
|
||||||
struct AutomateDot{
|
struct AutomateDot{
|
||||||
char n; // number of edges
|
char n; // number of edges
|
||||||
|
|
Loading…
Reference in New Issue