Skip to content

Commit 0ba8130

Browse files
committed
Fix #1577
1 parent da7880b commit 0ba8130

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/variables.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ setoutput(x, v) = setmetadata(x, VariableOutput, v)
3131
setio(x, i, o) = setoutput(setinput(x, i), o)
3232
isinput(x) = isvarkind(VariableInput, x)
3333
isoutput(x) = isvarkind(VariableOutput, x)
34-
isirreducible(x) = isvarkind(VariableIrreducible, x) || isinput(x)
34+
# Before the solvability check, we already have handled IO varibales, so
35+
# irreducibility is independent from IO.
36+
isirreducible(x) = isvarkind(VariableIrreducible, x)
3537
state_priority(x) = convert(Float64, getmetadata(x, VariableStatePriority, 0.0))::Float64
3638

3739
"""

0 commit comments

Comments
 (0)