Skip to content

Commit

Permalink
fixed bug in layout
Browse files Browse the repository at this point in the history
  • Loading branch information
osimon8 committed Mar 18, 2022
1 parent e646309 commit 0e6ded1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/compiler/layout.ml
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,12 @@ in
let inter acc c =
let pos, size, placements = layout ~pos:(acc) strategy c in
let px, py = pos in
let _, sy = size in
(px, py +~ sy +. 1.5), (pos, size, placements)
let sx, sy = size in
let sy = max 3 sy in
(* print_endline ("POS: (" ^ string_of_float px ^ ", " ^ string_of_float py ^ ")"); *)
(* print_endline ("SIZE: (" ^ string_of_int sx ^ ", " ^ string_of_int sy ^ ")"); *)

(px, py +~ sy +. 1.), (pos, size, placements)
in

let _, layouts = List.fold_left_map inter (0.,0.) circuits in
Expand Down

0 comments on commit 0e6ded1

Please sign in to comment.