Skip to content

Commit e72e4b1

Browse files
committed
Some last minute style changes.
1 parent 5b3d439 commit e72e4b1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/bin/bench_reach.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fn main() {
1515
model.num_parameters()
1616
);
1717

18-
let stg = SymbolicAsyncGraph::new(&model.clone()).unwrap();
18+
let stg = SymbolicAsyncGraph::new(&model).unwrap();
1919

2020
let mut universe = stg.mk_unit_colored_vertices();
2121
while !universe.is_empty() {

src/bin/bench_trap_spaces_minimal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fn main() {
66
let args = std::env::args().collect::<Vec<_>>();
77
let bn = BooleanNetwork::try_from_file(args[1].as_str()).unwrap();
88
let ctx = SymbolicSpaceContext::new(&bn);
9-
let stg = SymbolicAsyncGraph::with_space_context(&bn.clone(), &ctx).unwrap();
9+
let stg = SymbolicAsyncGraph::with_space_context(&bn, &ctx).unwrap();
1010

1111
let unit_set = ctx.mk_unit_colored_spaces(&stg);
1212
let essential_traps = TrapSpaces::essential_symbolic(&bn, &ctx, &unit_set);

src/symbolic_async_graph/_impl_symbolic_async_graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ impl SymbolicAsyncGraph {
405405
return None;
406406
}
407407

408-
let new_context = self.symbolic_context.eliminate(variable);
408+
let new_context = self.symbolic_context.eliminate_network_variable(variable);
409409

410410
// State variables should not matter that much in the unit set, we can just erase it. The important
411411
// part is that we use the new symbolic context.

src/symbolic_async_graph/_impl_symbolic_context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ impl SymbolicContext {
164164
/// by the eliminated variable. However, you cannot access them using the normal methods
165165
/// (e.g. [SymbolicContext::get_extra_state_variable]), only through the full list
166166
/// (i.e. [SymbolicContext::all_extra_state_variables]).
167-
pub fn eliminate(&self, variable: VariableId) -> SymbolicContext {
167+
pub fn eliminate_network_variable(&self, variable: VariableId) -> SymbolicContext {
168168
let index = variable.to_index();
169169
let mut result = self.clone();
170170
// Remove the variable from all variable-indexed lists. The symbolic variables still remain in the

0 commit comments

Comments
 (0)