/* PBXA64 handbook-style C text example: trim_whitespace.
 * trim leading and trailing spaces with index boundaries. This source deliberately keeps every transformation visible
 * instead of hiding it behind library calls, making it useful for tracing.
 */
int main(void) {
    char s[] = "  data  "; int first = 0, last = 7; while (s[first] == ' ') ++first; while (s[last] == ' ') --last; return first == 2 && last == 5 ? 0 : 1;
}

/* Discussion: inspect the loop bounds, byte classification, and final return
 * value. The bounded-C frontend currently records CIR0200 for all C source;
 * this example remains a real handbook program for the public C surface once
 * that frontend gate is restored. */
