diff --git a/churchroad b/churchroad index 1b04236..b97b144 160000 --- a/churchroad +++ b/churchroad @@ -1 +1 @@ -Subproject commit 1b042364bac467ff1dac021fba85f778bcd9f5ff +Subproject commit b97b144f8e1000122ecbe7375f6b6d964cc3bea7 diff --git a/web-demo/src/lib.rs b/web-demo/src/lib.rs index fad4227..2c5b7dc 100644 --- a/web-demo/src/lib.rs +++ b/web-demo/src/lib.rs @@ -26,7 +26,9 @@ pub fn run_program(input: &str) -> Result { let choices = GreedyDagExtractor::default().extract(&serialized2, &[]); let mut out = churchroad::to_verilog_egraph_serialize(&serialized2, &choices, ""); - out.push_str("\n\nOutputs:\n"); + if outputs.len() > 0 { + out.push_str("\n\nOutputs:\n"); + } for (i, output) in outputs.iter().enumerate() { out.push_str(&format!("Output {}: {}\n", i, output)); } diff --git a/web-demo/static/index.html b/web-demo/static/index.html index 6bdf5f2..7cc121c 100644 --- a/web-demo/static/index.html +++ b/web-demo/static/index.html @@ -421,18 +421,16 @@
- -

- -
+