@@ -71,19 +71,19 @@ void identityOperations(int* source1) {
7171 sink (x4); // $ ast,ir
7272}
7373
74- void trackUninitialized () { // NOTE: uninitialized tracking for IR dataflow is deprecated
74+ void trackUninitialized () {
7575 int u1;
76- sink (u1); // $ ast
76+ sink (u1); // $ ast,ir
7777 u1 = 2 ;
7878 sink (u1); // clean
7979
8080 int i1 = 1 ;
8181 sink (i1); // clean
8282
8383 int u2;
84- sink (i1 ? u2 : 1 ); // $ ast
84+ sink (i1 ? u2 : 1 ); // $ ast,ir
8585 i1 = u2;
86- sink (i1); // $ ast
86+ sink (i1); // $ ast,ir
8787}
8888
8989void local_references (int &source1, int clean1) {
@@ -346,7 +346,7 @@ namespace FlowThroughGlobals {
346346 void taintAndCall () {
347347 globalVar = source ();
348348 calledAfterTaint ();
349- sink (globalVar); // $ ast ir=333:17 ir=347:17
349+ sink (globalVar); // $ ast ir ir =333:17 ir=347:17
350350 }
351351}
352352
@@ -398,14 +398,14 @@ void flowThroughMemcpy_blockvar_with_local_flow(int source1, int b) {
398398void cleanedByMemcpy_ssa (int clean1) { // currently modeled with BlockVar, not SSA
399399 int tmp;
400400 memcpy (&tmp, &clean1, sizeof tmp);
401- sink (tmp); // $ SPURIOUS: ast
401+ sink (tmp); // $ SPURIOUS: ast,ir
402402}
403403
404404void cleanedByMemcpy_blockvar (int clean1) {
405405 int tmp;
406406 int *capture = &tmp;
407407 memcpy (&tmp, &clean1, sizeof tmp);
408- sink (tmp); // $ SPURIOUS: ast
408+ sink (tmp); // $ SPURIOUS: ast,ir
409409}
410410
411411void intRefSource (int &ref_source);
@@ -415,33 +415,33 @@ void intArraySource(int ref_source[], size_t len);
415415void intRefSourceCaller () {
416416 int local;
417417 intRefSource (local);
418- sink (local); // $ ast=416:7 ast=417:16 MISSING: ir
418+ sink (local); // $ ast,ir =416:7 ast,ir =417:16
419419}
420420
421421void intPointerSourceCaller () {
422422 int local;
423423 intPointerSource (&local);
424- sink (local); // $ ast=422:7 ast=423:20 MISSING: ir
424+ sink (local); // $ ast,ir =422:7 ast,ir =423:20
425425}
426426
427427void intPointerSourceCaller2 () {
428428 int local[1 ];
429429 intPointerSource (local);
430- sink (local); // $ ast=428:7 ast=429:20 MISSING: ir
431- sink (*local); // $ ast=428:7 ast=429:20 MISSING: ir
430+ sink (local); // $ ast,ir =428:7 ast,ir =429:20
431+ sink (*local); // $ ast,ir =428:7 ast,ir =429:20
432432}
433433
434434void intArraySourceCaller () {
435435 int local;
436436 intArraySource (&local, 1 );
437- sink (local); // $ ast=435:7 ast=436:18 MISSING: ir
437+ sink (local); // $ ast,ir =435:7 ast,ir =436:18
438438}
439439
440440void intArraySourceCaller2 () {
441441 int local[2 ];
442442 intArraySource (local, 2 );
443- sink (local); // $ ast=441:7 ast=442:18 MISSING: ir
444- sink (*local); // $ ast=441:7 ast=442:18 MISSING: ir
443+ sink (local); // $ ast,ir =441:7 ast,ir =442:18
444+ sink (*local); // $ ast,ir =441:7 ast,ir =442:18
445445}
446446
447447// /////////////////////////////////////////////////////////////////////////////
0 commit comments