microsoft / knossos-ksc

Compiler with automatic differentiation
Other
45 stars 10 forks source link

Tidy up var decl vs use #827

Closed dcrc2 closed 3 years ago

dcrc2 commented 3 years ago

I've extracted this from the large PR #762, but I'm not sure how it relates to the other code in that PR. @awf is there something else in #762 which breaks without this?

awf commented 3 years ago

This assert induces these fixes: image

Sorry for bitmap, couldn't figure out how to link

dcrc2 commented 3 years ago

This assert induces these fixes: ...

Ah I see, thanks. I've pulled that change into this PR.