diff --git a/src/layout/layout.rs b/src/layout/layout.rs index 4685ce7..15ca6a3 100644 --- a/src/layout/layout.rs +++ b/src/layout/layout.rs @@ -63,7 +63,7 @@ impl Layout { self.drawing.remove_cane(cane, face) } - #[debug_ensures(ret.is_ok() -> self.drawing.node_count() == old(self.drawing.node_count()) + weight.to_layer - weight.from_layer)] + #[debug_ensures(ret.is_ok() -> self.drawing.node_count() == old(self.drawing.node_count()) + weight.to_layer - weight.from_layer + 2)] #[debug_ensures(ret.is_err() -> self.drawing.node_count() == old(self.drawing.node_count()))] pub fn add_via(&mut self, weight: ViaWeight) -> Result, Infringement> { let compound = self.drawing.add_compound(weight.into());