#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 /*<<< orphan*/ feof(int /*<<< orphan*/);
scalar_t__ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
int main(int argc, char **argv) {
  char t[10000];
  do {
    if (fgets(t, 10000, stdin)) {
      if (t[0] == 'D' && t[1] == 'r' && t[2] == 'a' && t[3] == 'w' &&
          t[4] == '[' && t[5] == '1' && t[6] == ']')
        fputs(t + 9, stdout);
      else
        fputs(t, stdout);
    }
  } while (!feof(stdin));
  return (1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2720,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x2720(%rbp),%rdi
mov    0x2e91(%rip),%rax
mov    (%rax),%edx
mov    $0x2710,%esi
call   1040 <fgets@plt>
cmp    $0x0,%rax
je     1215 <main+0xe5>
movsbl -0x2720(%rbp),%eax
cmp    $0x44,%eax
jne    11fb <main+0xcb>
movsbl -0x271f(%rbp),%eax
cmp    $0x72,%eax
jne    11fb <main+0xcb>
movsbl -0x271e(%rbp),%eax
cmp    $0x61,%eax
jne    11fb <main+0xcb>
movsbl -0x271d(%rbp),%eax
cmp    $0x77,%eax
jne    11fb <main+0xcb>
movsbl -0x271c(%rbp),%eax
cmp    $0x5b,%eax
jne    11fb <main+0xcb>
movsbl -0x271b(%rbp),%eax
cmp    $0x31,%eax
jne    11fb <main+0xcb>
movsbl -0x271a(%rbp),%eax
cmp    $0x5d,%eax
jne    11fb <main+0xcb>
lea    -0x2720(%rbp),%rdi
add    $0x9,%rdi
mov    0x2de9(%rip),%rax
mov    (%rax),%esi
call   1030 <fputs@plt>
jmp    1210 <main+0xe0>
lea    -0x2720(%rbp),%rdi
mov    0x2dcf(%rip),%rax
mov    (%rax),%esi
call   1030 <fputs@plt>
jmp    1215 <main+0xe5>
jmp    121a <main+0xea>
mov    0x2dc7(%rip),%rax
mov    (%rax),%edi
call   1050 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1149 <main+0x19>
mov    $0x1,%eax
add    $0x2720,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2710,%rsp
lea    0x9(%rsp),%r14
mov    0x2e9c(%rip),%r15
mov    %rsp,%r13
mov    0x2e82(%rip),%r12
jmp    116c <main+0x3c>
nopl   0x0(%rax,%rax,1)
mov    (%r15),%edi
call   1050 <feof@plt>
test   %eax,%eax
jne    11c1 <main+0x91>
mov    (%r15),%edx
mov    %r13,%rdi
mov    $0x2710,%esi
call   1040 <fgets@plt>
test   %rax,%rax
je     1160 <main+0x30>
movdqa (%rsp),%xmm0
movd   %xmm0,%eax
movzbl 0x4(%rsp),%ecx
xor    $0x5b,%cl
movzbl 0x5(%rsp),%edx
xor    $0x31,%dl
movzbl 0x6(%rsp),%ebx
xor    $0x5d,%bl
or     %dl,%bl
or     %cl,%bl
mov    %r13,%rdi
cmove  %r14,%rdi
cmp    $0x77617244,%eax
mov    (%r12),%esi
cmovne %r13,%rdi
call   1030 <fputs@plt>
jmp    1160 <main+0x30>
mov    $0x1,%eax
add    $0x2710,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@stdin = global i32 0
@stdout = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [10000 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %7
7: ; preds = %58, %2
%8 = getelementptr inbounds [10000 x i8], [10000 x i8]* %6, i64 0, i64 0
%9 = load i32, i32* @stdin
%10 = call i64 @fgets(i8* %8, i32 10000, i32 %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %57
12: ; preds = %7
%13 = getelementptr inbounds [10000 x i8], [10000 x i8]* %6, i64 0, i64 0
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 68
br i1 %16, label %17, label %52
17: ; preds = %12
%18 = getelementptr inbounds [10000 x i8], [10000 x i8]* %6, i64 0, i64 1
%19 = load i8, i8* %18
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 114
br i1 %21, label %22, label %52
22: ; preds = %17
%23 = getelementptr inbounds [10000 x i8], [10000 x i8]* %6, i64 0, i64 2
%24 = load i8, i8* %23
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 97
br i1 %26, label %27, label %52
27: ; preds = %22
%28 = getelementptr inbounds [10000 x i8], [10000 x i8]* %6, i64 0, i64 3
%29 = load i8, i8* %28
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 119
br i1 %31, label %32, label %52
32: ; preds = %27
%33 = getelementptr inbounds [10000 x i8], [10000 x i8]* %6, i64 0, i64 4
%34 = load i8, i8* %33
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 91
br i1 %36, label %37, label %52
37: ; preds = %32
%38 = getelementptr inbounds [10000 x i8], [10000 x i8]* %6, i64 0, i64 5
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 49
br i1 %41, label %42, label %52
42: ; preds = %37
%43 = getelementptr inbounds [10000 x i8], [10000 x i8]* %6, i64 0, i64 6
%44 = load i8, i8* %43
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 93
br i1 %46, label %47, label %52
47: ; preds = %42
%48 = getelementptr inbounds [10000 x i8], [10000 x i8]* %6, i64 0, i64 0
%49 = getelementptr inbounds i8, i8* %48, i64 9
%50 = load i32, i32* @stdout
%51 = call i32 @fputs(i8* %49, i32 %50)
br label %56
52: ; preds = %42, %37, %32, %27, %22, %17, %12
%53 = getelementptr inbounds [10000 x i8], [10000 x i8]* %6, i64 0, i64 0
%54 = load i32, i32* @stdout
%55 = call i32 @fputs(i8* %53, i32 %54)
br label %56
56: ; preds = %52, %47
br label %57
57: ; preds = %56, %7
br label %58
58: ; preds = %57
%59 = load i32, i32* @stdin
%60 = call i32 @feof(i32 %59)
%61 = icmp ne i32 %60, 0
%62 = xor i1 %61, true
br i1 %62, label %7, label %63
63: ; preds = %58
ret i32 1
}

LLVM IR (-O2):
@stdin = global i32 0
@stdout = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [10000 x i8]
%4 = getelementptr inbounds [10000 x i8], [10000 x i8]* %3, i64 0, i64 0
%5 = getelementptr inbounds [10000 x i8], [10000 x i8]* %3, i64 0, i64 4
%6 = getelementptr inbounds [10000 x i8], [10000 x i8]* %3, i64 0, i64 5
%7 = getelementptr inbounds [10000 x i8], [10000 x i8]* %3, i64 0, i64 6
%8 = getelementptr inbounds [10000 x i8], [10000 x i8]* %3, i64 0, i64 9
%9 = bitcast [10000 x i8]* %3 to <4 x i8>*
br label %10
10: ; preds = %31, %2
%11 = load i32, i32* @stdin
%12 = call i64 @fgets(i8* %4, i32 10000, i32 %11)
%13 = icmp eq i64 %12, 0
br i1 %13, label %31, label %14
14: ; preds = %10
%15 = load <4 x i8>, <4 x i8>* %9
%16 = freeze <4 x i8> %15
%17 = bitcast <4 x i8> %16 to i32
%18 = icmp eq i32 %17, 2002874948
%19 = load i8, i8* %5
%20 = icmp eq i8 %19, 91
%21 = select i1 %18, i1 %20, i1 false
%22 = load i8, i8* %6
%23 = icmp eq i8 %22, 49
%24 = select i1 %21, i1 %23, i1 false
%25 = load i8, i8* %7
%26 = icmp eq i8 %25, 93
%27 = select i1 %24, i1 %26, i1 false
%28 = load i32, i32* @stdout
%29 = select i1 %27, i8* %8, i8* %4
%30 = call i32 @fputs(i8* %29, i32 %28)
br label %31
31: ; preds = %14, %10
%32 = load i32, i32* @stdin
%33 = call i32 @feof(i32 %32)
%34 = icmp eq i32 %33, 0
br i1 %34, label %10, label %35
35: ; preds = %31
ret i32 1
}