#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 getchar();
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int c;
  unsigned int head = -1;
  int pos = -3;
  while ((c = getchar()) >= 0) {
    head <<= 8;
    if (head == 0x100) {
      int startcode = head | c;
      printf("%08X 1%02X ", pos, c);
      if (startcode <= 0x11F)
        printf("Video Object Start");
      else if (startcode <= 0x12F)
        printf("Video Object Layer Start");
      else if (startcode <= 0x13F)
        printf("Reserved");
      else if (startcode <= 0x15F)
        printf("FGS bp start");
      else if (startcode <= 0x1AF)
        printf("Reserved");
      else if (startcode == 0x1B0)
        printf("Visual Object Seq Start");
      else if (startcode == 0x1B1)
        printf("Visual Object Seq End");
      else if (startcode == 0x1B2)
        printf("User Data");
      else if (startcode == 0x1B3)
        printf("Group of VOP start");
      else if (startcode == 0x1B4)
        printf("Video Session Error");
      else if (startcode == 0x1B5)
        printf("Visual Object Start");
      else if (startcode == 0x1B6)
        printf("Video Object Plane start");
      else if (startcode == 0x1B7)
        printf("slice start");
      else if (startcode == 0x1B8)
        printf("extension start");
      else if (startcode == 0x1B9)
        printf("fgs start");
      else if (startcode == 0x1BA)
        printf("FBA Object start");
      else if (startcode == 0x1BB)
        printf("FBA Object Plane start");
      else if (startcode == 0x1BC)
        printf("Mesh Object start");
      else if (startcode == 0x1BD)
        printf("Mesh Object Plane start");
      else if (startcode == 0x1BE)
        printf("Still Textutre Object start");
      else if (startcode == 0x1BF)
        printf("Textutre Spatial Layer start");
      else if (startcode == 0x1C0)
        printf("Textutre SNR Layer start");
      else if (startcode == 0x1C1)
        printf("Textutre Tile start");
      else if (startcode == 0x1C2)
        printf("Textutre Shape Layer start");
      else if (startcode == 0x1C3)
        printf("stuffing start");
      else if (startcode <= 0x1C5)
        printf("reserved");
      else if (startcode <= 0x1FF)
        printf("System start");
      printf("\n");
    }
    head |= c;
    ++pos;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xffffffff,-0xc(%rbp)
movl   $0xfffffffd,-0x10(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
cmp    $0x0,%eax
jl     1585 <main+0x465>
mov    -0xc(%rbp),%eax
shl    $0x8,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x100,-0xc(%rbp)
jne    156e <main+0x44e>
mov    -0xc(%rbp),%eax
or     -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x11f,-0x14(%rbp)
jg     11a3 <main+0x83>
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1560 <main+0x440>
cmpl   $0x12f,-0x14(%rbp)
jg     11c3 <main+0xa3>
lea    0xe68(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    155b <main+0x43b>
cmpl   $0x13f,-0x14(%rbp)
jg     11e3 <main+0xc3>
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1556 <main+0x436>
cmpl   $0x15f,-0x14(%rbp)
jg     1203 <main+0xe3>
lea    0xe4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1551 <main+0x431>
cmpl   $0x1af,-0x14(%rbp)
jg     1223 <main+0x103>
lea    0xe21(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    154c <main+0x42c>
cmpl   $0x1b0,-0x14(%rbp)
jne    1243 <main+0x123>
lea    0xe17(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1547 <main+0x427>
cmpl   $0x1b1,-0x14(%rbp)
jne    1263 <main+0x143>
lea    0xe0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1542 <main+0x422>
cmpl   $0x1b2,-0x14(%rbp)
jne    1283 <main+0x163>
lea    0xe05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    153d <main+0x41d>
cmpl   $0x1b3,-0x14(%rbp)
jne    12a3 <main+0x183>
lea    0xdef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1538 <main+0x418>
cmpl   $0x1b4,-0x14(%rbp)
jne    12c3 <main+0x1a3>
lea    0xde2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1533 <main+0x413>
cmpl   $0x1b5,-0x14(%rbp)
jne    12e3 <main+0x1c3>
lea    0xdd6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    152e <main+0x40e>
cmpl   $0x1b6,-0x14(%rbp)
jne    1303 <main+0x1e3>
lea    0xdca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1529 <main+0x409>
cmpl   $0x1b7,-0x14(%rbp)
jne    1323 <main+0x203>
lea    0xdc3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1524 <main+0x404>
cmpl   $0x1b8,-0x14(%rbp)
jne    1343 <main+0x223>
lea    0xdaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    151f <main+0x3ff>
cmpl   $0x1b9,-0x14(%rbp)
jne    1363 <main+0x243>
lea    0xd9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    151a <main+0x3fa>
cmpl   $0x1ba,-0x14(%rbp)
jne    1383 <main+0x263>
lea    0xd89(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1515 <main+0x3f5>
cmpl   $0x1bb,-0x14(%rbp)
jne    13a3 <main+0x283>
lea    0xd7a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1510 <main+0x3f0>
cmpl   $0x1bc,-0x14(%rbp)
jne    13c3 <main+0x2a3>
lea    0xd71(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    150b <main+0x3eb>
cmpl   $0x1bd,-0x14(%rbp)
jne    13e3 <main+0x2c3>
lea    0xd63(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1506 <main+0x3e6>
cmpl   $0x1be,-0x14(%rbp)
jne    1403 <main+0x2e3>
lea    0xd5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1501 <main+0x3e1>
cmpl   $0x1bf,-0x14(%rbp)
jne    1423 <main+0x303>
lea    0xd57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14fc <main+0x3dc>
cmpl   $0x1c0,-0x14(%rbp)
jne    1443 <main+0x323>
lea    0xd54(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f7 <main+0x3d7>
cmpl   $0x1c1,-0x14(%rbp)
jne    1463 <main+0x343>
lea    0xd4d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14f2 <main+0x3d2>
cmpl   $0x1c2,-0x14(%rbp)
jne    1483 <main+0x363>
lea    0xd41(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14ed <main+0x3cd>
cmpl   $0x1c3,-0x14(%rbp)
jne    14a3 <main+0x383>
lea    0xd3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14e8 <main+0x3c8>
cmpl   $0x1c5,-0x14(%rbp)
jg     14c3 <main+0x3a3>
lea    0xd2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14e3 <main+0x3c3>
cmpl   $0x1ff,-0x14(%rbp)
jg     14de <main+0x3be>
lea    0xd14(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14e3 <main+0x3c3>
jmp    14e8 <main+0x3c8>
jmp    14ed <main+0x3cd>
jmp    14f2 <main+0x3d2>
jmp    14f7 <main+0x3d7>
jmp    14fc <main+0x3dc>
jmp    1501 <main+0x3e1>
jmp    1506 <main+0x3e6>
jmp    150b <main+0x3eb>
jmp    1510 <main+0x3f0>
jmp    1515 <main+0x3f5>
jmp    151a <main+0x3fa>
jmp    151f <main+0x3ff>
jmp    1524 <main+0x404>
jmp    1529 <main+0x409>
jmp    152e <main+0x40e>
jmp    1533 <main+0x413>
jmp    1538 <main+0x418>
jmp    153d <main+0x41d>
jmp    1542 <main+0x422>
jmp    1547 <main+0x427>
jmp    154c <main+0x42c>
jmp    1551 <main+0x431>
jmp    1556 <main+0x436>
jmp    155b <main+0x43b>
jmp    1560 <main+0x440>
lea    0xc91(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
or     -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    113d <main+0x1d>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %eax,%eax
call   1050 <getchar@plt>
test   %eax,%eax
js     125e <main+0x12e>
mov    %eax,%r15d
mov    $0xfffffffd,%ebx
mov    $0xffffffff,%ebp
lea    0xea2(%rip),%r14
lea    0xea7(%rip),%r12
jmp    11a9 <main+0x79>
cltq
lea    0x1088(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
or     %r15d,%ebp
add    $0x1,%ebx
xor    %eax,%eax
call   1050 <getchar@plt>
mov    %eax,%r15d
test   %eax,%eax
js     125e <main+0x12e>
shl    $0x8,%ebp
cmp    $0x100,%ebp
jne    1191 <main+0x61>
mov    %r15d,%r13d
or     $0x100,%r13d
mov    %r14,%rdi
mov    %ebx,%esi
mov    %r15d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
cmp    $0x120,%r13d
jl     1180 <main+0x50>
lea    0xe3f(%rip),%rdi
cmp    $0x130,%r13d
jb     1180 <main+0x50>
lea    0xe48(%rip),%rdi
cmp    $0x140,%r13d
jb     1180 <main+0x50>
lea    0xe41(%rip),%rdi
cmp    $0x160,%r13d
jb     1180 <main+0x50>
lea    0xe24(%rip),%rdi
cmp    $0x1b0,%r13d
jb     1180 <main+0x50>
lea    -0x1b0(%r13),%eax
cmp    $0x14,%eax
jb     1167 <main+0x37>
lea    0xfaa(%rip),%rdi
cmp    $0x1c6,%r13d
jb     1180 <main+0x50>
lea    0xf9f(%rip),%rdi
cmp    $0x200,%r13d
jb     1180 <main+0x50>
jmp    1187 <main+0x57>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%08X 1%02X \00"
@.str.1 = [19 x i8] c"Video Object Start\00"
@.str.2 = [25 x i8] c"Video Object Layer Start\00"
@.str.3 = [9 x i8] c"Reserved\00"
@.str.4 = [13 x i8] c"FGS bp start\00"
@.str.5 = [24 x i8] c"Visual Object Seq Start\00"
@.str.6 = [22 x i8] c"Visual Object Seq End\00"
@.str.7 = [10 x i8] c"User Data\00"
@.str.8 = [19 x i8] c"Group of VOP start\00"
@.str.9 = [20 x i8] c"Video Session Error\00"
@.str.10 = [20 x i8] c"Visual Object Start\00"
@.str.11 = [25 x i8] c"Video Object Plane start\00"
@.str.12 = [12 x i8] c"slice start\00"
@.str.13 = [16 x i8] c"extension start\00"
@.str.14 = [10 x i8] c"fgs start\00"
@.str.15 = [17 x i8] c"FBA Object start\00"
@.str.16 = [23 x i8] c"FBA Object Plane start\00"
@.str.17 = [18 x i8] c"Mesh Object start\00"
@.str.18 = [24 x i8] c"Mesh Object Plane start\00"
@.str.19 = [28 x i8] c"Still Textutre Object start\00"
@.str.20 = [29 x i8] c"Textutre Spatial Layer start\00"
@.str.21 = [25 x i8] c"Textutre SNR Layer start\00"
@.str.22 = [20 x i8] c"Textutre Tile start\00"
@.str.23 = [27 x i8] c"Textutre Shape Layer start\00"
@.str.24 = [15 x i8] c"stuffing start\00"
@.str.25 = [9 x i8] c"reserved\00"
@.str.26 = [13 x i8] c"System start\00"
@.str.27 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
store i32 -1, i32* %3
store i32 -3, i32* %4
br label %6
6: ; preds = %183, %0
%7 = call i32 (...) @getchar()
store i32 %7, i32* %2
%8 = icmp sge i32 %7, 0
br i1 %8, label %9, label %189
9: ; preds = %6
%10 = load i32, i32* %3
%11 = shl i32 %10, 8
store i32 %11, i32* %3
%12 = load i32, i32* %3
%13 = icmp eq i32 %12, 256
br i1 %13, label %14, label %183
14: ; preds = %9
%15 = load i32, i32* %3
%16 = load i32, i32* %2
%17 = or i32 %15, %16
store i32 %17, i32* %5
%18 = load i32, i32* %4
%19 = load i32, i32* %2
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %18, i32 %19)
%21 = load i32, i32* %5
%22 = icmp sle i32 %21, 287
br i1 %22, label %23, label %25
23: ; preds = %14
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
br label %181
25: ; preds = %14
%26 = load i32, i32* %5
%27 = icmp sle i32 %26, 303
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
br label %180
30: ; preds = %25
%31 = load i32, i32* %5
%32 = icmp sle i32 %31, 319
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
br label %179
35: ; preds = %30
%36 = load i32, i32* %5
%37 = icmp sle i32 %36, 351
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
br label %178
40: ; preds = %35
%41 = load i32, i32* %5
%42 = icmp sle i32 %41, 431
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
br label %177
45: ; preds = %40
%46 = load i32, i32* %5
%47 = icmp eq i32 %46, 432
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
br label %176
50: ; preds = %45
%51 = load i32, i32* %5
%52 = icmp eq i32 %51, 433
br i1 %52, label %53, label %55
53: ; preds = %50
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
br label %175
55: ; preds = %50
%56 = load i32, i32* %5
%57 = icmp eq i32 %56, 434
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
br label %174
60: ; preds = %55
%61 = load i32, i32* %5
%62 = icmp eq i32 %61, 435
br i1 %62, label %63, label %65
63: ; preds = %60
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
br label %173
65: ; preds = %60
%66 = load i32, i32* %5
%67 = icmp eq i32 %66, 436
br i1 %67, label %68, label %70
68: ; preds = %65
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
br label %172
70: ; preds = %65
%71 = load i32, i32* %5
%72 = icmp eq i32 %71, 437
br i1 %72, label %73, label %75
73: ; preds = %70
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
br label %171
75: ; preds = %70
%76 = load i32, i32* %5
%77 = icmp eq i32 %76, 438
br i1 %77, label %78, label %80
78: ; preds = %75
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
br label %170
80: ; preds = %75
%81 = load i32, i32* %5
%82 = icmp eq i32 %81, 439
br i1 %82, label %83, label %85
83: ; preds = %80
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
br label %169
85: ; preds = %80
%86 = load i32, i32* %5
%87 = icmp eq i32 %86, 440
br i1 %87, label %88, label %90
88: ; preds = %85
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0))
br label %168
90: ; preds = %85
%91 = load i32, i32* %5
%92 = icmp eq i32 %91, 441
br i1 %92, label %93, label %95
93: ; preds = %90
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
br label %167
95: ; preds = %90
%96 = load i32, i32* %5
%97 = icmp eq i32 %96, 442
br i1 %97, label %98, label %100
98: ; preds = %95
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0))
br label %166
100: ; preds = %95
%101 = load i32, i32* %5
%102 = icmp eq i32 %101, 443
br i1 %102, label %103, label %105
103: ; preds = %100
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0))
br label %165
105: ; preds = %100
%106 = load i32, i32* %5
%107 = icmp eq i32 %106, 444
br i1 %107, label %108, label %110
108: ; preds = %105
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0))
br label %164
110: ; preds = %105
%111 = load i32, i32* %5
%112 = icmp eq i32 %111, 445
br i1 %112, label %113, label %115
113: ; preds = %110
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.18, i64 0, i64 0))
br label %163
115: ; preds = %110
%116 = load i32, i32* %5
%117 = icmp eq i32 %116, 446
br i1 %117, label %118, label %120
118: ; preds = %115
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.19, i64 0, i64 0))
br label %162
120: ; preds = %115
%121 = load i32, i32* %5
%122 = icmp eq i32 %121, 447
br i1 %122, label %123, label %125
123: ; preds = %120
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.20, i64 0, i64 0))
br label %161
125: ; preds = %120
%126 = load i32, i32* %5
%127 = icmp eq i32 %126, 448
br i1 %127, label %128, label %130
128: ; preds = %125
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.21, i64 0, i64 0))
br label %160
130: ; preds = %125
%131 = load i32, i32* %5
%132 = icmp eq i32 %131, 449
br i1 %132, label %133, label %135
133: ; preds = %130
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.22, i64 0, i64 0))
br label %159
135: ; preds = %130
%136 = load i32, i32* %5
%137 = icmp eq i32 %136, 450
br i1 %137, label %138, label %140
138: ; preds = %135
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.23, i64 0, i64 0))
br label %158
140: ; preds = %135
%141 = load i32, i32* %5
%142 = icmp eq i32 %141, 451
br i1 %142, label %143, label %145
143: ; preds = %140
%144 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.24, i64 0, i64 0))
br label %157
145: ; preds = %140
%146 = load i32, i32* %5
%147 = icmp sle i32 %146, 453
br i1 %147, label %148, label %150
148: ; preds = %145
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.25, i64 0, i64 0))
br label %156
150: ; preds = %145
%151 = load i32, i32* %5
%152 = icmp sle i32 %151, 511
br i1 %152, label %153, label %155
153: ; preds = %150
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.26, i64 0, i64 0))
br label %155
155: ; preds = %153, %150
br label %156
156: ; preds = %155, %148
br label %157
157: ; preds = %156, %143
br label %158
158: ; preds = %157, %138
br label %159
159: ; preds = %158, %133
br label %160
160: ; preds = %159, %128
br label %161
161: ; preds = %160, %123
br label %162
162: ; preds = %161, %118
br label %163
163: ; preds = %162, %113
br label %164
164: ; preds = %163, %108
br label %165
165: ; preds = %164, %103
br label %166
166: ; preds = %165, %98
br label %167
167: ; preds = %166, %93
br label %168
168: ; preds = %167, %88
br label %169
169: ; preds = %168, %83
br label %170
170: ; preds = %169, %78
br label %171
171: ; preds = %170, %73
br label %172
172: ; preds = %171, %68
br label %173
173: ; preds = %172, %63
br label %174
174: ; preds = %173, %58
br label %175
175: ; preds = %174, %53
br label %176
176: ; preds = %175, %48
br label %177
177: ; preds = %176, %43
br label %178
178: ; preds = %177, %38
br label %179
179: ; preds = %178, %33
br label %180
180: ; preds = %179, %28
br label %181
181: ; preds = %180, %23
%182 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.27, i64 0, i64 0))
br label %183
183: ; preds = %181, %9
%184 = load i32, i32* %2
%185 = load i32, i32* %3
%186 = or i32 %185, %184
store i32 %186, i32* %3
%187 = load i32, i32* %4
%188 = add nsw i32 %187, 1
store i32 %188, i32* %4
br label %6
189: ; preds = %6
%190 = load i32, i32* %1
ret i32 %190
}

LLVM IR (-O2):
@.str = [12 x i8] c"%08X 1%02X \00"
@.str.1 = [19 x i8] c"Video Object Start\00"
@.str.2 = [25 x i8] c"Video Object Layer Start\00"
@.str.3 = [9 x i8] c"Reserved\00"
@.str.4 = [13 x i8] c"FGS bp start\00"
@.str.5 = [24 x i8] c"Visual Object Seq Start\00"
@.str.6 = [22 x i8] c"Visual Object Seq End\00"
@.str.7 = [10 x i8] c"User Data\00"
@.str.8 = [19 x i8] c"Group of VOP start\00"
@.str.9 = [20 x i8] c"Video Session Error\00"
@.str.10 = [20 x i8] c"Visual Object Start\00"
@.str.11 = [25 x i8] c"Video Object Plane start\00"
@.str.12 = [12 x i8] c"slice start\00"
@.str.13 = [16 x i8] c"extension start\00"
@.str.14 = [10 x i8] c"fgs start\00"
@.str.15 = [17 x i8] c"FBA Object start\00"
@.str.16 = [23 x i8] c"FBA Object Plane start\00"
@.str.17 = [18 x i8] c"Mesh Object start\00"
@.str.18 = [24 x i8] c"Mesh Object Plane start\00"
@.str.19 = [28 x i8] c"Still Textutre Object start\00"
@.str.20 = [29 x i8] c"Textutre Spatial Layer start\00"
@.str.21 = [25 x i8] c"Textutre SNR Layer start\00"
@.str.22 = [20 x i8] c"Textutre Tile start\00"
@.str.23 = [27 x i8] c"Textutre Shape Layer start\00"
@.str.24 = [15 x i8] c"stuffing start\00"
@.str.25 = [9 x i8] c"reserved\00"
@.str.26 = [13 x i8] c"System start\00"
@reltable.main = [20 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.5 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.6 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.7 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([19 x i8]* @.str.8 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.9 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.10 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @.str.11 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.12 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.13 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.14 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.15 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([23 x i8]* @.str.16 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @.str.17 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([24 x i8]* @.str.18 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([28 x i8]* @.str.19 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([29 x i8]* @.str.20 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([25 x i8]* @.str.21 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.22 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([27 x i8]* @.str.23 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([15 x i8]* @.str.24 to i64), i64 ptrtoint ([20 x i32]* @reltable.main to i64)) to i32)]
define i32 @main() {
%1 = tail call i32 (...) @getchar()
%2 = icmp sgt i32 %1, -1
br i1 %2, label %3, label %42
3: ; preds = %0, %37
%4 = phi i32 [ %40, %37 ], [ %1, %0 ]
%5 = phi i32 [ %38, %37 ], [ -1, %0 ]
%6 = phi i32 [ %39, %37 ], [ -3, %0 ]
%7 = shl i32 %5, 8
%8 = icmp eq i32 %7, 256
br i1 %8, label %9, label %37
9: ; preds = %3
%10 = or i32 %4, 256
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %6, i32 %4)
%12 = icmp slt i32 %10, 288
br i1 %12, label %32, label %13
13: ; preds = %9
%14 = icmp ult i32 %10, 304
br i1 %14, label %32, label %15
15: ; preds = %13
%16 = icmp ult i32 %10, 320
br i1 %16, label %32, label %17
17: ; preds = %15
%18 = icmp ult i32 %10, 352
br i1 %18, label %32, label %19
19: ; preds = %17
%20 = icmp ult i32 %10, 432
br i1 %20, label %32, label %21
21: ; preds = %19
%22 = add i32 %10, -432
%23 = icmp ult i32 %22, 20
br i1 %23, label %28, label %24
24: ; preds = %21
%25 = icmp ult i32 %10, 454
br i1 %25, label %32, label %26
26: ; preds = %24
%27 = icmp ult i32 %10, 512
br i1 %27, label %32, label %35
28: ; preds = %21
%29 = sext i32 %22 to i64
%30 = shl i64 %29, 2
%31 = call i8* @llvm.load.relative.i64(i8* bitcast ([20 x i32]* @reltable.main to i8*), i64 %30)
br label %32
32: ; preds = %28, %26, %24, %19, %17, %15, %13, %9
%33 = phi i8* [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), %9 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), %13 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), %15 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), %17 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), %19 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.25, i64 0, i64 0), %24 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.26, i64 0, i64 0), %26 ], [ %31, %28 ]
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %33)
br label %35
35: ; preds = %32, %26
%36 = tail call i32 @putchar(i32 10)
br label %37
37: ; preds = %35, %3
%38 = or i32 %7, %4
%39 = add nsw i32 %6, 1
%40 = tail call i32 (...) @getchar()
%41 = icmp sgt i32 %40, -1
br i1 %41, label %3, label %42
42: ; preds = %37, %0
ret i32 0
}