cucapra/dahlia

Arrays translated incorrectly

Closed this issue · 2 comments

When compiling a .fuse file,
let temp: bit<32>[2048];
was translated into
bit<32> temp
when the expected result should be ap_int<32>[2048].

This still happens for fuse programs that only has one line, as above.
'bit' did not correctly turn into 'int' and the '[]' went missing.
The problem might relate to the this issue https://github.com/cucapra/seashell/issues/202

This only seems to happen for arrays. let temp: bit<32>; can be correctly translated into ap_int<32> temp

Why is there no facepalm 🤦‍♀️ emoji in GitHub.

Will fix. Thanks for the bug report @ViviYe!