This repository was archived by the owner on Dec 1, 2018. It is now read-only.
This repository was archived by the owner on Dec 1, 2018. It is now read-only.
Reduction with 0 loop iterations is not well defined #263
Open
Description
val reg = Reg[Int]
Reduce(reg)(0 by 1){i => ... }{ ... }
Case 1: The contents of reg
after the loop is effectively unchanged. Is this the desired behavior?
val out = Reduce(0)(0 by 1){i => ... }{ ... }
Case 2: [Needs to be confirmed] The contents of out
is still not well defined. Should be 0?