Fixed with vector loop
Code generator working for trivial case with vectorization