From 7865d692a156c1d31f63b8f04b5d51472d1ff30a Mon Sep 17 00:00:00 2001 From: Jakub Doka Date: Sun, 10 Nov 2024 11:04:04 +0100 Subject: [PATCH] fixing the rescheduling edgecase --- lang/src/son/hbvm.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lang/src/son/hbvm.rs b/lang/src/son/hbvm.rs index 1c06b93..4eef68b 100644 --- a/lang/src/son/hbvm.rs +++ b/lang/src/son/hbvm.rs @@ -392,6 +392,8 @@ impl Nodes { } } + buf.sort_by_key(|&n| !self.is_cfg(n)); + if outputs.len() != buf.len() { panic!("{:?} {:?}", outputs, buf); }