dimitriv / Ziria

A domain-specific-language and compiler for low-level bitstream processing.
92 stars 18 forks source link

Bug in reading arrays #77

Open bradunov opened 9 years ago

bradunov commented 9 years ago

The following code: fun comp test() { var y : arr[24] bit; times 2 { (x1 : arr[12] bit) <- take; (x2 : arr[12] bit) <- take; do { println x1; println x2; }; } };

Assigns the value of x2 to both x1 and x2. If I replace take with takes 12, everything works fine.