Skip to content

Commit 843c719

Browse files
committed
WIP
1 parent 96030e6 commit 843c719

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/systems/clock_inference.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ function resize_or_push!(v, val, idx)
7575
push!(v[idx], val)
7676
end
7777

78+
function is_time_domain_conversion(v)
79+
istree(v) && (o = operation(v)) isa Operator &&
80+
input_timedomain(o) != output_timedomain(o)
81+
end
82+
7883
function split_system(ci::ClockInference{S}) where {S}
7984
@unpack ts, eq_domain, var_domain, inferred = ci
8085
fullvars = get_fullvars(ts)
@@ -113,8 +118,7 @@ function split_system(ci::ClockInference{S}) where {S}
113118
@assert cid!==0 "Internal error! Variable $(fullvars[i]) doesn't have a inferred time domain."
114119
var_to_cid[i] = cid
115120
v = fullvars[i]
116-
if istree(v) && (o = operation(v)) isa Operator &&
117-
input_timedomain(o) != output_timedomain(o)
121+
if is_time_domain_conversion(v)
118122
push!(input_idxs[cid], i)
119123
push!(inputs[cid], fullvars[i])
120124
end

0 commit comments

Comments
 (0)