validation-diamond-result ( input width seed -- result )


Vocabulary
compiler.cfg.register-allocation.validation

Inputs
inputan object
widthan object
seedan object


Outputs
resultan object


Definition


:: validation-diamond-result ( input width seed -- result )
width input * width width 1 + * 2 /i input 0 >
[ seed 2 * 4 + ] [ -1 ] if * + ;