Lines Matching full:if

18     with this program; if not, write to the Free Software Foundation, Inc.,
84 #define DISPLAYLEVEL(l, ...) if (displayLevel>=l) { DISPLAY(__VA_ARGS__); }
85 #define DISPLAYUPDATE(l, ...) if (displayLevel>=l) { \
86 if ((FUZ_GetClockSpan(g_clockTime) > refreshRate) || (displayLevel>=4)) \
88 if (displayLevel>=4) fflush(stdout); } }
109 return clock() - clockStart; /* works even if overflow; max span ~ 30 mn */ in FUZ_GetClockSpan()
138 if (FUZ_RAND15BITS < P32) { in FUZ_fillCompressibleNoiseBuffer()
160 if (v32==0) return 0; in FUZ_highbit()
169 #define CHECK_V(v,f) v = f; if (LZ4F_isError(v)) { fprintf(stderr, "%s \n", LZ4F_getErrorName(v)); …
188 if (!CNBuffer || !compressedBuffer || !decodedBuffer) { in basicTests()
198 if (cBound < 64 KB) goto _output_error; in basicTests()
209 if (cBound > 64 KB) goto _output_error; in basicTests()
216 if (cBound < 64 KB) goto _output_error; in basicTests()
236if (avail_in != fhs) goto _output_error; /* must consume all, since header size is supposed to be… in basicTests()
267 if (crcDest != crcOrig) goto _output_error; } in basicTests()
280 if (decResult != missingBytes) { in basicTests()
290 if (decResult != 0) goto _output_error; /* should finish now */ in basicTests()
292 if (op>oend) { DISPLAY("decompression write overflow \n"); goto _output_error; } in basicTests()
294 if (crcDest != crcOrig) goto _output_error; in basicTests()
310 if (LZ4F_getErrorCode(fiError) != LZ4F_ERROR_frameHeader_incomplete) { in basicTests()
321 if (LZ4F_getErrorCode(fiError) != LZ4F_ERROR_frameHeader_incomplete) { in basicTests()
345 if (!LZ4F_isError(decompressError)) goto _output_error; in basicTests()
367 if (crcDest != crcOrig) goto _output_error; in basicTests()
404 if (iSize > (size_t)(iend-ip)) iSize = (size_t)(iend-ip); in basicTests()
411 if (crcDest != crcOrig) goto _output_error; in basicTests()
464 if (decodedSize != testSize) goto _output_error; in basicTests()
465 if (iSize != cSize) goto _output_error; in basicTests()
468 if (crcDest != crcSrc) goto _output_error; in basicTests()
508 if (!LZ4F_isError(cErr)) goto _output_error; in basicTests()
530 if (prefs.frameInfo.dictID != dictID) goto _output_error; in basicTests()
542 if (cdict == NULL) goto _output_error; in basicTests()
561if ((LZ4_DISTANCE_MAX > dictSize) && (cSizeWithDict >= cSizeNoDict)) goto _output_error; /* must … in basicTests()
574 if (compressedSize != cSizeWithDict) goto _output_error; in basicTests()
575 if (decodedSize != dictSize) goto _output_error; in basicTests()
577 if (crcDest != crcOrig) goto _output_error; } in basicTests()
631 if (compressedSize != cSizeContiguous) goto _output_error; in basicTests()
632 if (decodedSize != inSize) goto _output_error; in basicTests()
635 if (crcDest != crcOrig) goto _output_error; } in basicTests()
667 if (compressedSize != cSizeIndep) goto _output_error; in basicTests()
668 if (decodedSize != inSize) goto _output_error; in basicTests()
671 if (crcDest != crcOrig) goto _output_error; } in basicTests()
693 if(!LZ4F_isError(result) || in basicTests()
699 if(!LZ4F_isError(result) || in basicTests()
724 if (iSize > (size_t)(iend-ip)) iSize = (size_t)(iend-ip); in basicTests()
743 if (iSize > (size_t)(iend-ip)) iSize = (size_t)(iend-ip); in basicTests()
759 if (iSize > (size_t)(iend-ip)) iSize = (size_t)(iend-ip); in basicTests()
787 if (displayLevel >= 2) { in locateBuffDiff()
792 if (o_scenario != o_contiguous) { in locateBuffDiff()
798 if (p != size) { in locateBuffDiff()
807 # define CHECK(cond, ...) { if (cond) { EXIT_MSG(__VA_ARGS__); } }
847 if (o_scenario == o_overwrite) dOptions.stableDst = 0; /* overwrite mode */ in test_lz4f_decompression_wBuffers()
848 if (sentinelTest) op[oSizeMax] = mark; in test_lz4f_decompression_wBuffers()
863 if (sentinelTest) { in test_lz4f_decompression_wBuffers()
868 if (LZ4F_getErrorCode(moreToFlush) == LZ4F_ERROR_contentChecksum_invalid) { in test_lz4f_decompression_wBuffers()
869 if (findErrorPos) DISPLAYLEVEL(2, "checksum error detected \n"); in test_lz4f_decompression_wBuffers()
870 if (findErrorPos) locateBuffDiff(srcRef, dst, decompressedSize, o_scenario); in test_lz4f_decompression_wBuffers()
872 if (LZ4F_isError(moreToFlush)) return moreToFlush; in test_lz4f_decompression_wBuffers()
878 if (o_scenario == o_noncontiguous) { in test_lz4f_decompression_wBuffers()
879if (op == oend) return LZ4F_ERROR_GENERIC; /* can theoretically happen with bogus data */ in test_lz4f_decompression_wBuffers()
882 if (o_scenario==o_overwrite) op = (BYTE*)dst; /* overwrite destination */ in test_lz4f_decompression_wBuffers()
883 if ( (op == oend) /* no more room for output; can happen with bogus input */ in test_lz4f_decompression_wBuffers()
887 if (moreToFlush != 0) return LZ4F_ERROR_decompressionFailed; in test_lz4f_decompression_wBuffers()
888 if (totalOut) { /* otherwise, it's a skippable frame */ in test_lz4f_decompression_wBuffers()
890 if (crcDecoded != crcOrig) { in test_lz4f_decompression_wBuffers()
891 if (findErrorPos) locateBuffDiff(srcRef, dst, decompressedSize, o_scenario); in test_lz4f_decompression_wBuffers()
983 if ((FUZ_rand(&randState) & 0xF) == 1) prefsPtr = NULL; in fuzzerTests()
987 if ((FUZ_rand(&randState) & 0xFFF) == 0) { in fuzzerTests()
994 } else if ((FUZ_rand(&randState) & 0xF) == 2) { /* single pass compression (simple) */ in fuzzerTests()
1028 if (forceFlush) { in fuzzerTests()
1033 if ((FUZ_rand(&randState) % 1024) == 3) { in fuzzerTests()
1038 if ((prefsPtr!= NULL) && prefsPtr->frameInfo.blockChecksumFlag) { in fuzzerTests()
1061 if (LZ4F_isError(flushedSize)) { in fuzzerTests()
1062 if (tooSmallDstEnd) /* failure is allowed */ continue; in fuzzerTests()
1080 #if 1 in fuzzerTests()
1091 if (pos >= cSize) break; in fuzzerTests()
1122 if (use_pause) { in fuzzerTests()
1163 if(!argument) continue; /* Protection if argument empty */ in main()
1166 if (argument[0]=='-') { in main()
1167 if (!strcmp(argument, "--no-prompt")) { in main()
1254 if (proba<0) proba=0; in main()
1255 if (proba>100) proba=100; in main()
1268 if (!seedset) { in main()
1274 if (proba!=FUZ_COMPRESSIBILITY_DEFAULT) DISPLAY("Compressibility : %i%%\n", proba); in main()
1278 if (testNb==0) result = basicTests(seed, ((double)proba) / 100); in main()
1279 if (result) return 1; in main()