Below is an example of a stop_statement:
main
int a
while(1)
applog("a=",a);
a++;
// Stop the program when a reaches 10
if (a==10)
// Stop the task
stop;
endif
endwhile
endmain