Skip to content

Commit

Permalink
Improve Dafny translation
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-riecken committed Jul 6, 2024
1 parent 4b06cf5 commit de660b0
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/shape_carve.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,12 @@ method ShapeCarve(dims: seq<nat>, views: seq<seq<int>>, mask_color: int, skip: s
/* } */
/* } */
}
}

/* var removed: int := 1; */
var removed: int := 1;

/* while removed > 0 { */
/* removed := 0; */
/* for d := 0; d < 3; d := d + 1 { */
while removed > 0 {
removed := 0;
for d := 0 to 3 {
/* u := (d + 1) % 3; */
/* v := (d + 2) % 3; */
/* for s := -1; s <= 1; s := s + 2 { */
Expand Down Expand Up @@ -101,9 +100,9 @@ method ShapeCarve(dims: seq<nat>, views: seq<seq<int>>, mask_color: int, skip: s
/* } */
/* adepth[buf_idx] := x[d]; */
/* } */
/* } */
/* } */
/* } */
}
}
}

method fillMissingColors(x: array<int>, dims: seq<nat>, volume: array<int>)
modifies volume
Expand Down

0 comments on commit de660b0

Please sign in to comment.