@@ -275,7 +275,7 @@ private module SsaImpl {
275275 }
276276
277277 /** Holds if `VarAccess` `use` of `v` occurs in `b` at index `i`. */
278- private predicate variableUse ( TrackedVar v , RValue use , BasicBlock b , int i ) {
278+ private predicate variableUse ( TrackedVar v , VarRead use , BasicBlock b , int i ) {
279279 v .getAnAccess ( ) = use and b .getNode ( i ) = use
280280 }
281281
@@ -652,7 +652,7 @@ private module SsaImpl {
652652 * Holds if the SSA definition of `v` at `def` reaches `use` in the same basic block
653653 * without crossing another SSA definition of `v`.
654654 */
655- private predicate ssaDefReachesUseWithinBlock ( TrackedVar v , TrackedSsaDef def , RValue use ) {
655+ private predicate ssaDefReachesUseWithinBlock ( TrackedVar v , TrackedSsaDef def , VarRead use ) {
656656 exists ( BasicBlock b , int rankix , int i |
657657 ssaDefReachesRank ( v , def , b , rankix ) and
658658 defUseRank ( v , b , rankix , i ) and
@@ -665,7 +665,7 @@ private module SsaImpl {
665665 * SSA definition of `v`.
666666 */
667667 cached
668- predicate ssaDefReachesUse ( TrackedVar v , TrackedSsaDef def , RValue use ) {
668+ predicate ssaDefReachesUse ( TrackedVar v , TrackedSsaDef def , VarRead use ) {
669669 ssaDefReachesUseWithinBlock ( v , def , use )
670670 or
671671 exists ( BasicBlock b |
@@ -813,7 +813,7 @@ private module SsaImpl {
813813 * any other uses, but possibly through phi nodes and uncertain implicit updates.
814814 */
815815 cached
816- predicate firstUse ( TrackedSsaDef def , RValue use ) {
816+ predicate firstUse ( TrackedSsaDef def , VarRead use ) {
817817 exists ( TrackedVar v , BasicBlock b1 , int i1 , BasicBlock b2 , int i2 |
818818 adjacentVarRefs ( v , b1 , i1 , b2 , i2 ) and
819819 def .definesAt ( v , b1 , i1 ) and
@@ -838,7 +838,7 @@ private module SsaImpl {
838838 * through any other use or any SSA definition of the variable.
839839 */
840840 cached
841- predicate adjacentUseUseSameVar ( RValue use1 , RValue use2 ) {
841+ predicate adjacentUseUseSameVar ( VarRead use1 , VarRead use2 ) {
842842 exists ( TrackedVar v , BasicBlock b1 , int i1 , BasicBlock b2 , int i2 |
843843 adjacentVarRefs ( v , b1 , i1 , b2 , i2 ) and
844844 variableUse ( v , use1 , b1 , i1 ) and
@@ -853,7 +853,7 @@ private module SsaImpl {
853853 * except for phi nodes and uncertain implicit updates.
854854 */
855855 cached
856- predicate adjacentUseUse ( RValue use1 , RValue use2 ) {
856+ predicate adjacentUseUse ( VarRead use1 , VarRead use2 ) {
857857 adjacentUseUseSameVar ( use1 , use2 )
858858 or
859859 exists ( TrackedVar v , TrackedSsaDef def , BasicBlock b1 , int i1 , BasicBlock b2 , int i2 |
@@ -938,7 +938,7 @@ class SsaVariable extends TSsaVariable {
938938 BasicBlock getBasicBlock ( ) { result = this .getCfgNode ( ) .getBasicBlock ( ) }
939939
940940 /** Gets an access of this SSA variable. */
941- RValue getAUse ( ) {
941+ VarRead getAUse ( ) {
942942 ssaDefReachesUse ( _, this , result ) or
943943 this = TSsaUntracked ( _, result )
944944 }
@@ -952,7 +952,7 @@ class SsaVariable extends TSsaVariable {
952952 * Subsequent uses can be found by following the steps defined by
953953 * `adjacentUseUse`.
954954 */
955- RValue getAFirstUse ( ) {
955+ VarRead getAFirstUse ( ) {
956956 firstUse ( this , result ) or
957957 this = TSsaUntracked ( _, result )
958958 }
0 commit comments