| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,7 +46,7 @@ class A | |||
| 46 | 46 | { | |
| 47 | 47 | C *c = new C(); | |
| 48 | 48 | B *b = B::make(c); | |
| 49 | - sink(b->c); // $ast,ir | ||
| 49 | + sink(b->c); // $ ast,ir | ||
| 50 | 50 | } | |
| 51 | 51 | ||
| 52 | 52 | void f2() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,9 +26,9 @@ class C | |||
| 26 | 26 | ||
| 27 | 27 | void func() | |
| 28 | 28 | { | |
| 29 | - sink(s1); // $ast,ir | ||
| 29 | + sink(s1); // $ ast,ir | ||
| 30 | 30 | sink(s2); // $ MISSING: ast,ir | |
| 31 | - sink(s3); // $ast,ir | ||
| 31 | + sink(s3); // $ ast,ir | ||
| 32 | 32 | sink(s4); // $ MISSING: ast,ir | |
| 33 | 33 | } | |
| 34 | 34 | }; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,7 +19,7 @@ class D { | |||
| 19 | 19 | }; | |
| 20 | 20 | ||
| 21 | 21 | static void sinkWrap(Box2* b2) { | |
| 22 | - sink(b2->getBox1()->getElem()); // $ast,ir=28:15 ast,ir=35:15 ast,ir=42:15 ast,ir=49:15 | ||
| 22 | + sink(b2->getBox1()->getElem()); // $ ast,ir=28:15 ast,ir=35:15 ast,ir=42:15 ast,ir=49:15 | ||
| 23 | 23 | } | |
| 24 | 24 | ||
| 25 | 25 | Box2* boxfield; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -48,25 +48,25 @@ struct S { | |||
| 48 | 48 | void test_setDirectly() { | |
| 49 | 49 | S s; | |
| 50 | 50 | s.setDirectly(user_input()); | |
| 51 | - sink(s.getDirectly()); // $ast ir | ||
| 51 | + sink(s.getDirectly()); // $ ast ir | ||
| 52 | 52 | } | |
| 53 | 53 | ||
| 54 | 54 | void test_setIndirectly() { | |
| 55 | 55 | S s; | |
| 56 | 56 | s.setIndirectly(user_input()); | |
| 57 | - sink(s.getIndirectly()); // $ast ir | ||
| 57 | + sink(s.getIndirectly()); // $ ast ir | ||
| 58 | 58 | } | |
| 59 | 59 | ||
| 60 | 60 | void test_setThroughNonMember() { | |
| 61 | 61 | S s; | |
| 62 | 62 | s.setThroughNonMember(user_input()); | |
| 63 | - sink(s.getThroughNonMember()); // $ast ir | ||
| 63 | + sink(s.getThroughNonMember()); // $ ast ir | ||
| 64 | 64 | } | |
| 65 | 65 | ||
| 66 | 66 | void test_nonMemberSetA() { | |
| 67 | 67 | S s; | |
| 68 | 68 | nonMemberSetA(&s, user_input()); | |
| 69 | - sink(nonMemberGetA(&s)); // $ast,ir | ||
| 69 | + sink(nonMemberGetA(&s)); // $ ast,ir | ||
| 70 | 70 | } | |
| 71 | 71 | ||
| 72 | 72 | //////////////////// | |
@@ -112,7 +112,7 @@ void test_outer_with_ptr(Outer *pouter) { | |||
| 112 | 112 | sink(outer.a); // $ ast,ir | |
| 113 | 113 | ||
| 114 | 114 | sink(pouter->inner_nested.a); // $ ast,ir | |
| 115 | - sink(pouter->inner_ptr->a); // $ast,ir | ||
| 115 | + sink(pouter->inner_ptr->a); // $ ast,ir | ||
| 116 | 116 | sink(pouter->a); // $ ast,ir | |
| 117 | 117 | } | |
| 118 | 118 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,7 +46,7 @@ int test4() { | |||
| 46 | 46 | } | |
| 47 | 47 | range(total); // $ MISSING: range=>=0 | |
| 48 | 48 | range(i); // $ range===2 | |
| 49 | - range(total + i); // $ range="<=Phi: i+2" MISSING: range===i+2 range=>=2 range=>=i+0 | ||
| 49 | + range(total + i); // $ range="<=Phi: i+2" MISSING: range===i+2 range=>=2 range=>=i+0 | ||
| 50 | 50 | return total + i; | |
| 51 | 51 | } | |
| 52 | 52 | ||
@@ -210,15 +210,15 @@ int test14(int x) { | |||
| 210 | 210 | int x3 = (int)(unsigned int)x; | |
| 211 | 211 | range(x3); | |
| 212 | 212 | char c0 = x; | |
| 213 | - range(c0); | ||
| 213 | + range(c0); | ||
| 214 | 214 | unsigned short s0 = x; | |
| 215 | 215 | range(s0); | |
| 216 | 216 | range(x0 + x1 + x2 + x3 + c0 + s0); // $ overflow=+ overflow=+- | |
| 217 | 217 | return x0 + x1 + x2 + x3 + c0 + s0; // $ overflow=+ overflow=+- | |
| 218 | 218 | } | |
| 219 | 219 | ||
| 220 | 220 | long long test15(long long x) { | |
| 221 | - return (x > 0 && (range(x), x == (int)x)) ? // $ range=>=1 | ||
| 221 | + return (x > 0 && (range(x), x == (int)x)) ? // $ range=>=1 | ||
| 222 | 222 | (range(x), x) : // $ range=>=1 | |
| 223 | 223 | (range(x), -1); | |
| 224 | 224 | } | |
@@ -228,7 +228,7 @@ int test_unary(int a) { | |||
| 228 | 228 | int total = 0; | |
| 229 | 229 | ||
| 230 | 230 | if (3 <= a && a <= 11) { | |
| 231 | - range(a); // $ range=<=11 range=>=3 | ||
| 231 | + range(a); // $ range=<=11 range=>=3 | ||
| 232 | 232 | int b = +a; | |
| 233 | 233 | range(b); // $ range=<=11 range=>=3 | |
| 234 | 234 | int c = -a; | |
@@ -384,7 +384,7 @@ int test_mult02(int a, int b) { | |||
| 384 | 384 | total += r; | |
| 385 | 385 | range(total); // $ range=">=Phi: 0-143" range=">=Phi: 0-286" | |
| 386 | 386 | } | |
| 387 | - range(total); // $range=">=Phi: 0-143" range=">=Phi: 0-286" | ||
| 387 | + range(total); // $ range=">=Phi: 0-143" range=">=Phi: 0-286" | ||
| 388 | 388 | return total; | |
| 389 | 389 | } | |
| 390 | 390 | ||
@@ -467,7 +467,7 @@ int test_mult04(int a, int b) { | |||
| 467 | 467 | range(a); // $ range=<=0 range=>=-17 | |
| 468 | 468 | range(b); // $ range=<=0 range=>=-13 | |
| 469 | 469 | int r = a*b; // 0 .. 221 | |
| 470 | - range(r); // $ range=<=221 range=>=0 | ||
| 470 | + range(r); // $ range=<=221 range=>=0 | ||
| 471 | 471 | total += r; | |
| 472 | 472 | range(total); // $ range="<=Phi: - ...+221" | |
| 473 | 473 | } | |
@@ -1030,7 +1030,7 @@ void test_negate_signed(int s) { | |||
| 1030 | 1030 | } | |
| 1031 | 1031 | } | |
| 1032 | 1032 | ||
| 1033 | - // By setting the guard after the use in another guard we | ||
| 1033 | + // By setting the guard after the use in another guard we | ||
| 1034 | 1034 | // don't get the useful information | |
| 1035 | 1035 | void test_guard_after_use(int pos, int size, int offset) { | |
| 1036 | 1036 | if (pos + offset >= size) { // $ overflow=+- | |
@@ -1040,12 +1040,12 @@ void test_guard_after_use(int pos, int size, int offset) { | |||
| 1040 | 1040 | return; | |
| 1041 | 1041 | } | |
| 1042 | 1042 | range(pos + 1); // $ overflow=+ range="==InitializeParameter: pos+1" MISSING: range="<=InitializeParameter: size-1" | |
| 1043 | - } | ||
| 1043 | + } | ||
| 1044 | 1044 | ||
| 1045 | 1045 | int cond(); | |
| 1046 | 1046 | ||
| 1047 | 1047 | ||
| 1048 | - // This is basically what we get when we have a loop that calls | ||
| 1048 | + // This is basically what we get when we have a loop that calls | ||
| 1049 | 1049 | // realloc in some iterations | |
| 1050 | 1050 | void alloc_in_loop(int origLen) { | |
| 1051 | 1051 | if (origLen <= 10) { | |
@@ -1066,12 +1066,12 @@ void alloc_in_loop(int origLen) { | |||
| 1066 | 1066 | } | |
| 1067 | 1067 | } | |
| 1068 | 1068 | ||
| 1069 | - // This came from a case where it handled the leftovers before an unrolled loop | ||
| 1069 | + // This came from a case where it handled the leftovers before an unrolled loop | ||
| 1070 | 1070 | void mask_at_start(int len) { | |
| 1071 | 1071 | if (len < 0) { | |
| 1072 | 1072 | return; | |
| 1073 | 1073 | } | |
| 1074 | - int leftOver = len & 63; | ||
| 1074 | + int leftOver = len & 63; | ||
| 1075 | 1075 | for (int i = 0; i < leftOver; i++) { | |
| 1076 | 1076 | range(i); // $ range=<=62 range=>=0 range="<=Store: ... & ... | Store: leftOver-1" range="<=InitializeParameter: len-1" | |
| 1077 | 1077 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments