#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int EOF;
void *getc(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stdin;
int main(int argc, char **argv) {
  int state = 0;
  int codepoint = 0;
  while (true) {
    int c = getc(stdin);
    if (c == EOF)
      break;
    if (c & 0x80) {
      if (c & 0xC0 == 0x80) {
        continue;
      }
      char c0 = c;
      if ((c & 0xE0) == 0xC0) {
        printf("Two byte.\n");
        char c1 = getc(stdin);
        if ((c1 & 0xC0) != 0x80) {
          printf("2B:Weird unicode\n");
          continue;
        }
        codepoint = (c1 & 0x3F) | ((c0 & 0x1F) << 6);
      } else if ((c & 0xF0) == 0xE0) {
        printf("Three byte.\n");
        char c1 = getc(stdin);
        char c2 = getc(stdin);
        if ((c1 & 0xC0) != 0x80) {
          printf("3B:Weird unicode\n");
          continue;
        }
        if ((c2 & 0xC0) != 0x80) {
          printf("3B:Weird unicode\n");
          continue;
        }
        codepoint = (c2 & 0x3F) | (((c1 & 0x3F) | ((c0 & 0x0F) << 6)) << 6);
      } else if ((c & 0xF8) == 0xF0) {
        printf("Four byte.\n");
        char c1 = getc(stdin);
        char c2 = getc(stdin);
        char c3 = getc(stdin);
        if ((c1 & 0xC0) != 0x80) {
          printf("4B:Weird unicode\n");
          continue;
        }
        if ((c2 & 0xC0) != 0x80) {
          printf("4B:Weird unicode\n");
          continue;
        }
        if ((c3 & 0xC0) != 0x80) {
          printf("4B:Weird unicode\n");
          continue;
        }
        codepoint =
            (c3 & 0x3F) |
            (((c2 & 0x3F) | (((c1 & 0x3F) | ((c0 & 0x07) << 6)) << 6)) << 6);
      } else {
        printf("Weird unicode.\n");
      }
    } else {
      codepoint = c;
    }
    if (codepoint != '\n')
      printf("u:%c -> %d, 0x%X\n", codepoint, codepoint, codepoint);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    0x2e9d(%rip),%rax
mov    (%rax),%edi
call   1040 <getc@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    0x2e81(%rip),%rcx
cmp    (%rcx),%eax
jne    116c <main+0x4c>
jmp    1408 <main+0x2e8>
mov    -0x1c(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     13dc <main+0x2bc>
mov    -0x1c(%rbp),%eax
and    $0x0,%eax
cmp    $0x0,%eax
je     1191 <main+0x71>
jmp    1144 <main+0x24>
mov    -0x1c(%rbp),%eax
mov    %al,-0x1d(%rbp)
mov    -0x1c(%rbp),%eax
and    $0xe0,%eax
cmp    $0xc0,%eax
jne    120b <main+0xeb>
lea    0xe4f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e29(%rip),%rax
mov    (%rax),%edi
call   1040 <getc@plt>
mov    %al,-0x1e(%rbp)
movsbl -0x1e(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     11f0 <main+0xd0>
lea    0xe27(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1144 <main+0x24>
movsbl -0x1e(%rbp),%eax
and    $0x3f,%eax
movsbl -0x1d(%rbp),%ecx
and    $0x1f,%ecx
shl    $0x6,%ecx
or     %ecx,%eax
mov    %eax,-0x18(%rbp)
jmp    13d7 <main+0x2b7>
mov    -0x1c(%rbp),%eax
and    $0xf0,%eax
cmp    $0xe0,%eax
jne    12c3 <main+0x1a3>
lea    0xdf8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2db5(%rip),%rax
mov    (%rax),%edi
call   1040 <getc@plt>
mov    %al,-0x1f(%rbp)
mov    0x2da4(%rip),%rax
mov    (%rax),%edi
call   1040 <getc@plt>
mov    %al,-0x20(%rbp)
movsbl -0x1f(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     1275 <main+0x155>
lea    0xdc1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1144 <main+0x24>
movsbl -0x20(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     129c <main+0x17c>
lea    0xd9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1144 <main+0x24>
movsbl -0x20(%rbp),%eax
and    $0x3f,%eax
movsbl -0x1f(%rbp),%ecx
and    $0x3f,%ecx
movsbl -0x1d(%rbp),%edx
and    $0xf,%edx
shl    $0x6,%edx
or     %edx,%ecx
shl    $0x6,%ecx
or     %ecx,%eax
mov    %eax,-0x18(%rbp)
jmp    13d2 <main+0x2b2>
mov    -0x1c(%rbp),%eax
and    $0xf8,%eax
cmp    $0xf0,%eax
jne    13bf <main+0x29f>
lea    0xd5f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2cfd(%rip),%rax
mov    (%rax),%edi
call   1040 <getc@plt>
mov    %al,-0x21(%rbp)
mov    0x2cec(%rip),%rax
mov    (%rax),%edi
call   1040 <getc@plt>
mov    %al,-0x22(%rbp)
mov    0x2cdb(%rip),%rax
mov    (%rax),%edi
call   1040 <getc@plt>
mov    %al,-0x23(%rbp)
movsbl -0x21(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     133e <main+0x21e>
lea    0xd16(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1144 <main+0x24>
movsbl -0x22(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     1365 <main+0x245>
lea    0xcef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1144 <main+0x24>
movsbl -0x23(%rbp),%eax
and    $0xc0,%eax
cmp    $0x80,%eax
je     138c <main+0x26c>
lea    0xcc8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1144 <main+0x24>
movsbl -0x23(%rbp),%eax
and    $0x3f,%eax
movsbl -0x22(%rbp),%ecx
and    $0x3f,%ecx
movsbl -0x21(%rbp),%edx
and    $0x3f,%edx
movsbl -0x1d(%rbp),%esi
and    $0x7,%esi
shl    $0x6,%esi
or     %esi,%edx
shl    $0x6,%edx
or     %edx,%ecx
shl    $0x6,%ecx
or     %ecx,%eax
mov    %eax,-0x18(%rbp)
jmp    13cd <main+0x2ad>
lea    0xc94(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13d2 <main+0x2b2>
jmp    13d7 <main+0x2b7>
jmp    13e2 <main+0x2c2>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
cmpl   $0xa,-0x18(%rbp)
je     1403 <main+0x2e3>
mov    -0x18(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x18(%rbp),%ecx
lea    0xc6e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1144 <main+0x24>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    0x2ea6(%rip),%r14
mov    (%r14),%edi
call   1050 <getc@plt>
mov    %rax,%rbp
mov    0x2e8c(%rip),%r15
cmp    %ebp,(%r15)
jne    116a <main+0x3a>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe8f(%rip),%r13
xor    %r12d,%r12d
jmp    1192 <main+0x62>
lea    0xee7(%rip),%rdi
call   1030 <puts@plt>
mov    (%r14),%edi
call   1050 <getc@plt>
mov    %rax,%rbp
cmp    %ebp,(%r15)
je     1159 <main+0x29>
test   $0x80,%bpl
je     1310 <main+0x1e0>
mov    %ebp,%eax
and    $0xe0,%eax
cmp    $0xc0,%eax
jne    11e0 <main+0xb0>
lea    0xea9(%rip),%rdi
call   1030 <puts@plt>
mov    (%r14),%edi
call   1050 <getc@plt>
mov    %eax,%ecx
and    $0xc0,%ecx
cmp    $0x80,%ecx
jne    1176 <main+0x46>
and    $0x3f,%eax
and    $0x1f,%ebp
shl    $0x6,%ebp
or     %eax,%ebp
jmp    1310 <main+0x1e0>
xchg   %ax,%ax
mov    %ebp,%eax
and    $0xf0,%eax
cmp    $0xe0,%eax
jne    1245 <main+0x115>
lea    0xe48(%rip),%rdi
call   1030 <puts@plt>
mov    (%r14),%edi
call   1050 <getc@plt>
mov    %rax,%rbx
mov    (%r14),%edi
call   1050 <getc@plt>
mov    %ebx,%ecx
and    $0xc0,%ecx
cmp    $0x80,%ecx
jne    12ee <main+0x1be>
mov    %eax,%ecx
and    $0xc0,%ecx
cmp    $0x80,%ecx
jne    12ee <main+0x1be>
and    $0x3f,%eax
and    $0x3f,%ebx
and    $0xf,%ebp
shl    $0x6,%ebp
or     %ebx,%ebp
jmp    11d4 <main+0xa4>
mov    %ebp,%eax
and    $0xf8,%eax
cmp    $0xf0,%eax
jne    12fa <main+0x1ca>
mov    %r15,%rbx
lea    0xdc0(%rip),%rdi
call   1030 <puts@plt>
mov    (%r14),%edi
call   1050 <getc@plt>
mov    %rax,%r15
mov    (%r14),%edi
call   1050 <getc@plt>
mov    %rax,%r13
mov    (%r14),%edi
call   1050 <getc@plt>
mov    %r15d,%ecx
and    $0xc0,%ecx
cmp    $0x80,%ecx
jne    1337 <main+0x207>
mov    %r13d,%ecx
and    $0xc0,%ecx
cmp    $0x80,%ecx
jne    1337 <main+0x207>
mov    %eax,%ecx
and    $0xc0,%ecx
cmp    $0x80,%ecx
jne    1337 <main+0x207>
and    $0x3f,%eax
and    $0x3f,%r15d
and    $0x7,%ebp
shl    $0x6,%ebp
or     %r15d,%ebp
shl    $0xc,%ebp
and    $0x3f,%r13d
shl    $0x6,%r13d
or     %ebp,%r13d
or     %eax,%r13d
mov    %r13d,%ebp
mov    %rbx,%r15
lea    0xd14(%rip),%r13
jmp    1310 <main+0x1e0>
lea    0xd54(%rip),%rdi
jmp    117d <main+0x4d>
lea    0xd11(%rip),%rdi
call   1030 <puts@plt>
mov    %r12d,%ebp
nopl   0x0(%rax)
mov    $0xa,%r12d
cmp    $0xa,%ebp
je     1182 <main+0x52>
mov    %r13,%rdi
mov    %ebp,%esi
mov    %ebp,%edx
mov    %ebp,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%r12d
jmp    1182 <main+0x52>
lea    0xcee(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%r15
lea    0xcb3(%rip),%r13
jmp    1182 <main+0x52>

LLVM IR (-O0):
@stdin = global i32 0
@EOF = global i32 0
@.str = [11 x i8] c"Two byte.\0A\00"
@.str.1 = [18 x i8] c"2B:Weird unicode\0A\00"
@.str.2 = [13 x i8] c"Three byte.\0A\00"
@.str.3 = [18 x i8] c"3B:Weird unicode\0A\00"
@.str.4 = [12 x i8] c"Four byte.\0A\00"
@.str.5 = [18 x i8] c"4B:Weird unicode\0A\00"
@.str.6 = [16 x i8] c"Weird unicode.\0A\00"
@.str.7 = [18 x i8] c"u:%c -> %d, 0x%X\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8
%10 = alloca i8
%11 = alloca i8
%12 = alloca i8
%13 = alloca i8
%14 = alloca i8
%15 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
br label %16
16: ; preds = %2, %32, %48, %75, %82, %117, %124, %131, %167
%17 = load i32, i32* @stdin
%18 = call i8* @getc(i32 %17)
%19 = ptrtoint i8* %18 to i32
store i32 %19, i32* %8
%20 = load i32, i32* %8
%21 = load i32, i32* @EOF
%22 = icmp eq i32 %20, %21
br i1 %22, label %23, label %24
23: ; preds = %16
br label %168
24: ; preds = %16
%25 = load i32, i32* %8
%26 = and i32 %25, 128
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %157
28: ; preds = %24
%29 = load i32, i32* %8
%30 = and i32 %29, 0
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %28
br label %16
33: ; preds = %28
%34 = load i32, i32* %8
%35 = trunc i32 %34 to i8
store i8 %35, i8* %9
%36 = load i32, i32* %8
%37 = and i32 %36, 224
%38 = icmp eq i32 %37, 192
br i1 %38, label %39, label %59
39: ; preds = %33
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%41 = load i32, i32* @stdin
%42 = call i8* @getc(i32 %41)
%43 = ptrtoint i8* %42 to i8
store i8 %43, i8* %10
%44 = load i8, i8* %10
%45 = sext i8 %44 to i32
%46 = and i32 %45, 192
%47 = icmp ne i32 %46, 128
br i1 %47, label %48, label %50
48: ; preds = %39
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
br label %16
50: ; preds = %39
%51 = load i8, i8* %10
%52 = sext i8 %51 to i32
%53 = and i32 %52, 63
%54 = load i8, i8* %9
%55 = sext i8 %54 to i32
%56 = and i32 %55, 31
%57 = shl i32 %56, 6
%58 = or i32 %53, %57
store i32 %58, i32* %7
br label %156
59: ; preds = %33
%60 = load i32, i32* %8
%61 = and i32 %60, 240
%62 = icmp eq i32 %61, 224
br i1 %62, label %63, label %98
63: ; preds = %59
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%65 = load i32, i32* @stdin
%66 = call i8* @getc(i32 %65)
%67 = ptrtoint i8* %66 to i8
store i8 %67, i8* %11
%68 = load i32, i32* @stdin
%69 = call i8* @getc(i32 %68)
%70 = ptrtoint i8* %69 to i8
store i8 %70, i8* %12
%71 = load i8, i8* %11
%72 = sext i8 %71 to i32
%73 = and i32 %72, 192
%74 = icmp ne i32 %73, 128
br i1 %74, label %75, label %77
75: ; preds = %63
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
br label %16
77: ; preds = %63
%78 = load i8, i8* %12
%79 = sext i8 %78 to i32
%80 = and i32 %79, 192
%81 = icmp ne i32 %80, 128
br i1 %81, label %82, label %84
82: ; preds = %77
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
br label %16
84: ; preds = %77
%85 = load i8, i8* %12
%86 = sext i8 %85 to i32
%87 = and i32 %86, 63
%88 = load i8, i8* %11
%89 = sext i8 %88 to i32
%90 = and i32 %89, 63
%91 = load i8, i8* %9
%92 = sext i8 %91 to i32
%93 = and i32 %92, 15
%94 = shl i32 %93, 6
%95 = or i32 %90, %94
%96 = shl i32 %95, 6
%97 = or i32 %87, %96
store i32 %97, i32* %7
br label %155
98: ; preds = %59
%99 = load i32, i32* %8
%100 = and i32 %99, 248
%101 = icmp eq i32 %100, 240
br i1 %101, label %102, label %152
102: ; preds = %98
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%104 = load i32, i32* @stdin
%105 = call i8* @getc(i32 %104)
%106 = ptrtoint i8* %105 to i8
store i8 %106, i8* %13
%107 = load i32, i32* @stdin
%108 = call i8* @getc(i32 %107)
%109 = ptrtoint i8* %108 to i8
store i8 %109, i8* %14
%110 = load i32, i32* @stdin
%111 = call i8* @getc(i32 %110)
%112 = ptrtoint i8* %111 to i8
store i8 %112, i8* %15
%113 = load i8, i8* %13
%114 = sext i8 %113 to i32
%115 = and i32 %114, 192
%116 = icmp ne i32 %115, 128
br i1 %116, label %117, label %119
117: ; preds = %102
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
br label %16
119: ; preds = %102
%120 = load i8, i8* %14
%121 = sext i8 %120 to i32
%122 = and i32 %121, 192
%123 = icmp ne i32 %122, 128
br i1 %123, label %124, label %126
124: ; preds = %119
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
br label %16
126: ; preds = %119
%127 = load i8, i8* %15
%128 = sext i8 %127 to i32
%129 = and i32 %128, 192
%130 = icmp ne i32 %129, 128
br i1 %130, label %131, label %133
131: ; preds = %126
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
br label %16
133: ; preds = %126
%134 = load i8, i8* %15
%135 = sext i8 %134 to i32
%136 = and i32 %135, 63
%137 = load i8, i8* %14
%138 = sext i8 %137 to i32
%139 = and i32 %138, 63
%140 = load i8, i8* %13
%141 = sext i8 %140 to i32
%142 = and i32 %141, 63
%143 = load i8, i8* %9
%144 = sext i8 %143 to i32
%145 = and i32 %144, 7
%146 = shl i32 %145, 6
%147 = or i32 %142, %146
%148 = shl i32 %147, 6
%149 = or i32 %139, %148
%150 = shl i32 %149, 6
%151 = or i32 %136, %150
store i32 %151, i32* %7
br label %154
152: ; preds = %98
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
br label %154
154: ; preds = %152, %133
br label %155
155: ; preds = %154, %84
br label %156
156: ; preds = %155, %50
br label %159
157: ; preds = %24
%158 = load i32, i32* %8
store i32 %158, i32* %7
br label %159
159: ; preds = %157, %156
%160 = load i32, i32* %7
%161 = icmp ne i32 %160, 10
br i1 %161, label %162, label %167
162: ; preds = %159
%163 = load i32, i32* %7
%164 = load i32, i32* %7
%165 = load i32, i32* %7
%166 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i32 %163, i32 %164, i32 %165)
br label %167
167: ; preds = %162, %159
br label %16
168: ; preds = %23
ret i32 0
}

LLVM IR (-O2):
@stdin = global i32 0
@EOF = global i32 0
@.str.7 = [18 x i8] c"u:%c -> %d, 0x%X\0A\00"
@str = [15 x i8] c"Weird unicode.\00"
@str.8 = [11 x i8] c"Four byte.\00"
@str.11 = [17 x i8] c"4B:Weird unicode\00"
@str.12 = [12 x i8] c"Three byte.\00"
@str.14 = [17 x i8] c"3B:Weird unicode\00"
@str.15 = [10 x i8] c"Two byte.\00"
@str.16 = [17 x i8] c"2B:Weird unicode\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = load i32, i32* @stdin
%4 = tail call i8* @getc(i32 %3)
%5 = ptrtoint i8* %4 to i64
%6 = trunc i64 %5 to i32
%7 = load i32, i32* @EOF
%8 = icmp eq i32 %7, %6
br i1 %8, label %119, label %9
9: ; preds = %2, %111
%10 = phi i32 [ %116, %111 ], [ %6, %2 ]
%11 = phi i32 [ %112, %111 ], [ 0, %2 ]
%12 = and i32 %10, 128
%13 = icmp eq i32 %12, 0
br i1 %13, label %106, label %14
14: ; preds = %9
%15 = and i32 %10, 224
%16 = icmp eq i32 %15, 192
br i1 %16, label %17, label %32
17: ; preds = %14
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.15, i64 0, i64 0))
%19 = load i32, i32* @stdin
%20 = tail call i8* @getc(i32 %19)
%21 = ptrtoint i8* %20 to i64
%22 = trunc i64 %21 to i32
%23 = and i32 %22, 192
%24 = icmp eq i32 %23, 128
br i1 %24, label %25, label %30
25: ; preds = %17
%26 = and i32 %22, 63
%27 = shl i32 %10, 6
%28 = and i32 %27, 1984
%29 = or i32 %26, %28
br label %106
30: ; preds = %17
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.16, i64 0, i64 0))
br label %111
32: ; preds = %14
%33 = and i32 %10, 240
%34 = icmp eq i32 %33, 224
br i1 %34, label %35, label %62
35: ; preds = %32
%36 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.12, i64 0, i64 0))
%37 = load i32, i32* @stdin
%38 = tail call i8* @getc(i32 %37)
%39 = ptrtoint i8* %38 to i64
%40 = trunc i64 %39 to i32
%41 = load i32, i32* @stdin
%42 = tail call i8* @getc(i32 %41)
%43 = and i32 %40, 192
%44 = icmp eq i32 %43, 128
br i1 %44, label %47, label %45
45: ; preds = %35
%46 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.14, i64 0, i64 0))
br label %111
47: ; preds = %35
%48 = ptrtoint i8* %42 to i64
%49 = trunc i64 %48 to i32
%50 = and i32 %49, 192
%51 = icmp eq i32 %50, 128
br i1 %51, label %54, label %52
52: ; preds = %47
%53 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.14, i64 0, i64 0))
br label %111
54: ; preds = %47
%55 = and i32 %49, 63
%56 = and i32 %40, 63
%57 = shl i32 %10, 6
%58 = and i32 %57, 960
%59 = or i32 %56, %58
%60 = shl nuw nsw i32 %59, 6
%61 = or i32 %55, %60
br label %106
62: ; preds = %32
%63 = and i32 %10, 248
%64 = icmp eq i32 %63, 240
br i1 %64, label %65, label %104
65: ; preds = %62
%66 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.8, i64 0, i64 0))
%67 = load i32, i32* @stdin
%68 = tail call i8* @getc(i32 %67)
%69 = ptrtoint i8* %68 to i64
%70 = trunc i64 %69 to i32
%71 = load i32, i32* @stdin
%72 = tail call i8* @getc(i32 %71)
%73 = load i32, i32* @stdin
%74 = tail call i8* @getc(i32 %73)
%75 = ptrtoint i8* %74 to i64
%76 = trunc i64 %75 to i32
%77 = and i32 %70, 192
%78 = icmp eq i32 %77, 128
br i1 %78, label %81, label %79
79: ; preds = %65
%80 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.11, i64 0, i64 0))
br label %111
81: ; preds = %65
%82 = ptrtoint i8* %72 to i64
%83 = trunc i64 %82 to i32
%84 = and i32 %83, 192
%85 = icmp eq i32 %84, 128
br i1 %85, label %88, label %86
86: ; preds = %81
%87 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.11, i64 0, i64 0))
br label %111
88: ; preds = %81
%89 = and i32 %76, 192
%90 = icmp eq i32 %89, 128
br i1 %90, label %93, label %91
91: ; preds = %88
%92 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.11, i64 0, i64 0))
br label %111
93: ; preds = %88
%94 = and i32 %76, 63
%95 = and i32 %70, 63
%96 = shl i32 %10, 6
%97 = and i32 %96, 448
%98 = or i32 %95, %97
%99 = shl nuw nsw i32 %98, 12
%100 = shl i32 %83, 6
%101 = and i32 %100, 4032
%102 = or i32 %101, %99
%103 = or i32 %94, %102
br label %106
104: ; preds = %62
%105 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
br label %106
106: ; preds = %104, %25, %54, %93, %9
%107 = phi i32 [ %10, %9 ], [ %29, %25 ], [ %11, %104 ], [ %103, %93 ], [ %61, %54 ]
%108 = icmp eq i32 %107, 10
br i1 %108, label %111, label %109
109: ; preds = %106
%110 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i32 %107, i32 %107, i32 %107)
br label %111
111: ; preds = %79, %86, %91, %45, %52, %30, %106, %109
%112 = phi i32 [ %107, %109 ], [ 10, %106 ], [ %11, %30 ], [ %11, %52 ], [ %11, %45 ], [ %11, %91 ], [ %11, %86 ], [ %11, %79 ]
%113 = load i32, i32* @stdin
%114 = tail call i8* @getc(i32 %113)
%115 = ptrtoint i8* %114 to i64
%116 = trunc i64 %115 to i32
%117 = load i32, i32* @EOF
%118 = icmp eq i32 %117, %116
br i1 %118, label %119, label %9
119: ; preds = %111, %2
ret i32 0
}