#include "test_static.isph"
task void f_fu(uniform float r[], uniform float a[], uniform float b) {
    #pragma ignore warning(perf)
    unsigned int i = (unsigned int)a[programIndex];
    #pragma ignore warning(perf)
    r[programIndex] = max((unsigned int)2, i);
    r[programCount-1] = max((unsigned int)10, (unsigned int)b);
}

task void result(uniform float r[]) {
    r[programIndex] = 1+programIndex;
    r[0] = 2;
    r[programCount - 1] = 10;
}
