File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed
cpp/ql/lib/semmle/code/cpp/ir/implementation
csharp/ql/src/experimental/ir/implementation Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ module InstructionConsistency {
22
22
abstract Language:: Location getLocation ( ) ;
23
23
}
24
24
25
- private class PresentIRFunction extends OptionalIRFunction , TPresentIRFunction {
25
+ class PresentIRFunction extends OptionalIRFunction , TPresentIRFunction {
26
26
private IRFunction irFunc ;
27
27
28
28
PresentIRFunction ( ) { this = TPresentIRFunction ( irFunc ) }
@@ -37,6 +37,8 @@ module InstructionConsistency {
37
37
result =
38
38
min ( Language:: Location loc | loc = irFunc .getLocation ( ) | loc order by loc .toString ( ) )
39
39
}
40
+
41
+ IRFunction getIRFunction ( ) { result = irFunc }
40
42
}
41
43
42
44
private class MissingIRFunction extends OptionalIRFunction , TMissingIRFunction {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ module InstructionConsistency {
22
22
abstract Language:: Location getLocation ( ) ;
23
23
}
24
24
25
- private class PresentIRFunction extends OptionalIRFunction , TPresentIRFunction {
25
+ class PresentIRFunction extends OptionalIRFunction , TPresentIRFunction {
26
26
private IRFunction irFunc ;
27
27
28
28
PresentIRFunction ( ) { this = TPresentIRFunction ( irFunc ) }
@@ -37,6 +37,8 @@ module InstructionConsistency {
37
37
result =
38
38
min ( Language:: Location loc | loc = irFunc .getLocation ( ) | loc order by loc .toString ( ) )
39
39
}
40
+
41
+ IRFunction getIRFunction ( ) { result = irFunc }
40
42
}
41
43
42
44
private class MissingIRFunction extends OptionalIRFunction , TMissingIRFunction {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ module InstructionConsistency {
22
22
abstract Language:: Location getLocation ( ) ;
23
23
}
24
24
25
- private class PresentIRFunction extends OptionalIRFunction , TPresentIRFunction {
25
+ class PresentIRFunction extends OptionalIRFunction , TPresentIRFunction {
26
26
private IRFunction irFunc ;
27
27
28
28
PresentIRFunction ( ) { this = TPresentIRFunction ( irFunc ) }
@@ -37,6 +37,8 @@ module InstructionConsistency {
37
37
result =
38
38
min ( Language:: Location loc | loc = irFunc .getLocation ( ) | loc order by loc .toString ( ) )
39
39
}
40
+
41
+ IRFunction getIRFunction ( ) { result = irFunc }
40
42
}
41
43
42
44
private class MissingIRFunction extends OptionalIRFunction , TMissingIRFunction {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ module InstructionConsistency {
22
22
abstract Language:: Location getLocation ( ) ;
23
23
}
24
24
25
- private class PresentIRFunction extends OptionalIRFunction , TPresentIRFunction {
25
+ class PresentIRFunction extends OptionalIRFunction , TPresentIRFunction {
26
26
private IRFunction irFunc ;
27
27
28
28
PresentIRFunction ( ) { this = TPresentIRFunction ( irFunc ) }
@@ -37,6 +37,8 @@ module InstructionConsistency {
37
37
result =
38
38
min ( Language:: Location loc | loc = irFunc .getLocation ( ) | loc order by loc .toString ( ) )
39
39
}
40
+
41
+ IRFunction getIRFunction ( ) { result = irFunc }
40
42
}
41
43
42
44
private class MissingIRFunction extends OptionalIRFunction , TMissingIRFunction {
You can’t perform that action at this time.
0 commit comments