-
-
Save springmeyer/822b0676d0dc2823db38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/projects/MaskedVByte[master]$ make | |
/opt/llvm/bin/clang -fPIC -march=native -std=c99 -O3 -Wall -Wextra -pedantic -fsanitize=integer -c ./src/varintdecode.c -Iinclude | |
/opt/llvm/bin/clang -fPIC -march=native -std=c99 -O3 -Wall -Wextra -pedantic -fsanitize=integer -c ./src/varintencode.c -Iinclude | |
/opt/llvm/bin/clang -fPIC -march=native -std=c99 -O3 -Wall -Wextra -pedantic -fsanitize=integer -o unit ./src/unit.c -Iinclude varintdecode.o varintencode.o | |
/opt/llvm/bin/clang -fPIC -march=native -std=c99 -O3 -Wall -Wextra -pedantic -fsanitize=integer -o libmaskedvbyte.so.0.0.1 varintdecode.o varintencode.o -shared | |
~/projects/MaskedVByte[master]$ make test | |
./unit | |
length = 0 | |
Regular VByte | |
Delta VByte | |
length = 1 | |
Regular VByte | |
Delta VByte | |
length = 2 | |
Regular VByte | |
Delta VByte | |
length = 3 | |
Regular VByte | |
Delta VByte | |
length = 4 | |
Regular VByte | |
Delta VByte | |
length = 5 | |
Regular VByte | |
Delta VByte | |
length = 6 | |
Regular VByte | |
Delta VByte | |
length = 7 | |
Regular VByte | |
Delta VByte | |
length = 8 | |
Regular VByte | |
Delta VByte | |
length = 9 | |
Regular VByte | |
Delta VByte | |
length = 10 | |
Regular VByte | |
Delta VByte | |
length = 11 | |
Regular VByte | |
Delta VByte | |
length = 12 | |
Regular VByte | |
Delta VByte | |
length = 13 | |
Regular VByte | |
Delta VByte | |
src/unit.c:50:21: runtime error: unsigned integer overflow: 387420489 * 12 cannot be represented in type 'unsigned int' | |
src/varintencode.c:7:30: runtime error: unsigned integer overflow: 354078572 - 4261625379 cannot be represented in type 'unsigned int' | |
src/varintdecode.c:297:8: runtime error: unsigned integer overflow: 4261625379 + 387420489 cannot be represented in type 'unsigned int' | |
src/varintdecode.c:1748:10: runtime error: unsigned integer overflow: 4261625379 + 387420489 cannot be represented in type 'unsigned int' | |
length = 14 | |
Regular VByte | |
Delta VByte | |
length = 15 | |
Regular VByte | |
Delta VByte | |
length = 16 | |
Regular VByte | |
Delta VByte | |
length = 17 | |
Regular VByte | |
Delta VByte | |
length = 18 | |
Regular VByte | |
Delta VByte | |
length = 19 | |
Regular VByte | |
Delta VByte | |
length = 20 | |
Regular VByte | |
Delta VByte | |
length = 21 | |
Regular VByte | |
Delta VByte | |
length = 22 | |
Regular VByte | |
Delta VByte | |
length = 23 | |
Regular VByte | |
Delta VByte | |
length = 24 | |
Regular VByte | |
Delta VByte | |
length = 25 | |
Regular VByte | |
Delta VByte | |
length = 26 | |
Regular VByte | |
Delta VByte | |
length = 27 | |
Regular VByte | |
Delta VByte | |
length = 28 | |
Regular VByte | |
Delta VByte | |
length = 29 | |
Regular VByte | |
Delta VByte | |
length = 30 | |
Regular VByte | |
Delta VByte | |
length = 31 | |
Regular VByte | |
Delta VByte | |
length = 32 | |
Regular VByte | |
Delta VByte | |
length = 33 | |
Regular VByte | |
Delta VByte | |
length = 34 | |
Regular VByte | |
Delta VByte | |
length = 35 | |
Regular VByte | |
Delta VByte | |
src/varintdecode.c:292:9: runtime error: unsigned integer overflow: 4261625379 + 129140163 cannot be represented in type 'unsigned int' | |
length = 36 | |
Regular VByte | |
Delta VByte | |
length = 37 | |
Regular VByte | |
Delta VByte | |
length = 38 | |
Regular VByte | |
Delta VByte | |
length = 39 | |
Regular VByte | |
Delta VByte | |
length = 40 | |
Regular VByte | |
Delta VByte | |
length = 41 | |
Regular VByte | |
Delta VByte | |
length = 42 | |
Regular VByte | |
Delta VByte | |
length = 43 | |
Regular VByte | |
Delta VByte | |
length = 44 | |
Regular VByte | |
Delta VByte | |
length = 45 | |
Regular VByte | |
Delta VByte | |
length = 46 | |
Regular VByte | |
Delta VByte | |
length = 47 | |
Regular VByte | |
Delta VByte | |
length = 48 | |
Regular VByte | |
Delta VByte | |
length = 49 | |
Regular VByte | |
Delta VByte | |
length = 50 | |
Regular VByte | |
Delta VByte | |
length = 51 | |
Regular VByte | |
Delta VByte | |
length = 52 | |
Regular VByte | |
Delta VByte | |
length = 53 | |
Regular VByte | |
Delta VByte | |
length = 54 | |
Regular VByte | |
Delta VByte | |
length = 55 | |
Regular VByte | |
Delta VByte | |
length = 56 | |
Regular VByte | |
Delta VByte | |
length = 57 | |
Regular VByte | |
Delta VByte | |
length = 58 | |
Regular VByte | |
Delta VByte | |
length = 59 | |
Regular VByte | |
Delta VByte | |
length = 60 | |
Regular VByte | |
Delta VByte | |
length = 61 | |
Regular VByte | |
Delta VByte | |
length = 62 | |
Regular VByte | |
Delta VByte | |
length = 63 | |
Regular VByte | |
Delta VByte | |
length = 64 | |
Regular VByte | |
Delta VByte | |
length = 65 | |
Regular VByte | |
Delta VByte | |
length = 66 | |
Regular VByte | |
Delta VByte | |
length = 67 | |
Regular VByte | |
Delta VByte | |
length = 68 | |
Regular VByte | |
Delta VByte | |
length = 69 | |
Regular VByte | |
Delta VByte | |
length = 70 | |
Regular VByte | |
Delta VByte | |
length = 71 | |
Regular VByte | |
Delta VByte | |
length = 72 | |
Regular VByte | |
Delta VByte | |
length = 73 | |
Regular VByte | |
Delta VByte | |
length = 74 | |
Regular VByte | |
Delta VByte | |
length = 75 | |
Regular VByte | |
Delta VByte | |
length = 76 | |
Regular VByte | |
Delta VByte | |
length = 77 | |
Regular VByte | |
Delta VByte | |
length = 78 | |
Regular VByte | |
Delta VByte | |
length = 79 | |
Regular VByte | |
Delta VByte | |
length = 80 | |
Regular VByte | |
Delta VByte | |
length = 81 | |
Regular VByte | |
Delta VByte | |
length = 82 | |
Regular VByte | |
Delta VByte | |
length = 83 | |
Regular VByte | |
Delta VByte | |
length = 84 | |
Regular VByte | |
Delta VByte | |
length = 85 | |
Regular VByte | |
Delta VByte | |
length = 86 | |
Regular VByte | |
Delta VByte | |
length = 87 | |
Regular VByte | |
Delta VByte | |
length = 88 | |
Regular VByte | |
Delta VByte | |
length = 89 | |
Regular VByte | |
Delta VByte | |
length = 90 | |
Regular VByte | |
Delta VByte | |
length = 91 | |
Regular VByte | |
Delta VByte | |
length = 92 | |
Regular VByte | |
Delta VByte | |
length = 93 | |
Regular VByte | |
Delta VByte | |
length = 94 | |
Regular VByte | |
Delta VByte | |
length = 95 | |
Regular VByte | |
Delta VByte | |
length = 96 | |
Regular VByte | |
Delta VByte | |
length = 97 | |
Regular VByte | |
Delta VByte | |
length = 98 | |
Regular VByte | |
Delta VByte | |
length = 99 | |
Regular VByte | |
Delta VByte | |
length = 100 | |
Regular VByte | |
Delta VByte | |
length = 101 | |
Regular VByte | |
Delta VByte | |
length = 102 | |
Regular VByte | |
Delta VByte | |
length = 103 | |
Regular VByte | |
Delta VByte | |
length = 104 | |
Regular VByte | |
Delta VByte | |
length = 105 | |
Regular VByte | |
Delta VByte | |
length = 106 | |
Regular VByte | |
Delta VByte | |
length = 107 | |
Regular VByte | |
Delta VByte | |
length = 108 | |
Regular VByte | |
Delta VByte | |
length = 109 | |
Regular VByte | |
Delta VByte | |
length = 110 | |
Regular VByte | |
Delta VByte | |
length = 111 | |
Regular VByte | |
Delta VByte | |
length = 112 | |
Regular VByte | |
Delta VByte | |
length = 113 | |
Regular VByte | |
Delta VByte | |
length = 114 | |
Regular VByte | |
Delta VByte | |
length = 115 | |
Regular VByte | |
Delta VByte | |
length = 116 | |
Regular VByte | |
Delta VByte | |
length = 117 | |
Regular VByte | |
Delta VByte | |
length = 118 | |
Regular VByte | |
Delta VByte | |
length = 119 | |
Regular VByte | |
Delta VByte | |
length = 120 | |
Regular VByte | |
Delta VByte | |
length = 121 | |
Regular VByte | |
Delta VByte | |
length = 122 | |
Regular VByte | |
Delta VByte | |
length = 123 | |
Regular VByte | |
Delta VByte | |
length = 124 | |
Regular VByte | |
Delta VByte | |
length = 125 | |
Regular VByte | |
Delta VByte | |
length = 126 | |
Regular VByte | |
Delta VByte | |
length = 127 | |
Regular VByte | |
Delta VByte | |
length = 128 | |
Regular VByte | |
Delta VByte | |
length = 256 | |
Regular VByte | |
Delta VByte | |
length = 512 | |
Regular VByte | |
Delta VByte | |
length = 1024 | |
Regular VByte | |
Delta VByte | |
length = 2048 | |
Regular VByte | |
Delta VByte | |
length = 4096 | |
Regular VByte | |
Delta VByte | |
Code looks good. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment