(╯°□°)╯︵ ┻━┻

This commit is contained in:
Mike J Innes 2016-11-14 21:58:16 +00:00
parent 199765354e
commit ca5058f555
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,8 @@ end
Offset(name, n) = Offset(name, n, nothing)
Base.:-(o::Offset) = Offset(o.name, -o.n, o.default)
function liftloops(ex, params)
ex = DataFlow.normedges(ex)
MacroTools.postwalk(ex) do ex
@ -104,3 +106,5 @@ end
graph(u::Unrolled) = u.graph
unroll(model, n) = Unrolled(model, unrollgraph(model, n)..., n)
flip(model) = Capacitor(map(x -> isa(x, Offset) ? -x : x, atomise(model)))