@@ -8,7 +8,7 @@ struct Top {
88 virtual void isSink (int x) { }
99 virtual int notSource1 () { return source (); }
1010 virtual int notSource2 () { return source (); }
11- virtual void notSink (int x) { sink (x); } // $ SPURIOUS: ast,ir =37:19 ast,ir =45:18
11+ virtual void notSink (int x) { sink (x); } // $ SPURIOUS: ast=37:19 ast=45:18
1212};
1313
1414// This class has the correct behavior for just the functions ending in 2.
@@ -32,16 +32,16 @@ void VirtualDispatch(Bottom *bottomPtr, Bottom &bottomRef) { // $ ast-def=bottom
3232 sink (topPtr->isSource2 ()); // $ ir MISSING: ast
3333 topPtr->isSink (source ()); // causing a MISSING for ast
3434
35- sink (topPtr->notSource1 ()); // $ SPURIOUS: ast,ir
36- sink (topPtr->notSource2 ()); // $ SPURIOUS: ast,ir
35+ sink (topPtr->notSource1 ()); // $ SPURIOUS: ast
36+ sink (topPtr->notSource2 ()); // $ SPURIOUS: ast
3737 topPtr->notSink (source ()); // causing SPURIOUS for ast,ir
3838
3939 sink (topRef.isSource1 ()); // $ ir MISSING: ast
4040 sink (topRef.isSource2 ()); // $ ir MISSING: ast
4141 topRef.isSink (source ()); // causing a MISSING for ast
4242
43- sink (topRef.notSource1 ()); // $ SPURIOUS: ast,ir
44- sink (topRef.notSource2 ()); // $ SPURIOUS: ast,ir
43+ sink (topRef.notSource1 ()); // $ SPURIOUS: ast
44+ sink (topRef.notSource2 ()); // $ SPURIOUS: ast
4545 topRef.notSink (source ()); // causing SPURIOUS for ast,ir
4646}
4747
@@ -52,10 +52,10 @@ Top *readGlobalBottom() {
5252}
5353
5454void DispatchThroughGlobal () {
55- sink (globalBottom->isSource1 ()); // $ ir MISSING: ast
55+ sink (globalBottom->isSource1 ()); // $ MISSING: ast,ir
5656 sink (globalMiddle->isSource1 ()); // no flow
5757
58- sink (readGlobalBottom ()->isSource1 ()); // $ ir MISSING: ast
58+ sink (readGlobalBottom ()->isSource1 ()); // $ MISSING: ast,ir
5959
6060 globalBottom = new Bottom ();
6161 globalMiddle = new Middle ();
@@ -93,7 +93,7 @@ void callIdentityFunctions(Top *top, Bottom *bottom) { // $ ast-def=bottom ast-d
9393using SinkFunctionType = void (*)(int );
9494
9595void callSink (int x) {
96- sink (x); // $ ir=107:17 ir=140:8 ir=144:8 MISSING: ast=107:17 ast=140:8 ast=144:8
96+ sink (x); // $ ir MISSING: ast,ir =107:17 ast,ir =140:8 ast,ir =144:8
9797}
9898
9999SinkFunctionType returnCallSink () {
@@ -126,8 +126,8 @@ namespace virtual_inheritance {
126126 // get flow from a `Middle` value to the call qualifier.
127127 Top *topPtr = bottomPtr, &topRef = bottomRef;
128128
129- sink (topPtr->isSource ()); // $ MISSING: ast,ir
130- sink (topRef.isSource ()); // $ MISSING: ast,ir
129+ sink (topPtr->isSource ()); // $ ir MISSING: ast
130+ sink (topRef.isSource ()); // $ ir MISSING: ast
131131 }
132132}
133133
0 commit comments