File tree Expand file tree Collapse file tree
cpp/ql/src/semmle/code/cpp/ir/implementation
unaliased_ssa/gvn/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,12 +61,14 @@ newtype TValueNumber =
6161 */
6262class CongruentCopyInstruction extends CopyInstruction {
6363 CongruentCopyInstruction ( ) {
64+ strictcount ( this .getSourceValueOperand ( ) .getDefinitionOverlap ( ) ) = 1 and
6465 this .getSourceValueOperand ( ) .getDefinitionOverlap ( ) instanceof MustExactlyOverlap
6566 }
6667}
6768
6869class LoadTotalOverlapInstruction extends LoadInstruction {
6970 LoadTotalOverlapInstruction ( ) {
71+ strictcount ( this .getSourceValueOperand ( ) .getDefinitionOverlap ( ) ) = 1 and
7072 this .getSourceValueOperand ( ) .getDefinitionOverlap ( ) instanceof MustTotallyOverlap
7173 }
7274}
Original file line number Diff line number Diff line change @@ -61,12 +61,14 @@ newtype TValueNumber =
6161 */
6262class CongruentCopyInstruction extends CopyInstruction {
6363 CongruentCopyInstruction ( ) {
64+ strictcount ( this .getSourceValueOperand ( ) .getDefinitionOverlap ( ) ) = 1 and
6465 this .getSourceValueOperand ( ) .getDefinitionOverlap ( ) instanceof MustExactlyOverlap
6566 }
6667}
6768
6869class LoadTotalOverlapInstruction extends LoadInstruction {
6970 LoadTotalOverlapInstruction ( ) {
71+ strictcount ( this .getSourceValueOperand ( ) .getDefinitionOverlap ( ) ) = 1 and
7072 this .getSourceValueOperand ( ) .getDefinitionOverlap ( ) instanceof MustTotallyOverlap
7173 }
7274}
Original file line number Diff line number Diff line change @@ -61,12 +61,14 @@ newtype TValueNumber =
6161 */
6262class CongruentCopyInstruction extends CopyInstruction {
6363 CongruentCopyInstruction ( ) {
64+ strictcount ( this .getSourceValueOperand ( ) .getDefinitionOverlap ( ) ) = 1 and
6465 this .getSourceValueOperand ( ) .getDefinitionOverlap ( ) instanceof MustExactlyOverlap
6566 }
6667}
6768
6869class LoadTotalOverlapInstruction extends LoadInstruction {
6970 LoadTotalOverlapInstruction ( ) {
71+ strictcount ( this .getSourceValueOperand ( ) .getDefinitionOverlap ( ) ) = 1 and
7072 this .getSourceValueOperand ( ) .getDefinitionOverlap ( ) instanceof MustTotallyOverlap
7173 }
7274}
You can’t perform that action at this time.
0 commit comments