Skip to content

Commit d8d4ec9

Browse files
Add missing base case for requires
1 parent 3a3a1df commit d8d4ec9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rules/opt.dl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ subset(origin1, origin3, point2) :-
172172

173173
.decl requires(origin: Origin, loan: Loan, point: Node)
174174

175+
requires(origin, loan, point) :-
176+
loan_issued_at(origin, loan, point).
177+
175178
// Communicate a `origin1 requires loan` relation across
176179
// an edge `point1 -> point2` where `origin1` is dead in `point2`; in
177180
// that case, for each origin `origin2` live in `point2`

0 commit comments

Comments
 (0)