Skip to content

Commit 19d2333

Browse files
committed
Make is_not_present_non_rec more understandable
1 parent b3b7be6 commit 19d2333

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/structural_transformation/partial_state_selection.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,9 @@ function dummy_derivative_graph!(structure::SystemStructure, var_eq_matching, ja
296296
is_not_present_non_rec = let graph = graph, irreducible_set = irreducible_set
297297
v -> begin
298298
not_in_eqs = isempty(𝑑neighbors(graph, v))
299-
isirreducible = false
300-
if ag !== nothing
301-
isirreducible = haskey(ag, v) && (v in irreducible_set)
302-
end
303-
not_in_eqs && !isirreducible
299+
ag === nothing && return not_in_eqs
300+
isirreducible = v in irreducible_set
301+
return not_in_eqs && !isirreducible
304302
end
305303
end
306304

0 commit comments

Comments
 (0)