Skip to content

Commit

Permalink
Update jci_05.md
Browse files Browse the repository at this point in the history
  • Loading branch information
abap34 committed Nov 23, 2024
1 parent f8d44a0 commit b918c52
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions posts/jci_05.md
Original file line number Diff line number Diff line change
Expand Up @@ -909,12 +909,14 @@ function abstract_interpret(I::Program, abstract_semantics::Function, a₀::Abst
for i in 1:n
current_input = inputs[i]
current_output = outputs[i]

inputs[i] = reduce(, outputs[j] for j in pred[i]; init=copy(a₀))
outputs[i] = abstract_semantics(I[i])(inputs[i])

new_input = reduce(, outputs[j] for j in pred[i]; init=copy(a₀))
new_output = abstract_semantics(I[i])(new_input)

inputs[i] = new_input
outputs[i] = new_output

if (current_input != inputs[i]) || (current_output != outputs[i])
if (current_input != new_input) || (current_output != new_output)
change = true
end
end
Expand Down

0 comments on commit b918c52

Please sign in to comment.