#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 */
struct pollfd {
  int revents;
  int fd;
};

/* Variables and functions */
int POLLERR;
int POLLIN;
int POLLNVAL;
int POLLOUT;
int /*<<< orphan*/ memcpy(char *, char *, int);
int /*<<< orphan*/ snprintf(char *, size_t, char *, int, char *, char *, char *,
                            char *);
int /*<<< orphan*/ strlen(char *);
char const *pollfd_dump_results(struct pollfd *pfd, int n, char *buf,
                                size_t size) {
  char *w = buf, *e = buf + size;
  int i;
  if (n <= 0)
    return "{}";
  if (size <= 2)
    return "{...}";
  *w++ = '{';
  *w = '\0';
  for (i = 0; i < n && e - w >= 10; i++) {
    if (pfd[i].revents != 0) {
      snprintf(w, (size_t)(e - w), " %d%s%s%s%s", pfd[i].fd,
               pfd[i].revents & POLLIN ? "r" : "",
               pfd[i].revents & POLLOUT ? "w" : "",
               pfd[i].revents & POLLERR ? "e" : "",
               pfd[i].revents & POLLNVAL ? "n" : "");
      w += strlen(w);
    }
  }
  if (i < n && e - w >= 5)
    memcpy(w, "...}", 5);
  else if (e - w >= 3)
    memcpy(w, " }", 3);
  return buf;
}


x86 assembly (clang, -O0):
<pollfd_dump_results>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
add    -0x28(%rbp),%rax
mov    %rax,-0x38(%rbp)
cmpl   $0x0,-0x14(%rbp)
jg     1175 <pollfd_dump_results+0x45>
lea    0xe94(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136d <pollfd_dump_results+0x23d>
cmpq   $0x2,-0x28(%rbp)
ja     1190 <pollfd_dump_results+0x60>
lea    0xe7c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    136d <pollfd_dump_results+0x23d>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
movb   $0x7b,(%rax)
mov    -0x30(%rbp),%rax
movb   $0x0,(%rax)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%ecx
xor    %eax,%eax
cmp    -0x14(%rbp),%ecx
mov    %al,-0x3d(%rbp)
jge    11d6 <pollfd_dump_results+0xa6>
mov    -0x38(%rbp),%rax
mov    -0x30(%rbp),%rcx
sub    %rcx,%rax
cmp    $0xa,%rax
setge  %al
mov    %al,-0x3d(%rbp)
mov    -0x3d(%rbp),%al
test   $0x1,%al
jne    11e6 <pollfd_dump_results+0xb6>
jmp    12fb <pollfd_dump_results+0x1cb>
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,8)
je     12e8 <pollfd_dump_results+0x1b8>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x30(%rbp),%rax
sub    %rax,%rsi
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    0x4(%rax,%rcx,8),%ecx
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rdx
mov    (%rax,%rdx,8),%edx
mov    0x2dab(%rip),%rax
and    (%rax),%edx
lea    0xdec(%rip),%r8
lea    0xde0(%rip),%rax
cmp    $0x0,%edx
cmovne %rax,%r8
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rdx
mov    (%rax,%rdx,8),%edx
mov    0x2daa(%rip),%rax
and    (%rax),%edx
lea    0xdc3(%rip),%r9
lea    0xdb9(%rip),%rax
cmp    $0x0,%edx
cmovne %rax,%r9
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rdx
mov    (%rax,%rdx,8),%edx
mov    0x2d69(%rip),%rax
and    (%rax),%edx
lea    0xd9a(%rip),%r10
lea    0xd92(%rip),%rax
cmp    $0x0,%edx
cmovne %rax,%r10
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rdx
mov    (%rax,%rdx,8),%r11d
mov    0x2d37(%rip),%rax
and    (%rax),%r11d
lea    0xd6f(%rip),%rax
lea    0xd69(%rip),%rdx
cmp    $0x0,%r11d
cmovne %rdx,%rax
lea    0xd48(%rip),%rdx
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1040 <snprintf@plt>
mov    -0x30(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
jmp    12ed <pollfd_dump_results+0x1bd>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11b0 <pollfd_dump_results+0x80>
mov    -0x3c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1336 <pollfd_dump_results+0x206>
mov    -0x38(%rbp),%rax
mov    -0x30(%rbp),%rcx
sub    %rcx,%rax
cmp    $0x5,%rax
jl     1336 <pollfd_dump_results+0x206>
mov    -0x30(%rbp),%rdi
lea    0xcdd(%rip),%rsi
mov    $0x5,%edx
call   1050 <memcpy@plt>
jmp    1365 <pollfd_dump_results+0x235>
mov    -0x38(%rbp),%rax
mov    -0x30(%rbp),%rcx
sub    %rcx,%rax
cmp    $0x3,%rax
jl     1360 <pollfd_dump_results+0x230>
mov    -0x30(%rbp),%rdi
lea    0xcc7(%rip),%rsi
mov    $0x3,%edx
call   1050 <memcpy@plt>
jmp    1365 <pollfd_dump_results+0x235>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pollfd_dump_results>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdi,0x8(%rsp)
test   %esi,%esi
jle    115c <pollfd_dump_results+0x2c>
mov    %rcx,%r12
cmp    $0x3,%rcx
jae    1168 <pollfd_dump_results+0x38>
lea    0xeac(%rip),%rbx
jmp    129b <pollfd_dump_results+0x16b>
lea    0xe9d(%rip),%rbx
jmp    129b <pollfd_dump_results+0x16b>
mov    %esi,%ebp
lea    0x1(%rdx),%r14
movw   $0x7b,(%rdx)
lea    -0x1(%r12),%rsi
mov    $0x1,%al
cmp    $0xb,%r12
mov    %rdx,(%rsp)
jl     1259 <pollfd_dump_results+0x129>
add    %rdx,%r12
mov    %ebp,%eax
mov    %rax,0x10(%rsp)
mov    $0x1,%r13d
lea    0xe7b(%rip),%rbx
nop
mov    0x8(%rsp),%rax
mov    -0x8(%rax,%r13,8),%eax
test   %eax,%eax
je     123b <pollfd_dump_results+0x10b>
mov    0x2e17(%rip),%rcx
mov    (%rcx),%ecx
mov    %rbx,%r8
and    %eax,%ecx
je     11c9 <pollfd_dump_results+0x99>
lea    0xe4c(%rip),%r8
mov    0x2e28(%rip),%rcx
mov    (%rcx),%ecx
mov    %rbx,%r9
and    %eax,%ecx
je     11e0 <pollfd_dump_results+0xb0>
lea    0xe37(%rip),%r9
mov    0x2df9(%rip),%rcx
mov    (%rcx),%ecx
mov    %rbx,%rbp
and    %eax,%ecx
je     11f7 <pollfd_dump_results+0xc7>
lea    0xe22(%rip),%rbp
mov    %rbx,%r15
mov    0x2dd7(%rip),%rcx
and    (%rcx),%eax
je     120c <pollfd_dump_results+0xdc>
lea    0xe0f(%rip),%rbx
mov    0x8(%rsp),%rax
mov    -0x4(%rax,%r13,8),%ecx
mov    %r14,%rdi
lea    0xde9(%rip),%rdx
push   %rbx
push   %rbp
call   1040 <snprintf@plt>
add    $0x10,%rsp
mov    %r14,%rdi
call   1030 <strlen@plt>
cltq
add    %rax,%r14
mov    %r15,%rbx
mov    %r12,%rsi
sub    %r14,%rsi
cmp    0x10(%rsp),%r13
setb   %al
jae    1259 <pollfd_dump_results+0x129>
add    $0x1,%r13
cmp    $0x9,%rsi
jg     11a0 <pollfd_dump_results+0x70>
test   %al,%al
je     127d <pollfd_dump_results+0x14d>
cmp    $0x5,%rsi
jl     127d <pollfd_dump_results+0x14d>
lea    0xd9a(%rip),%rsi
mov    %r14,%rdi
mov    $0x5,%edx
call   1050 <memcpy@plt>
mov    (%rsp),%rbx
jmp    129b <pollfd_dump_results+0x16b>
cmp    $0x3,%rsi
mov    (%rsp),%rbx
jl     129b <pollfd_dump_results+0x16b>
lea    0xd8f(%rip),%rsi
mov    %r14,%rdi
mov    $0x3,%edx
call   1050 <memcpy@plt>
mov    %rbx,%rax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.pollfd = type { i32, i32 }
@.str = [3 x i8] c"{}\00"
@.str.1 = [6 x i8] c"{...}\00"
@.str.2 = [12 x i8] c" %d%s%s%s%s\00"
@POLLIN = global i32 0
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [1 x i8] zeroinitializer
@POLLOUT = global i32 0
@.str.5 = [2 x i8] c"w\00"
@POLLERR = global i32 0
@.str.6 = [2 x i8] c"e\00"
@POLLNVAL = global i32 0
@.str.7 = [2 x i8] c"n\00"
@.str.8 = [5 x i8] c"...}\00"
@.str.9 = [3 x i8] c" }\00"
define i8* @pollfd_dump_results(%struct.pollfd* %0, i32 %1, i8* %2, i64 %3) {
%5 = alloca i8*
%6 = alloca %struct.pollfd*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i64
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i32
store %struct.pollfd* %0, %struct.pollfd** %6
store i32 %1, i32* %7
store i8* %2, i8** %8
store i64 %3, i64* %9
%13 = load i8*, i8** %8
store i8* %13, i8** %10
%14 = load i8*, i8** %8
%15 = load i64, i64* %9
%16 = getelementptr inbounds i8, i8* %14, i64 %15
store i8* %16, i8** %11
%17 = load i32, i32* %7
%18 = icmp sle i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %4
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %5
br label %143
20: ; preds = %4
%21 = load i64, i64* %9
%22 = icmp ule i64 %21, 2
br i1 %22, label %23, label %24
23: ; preds = %20
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %5
br label %143
24: ; preds = %20
%25 = load i8*, i8** %10
%26 = getelementptr inbounds i8, i8* %25, i32 1
store i8* %26, i8** %10
store i8 123, i8* %25
%27 = load i8*, i8** %10
store i8 0, i8* %27
store i32 0, i32* %12
br label %28
28: ; preds = %113, %24
%29 = load i32, i32* %12
%30 = load i32, i32* %7
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %39
32: ; preds = %28
%33 = load i8*, i8** %11
%34 = load i8*, i8** %10
%35 = ptrtoint i8* %33 to i64
%36 = ptrtoint i8* %34 to i64
%37 = sub i64 %35, %36
%38 = icmp sge i64 %37, 10
br label %39
39: ; preds = %32, %28
%40 = phi i1 [ false, %28 ], [ %38, %32 ]
br i1 %40, label %41, label %116
41: ; preds = %39
%42 = load %struct.pollfd*, %struct.pollfd** %6
%43 = load i32, i32* %12
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds %struct.pollfd, %struct.pollfd* %42, i64 %44
%46 = getelementptr inbounds %struct.pollfd, %struct.pollfd* %45, i32 0, i32 0
%47 = load i32, i32* %46
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %112
49: ; preds = %41
%50 = load i8*, i8** %10
%51 = load i8*, i8** %11
%52 = load i8*, i8** %10
%53 = ptrtoint i8* %51 to i64
%54 = ptrtoint i8* %52 to i64
%55 = sub i64 %53, %54
%56 = load %struct.pollfd*, %struct.pollfd** %6
%57 = load i32, i32* %12
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds %struct.pollfd, %struct.pollfd* %56, i64 %58
%60 = getelementptr inbounds %struct.pollfd, %struct.pollfd* %59, i32 0, i32 1
%61 = load i32, i32* %60
%62 = load %struct.pollfd*, %struct.pollfd** %6
%63 = load i32, i32* %12
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds %struct.pollfd, %struct.pollfd* %62, i64 %64
%66 = getelementptr inbounds %struct.pollfd, %struct.pollfd* %65, i32 0, i32 0
%67 = load i32, i32* %66
%68 = load i32, i32* @POLLIN
%69 = and i32 %67, %68
%70 = icmp ne i32 %69, 0
%71 = zext i1 %70 to i64
%72 = select i1 %70, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0)
%73 = load %struct.pollfd*, %struct.pollfd** %6
%74 = load i32, i32* %12
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds %struct.pollfd, %struct.pollfd* %73, i64 %75
%77 = getelementptr inbounds %struct.pollfd, %struct.pollfd* %76, i32 0, i32 0
%78 = load i32, i32* %77
%79 = load i32, i32* @POLLOUT
%80 = and i32 %78, %79
%81 = icmp ne i32 %80, 0
%82 = zext i1 %81 to i64
%83 = select i1 %81, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0)
%84 = load %struct.pollfd*, %struct.pollfd** %6
%85 = load i32, i32* %12
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds %struct.pollfd, %struct.pollfd* %84, i64 %86
%88 = getelementptr inbounds %struct.pollfd, %struct.pollfd* %87, i32 0, i32 0
%89 = load i32, i32* %88
%90 = load i32, i32* @POLLERR
%91 = and i32 %89, %90
%92 = icmp ne i32 %91, 0
%93 = zext i1 %92 to i64
%94 = select i1 %92, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0)
%95 = load %struct.pollfd*, %struct.pollfd** %6
%96 = load i32, i32* %12
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds %struct.pollfd, %struct.pollfd* %95, i64 %97
%99 = getelementptr inbounds %struct.pollfd, %struct.pollfd* %98, i32 0, i32 0
%100 = load i32, i32* %99
%101 = load i32, i32* @POLLNVAL
%102 = and i32 %100, %101
%103 = icmp ne i32 %102, 0
%104 = zext i1 %103 to i64
%105 = select i1 %103, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0)
%106 = call i32 @snprintf(i8* %50, i64 %55, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %61, i8* %72, i8* %83, i8* %94, i8* %105)
%107 = load i8*, i8** %10
%108 = call i32 @strlen(i8* %107)
%109 = load i8*, i8** %10
%110 = sext i32 %108 to i64
%111 = getelementptr inbounds i8, i8* %109, i64 %110
store i8* %111, i8** %10
br label %112
112: ; preds = %49, %41
br label %113
113: ; preds = %112
%114 = load i32, i32* %12
%115 = add nsw i32 %114, 1
store i32 %115, i32* %12
br label %28
116: ; preds = %39
%117 = load i32, i32* %12
%118 = load i32, i32* %7
%119 = icmp slt i32 %117, %118
br i1 %119, label %120, label %130
120: ; preds = %116
%121 = load i8*, i8** %11
%122 = load i8*, i8** %10
%123 = ptrtoint i8* %121 to i64
%124 = ptrtoint i8* %122 to i64
%125 = sub i64 %123, %124
%126 = icmp sge i64 %125, 5
br i1 %126, label %127, label %130
127: ; preds = %120
%128 = load i8*, i8** %10
%129 = call i32 @memcpy(i8* %128, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i32 5)
br label %141
130: ; preds = %120, %116
%131 = load i8*, i8** %11
%132 = load i8*, i8** %10
%133 = ptrtoint i8* %131 to i64
%134 = ptrtoint i8* %132 to i64
%135 = sub i64 %133, %134
%136 = icmp sge i64 %135, 3
br i1 %136, label %137, label %140
137: ; preds = %130
%138 = load i8*, i8** %10
%139 = call i32 @memcpy(i8* %138, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 3)
br label %140
140: ; preds = %137, %130
br label %141
141: ; preds = %140, %127
%142 = load i8*, i8** %8
store i8* %142, i8** %5
br label %143
143: ; preds = %141, %23, %19
%144 = load i8*, i8** %5
ret i8* %144
}

LLVM IR (-O2):
%struct.pollfd = type { i32, i32 }
@.str = [3 x i8] c"{}\00"
@.str.1 = [6 x i8] c"{...}\00"
@.str.2 = [12 x i8] c" %d%s%s%s%s\00"
@POLLIN = global i32 0
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [1 x i8] zeroinitializer
@POLLOUT = global i32 0
@.str.5 = [2 x i8] c"w\00"
@POLLERR = global i32 0
@.str.6 = [2 x i8] c"e\00"
@POLLNVAL = global i32 0
@.str.7 = [2 x i8] c"n\00"
@.str.8 = [5 x i8] c"...}\00"
@.str.9 = [3 x i8] c" }\00"
define i8* @pollfd_dump_results(%struct.pollfd* nocapture %0, i32 %1, i8* %2, i64 %3) {
%5 = getelementptr inbounds i8, i8* %2, i64 %3
%6 = icmp slt i32 %1, 1
br i1 %6, label %66, label %7
7: ; preds = %4
%8 = icmp ult i64 %3, 3
br i1 %8, label %66, label %9
9: ; preds = %7
%10 = getelementptr inbounds i8, i8* %2, i64 1
store i8 123, i8* %2
store i8 0, i8* %10
%11 = ptrtoint i8* %5 to i64
%12 = add nsw i64 %3, -1
%13 = icmp sgt i64 %3, 10
br i1 %13, label %14, label %54
14: ; preds = %9
%15 = zext i32 %1 to i64
br label %16
16: ; preds = %14, %46
%17 = phi i64 [ 0, %14 ], [ %48, %46 ]
%18 = phi i64 [ %12, %14 ], [ %51, %46 ]
%19 = phi i8* [ %10, %14 ], [ %47, %46 ]
%20 = getelementptr inbounds %struct.pollfd, %struct.pollfd* %0, i64 %17, i32 0
%21 = load i32, i32* %20
%22 = icmp eq i32 %21, 0
br i1 %22, label %46, label %23
23: ; preds = %16
%24 = getelementptr inbounds %struct.pollfd, %struct.pollfd* %0, i64 %17, i32 1
%25 = load i32, i32* %24
%26 = load i32, i32* @POLLIN
%27 = and i32 %26, %21
%28 = icmp eq i32 %27, 0
%29 = select i1 %28, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0)
%30 = load i32, i32* @POLLOUT
%31 = and i32 %30, %21
%32 = icmp eq i32 %31, 0
%33 = select i1 %32, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0)
%34 = load i32, i32* @POLLERR
%35 = and i32 %34, %21
%36 = icmp eq i32 %35, 0
%37 = select i1 %36, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0)
%38 = load i32, i32* @POLLNVAL
%39 = and i32 %38, %21
%40 = icmp eq i32 %39, 0
%41 = select i1 %40, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0)
%42 = tail call i32 @snprintf(i8* %19, i64 %18, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 %25, i8* %29, i8* %33, i8* %37, i8* %41)
%43 = tail call i32 @strlen(i8* %19)
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, i8* %19, i64 %44
br label %46
46: ; preds = %16, %23
%47 = phi i8* [ %45, %23 ], [ %19, %16 ]
%48 = add nuw nsw i64 %17, 1
%49 = icmp ult i64 %48, %15
%50 = ptrtoint i8* %47 to i64
%51 = sub i64 %11, %50
%52 = icmp sgt i64 %51, 9
%53 = select i1 %49, i1 %52, i1 false
br i1 %53, label %16, label %54
54: ; preds = %46, %9
%55 = phi i8* [ %10, %9 ], [ %47, %46 ]
%56 = phi i1 [ true, %9 ], [ %49, %46 ]
%57 = phi i64 [ %12, %9 ], [ %51, %46 ]
%58 = icmp sgt i64 %57, 4
%59 = select i1 %56, i1 %58, i1 false
br i1 %59, label %60, label %62
60: ; preds = %54
%61 = tail call i32 @memcpy(i8* %55, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i32 5)
br label %66
62: ; preds = %54
%63 = icmp sgt i64 %57, 2
br i1 %63, label %64, label %66
64: ; preds = %62
%65 = tail call i32 @memcpy(i8* %55, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 3)
br label %66
66: ; preds = %60, %64, %62, %7, %4
%67 = phi i8* [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), %4 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), %7 ], [ %2, %62 ], [ %2, %64 ], [ %2, %60 ]
ret i8* %67
}