update test case
This commit is contained in:
parent
d502191a59
commit
984f302353
|
@ -297,9 +297,10 @@ void fstStateCompileForAnyTrans(FstCountingWriter *w, CompiledAddr addr, FstBuil
|
||||||
// any value greater than or equal to the number of transitions in
|
// any value greater than or equal to the number of transitions in
|
||||||
// this node indicates an absent transition.
|
// this node indicates an absent transition.
|
||||||
uint8_t *index = (uint8_t *)malloc(sizeof(uint8_t) * 256);
|
uint8_t *index = (uint8_t *)malloc(sizeof(uint8_t) * 256);
|
||||||
for (uint8_t i = 0; i < 256; i++) {
|
memset(index, 255, sizeof(uint8_t) * 256);
|
||||||
index[i] = 255;
|
///for (uint8_t i = 0; i < 256; i++) {
|
||||||
}
|
// index[i] = 255;
|
||||||
|
///}
|
||||||
for (size_t i = 0; i < sz; i++) {
|
for (size_t i = 0; i < sz; i++) {
|
||||||
FstTransition *t = taosArrayGet(node->trans, i);
|
FstTransition *t = taosArrayGet(node->trans, i);
|
||||||
index[t->inp] = i;
|
index[t->inp] = i;
|
||||||
|
@ -1126,6 +1127,7 @@ FstBoundWithData* fstBoundStateCreate(FstBound type, FstSlice *data) {
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool fstBoundWithDataExceededBy(FstBoundWithData *bound, FstSlice *slice) {
|
bool fstBoundWithDataExceededBy(FstBoundWithData *bound, FstSlice *slice) {
|
||||||
int comp = fstSliceCompare(slice, &bound->data);
|
int comp = fstSliceCompare(slice, &bound->data);
|
||||||
if (bound->type == Included) {
|
if (bound->type == Included) {
|
||||||
|
@ -1378,7 +1380,9 @@ FstStreamBuilder *fstStreamBuilderCreate(Fst *fst, Automation *aut) {
|
||||||
}
|
}
|
||||||
void fstStreamBuilderDestroy(FstStreamBuilder *b) {
|
void fstStreamBuilderDestroy(FstStreamBuilder *b) {
|
||||||
fstSliceDestroy(&b->min->data);
|
fstSliceDestroy(&b->min->data);
|
||||||
|
tfree(b->min);
|
||||||
fstSliceDestroy(&b->max->data);
|
fstSliceDestroy(&b->max->data);
|
||||||
|
tfree(b->max);
|
||||||
free(b);
|
free(b);
|
||||||
}
|
}
|
||||||
FstStreamBuilder *fstStreamBuilderRange(FstStreamBuilder *b, FstSlice *val, RangeType type) {
|
FstStreamBuilder *fstStreamBuilderRange(FstStreamBuilder *b, FstSlice *val, RangeType type) {
|
||||||
|
|
Loading…
Reference in New Issue