#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int http_post(char *);
int httpsqs_get(char *);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, char *, char *);
scalar_t__ read(int, char *, int);
int /*<<< orphan*/ strcpy(char *, int /*<<< orphan*/);
int strlen(char *);
int /*<<< orphan*/ strstr(char *, char *);
void process(char *queuename, int loop) {
  FILE *fp;
  int black_sock;
  char data[3];
  char posstr[15];
  char datastr[2000];
  char post[5000];
  int i = 0;
  int j = 0;
  int len = 0;
  int flag = 0;
  char pos[10];
  int p = 0;
  loop--;
  while (loop) {
    memset(data, 0, strlen(data));
    memset(datastr, 0, strlen(datastr));
    memset(pos, 0, strlen(pos));
    black_sock = httpsqs_get(queuename);
    i = 0;
    j = 0;
    while (read(black_sock, data, 1) > 0) {
      if (j == 3) {
        if (data[0] == 'P')
          flag = 1;
        if (flag == 1) {
          i++;
          if (i >= 6)
            posstr[i - 6] = data[0];
        }
      }
      if (j == 4 && strlen(posstr) > 2) {
        for (i = 0; i < strlen(posstr) - 2; i++)
          pos[i] = posstr[i];
        pos[strlen(pos)] = '\0';
        i = 0;
        if (strlen(pos) > 0)
          flag = 2;
      }
      if (flag == 2 && strlen(pos) > 0) {
        if (j == 8) {
          datastr[i] = data[0];
          i++;
        }
      }
      if (data[0] == '\n')
        j++;
    }
    if (strlen(datastr) > 0)
      datastr[strlen(datastr)] = '\0';
    if (strlen(datastr) > 0 && strlen(pos) > 0)
      printf("POS:%s\nDATA:%s\n", pos, datastr);
    close(black_sock);
    memset(data, 0, strlen(data));
    if (strlen(datastr) > 0 && strlen(pos) > 0) {
      p = atoi(pos);
      if ((fp = fopen("httpsqs_feed.log", "a")) >= 0)
        fprintf(fp, "GET FROM HTTPSQS:\r\nPOS:%d\nDATA:%s\r\n", p, datastr);
      black_sock = http_post(datastr);
      i = 0;
      while (read(black_sock, data, 1) > 0) {
        if (data[0] == '|') {
          if (post[i - 1] == 'D' && post[i - 2] == 'N' && post[i - 3] == 'E') {
            post[i - 3] = '\0';
            break;
          }
        }
        post[i] = data[0];
        i++;
      }
      memset(data, 0, strlen(data));
      close(black_sock);
      if (strlen(post)) {
        if (fp >= 0) {
          strcpy(post, strstr(post, "Array"));
          fprintf(fp, "POST TO REMOTE\r\n%s\r\n", post);
          fclose(fp);
        }
      }
    }
    memset(post, 0, strlen(post));
    loop--;
  }
  return;
}


x86 assembly (clang, -O0):
<process>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1bf0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x1b94(%rbp)
movl   $0x0,-0x1b98(%rbp)
movl   $0x0,-0x1b9c(%rbp)
movl   $0x0,-0x1ba0(%rbp)
movl   $0x0,-0x1bb0(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     1747 <process+0x577>
lea    -0x1f(%rbp),%rax
mov    %rax,-0x1bc8(%rbp)
lea    -0x1f(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x1bc8(%rbp),%rdi
mov    %eax,%edx
xor    %esi,%esi
call   1080 <memset@plt>
lea    -0x800(%rbp),%rax
mov    %rax,-0x1bc0(%rbp)
lea    -0x800(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x1bc0(%rbp),%rdi
mov    %eax,%edx
xor    %esi,%esi
call   1080 <memset@plt>
lea    -0x1baa(%rbp),%rax
mov    %rax,-0x1bb8(%rbp)
lea    -0x1baa(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x1bb8(%rbp),%rdi
mov    %eax,%edx
xor    %esi,%esi
call   1080 <memset@plt>
mov    -0x8(%rbp),%rdi
call   10e0 <httpsqs_get@plt>
mov    %eax,-0x1c(%rbp)
movl   $0x0,-0x1b94(%rbp)
movl   $0x0,-0x1b98(%rbp)
mov    -0x1c(%rbp),%edi
lea    -0x1f(%rbp),%rsi
mov    $0x1,%edx
call   10a0 <read@plt>
cmp    $0x0,%rax
jle    147a <process+0x2aa>
cmpl   $0x3,-0x1b98(%rbp)
jne    1343 <process+0x173>
movsbl -0x1f(%rbp),%eax
cmp    $0x50,%eax
jne    12fe <process+0x12e>
movl   $0x1,-0x1ba0(%rbp)
cmpl   $0x1,-0x1ba0(%rbp)
jne    133e <process+0x16e>
mov    -0x1b94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1b94(%rbp)
cmpl   $0x6,-0x1b94(%rbp)
jl     1339 <process+0x169>
mov    -0x1f(%rbp),%cl
mov    -0x1b94(%rbp),%eax
sub    $0x6,%eax
cltq
mov    %cl,-0x2e(%rbp,%rax,1)
jmp    133e <process+0x16e>
jmp    1343 <process+0x173>
cmpl   $0x4,-0x1b98(%rbp)
jne    1405 <process+0x235>
lea    -0x2e(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0x2,%eax
jle    1405 <process+0x235>
movl   $0x0,-0x1b94(%rbp)
mov    -0x1b94(%rbp),%eax
mov    %eax,-0x1bcc(%rbp)
lea    -0x2e(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,%ecx
mov    -0x1bcc(%rbp),%eax
sub    $0x2,%ecx
cmp    %ecx,%eax
jge    13c1 <process+0x1f1>
movslq -0x1b94(%rbp),%rax
mov    -0x2e(%rbp,%rax,1),%cl
movslq -0x1b94(%rbp),%rax
mov    %cl,-0x1baa(%rbp,%rax,1)
mov    -0x1b94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1b94(%rbp)
jmp    136c <process+0x19c>
lea    -0x1baa(%rbp),%rdi
call   1060 <strlen@plt>
cltq
movb   $0x0,-0x1baa(%rbp,%rax,1)
movl   $0x0,-0x1b94(%rbp)
lea    -0x1baa(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0x0,%eax
jle    1400 <process+0x230>
movl   $0x2,-0x1ba0(%rbp)
jmp    1405 <process+0x235>
cmpl   $0x2,-0x1ba0(%rbp)
jne    1459 <process+0x289>
lea    -0x1baa(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0x0,%eax
jle    1459 <process+0x289>
cmpl   $0x8,-0x1b98(%rbp)
jne    1454 <process+0x284>
mov    -0x1f(%rbp),%cl
movslq -0x1b94(%rbp),%rax
mov    %cl,-0x800(%rbp,%rax,1)
mov    -0x1b94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1b94(%rbp)
jmp    1459 <process+0x289>
movsbl -0x1f(%rbp),%eax
cmp    $0xa,%eax
jne    1475 <process+0x2a5>
mov    -0x1b98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1b98(%rbp)
jmp    12bf <process+0xef>
lea    -0x800(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0x0,%eax
jle    14a5 <process+0x2d5>
lea    -0x800(%rbp),%rdi
call   1060 <strlen@plt>
cltq
movb   $0x0,-0x800(%rbp,%rax,1)
lea    -0x800(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0x0,%eax
jle    14e9 <process+0x319>
lea    -0x1baa(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0x0,%eax
jle    14e9 <process+0x319>
lea    -0x1baa(%rbp),%rsi
lea    -0x800(%rbp),%rdx
lea    0xb1c(%rip),%rdi
call   1070 <printf@plt>
mov    -0x1c(%rbp),%edi
call   1090 <close@plt>
lea    -0x1f(%rbp),%rax
mov    %rax,-0x1bd8(%rbp)
lea    -0x1f(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x1bd8(%rbp),%rdi
mov    %eax,%edx
xor    %esi,%esi
call   1080 <memset@plt>
lea    -0x800(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0x0,%eax
jle    170f <process+0x53f>
lea    -0x1baa(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0x0,%eax
jle    170f <process+0x53f>
lea    -0x1baa(%rbp),%rdi
call   10d0 <atoi@plt>
mov    %eax,-0x1bb0(%rbp)
lea    0xab8(%rip),%rdi
lea    0xac2(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jb     1591 <process+0x3c1>
mov    -0x18(%rbp),%rdi
mov    -0x1bb0(%rbp),%edx
lea    -0x800(%rbp),%rcx
lea    0xa99(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
lea    -0x800(%rbp),%rdi
call   1030 <http_post@plt>
mov    %eax,-0x1c(%rbp)
movl   $0x0,-0x1b94(%rbp)
mov    -0x1c(%rbp),%edi
lea    -0x1f(%rbp),%rsi
mov    $0x1,%edx
call   10a0 <read@plt>
cmp    $0x0,%rax
jle    1668 <process+0x498>
movsbl -0x1f(%rbp),%eax
cmp    $0x7c,%eax
jne    1643 <process+0x473>
mov    -0x1b94(%rbp),%eax
sub    $0x1,%eax
cltq
movsbl -0x1b90(%rbp,%rax,1),%eax
ff
cmp    $0x44,%eax
jne    163e <process+0x46e>
mov    -0x1b94(%rbp),%eax
sub    $0x2,%eax
cltq
movsbl -0x1b90(%rbp,%rax,1),%eax
cmp    $0x4e,%eax
jne    163e <process+0x46e>
mov    -0x1b94(%rbp),%eax
sub    $0x3,%eax
cltq
movsbl -0x1b90(%rbp,%rax,1),%eax
ff
cmp    $0x45,%eax
jne    163e <process+0x46e>
mov    -0x1b94(%rbp),%eax
sub    $0x3,%eax
cltq
movb   $0x0,-0x1b90(%rbp,%rax,1)
jmp    1668 <process+0x498>
jmp    1643 <process+0x473>
mov    -0x1f(%rbp),%cl
movslq -0x1b94(%rbp),%rax
mov    %cl,-0x1b90(%rbp,%rax,1)
mov    -0x1b94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1b94(%rbp)
jmp    15aa <process+0x3da>
lea    -0x1f(%rbp),%rax
mov    %rax,-0x1be0(%rbp)
lea    -0x1f(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x1be0(%rbp),%rdi
mov    %eax,%edx
xor    %esi,%esi
call   1080 <memset@plt>
mov    -0x1c(%rbp),%edi
call   1090 <close@plt>
lea    -0x1b90(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0x0,%eax
je     170a <process+0x53a>
cmpq   $0x0,-0x18(%rbp)
jb     1705 <process+0x535>
lea    -0x1b90(%rbp),%rax
mov    %rax,-0x1be8(%rbp)
lea    -0x1b90(%rbp),%rdi
lea    0x977(%rip),%rsi
call   10f0 <strstr@plt>
mov    -0x1be8(%rbp),%rdi
mov    %eax,%esi
call   1040 <strcpy@plt>
mov    -0x18(%rbp),%rdi
lea    -0x1b90(%rbp),%rdx
lea    0x958(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
jmp    170a <process+0x53a>
jmp    170f <process+0x53f>
lea    -0x1b90(%rbp),%rax
mov    %rax,-0x1bf0(%rbp)
lea    -0x1b90(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x1bf0(%rbp),%rdi
mov    %eax,%edx
xor    %esi,%esi
call   1080 <memset@plt>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    121d <process+0x4d>
add    $0x1bf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<process>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1b88,%rsp
mov    %rdi,0x18(%rsp)
add    $0xffffffff,%esi
je     1588 <process+0x3b8>
lea    0x30(%rsp),%rbp
lea    0x21(%rsp),%r13
xor    %r12d,%r12d
jmp    1229 <process+0x59>
xchg   %ax,%ax
lea    0x800(%rsp),%rbx
mov    %rbx,%rdi
call   1060 <strlen@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    %eax,%edx
call   1080 <memset@plt>
mov    0x14(%rsp),%esi
add    $0xffffffff,%esi
je     1588 <process+0x3b8>
mov    %esi,0x14(%rsp)
lea    0x7(%rsp),%rbx
mov    %rbx,%rdi
call   1060 <strlen@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    %eax,%edx
call   1080 <memset@plt>
mov    %rbp,%rdi
call   1060 <strlen@plt>
mov    %rbp,%rdi
xor    %esi,%esi
mov    %eax,%edx
call   1080 <memset@plt>
lea    0xa(%rsp),%rbp
mov    %rbp,%rdi
call   1060 <strlen@plt>
mov    %rbp,%rdi
xor    %esi,%esi
mov    %eax,%edx
call   1080 <memset@plt>
mov    0x18(%rsp),%rdi
call   10e0 <httpsqs_get@plt>
mov    %eax,%r14d
mov    %eax,%edi
mov    %rbx,%rsi
mov    $0x1,%edx
call   10a0 <read@plt>
test   %rax,%rax
jle    13d0 <process+0x200>
xor    %ebx,%ebx
xor    %ebp,%ebp
jmp    12ca <process+0xfa>
xchg   %ax,%ax
xor    %eax,%eax
cmpb   $0xa,0x7(%rsp)
sete   %al
add    %eax,%ebx
mov    %r14d,%edi
lea    0x7(%rsp),%rsi
mov    $0x1,%edx
call   10a0 <read@plt>
mov    %r15d,%ebp
test   %rax,%rax
jle    13d0 <process+0x200>
cmp    $0x4,%ebx
je     1310 <process+0x140>
cmp    $0x3,%ebx
jne    1380 <process+0x1b0>
mov    0x7(%rsp),%al
cmp    $0x50,%al
mov    $0x1,%ecx
cmove  %ecx,%r12d
cmp    $0x1,%r12d
jne    1380 <process+0x1b0>
lea    0x1(%rbp),%r15d
mov    $0x1,%r12d
cmp    $0x5,%ebp
jl     12a0 <process+0xd0>
add    $0xfffffffb,%ebp
mov    %al,0x21(%rsp,%rbp,1)
jmp    12a0 <process+0xd0>
nopl   0x0(%rax)
mov    %r13,%rdi
call   1060 <strlen@plt>
cmp    $0x3,%eax
jl     1380 <process+0x1b0>
mov    %r13,%rdi
call   1060 <strlen@plt>
cmp    $0x3,%eax
jl     134f <process+0x17f>
xor    %ebp,%ebp
nopl   0x0(%rax)
movzbl 0x21(%rsp,%rbp,1),%eax
mov    %al,0xa(%rsp,%rbp,1)
add    $0x1,%rbp
mov    %r13,%rdi
call   1060 <strlen@plt>
add    $0xfffffffe,%eax
cltq
cmp    %rax,%rbp
jl     1330 <process+0x160>
lea    0xa(%rsp),%rbp
mov    %rbp,%rdi
call   1060 <strlen@plt>
cltq
movb   $0x0,0xa(%rsp,%rax,1)
mov    %rbp,%rdi
call   1060 <strlen@plt>
xor    %ebp,%ebp
mov    $0x0,%r15d
test   %eax,%eax
jg     138d <process+0x1bd>
nopw   0x0(%rax,%rax,1)
mov    %ebp,%r15d
cmp    $0x2,%r12d
jne    12a0 <process+0xd0>
lea    0xa(%rsp),%rdi
call   1060 <strlen@plt>
mov    $0x2,%r12d
test   %eax,%eax
jle    12a0 <process+0xd0>
cmp    $0x8,%ebx
jne    12a0 <process+0xd0>
mov    0x7(%rsp),%al
movslq %r15d,%r15
mov    %al,0x30(%rsp,%r15,1)
add    $0x1,%r15d
jmp    12a0 <process+0xd0>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    0x30(%rsp),%rbp
mov    %rbp,%rdi
call   1060 <strlen@plt>
test   %eax,%eax
jle    13f0 <process+0x220>
mov    %rbp,%rdi
call   1060 <strlen@plt>
cltq
movb   $0x0,0x30(%rsp,%rax,1)
mov    %rbp,%rdi
call   1060 <strlen@plt>
test   %eax,%eax
jle    141e <process+0x24e>
lea    0xa(%rsp),%rdi
call   1060 <strlen@plt>
test   %eax,%eax
jle    141e <process+0x24e>
lea    0xbef(%rip),%rdi
lea    0xa(%rsp),%rsi
mov    %rbp,%rdx
call   1070 <printf@plt>
mov    %r14d,%edi
call   1090 <close@plt>
lea    0x7(%rsp),%rbx
mov    %rbx,%rdi
call   1060 <strlen@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    %eax,%edx
call   1080 <memset@plt>
mov    %rbp,%rdi
call   1060 <strlen@plt>
test   %eax,%eax
jle    1200 <process+0x30>
lea    0xa(%rsp),%rdi
call   1060 <strlen@plt>
test   %eax,%eax
jle    1200 <process+0x30>
lea    0xa(%rsp),%rdi
call   10d0 <atoi@plt>
mov    %eax,%r15d
lea    0xb9b(%rip),%rdi
lea    0xba5(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,%r14
mov    %rax,%rdi
lea    0xb95(%rip),%rsi
mov    %r15d,%edx
mov    %rbp,%rcx
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   1030 <http_post@plt>
mov    %eax,%r15d
mov    %eax,%edi
lea    0x7(%rsp),%rsi
mov    $0x1,%edx
call   10a0 <read@plt>
test   %rax,%rax
jle    1510 <process+0x340>
lea    0x7fd(%rsp),%rbx
jmp    14ee <process+0x31e>
cs nopw 0x0(%rax,%rax,1)
mov    %al,0x3(%rbx)
mov    %r15d,%edi
lea    0x7(%rsp),%rsi
mov    $0x1,%edx
call   10a0 <read@plt>
add    $0x1,%rbx
test   %rax,%rax
jle    1510 <process+0x340>
movzbl 0x7(%rsp),%eax
cmp    $0x7c,%al
jne    14d0 <process+0x300>
cmpb   $0x44,0x2(%rbx)
jne    14d0 <process+0x300>
cmpb   $0x4e,0x1(%rbx)
jne    14d0 <process+0x300>
cmpb   $0x45,(%rbx)
jne    14d0 <process+0x300>
movb   $0x0,(%rbx)
nopl   0x0(%rax,%rax,1)
lea    0x7(%rsp),%rbx
mov    %rbx,%rdi
call   1060 <strlen@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    %eax,%edx
call   1080 <memset@plt>
mov    %r15d,%edi
call   1090 <close@plt>
lea    0x800(%rsp),%rdi
call   1060 <strlen@plt>
test   %eax,%eax
je     1200 <process+0x30>
lea    0x800(%rsp),%rbx
mov    %rbx,%rdi
lea    0xaef(%rip),%rsi
call   10f0 <strstr@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <strcpy@plt>
mov    %r14,%rdi
lea    0xadc(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   10b0 <fprintf@plt>
mov    %r14,%rdi
call   1050 <fclose@plt>
jmp    1200 <process+0x30>
add    $0x1b88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [16 x i8] c"POS:%s\0ADATA:%s\0A\00"
@.str.1 = [17 x i8] c"httpsqs_feed.log\00"
@.str.2 = [2 x i8] c"a\00"
@.str.3 = [36 x i8] c"GET FROM HTTPSQS:\0D\0APOS:%d\0ADATA:%s\0D\0A\00"
@.str.4 = [6 x i8] c"Array\00"
@.str.5 = [21 x i8] c"POST TO REMOTE\0D\0A%s\0D\0A\00"
define void @process(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i32
%7 = alloca [3 x i8]
%8 = alloca [15 x i8]
%9 = alloca [2000 x i8]
%10 = alloca [5000 x i8]
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [10 x i8]
%16 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
store i32 0, i32* %11
store i32 0, i32* %12
store i32 0, i32* %13
store i32 0, i32* %14
store i32 0, i32* %16
%17 = load i32, i32* %4
%18 = add nsw i32 %17, -1
store i32 %18, i32* %4
br label %19
19: ; preds = %252, %2
%20 = load i32, i32* %4
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %259
22: ; preds = %19
%23 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%24 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%25 = call i32 @strlen(i8* %24)
%26 = call i32 @memset(i8* %23, i32 0, i32 %25)
%27 = getelementptr inbounds [2000 x i8], [2000 x i8]* %9, i64 0, i64 0
%28 = getelementptr inbounds [2000 x i8], [2000 x i8]* %9, i64 0, i64 0
%29 = call i32 @strlen(i8* %28)
%30 = call i32 @memset(i8* %27, i32 0, i32 %29)
%31 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 0
%32 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 0
%33 = call i32 @strlen(i8* %32)
%34 = call i32 @memset(i8* %31, i32 0, i32 %33)
%35 = load i8*, i8** %3
%36 = call i32 @httpsqs_get(i8* %35)
store i32 %36, i32* %6
store i32 0, i32* %11
store i32 0, i32* %12
br label %37
37: ; preds = %130, %22
%38 = load i32, i32* %6
%39 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%40 = call i64 @read(i32 %38, i8* %39, i32 1)
%41 = icmp sgt i64 %40, 0
br i1 %41, label %42, label %131
42: ; preds = %37
%43 = load i32, i32* %12
%44 = icmp eq i32 %43, 3
br i1 %44, label %45, label %68
45: ; preds = %42
%46 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 80
br i1 %49, label %50, label %51
50: ; preds = %45
store i32 1, i32* %14
br label %51
51: ; preds = %50, %45
%52 = load i32, i32* %14
%53 = icmp eq i32 %52, 1
br i1 %53, label %54, label %67
54: ; preds = %51
%55 = load i32, i32* %11
%56 = add nsw i32 %55, 1
store i32 %56, i32* %11
%57 = load i32, i32* %11
%58 = icmp sge i32 %57, 6
br i1 %58, label %59, label %66
59: ; preds = %54
%60 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%61 = load i8, i8* %60
%62 = load i32, i32* %11
%63 = sub nsw i32 %62, 6
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [15 x i8], [15 x i8]* %8, i64 0, i64 %64
store i8 %61, i8* %65
br label %66
66: ; preds = %59, %54
br label %67
67: ; preds = %66, %51
br label %68
68: ; preds = %67, %42
%69 = load i32, i32* %12
%70 = icmp eq i32 %69, 4
br i1 %70, label %71, label %103
71: ; preds = %68
%72 = getelementptr inbounds [15 x i8], [15 x i8]* %8, i64 0, i64 0
%73 = call i32 @strlen(i8* %72)
%74 = icmp sgt i32 %73, 2
br i1 %74, label %75, label %103
75: ; preds = %71
store i32 0, i32* %11
br label %76
76: ; preds = %90, %75
%77 = load i32, i32* %11
%78 = getelementptr inbounds [15 x i8], [15 x i8]* %8, i64 0, i64 0
%79 = call i32 @strlen(i8* %78)
%80 = sub nsw i32 %79, 2
%81 = icmp slt i32 %77, %80
br i1 %81, label %82, label %93
82: ; preds = %76
%83 = load i32, i32* %11
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [15 x i8], [15 x i8]* %8, i64 0, i64 %84
%86 = load i8, i8* %85
%87 = load i32, i32* %11
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 %88
store i8 %86, i8* %89
br label %90
90: ; preds = %82
%91 = load i32, i32* %11
%92 = add nsw i32 %91, 1
store i32 %92, i32* %11
br label %76
93: ; preds = %76
%94 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 0
%95 = call i32 @strlen(i8* %94)
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 %96
store i8 0, i8* %97
store i32 0, i32* %11
%98 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 0
%99 = call i32 @strlen(i8* %98)
%100 = icmp sgt i32 %99, 0
br i1 %100, label %101, label %102
101: ; preds = %93
store i32 2, i32* %14
br label %102
102: ; preds = %101, %93
br label %103
103: ; preds = %102, %71, %68
%104 = load i32, i32* %14
%105 = icmp eq i32 %104, 2
br i1 %105, label %106, label %122
106: ; preds = %103
%107 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 0
%108 = call i32 @strlen(i8* %107)
%109 = icmp sgt i32 %108, 0
br i1 %109, label %110, label %122
110: ; preds = %106
%111 = load i32, i32* %12
%112 = icmp eq i32 %111, 8
br i1 %112, label %113, label %121
113: ; preds = %110
%114 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%115 = load i8, i8* %114
%116 = load i32, i32* %11
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [2000 x i8], [2000 x i8]* %9, i64 0, i64 %117
store i8 %115, i8* %118
%119 = load i32, i32* %11
%120 = add nsw i32 %119, 1
store i32 %120, i32* %11
br label %121
121: ; preds = %113, %110
br label %122
122: ; preds = %121, %106, %103
%123 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%124 = load i8, i8* %123
%125 = sext i8 %124 to i32
%126 = icmp eq i32 %125, 10
br i1 %126, label %127, label %130
127: ; preds = %122
%128 = load i32, i32* %12
%129 = add nsw i32 %128, 1
store i32 %129, i32* %12
br label %130
130: ; preds = %127, %122
br label %37
131: ; preds = %37
%132 = getelementptr inbounds [2000 x i8], [2000 x i8]* %9, i64 0, i64 0
%133 = call i32 @strlen(i8* %132)
%134 = icmp sgt i32 %133, 0
br i1 %134, label %135, label %140
135: ; preds = %131
%136 = getelementptr inbounds [2000 x i8], [2000 x i8]* %9, i64 0, i64 0
%137 = call i32 @strlen(i8* %136)
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [2000 x i8], [2000 x i8]* %9, i64 0, i64 %138
store i8 0, i8* %139
br label %140
140: ; preds = %135, %131
%141 = getelementptr inbounds [2000 x i8], [2000 x i8]* %9, i64 0, i64 0
%142 = call i32 @strlen(i8* %141)
%143 = icmp sgt i32 %142, 0
br i1 %143, label %144, label %152
144: ; preds = %140
%145 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 0
%146 = call i32 @strlen(i8* %145)
%147 = icmp sgt i32 %146, 0
br i1 %147, label %148, label %152
148: ; preds = %144
%149 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 0
%150 = getelementptr inbounds [2000 x i8], [2000 x i8]* %9, i64 0, i64 0
%151 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %149, i8* %150)
br label %152
152: ; preds = %148, %144, %140
%153 = load i32, i32* %6
%154 = call i32 @close(i32 %153)
%155 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%156 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%157 = call i32 @strlen(i8* %156)
%158 = call i32 @memset(i8* %155, i32 0, i32 %157)
%159 = getelementptr inbounds [2000 x i8], [2000 x i8]* %9, i64 0, i64 0
%160 = call i32 @strlen(i8* %159)
%161 = icmp sgt i32 %160, 0
br i1 %161, label %162, label %252
162: ; preds = %152
%163 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 0
%164 = call i32 @strlen(i8* %163)
%165 = icmp sgt i32 %164, 0
br i1 %165, label %166, label %252
166: ; preds = %162
%167 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 0
%168 = call i32 @atoi(i8* %167)
store i32 %168, i32* %16
%169 = call i32* @fopen(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %169, i32** %5
%170 = icmp uge i32* %169, null
br i1 %170, label %171, label %176
171: ; preds = %166
%172 = load i32*, i32** %5
%173 = load i32, i32* %16
%174 = getelementptr inbounds [2000 x i8], [2000 x i8]* %9, i64 0, i64 0
%175 = call i32 (i32*, i8*, ...) @fprintf(i32* %172, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i32 %173, i8* %174)
br label %176
176: ; preds = %171, %166
%177 = getelementptr inbounds [2000 x i8], [2000 x i8]* %9, i64 0, i64 0
%178 = call i32 @http_post(i8* %177)
store i32 %178, i32* %6
store i32 0, i32* %11
br label %179
179: ; preds = %219, %176
%180 = load i32, i32* %6
%181 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%182 = call i64 @read(i32 %180, i8* %181, i32 1)
%183 = icmp sgt i64 %182, 0
br i1 %183, label %184, label %227
184: ; preds = %179
%185 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%186 = load i8, i8* %185
%187 = sext i8 %186 to i32
%188 = icmp eq i32 %187, 124
br i1 %188, label %189, label %219
189: ; preds = %184
%190 = load i32, i32* %11
%191 = sub nsw i32 %190, 1
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds [5000 x i8], [5000 x i8]* %10, i64 0, i64 %192
%194 = load i8, i8* %193
%195 = sext i8 %194 to i32
%196 = icmp eq i32 %195, 68
br i1 %196, label %197, label %218
197: ; preds = %189
%198 = load i32, i32* %11
%199 = sub nsw i32 %198, 2
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds [5000 x i8], [5000 x i8]* %10, i64 0, i64 %200
%202 = load i8, i8* %201
%203 = sext i8 %202 to i32
%204 = icmp eq i32 %203, 78
br i1 %204, label %205, label %218
205: ; preds = %197
%206 = load i32, i32* %11
%207 = sub nsw i32 %206, 3
%208 = sext i32 %207 to i64
%209 = getelementptr inbounds [5000 x i8], [5000 x i8]* %10, i64 0, i64 %208
%210 = load i8, i8* %209
%211 = sext i8 %210 to i32
%212 = icmp eq i32 %211, 69
br i1 %212, label %213, label %218
213: ; preds = %205
%214 = load i32, i32* %11
%215 = sub nsw i32 %214, 3
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds [5000 x i8], [5000 x i8]* %10, i64 0, i64 %216
store i8 0, i8* %217
br label %227
218: ; preds = %205, %197, %189
br label %219
219: ; preds = %218, %184
%220 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%221 = load i8, i8* %220
%222 = load i32, i32* %11
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds [5000 x i8], [5000 x i8]* %10, i64 0, i64 %223
store i8 %221, i8* %224
%225 = load i32, i32* %11
%226 = add nsw i32 %225, 1
store i32 %226, i32* %11
br label %179
227: ; preds = %213, %179
%228 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%229 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%230 = call i32 @strlen(i8* %229)
%231 = call i32 @memset(i8* %228, i32 0, i32 %230)
%232 = load i32, i32* %6
%233 = call i32 @close(i32 %232)
%234 = getelementptr inbounds [5000 x i8], [5000 x i8]* %10, i64 0, i64 0
%235 = call i32 @strlen(i8* %234)
%236 = icmp ne i32 %235, 0
br i1 %236, label %237, label %251
237: ; preds = %227
%238 = load i32*, i32** %5
%239 = icmp uge i32* %238, null
br i1 %239, label %240, label %250
240: ; preds = %237
%241 = getelementptr inbounds [5000 x i8], [5000 x i8]* %10, i64 0, i64 0
%242 = getelementptr inbounds [5000 x i8], [5000 x i8]* %10, i64 0, i64 0
%243 = call i32 @strstr(i8* %242, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%244 = call i32 @strcpy(i8* %241, i32 %243)
%245 = load i32*, i32** %5
%246 = getelementptr inbounds [5000 x i8], [5000 x i8]* %10, i64 0, i64 0
%247 = call i32 (i32*, i8*, ...) @fprintf(i32* %245, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i8* %246)
%248 = load i32*, i32** %5
%249 = call i32 @fclose(i32* %248)
br label %250
250: ; preds = %240, %237
br label %251
251: ; preds = %250, %227
br label %252
252: ; preds = %251, %162, %152
%253 = getelementptr inbounds [5000 x i8], [5000 x i8]* %10, i64 0, i64 0
%254 = getelementptr inbounds [5000 x i8], [5000 x i8]* %10, i64 0, i64 0
%255 = call i32 @strlen(i8* %254)
%256 = call i32 @memset(i8* %253, i32 0, i32 %255)
%257 = load i32, i32* %4
%258 = add nsw i32 %257, -1
store i32 %258, i32* %4
br label %19
259: ; preds = %19
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"POS:%s\0ADATA:%s\0A\00"
@.str.1 = [17 x i8] c"httpsqs_feed.log\00"
@.str.2 = [2 x i8] c"a\00"
@.str.3 = [36 x i8] c"GET FROM HTTPSQS:\0D\0APOS:%d\0ADATA:%s\0D\0A\00"
@.str.4 = [6 x i8] c"Array\00"
@.str.5 = [21 x i8] c"POST TO REMOTE\0D\0A%s\0D\0A\00"
define void @process(i8* %0, i32 %1) {
%3 = alloca [3 x i8]
%4 = alloca [15 x i8]
%5 = alloca [2000 x i8]
%6 = alloca [5000 x i8]
%7 = alloca [10 x i8]
%8 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [15 x i8], [15 x i8]* %4, i64 0, i64 0
%10 = getelementptr inbounds [2000 x i8], [2000 x i8]* %5, i64 0, i64 0
%11 = getelementptr inbounds [5000 x i8], [5000 x i8]* %6, i64 0, i64 0
%12 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%13 = add nsw i32 %1, -1
%14 = icmp eq i32 %13, 0
br i1 %14, label %163, label %15
15: ; preds = %2, %158
%16 = phi i32 [ %161, %158 ], [ %13, %2 ]
%17 = phi i32 [ %90, %158 ], [ 0, %2 ]
%18 = call i32 @strlen(i8* %8)
%19 = call i32 @memset(i8* %8, i32 0, i32 %18)
%20 = call i32 @strlen(i8* %10)
%21 = call i32 @memset(i8* %10, i32 0, i32 %20)
%22 = call i32 @strlen(i8* %12)
%23 = call i32 @memset(i8* %12, i32 0, i32 %22)
%24 = call i32 @httpsqs_get(i8* %0)
%25 = call i64 @read(i32 %24, i8* %8, i32 1)
%26 = icmp sgt i64 %25, 0
br i1 %26, label %27, label %89
27: ; preds = %15, %80
%28 = phi i32 [ %81, %80 ], [ %17, %15 ]
%29 = phi i32 [ %86, %80 ], [ 0, %15 ]
%30 = phi i32 [ %82, %80 ], [ 0, %15 ]
switch i32 %29, label %65 [
i32 3, label %31
i32 4, label %43
]
31: ; preds = %27
%32 = load i8, i8* %8
%33 = icmp eq i8 %32, 80
%34 = select i1 %33, i32 1, i32 %28
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %65
36: ; preds = %31
%37 = add nsw i32 %30, 1
%38 = icmp sgt i32 %30, 4
br i1 %38, label %39, label %80
39: ; preds = %36
%40 = add nsw i32 %30, -5
%41 = zext i32 %40 to i64
%42 = getelementptr inbounds [15 x i8], [15 x i8]* %4, i64 0, i64 %41
store i8 %32, i8* %42
br label %80
43: ; preds = %27
%44 = call i32 @strlen(i8* %9)
%45 = icmp sgt i32 %44, 2
br i1 %45, label %46, label %65
46: ; preds = %43
%47 = call i32 @strlen(i8* %9)
%48 = icmp sgt i32 %47, 2
br i1 %48, label %49, label %59
49: ; preds = %46, %49
%50 = phi i64 [ %54, %49 ], [ 0, %46 ]
%51 = getelementptr inbounds [15 x i8], [15 x i8]* %4, i64 0, i64 %50
%52 = load i8, i8* %51
%53 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 %50
store i8 %52, i8* %53
%54 = add nuw nsw i64 %50, 1
%55 = call i32 @strlen(i8* %9)
%56 = add nsw i32 %55, -2
%57 = sext i32 %56 to i64
%58 = icmp slt i64 %54, %57
br i1 %58, label %49, label %59
59: ; preds = %49, %46
%60 = call i32 @strlen(i8* %12)
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 %61
store i8 0, i8* %62
%63 = call i32 @strlen(i8* %12)
%64 = icmp sgt i32 %63, 0
br i1 %64, label %69, label %65
65: ; preds = %27, %31, %59, %43
%66 = phi i32 [ %30, %43 ], [ 0, %59 ], [ %30, %31 ], [ %30, %27 ]
%67 = phi i32 [ %28, %43 ], [ %28, %59 ], [ %34, %31 ], [ %28, %27 ]
%68 = icmp eq i32 %67, 2
br i1 %68, label %69, label %80
69: ; preds = %59, %65
%70 = phi i32 [ %66, %65 ], [ 0, %59 ]
%71 = call i32 @strlen(i8* %12)
%72 = icmp sgt i32 %71, 0
%73 = icmp eq i32 %29, 8
%74 = select i1 %72, i1 %73, i1 false
br i1 %74, label %75, label %80
75: ; preds = %69
%76 = load i8, i8* %8
%77 = sext i32 %70 to i64
%78 = getelementptr inbounds [2000 x i8], [2000 x i8]* %5, i64 0, i64 %77
store i8 %76, i8* %78
%79 = add nsw i32 %70, 1
br label %80
80: ; preds = %39, %36, %75, %69, %65
%81 = phi i32 [ 2, %75 ], [ 2, %69 ], [ %67, %65 ], [ 1, %36 ], [ 1, %39 ]
%82 = phi i32 [ %79, %75 ], [ %70, %69 ], [ %66, %65 ], [ %37, %36 ], [ %37, %39 ]
%83 = load i8, i8* %8
%84 = icmp eq i8 %83, 10
%85 = zext i1 %84 to i32
%86 = add nuw nsw i32 %29, %85
%87 = call i64 @read(i32 %24, i8* %8, i32 1)
%88 = icmp sgt i64 %87, 0
br i1 %88, label %27, label %89
89: ; preds = %80, %15
%90 = phi i32 [ %17, %15 ], [ %81, %80 ]
%91 = call i32 @strlen(i8* %10)
%92 = icmp sgt i32 %91, 0
br i1 %92, label %93, label %97
93: ; preds = %89
%94 = call i32 @strlen(i8* %10)
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [2000 x i8], [2000 x i8]* %5, i64 0, i64 %95
store i8 0, i8* %96
br label %97
97: ; preds = %93, %89
%98 = call i32 @strlen(i8* %10)
%99 = icmp sgt i32 %98, 0
br i1 %99, label %100, label %105
100: ; preds = %97
%101 = call i32 @strlen(i8* %12)
%102 = icmp sgt i32 %101, 0
br i1 %102, label %103, label %105
103: ; preds = %100
%104 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %12, i8* %10)
br label %105
105: ; preds = %103, %100, %97
%106 = call i32 @close(i32 %24)
%107 = call i32 @strlen(i8* %8)
%108 = call i32 @memset(i8* %8, i32 0, i32 %107)
%109 = call i32 @strlen(i8* %10)
%110 = icmp sgt i32 %109, 0
br i1 %110, label %111, label %158
111: ; preds = %105
%112 = call i32 @strlen(i8* %12)
%113 = icmp sgt i32 %112, 0
br i1 %113, label %114, label %158
114: ; preds = %111
%115 = call i32 @atoi(i8* %12)
%116 = call i32* @fopen(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%117 = call i32 (i32*, i8*, ...) @fprintf(i32* %116, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i32 %115, i8* %10)
%118 = call i32 @http_post(i8* %10)
%119 = call i64 @read(i32 %118, i8* %8, i32 1)
%120 = icmp sgt i64 %119, 0
br i1 %120, label %121, label %147
121: ; preds = %114, %142
%122 = phi i64 [ %144, %142 ], [ 0, %114 ]
%123 = load i8, i8* %8
%124 = icmp eq i8 %123, 124
br i1 %124, label %125, label %142
125: ; preds = %121
%126 = add nsw i64 %122, -1
%127 = getelementptr inbounds [5000 x i8], [5000 x i8]* %6, i64 0, i64 %126
%128 = load i8, i8* %127
%129 = icmp eq i8 %128, 68
br i1 %129, label %130, label %142
130: ; preds = %125
%131 = add nsw i64 %122, -2
%132 = getelementptr inbounds [5000 x i8], [5000 x i8]* %6, i64 0, i64 %131
%133 = load i8, i8* %132
%134 = icmp eq i8 %133, 78
br i1 %134, label %135, label %142
135: ; preds = %130
%136 = add nsw i64 %122, -3
%137 = getelementptr inbounds [5000 x i8], [5000 x i8]* %6, i64 0, i64 %136
%138 = load i8, i8* %137
%139 = icmp eq i8 %138, 69
br i1 %139, label %140, label %142
140: ; preds = %135
%141 = getelementptr inbounds [5000 x i8], [5000 x i8]* %6, i64 0, i64 %136
store i8 0, i8* %141
br label %147
142: ; preds = %125, %130, %135, %121
%143 = getelementptr inbounds [5000 x i8], [5000 x i8]* %6, i64 0, i64 %122
store i8 %123, i8* %143
%144 = add nuw i64 %122, 1
%145 = call i64 @read(i32 %118, i8* %8, i32 1)
%146 = icmp sgt i64 %145, 0
br i1 %146, label %121, label %147
147: ; preds = %142, %114, %140
%148 = call i32 @strlen(i8* %8)
%149 = call i32 @memset(i8* %8, i32 0, i32 %148)
%150 = call i32 @close(i32 %118)
%151 = call i32 @strlen(i8* %11)
%152 = icmp eq i32 %151, 0
br i1 %152, label %158, label %153
153: ; preds = %147
%154 = call i32 @strstr(i8* %11, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%155 = call i32 @strcpy(i8* %11, i32 %154)
%156 = call i32 (i32*, i8*, ...) @fprintf(i32* %116, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i8* %11)
%157 = call i32 @fclose(i32* %116)
br label %158
158: ; preds = %147, %153, %111, %105
%159 = call i32 @strlen(i8* %11)
%160 = call i32 @memset(i8* %11, i32 0, i32 %159)
%161 = add nsw i32 %16, -1
%162 = icmp eq i32 %161, 0
br i1 %162, label %163, label %15
163: ; preds = %158, %2
ret void
}