File tree Expand file tree Collapse file tree 4 files changed +15
-11
lines changed
cpp/ql/src/semmle/code/cpp/ir/implementation
csharp/ql/src/experimental/ir/implementation/unaliased_ssa/internal Expand file tree Collapse file tree 4 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -629,7 +629,11 @@ MemoryLocation getOperandMemoryLocation(MemoryOperand operand) {
629
629
}
630
630
631
631
/** Gets the start bit offset of a `MemoryLocation`, if any. */
632
- int getStartBitOffset ( VariableMemoryLocation location ) { result = location .getStartBitOffset ( ) }
632
+ int getStartBitOffset ( VariableMemoryLocation location ) {
633
+ result = location .getStartBitOffset ( ) and Ints:: hasValue ( result )
634
+ }
633
635
634
636
/** Gets the end bit offset of a `MemoryLocation`, if any. */
635
- int getEndBitOffset ( VariableMemoryLocation location ) { result = location .getEndBitOffset ( ) }
637
+ int getEndBitOffset ( VariableMemoryLocation location ) {
638
+ result = location .getEndBitOffset ( ) and Ints:: hasValue ( result )
639
+ }
Original file line number Diff line number Diff line change @@ -179,9 +179,9 @@ private module Cached {
179
179
}
180
180
181
181
/**
182
- * Holds if the `ChiPartialOperand` totally, but not exactly, overlaps with the `ChiTotalOperand`.
183
- * This means that the `ChiPartialOperand` will not override the entire memory associated with the
184
- * `ChiTotalOperand`.
182
+ * Holds if the `ChiPartialOperand` only partially overlaps with the `ChiTotalOperand`.
183
+ * This means that the `ChiPartialOperand` will not override the entire memory associated
184
+ * with the `ChiTotalOperand`.
185
185
*/
186
186
cached
187
187
predicate chiOnlyPartiallyUpdatesLocation ( ChiInstruction chi ) {
Original file line number Diff line number Diff line change @@ -179,9 +179,9 @@ private module Cached {
179
179
}
180
180
181
181
/**
182
- * Holds if the `ChiPartialOperand` totally, but not exactly, overlaps with the `ChiTotalOperand`.
183
- * This means that the `ChiPartialOperand` will not override the entire memory associated with the
184
- * `ChiTotalOperand`.
182
+ * Holds if the `ChiPartialOperand` only partially overlaps with the `ChiTotalOperand`.
183
+ * This means that the `ChiPartialOperand` will not override the entire memory associated
184
+ * with the `ChiTotalOperand`.
185
185
*/
186
186
cached
187
187
predicate chiOnlyPartiallyUpdatesLocation ( ChiInstruction chi ) {
Original file line number Diff line number Diff line change @@ -179,9 +179,9 @@ private module Cached {
179
179
}
180
180
181
181
/**
182
- * Holds if the `ChiPartialOperand` totally, but not exactly, overlaps with the `ChiTotalOperand`.
183
- * This means that the `ChiPartialOperand` will not override the entire memory associated with the
184
- * `ChiTotalOperand`.
182
+ * Holds if the `ChiPartialOperand` only partially overlaps with the `ChiTotalOperand`.
183
+ * This means that the `ChiPartialOperand` will not override the entire memory associated
184
+ * with the `ChiTotalOperand`.
185
185
*/
186
186
cached
187
187
predicate chiOnlyPartiallyUpdatesLocation ( ChiInstruction chi ) {
You can’t perform that action at this time.
0 commit comments