text: #include "libpov.h"
  int main(int cgc_argc, char *cgc_argv[]) {
     cgc_negotiate_type1(0x0, 0x0, 0);
     do {
        //*** writing data
        static unsigned char write_00000_00000[] = 
           "\x48\x45\x4c\x4c\x4f\x0a";
        static unsigned int write_00000_00000_len = 6;
        unsigned char *write_00000 = NULL;
        unsigned int write_00000_len = 0;
        write_00000 = cgc_append_buf(write_00000, &write_00000_len, write_00000_00000, write_00000_00000_len);
        if (write_00000_len > 0) {
           cgc_transmit_all(1, write_00000, write_00000_len);
        }
        cgc_free(write_00000);
     } while (0);
     do {
        unsigned char *read_00000;
        unsigned int read_00000_len;
        unsigned int read_00000_ptr = 0;
        //**** delimited read
        static unsigned char read_00000_delim[] = 
           "\x0a";
        read_00000 = NULL;
        read_00000_len = 0;
        int read_00000_res = cgc_delimited_read(0, &read_00000, &read_00000_len, read_00000_delim, 1);
        if (read_00000_res) {} //silence unused variable warning
        //**** read assign to var "token" from pcre: OK ([0-9A-F]*)\n
        static char read_00000_regex[] = 
           "\x4f\x4b\x20\x28\x5b\x30\x2d\x39\x41\x2d\x46\x5d\x2a\x29\x5c\x6e";
        cgc_assign_from_pcre("token", read_00000, read_00000_len - read_00000_ptr, read_00000_regex, 1);
        cgc_free(read_00000);
        if (read_00000_ptr) {}  //silence unused variable warning if any
     } while (0);
     do {
        //*** writing data
        static unsigned char write_00001_00000[] = 
           "\x41\x55\x54\x48\x20";
        static unsigned int write_00001_00000_len = 5;
        static unsigned char write_00001_00002[] = 
           "\x0a";
        static unsigned int write_00001_00002_len = 1;
        unsigned char *write_00001 = NULL;
        unsigned int write_00001_len = 0;
        write_00001 = cgc_append_buf(write_00001, &write_00001_len, write_00001_00000, write_00001_00000_len);
        write_00001 = cgc_append_var("token", write_00001, &write_00001_len);
        write_00001 = cgc_append_buf(write_00001, &write_00001_len, write_00001_00002, write_00001_00002_len);
        if (write_00001_len > 0) {
           cgc_transmit_all(1, write_00001, write_00001_len);
        }
        cgc_free(write_00001);
     } while (0);
     do {
        unsigned char *read_00001;
        unsigned int read_00001_len;
        unsigned int read_00001_ptr = 0;
        //**** delimited read
        static unsigned char read_00001_delim[] = 
           "\x0a";
        read_00001 = NULL;
        read_00001_len = 0;
        int read_00001_res = cgc_delimited_read(0, &read_00001, &read_00001_len, read_00001_delim, 1);
        if (read_00001_res) {} //silence unused variable warning
        //**** read match data
        static unsigned char match_00001_00000[] = 
           "\x4f\x4b\x0a";
        read_00001_ptr += cgc_data_match(read_00001 + read_00001_ptr, read_00001_len - read_00001_ptr, match_00001_00000, 3);
        cgc_free(read_00001);
        if (read_00001_ptr) {}  //silence unused variable warning if any
     } while (0);
     do {
        //*** writing data
        static unsigned char write_00002_00000[] = 
           "\x53\x45\x54\x20\x6d\x6f\x64\x65\x20\x65\x6e\x63\x6f\x64\x65\x0a";
        static unsigned int write_00002_00000_len = 16;
        unsigned char *write_00002 = NULL;
        unsigned int write_00002_len = 0;
        write_00002 = cgc_append_buf(write_00002, &write_00002_len, write_00002_00000, write_00002_00000_len);
        if (write_00002_len > 0) {
           cgc_transmit_all(1, write_00002, write_00002_len);
        }
        cgc_free(write_00002);
     } while (0);
     do {
        unsigned char *read_00002;
        unsigned int read_00002_len;
        unsigned int read_00002_ptr = 0;
        //**** delimited read
        static unsigned char read_00002_delim[] = 
           "\x0a";
        read_00002 = NULL;
        read_00002_len = 0;
        int read_00002_res = cgc_delimited_read(0, &read_00002, &read_00002_len, read_00002_delim, 1);
        if (read_00002_res) {} //silence unused variable warning
        //**** read match data
        static unsigned char match_00002_00000[] = 
           "\x4f\x4b\x0a";
        read_00002_ptr += cgc_data_match(read_00002 + read_00002_ptr, read_00002_len - read_00002_ptr, match_00002_00000, 3);
        cgc_free(read_00002);
        if (read_00002_ptr) {}  //silence unused variable warning if any
     } while (0);
     do {
        //*** writing data
        static unsigned char write_00003_00000[] = 
           "\x53\x45\x54\x20\x64\x61\x74\x61\x20\x61\x61\x61\x61\x61\x61\x61"
           "\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61"
           "\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61"
           "\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61"
           "\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61"
           "\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61"
           "\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61"
           "\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61"
           "\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61"
           "\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61"
           "\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61"
           "\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61"
           "\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x61\x0a";
        static unsigned int write_00003_00000_len = 204;
        unsigned char *write_00003 = NULL;
        unsigned int write_00003_len = 0;
        write_00003 = cgc_append_buf(write_00003, &write_00003_len, write_00003_00000, write_00003_00000_len);
        if (write_00003_len > 0) {
           cgc_transmit_all(1, write_00003, write_00003_len);
        }
        cgc_free(write_00003);
     } while (0);
     do {
        unsigned char *read_00003;
        unsigned int read_00003_len;
        unsigned int read_00003_ptr = 0;
        //**** delimited read
        static unsigned char read_00003_delim[] = 
           "\x0a";
        read_00003 = NULL;
        read_00003_len = 0;
        int read_00003_res = cgc_delimited_read(0, &read_00003, &read_00003_len, read_00003_delim, 1);
        if (read_00003_res) {} //silence unused variable warning
        //**** read match data
        static unsigned char match_00003_00000[] = 
           "\x4f\x4b\x0a";
        read_00003_ptr += cgc_data_match(read_00003 + read_00003_ptr, read_00003_len - read_00003_ptr, match_00003_00000, 3);
        cgc_free(read_00003);
        if (read_00003_ptr) {}  //silence unused variable warning if any
     } while (0);
     do {
        //*** writing data
        static unsigned char write_00004_00000[] = 
           "\x43\x41\x4c\x4c\x20\x2f\x72\x6f\x6f\x74\x36\x34\x0a";
        static unsigned int write_00004_00000_len = 13;
        unsigned char *write_00004 = NULL;
        unsigned int write_00004_len = 0;
        write_00004 = cgc_append_buf(write_00004, &write_00004_len, write_00004_00000, write_00004_00000_len);
        if (write_00004_len > 0) {
           cgc_transmit_all(1, write_00004, write_00004_len);
        }
        cgc_free(write_00004);
     } while (0);
     do {
        unsigned char *read_00004;
        unsigned int read_00004_len;
        unsigned int read_00004_ptr = 0;
        //**** delimited read
        static unsigned char read_00004_delim[] = 
           "\x0a";
        read_00004 = NULL;
        read_00004_len = 0;
        int read_00004_res = cgc_delimited_read(0, &read_00004, &read_00004_len, read_00004_delim, 1);
        if (read_00004_res) {} //silence unused variable warning
        cgc_free(read_00004);
        if (read_00004_ptr) {}  //silence unused variable warning if any
     } while (0);
  }
  