C++: Address review comment

This commit is contained in:
Jeroen Ketema
2024-09-03 17:18:18 +02:00
parent 4945943732
commit 52819432c0

View File

@@ -727,7 +727,9 @@ class C11GenericExpr extends Conversion, @c11_generic {
* ```
* this holds for 0.
*/
predicate isSelectedAssociation(int n) { this.getAssociationExpr(n) instanceof ReuseExpr }
predicate isSelectedAssociation(int n) {
this.getAssociationExpr(n).(ReuseExpr).getReusedExpr() = this.getExpr()
}
}
/**