Skip to content

Commit

Permalink
update naive_rules output
Browse files Browse the repository at this point in the history
  • Loading branch information
lqd committed Dec 17, 2019
1 parent e89d452 commit 66ca6e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ let region_live_at: Relation<((Origin, Point), ())> = Vec::new().into();
// `errors` inferred as the output relation
let errors = {
let mut iteration = Iteration::new();

// Intensional predicates, and their indices

let borrow_live_at = iteration.variable::<((Loan, Point), ())>("borrow_live_at");
Expand Down Expand Up @@ -134,7 +135,7 @@ let errors = {
subset.extend(outlives.iter().clone());

// R04: requires(O, L, P) :- borrow_region(O, L, P).
requires.extend(borrow_region.iter().map(|&tuple| tuple));
requires.extend(borrow_region.iter().clone());

while iteration.changed() {
// Index maintenance
Expand Down
3 changes: 2 additions & 1 deletion tests/naive_rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ where
// `errors` inferred as the output relation
let errors = {
let mut iteration = Iteration::new();

// Intensional predicates, and their indices

let borrow_live_at = iteration.variable::<((Loan, Point), ())>("borrow_live_at");
Expand Down Expand Up @@ -185,7 +186,7 @@ where
subset.extend(outlives.iter().clone());

// R04: requires(O, L, P) :- borrow_region(O, L, P).
requires.extend(borrow_region.iter().map(|&tuple| tuple));
requires.extend(borrow_region.iter().clone());

while iteration.changed() {
// Index maintenance
Expand Down

0 comments on commit 66ca6e4

Please sign in to comment.