Skip to content

Commit

Permalink
refactor: hopefully pipeline gud now
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukáš Chudíček committed Oct 7, 2023
1 parent a2d0229 commit a495767
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/prototype/system_update_fn.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/prototype/update_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
2 changes: 1 addition & 1 deletion src/prototype/update_fn_bdd.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{collections::HashMap, ops::RangeBounds};
use std::collections::HashMap;

use biodivine_lib_bdd::{
Bdd, BddPartialValuation, BddValuation, BddVariableSet, BddVariableSetBuilder,
Expand Down
2 changes: 0 additions & 2 deletions src/prototype/update_fn_compiled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ impl<D: SymbolicDomain<u8>> From<UpdateFnBdd<D>> for VariableUpdateFnCompiled<D,
.chain(std::iter::once(update_fn_bdd.default)) // the output for the last, default term
.collect::<Vec<_>>();

let xd = update_fn_bdd.result_domain.symbolic_variables();

let matrix = outputs
.iter()
.map(|numeric_output| {
Expand Down

0 comments on commit a495767

Please sign in to comment.