File tree Expand file tree Collapse file tree 3 files changed +77
-70
lines changed
cpp/ql/lib/semmle/code/cpp/ir/implementation Expand file tree Collapse file tree 3 files changed +77
-70
lines changed Original file line number Diff line number Diff line change @@ -2162,19 +2162,21 @@ class ChiInstruction extends Instruction {
2162
2162
*
2163
2163
* Since both the address of `a` and `b` reach `p` at `*p = 5` the IR alias
2164
2164
* analysis will create a region that contains both `a` and `b`. The region
2165
- * containing both `a` and `b` are initialized by an `InitializeGroup `
2165
+ * containing both `a` and `b` are initialized by an `UninitializedGroup `
2166
2166
* instruction in the entry block of the enclosing function.
2167
2167
*/
2168
- class InitializeGroupInstruction extends Instruction {
2169
- InitializeGroupInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: InitializeGroup }
2168
+ class UninitializedGroupInstruction extends Instruction {
2169
+ UninitializedGroupInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: UninitializedGroup }
2170
2170
2171
2171
/**
2172
2172
* Gets an `IRVariable` whose memory is initialized by this instruction, if any.
2173
2173
* Note: Allocations that are not represented as `IRVariable`s (such as
2174
2174
* dynamic allocations) are not returned by this predicate even if this
2175
2175
* instruction initializes such memory.
2176
2176
*/
2177
- final IRVariable getAnIRVariable ( ) { result = Construction:: getAnInitializeGroupVariable ( this ) }
2177
+ final IRVariable getAnIRVariable ( ) {
2178
+ result = Construction:: getAnUninitializedGroupVariable ( this )
2179
+ }
2178
2180
2179
2181
final override string getImmediateString ( ) {
2180
2182
result = strictconcat ( this .getAnIRVariable ( ) .toString ( ) , "," )
Original file line number Diff line number Diff line change @@ -2162,19 +2162,21 @@ class ChiInstruction extends Instruction {
2162
2162
*
2163
2163
* Since both the address of `a` and `b` reach `p` at `*p = 5` the IR alias
2164
2164
* analysis will create a region that contains both `a` and `b`. The region
2165
- * containing both `a` and `b` are initialized by an `InitializeGroup `
2165
+ * containing both `a` and `b` are initialized by an `UninitializedGroup `
2166
2166
* instruction in the entry block of the enclosing function.
2167
2167
*/
2168
- class InitializeGroupInstruction extends Instruction {
2169
- InitializeGroupInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: InitializeGroup }
2168
+ class UninitializedGroupInstruction extends Instruction {
2169
+ UninitializedGroupInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: UninitializedGroup }
2170
2170
2171
2171
/**
2172
2172
* Gets an `IRVariable` whose memory is initialized by this instruction, if any.
2173
2173
* Note: Allocations that are not represented as `IRVariable`s (such as
2174
2174
* dynamic allocations) are not returned by this predicate even if this
2175
2175
* instruction initializes such memory.
2176
2176
*/
2177
- final IRVariable getAnIRVariable ( ) { result = Construction:: getAnInitializeGroupVariable ( this ) }
2177
+ final IRVariable getAnIRVariable ( ) {
2178
+ result = Construction:: getAnUninitializedGroupVariable ( this )
2179
+ }
2178
2180
2179
2181
final override string getImmediateString ( ) {
2180
2182
result = strictconcat ( this .getAnIRVariable ( ) .toString ( ) , "," )
You can’t perform that action at this time.
0 commit comments