java: rewrite conflict detection

- favour unary predicates over binary ones
(the natural "conflicting access" is binary)
- switch to a dual solution to trade recursion through forall for simple existentials.

Co-authored-by: Anders Schack-Mulligen <aschackmull@github.com>
This commit is contained in:
yoff
2025-10-17 01:39:29 +02:00
parent 5109babd92
commit 61a3e9630f
11 changed files with 296 additions and 323 deletions

View File

@@ -29,11 +29,11 @@ class FaultySyncStackExample<T> {
public void push(T item) {
lock.lock();
stc.push(item); // $ Alert
stc.push(item);
lock.unlock();
}
public void pop() {
stc.pop();
stc.pop(); // $ Alert
}
}