Merge pull request #6346 from aschackmull/java/perf-fix

Java: Fix bad magic.
This commit is contained in:
Chris Smowton
2021-07-22 10:15:16 +01:00
committed by GitHub

View File

@@ -35,6 +35,7 @@ predicate instantiates(RefType t, GenericType g, int i, RefType arg) {
* - a class `MyIntMap<V> extends HashMap<Integer, V>` instantiates `Map` (among others) * - a class `MyIntMap<V> extends HashMap<Integer, V>` instantiates `Map` (among others)
* with the `0`-th type parameter being `Integer` and the `1`-th type parameter being `V`. * with the `0`-th type parameter being `Integer` and the `1`-th type parameter being `V`.
*/ */
pragma[nomagic]
predicate indirectlyInstantiates(RefType t, GenericType g, int i, RefType arg) { predicate indirectlyInstantiates(RefType t, GenericType g, int i, RefType arg) {
instantiates(t, g, i, arg) instantiates(t, g, i, arg)
or or