mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C++: Fix fan-out.
This commit is contained in:
@@ -188,7 +188,7 @@ module GuardsInput implements SharedGuards::InputSig<Cpp::Location, Instruction,
|
||||
// Note: This only has a value if there is a unique value for the case.
|
||||
// So the will not be a result when using the GCC case range extension.
|
||||
// Instead, we model these using the `LogicInput_v1::rangeGuard` predicate.
|
||||
result.asIntegerValue() = this.getEdge().getValue().toInt()
|
||||
result = this and exists(this.getEdge().getValue())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -178,10 +178,8 @@
|
||||
| test.cpp:42:13:42:20 | call to getABool | true | test.cpp:43:9:45:23 | { ... } |
|
||||
| test.cpp:60:31:60:31 | i | 0 | test.cpp:62:5:64:12 | case ...: |
|
||||
| test.cpp:60:31:60:31 | i | 1 | test.cpp:65:5:66:10 | case ...: |
|
||||
| test.cpp:60:31:60:31 | i | 10 | test.cpp:62:5:64:12 | case ...: |
|
||||
| test.cpp:61:10:61:10 | i | 0 | test.cpp:62:5:64:12 | case ...: |
|
||||
| test.cpp:61:10:61:10 | i | 1 | test.cpp:65:5:66:10 | case ...: |
|
||||
| test.cpp:61:10:61:10 | i | 10 | test.cpp:62:5:64:12 | case ...: |
|
||||
| test.cpp:73:30:73:30 | i | Lower bound 0 | test.cpp:75:5:77:12 | case ...: |
|
||||
| test.cpp:73:30:73:30 | i | Lower bound 11 | test.cpp:78:5:79:10 | case ...: |
|
||||
| test.cpp:73:30:73:30 | i | Upper bound 10 | test.cpp:75:5:77:12 | case ...: |
|
||||
|
||||
Reference in New Issue
Block a user