C++: Fix fan-out.

This commit is contained in:
Mathias Vorreiter Pedersen
2025-09-25 12:33:44 +01:00
parent b169ccf29a
commit 5b5c1de05b
2 changed files with 1 additions and 3 deletions

View File

@@ -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())
}
}

View File

@@ -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 ...: |