We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a965fa2 commit 4fc319bCopy full SHA for 4fc319b
src/structural_transformation/codegen.jl
@@ -433,6 +433,11 @@ function build_observed_function(
433
union!(required_algvars, intersect(algvars, vs))
434
empty!(vs)
435
end
436
+ for eq in assignments
437
+ vars!(vs, eq.rhs)
438
+ union!(required_algvars, intersect(algvars, vs))
439
+ empty!(vs)
440
+ end
441
442
varidxs = findall(x->x in required_algvars, fullvars)
443
subset = find_solve_sequence(var_sccs, varidxs)
@@ -473,8 +478,8 @@ function build_observed_function(
473
478
[],
474
479
pre(Let(
475
480
[
476
- assignments[is_not_prepended_assignment]
477
481
collect(Iterators.flatten(solves))
482
+ assignments[is_not_prepended_assignment]
483
map(eq -> eq.lhs←eq.rhs, obs[1:maxidx])
484
subs
485
],
0 commit comments