java: favour inline_late over inline

This gives much greater control over the join-order
This commit is contained in:
yoff
2025-10-09 13:01:25 +02:00
parent 26c1b2f143
commit f90e9dbb5e

View File

@@ -11,8 +11,9 @@ import Concurrency
* Holds if `t` is the type of a lock.
* Currently a crude test of the type name.
*/
bindingset[t]
overlay[caller?]
pragma[inline]
pragma[inline_late]
predicate isLockType(Type t) { t.getName().matches("%Lock%") }
/**
@@ -211,8 +212,9 @@ class ExposedFieldAccess extends FieldAccess {
}
/** Holds if the location of `a` is strictly before the location of `b`. */
bindingset[a, b]
overlay[caller?]
pragma[inline]
pragma[inline_late]
predicate orderedLocations(Location a, Location b) {
a.getStartLine() < b.getStartLine()
or