int push(unsigned int *stack, int x) { if (top==SIZE) { printf("stack overflow\n"); return OVERFLOW; } else { stack[get_top()] = x; inc_top(); } return 0; }
int push(unsigned int *stack, int x) { if (top == 800) { printf("stack overflow\n"); return -1; } else { stack[get_top()] = x; inc_top(); } return 0; }
int push(unsigned int *stack, int x) { __CS_cs(); if (__CS_ret != 0) return 0; if (top[__CS_round] == 5) { __CS_cs(); if (__CS_ret != 0) return 0; printf("stack overflow\n"); __CS_cs(); if (__CS_ret != 0) return 0; return -1; __CS_cs(); if (__CS_ret != 0) return 0; } else { __CS_cs(); if (__CS_ret != 0) return 0; stack[get_top()] = x; __CS_cs(); if (__CS_ret != 0) return 0; inc_top(); __CS_cs(); if (__CS_ret != 0) return 0; } __CS_cs(); if (__CS_ret != 0) return 0; return 0; __CS_cs(); if (__CS_ret != 0) return 0; }