From a4957678aa5bc19f3e36d0c0b881a2f154ce1064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Chud=C3=AD=C4=8Dek?= Date: Sun, 8 Oct 2023 00:11:34 +0200 Subject: [PATCH] refactor: hopefully pipeline gud now --- src/prototype/system_update_fn.rs | 3 ++- src/prototype/update_fn.rs | 1 - src/prototype/update_fn_bdd.rs | 2 +- src/prototype/update_fn_compiled.rs | 2 -- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/prototype/system_update_fn.rs b/src/prototype/system_update_fn.rs index 03078ee..a7c397b 100644 --- a/src/prototype/system_update_fn.rs +++ b/src/prototype/system_update_fn.rs @@ -1,9 +1,10 @@ +#![allow(dead_code)] + // todo how to work with the "variables" that are not mentioned in the listOfTransitions? use std::{collections::HashMap, io::BufRead}; use biodivine_lib_bdd::{BddPartialValuation, BddValuation, BddVariable, BddVariableSetBuilder}; -use xml::EventReader; use crate::{ SymbolicDomain, UnaryIntegerDomain, UpdateFn, UpdateFnBdd, VariableUpdateFnCompiled, XmlReader, diff --git a/src/prototype/update_fn.rs b/src/prototype/update_fn.rs index b1a4bf5..110a720 100644 --- a/src/prototype/update_fn.rs +++ b/src/prototype/update_fn.rs @@ -3,7 +3,6 @@ use crate::{expect_closure_of, expect_opening_of, process_list, StartElementWrap use super::expression::Expression; use super::utils::expect_opening; use std::{io::BufRead, str::FromStr}; -use xml::reader::EventReader; /// represents collection of tuples of the result values and the associated conditions. there is also the default value. /// todo think about how the functions should be evaluated - should we allow the conditions to "overlap" and say that the first one counts? diff --git a/src/prototype/update_fn_bdd.rs b/src/prototype/update_fn_bdd.rs index 6a9ab07..6d4df19 100644 --- a/src/prototype/update_fn_bdd.rs +++ b/src/prototype/update_fn_bdd.rs @@ -1,4 +1,4 @@ -use std::{collections::HashMap, ops::RangeBounds}; +use std::collections::HashMap; use biodivine_lib_bdd::{ Bdd, BddPartialValuation, BddValuation, BddVariableSet, BddVariableSetBuilder, diff --git a/src/prototype/update_fn_compiled.rs b/src/prototype/update_fn_compiled.rs index db168c0..214ae8b 100644 --- a/src/prototype/update_fn_compiled.rs +++ b/src/prototype/update_fn_compiled.rs @@ -34,8 +34,6 @@ impl> From> for VariableUpdateFnCompiled>(); - let xd = update_fn_bdd.result_domain.symbolic_variables(); - let matrix = outputs .iter() .map(|numeric_output| {