File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
lib/experimental/semmle/code/cpp/semantic
test/library-tests/ir/modulus-analysis Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ module SemanticExprConfig {
133
133
IR:: Operand asOperand ( ) { none ( ) }
134
134
}
135
135
136
- class SsaInstructionVariable extends SsaVariable , TSsaInstruction {
136
+ private class SsaInstructionVariable extends SsaVariable , TSsaInstruction {
137
137
IR:: Instruction instr ;
138
138
139
139
SsaInstructionVariable ( ) { this = TSsaInstruction ( instr ) }
@@ -145,10 +145,10 @@ module SemanticExprConfig {
145
145
final override IR:: Instruction asInstruction ( ) { result = instr }
146
146
}
147
147
148
- class SsaOperand extends SsaVariable , TSsaOperand {
148
+ private class SsaOperandVariable extends SsaVariable , TSsaOperand {
149
149
IR:: Operand op ;
150
150
151
- SsaOperand ( ) { this = TSsaOperand ( op ) }
151
+ SsaOperandVariable ( ) { this = TSsaOperand ( op ) }
152
152
153
153
final override string toString ( ) { result = op .toString ( ) }
154
154
@@ -162,7 +162,7 @@ module SemanticExprConfig {
162
162
predicate phi ( SsaVariable v ) { v .asInstruction ( ) instanceof IR:: PhiInstruction }
163
163
164
164
SsaVariable getAPhiInput ( SsaVariable v ) {
165
- exists ( IR:: PhiInstruction instr |
165
+ exists ( IR:: PhiInstruction instr | v . asInstruction ( ) = instr |
166
166
result .asInstruction ( ) = instr .getAnInput ( )
167
167
or
168
168
result .asOperand ( ) = instr .getAnInputOperand ( )
Original file line number Diff line number Diff line change 1
- /* template<typename T> void mod(T value);
1
+ template <typename T> void mod (T value);
2
2
3
3
const int c1 = 42 ;
4
4
const int c2 = 43 ;
@@ -57,7 +57,7 @@ void loops(int cap)
57
57
58
58
for (int k = 0 ; k < cap; k += 3 )
59
59
mod (k); // $ mod=0,0,3
60
- }*/
60
+ }
61
61
62
62
int loops2 (unsigned int *i) {
63
63
for (; *i <= 2 ; (*i)++) {
You can’t perform that action at this time.
0 commit comments