Trying to compile the following snippet yields
error: invalid controlling predicate
It seems that the culprit(s) are parentheses around the testing expression, as the generated for loop doesn't conform with the so called Canonical Loop Form
To Reproduce
Steps to reproduce the behavior:
Translate an expression with mapPar primitive using OpenMP generator.
Try compiling the snippet by invoking gcc -fopenmp -o snippet snippet.c
Expected behavior
The generated block should be compilable by the OpenMP-implementing compiler
Platform (please complete the following information):
OS: [e.g. Ubuntu 20.04.2]
JVM and Scala Version [e.g. JVM 1.8 and Scala 2.13.3]
Describe the bug Consider the following expression:
which translates to:
Trying to compile the following snippet yields
error: invalid controlling predicate
It seems that the culprit(s) are parentheses around the testing expression, as the generated for loop doesn't conform with the so called Canonical Loop Form
To Reproduce Steps to reproduce the behavior:
mapPar
primitive using OpenMP generator.gcc -fopenmp -o snippet snippet.c
Expected behavior The generated block should be compilable by the OpenMP-implementing compiler
Platform (please complete the following information):