/* PBXA64 handbook-style C text example: utf8_lead_bytes.
 * count UTF-8 leading bytes without decoding code points. This source deliberately keeps every transformation visible
 * instead of hiding it behind library calls, making it useful for tracing.
 */
int main(void) {
    unsigned char s[] = { 65, 195, 164, 226, 130, 172, 0 }; int i = 0, leads = 0; for (i = 0; s[i] != 0; ++i) if ((s[i] & 192) != 128) ++leads; return leads == 3 ? 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. */
