File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,15 @@ struct ClockInference
2
2
ts:: TearingState
3
3
eq_domain:: Vector{TimeDomain}
4
4
var_domain:: Vector{TimeDomain}
5
- # maybe BitSet
6
- inferred:: Vector{Int}
5
+ inferred:: BitSet
7
6
end
8
7
9
8
function ClockInference (ts:: TearingState )
10
9
@unpack fullvars, structure = ts
11
10
@unpack graph = structure
12
11
eq_domain = Vector {TimeDomain} (undef, nsrcs (graph))
13
12
var_domain = Vector {TimeDomain} (undef, ndsts (graph))
14
- inferred = Int[]
13
+ inferred = BitSet ()
15
14
for (i, v) in enumerate (fullvars)
16
15
d = get_time_domain (v)
17
16
if d isa Union{AbstractClock, Continuous}
@@ -41,7 +40,6 @@ function infer_clocks!(ci::ClockInference)
41
40
end
42
41
end
43
42
cc = connected_components (var_graph)
44
- inferred = BitSet (inferred)
45
43
for c′ in cc
46
44
c = BitSet (c′)
47
45
idxs = intersect (c, inferred)
You can’t perform that action at this time.
0 commit comments