Example 1: LZ-like Compression
UNROLL_LOOP(int i=0;i<(HISTO_SIZE/2);i++){
UNROLL_LOOP(int j=0;j<(HISTO_SIZE/2)-i;j++){
match[i]=((history[HISTO_SIZE-i-j-1]==
history[(HISTO_SIZE/2)-j-1])
matchLength[i]=matchLength[i]+match[i];
newMax[i]=(matchLength[i]>maxMatch);
maxMatch=IF(newMax[i],matchLength[i],maxMatch);
maxPosition=IF(newMax[i],
result = (maxMatch<ɠ)+maxPosition;
uncompressed = history[(HISTO_SIZE/2)-1];
Myout = IF(result==0,(255<ɠ)+uncompressed,result);