#include "test_static.isph"


uniform int * uniform ptr;

bool crash() {
    return *ptr > 0;
}

task void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
    float a = aFOO[programIndex]; 
    float a0 = aFOO[0], a1 = aFOO[1];
    if (a0 < a1 || crash())
        RET[programIndex] = 1;
    else
        RET[programIndex] = 0;
}

task void result(uniform float RET[]) {
    RET[programIndex] = 1;
}
