move local variables out of if-then-else branches for silver
move local variables out of if-then-else branches for silver

sccblom/vercors,sccblom/vercors,sccblom/vercors,sccblom/vercors,sccblom/vercors