void append(void) {
  unsigned short int i;
  unsigned short int j;
  unsigned short int equal;
  unsigned char device;
  unsigned char filename[16 + 2];
  unsigned char str[256];
  int first_line;
  puts0("file ? ");
  for (i = 0; i < 16; i++)
    str[i] = 0;
  getsn(str, 256);
  for (i = 0; i < 16; i++)
    filename[i] = str[i];
  filename[16] = 0;
  puts0("\r\n'");
  puts0(filename);
  puts0("'\r\n");
  i = open_(filename, 3);
  if (i == 1) {
    puts0("open OK\r\n");
  } else {
    puts0("open not ok\r\n");
    return;
  }
  first_line = 1;
  while (1) {
    puts0("data to file (] - end of text) ? ");
    for (i = 0; i < 256; i++)
      str[i] = 0;
    getsn(str, 256);
    puts0("\r\n'");
    puts0(str);
    puts0("'\r\n");
    if (str[0] == ']')
      break;
    if (first_line == 0)
      writec(0, '\n');
    else
      first_line = 0;
    for (i = 0; i < 256; i++)
      if (str[i]) {
        writec(0, str[i]);
        putch(str[i]);
      } else
        break;
  }
  close_(0);
}


x86 assembly (clang, -O0):
<append>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
lea    0xe8e(%rip),%rdi
mov    $0x0,%al
call   1060 <puts0@plt>
movw   $0x0,-0x2(%rbp)
movzwl -0x2(%rbp),%eax
cmp    $0x10,%eax
jge    11a9 <append+0x49>
movzwl -0x2(%rbp),%eax
movb   $0x0,-0x120(%rbp,%rax,1)
mov    -0x2(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x2(%rbp)
jmp    117f <append+0x1f>
lea    -0x120(%rbp),%rdi
mov    $0x100,%esi
mov    $0x0,%al
call   1030 <getsn@plt>
movw   $0x0,-0x2(%rbp)
movzwl -0x2(%rbp),%eax
cmp    $0x10,%eax
jge    11f3 <append+0x93>
movzwl -0x2(%rbp),%eax
mov    -0x120(%rbp,%rax,1),%cl
movzwl -0x2(%rbp),%eax
mov    %cl,-0x20(%rbp,%rax,1)
mov    -0x2(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x2(%rbp)
jmp    11c2 <append+0x62>
movb   $0x0,-0x10(%rbp)
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1060 <puts0@plt>
lea    -0x20(%rbp),%rdi
mov    $0x0,%al
call   1060 <puts0@plt>
lea    0xdf5(%rip),%rdi
mov    $0x0,%al
call   1060 <puts0@plt>
lea    -0x20(%rbp),%rdi
mov    $0x3,%esi
mov    $0x0,%al
call   1050 <open_@plt>
mov    %ax,-0x2(%rbp)
movzwl -0x2(%rbp),%eax
cmp    $0x1,%eax
jne    1252 <append+0xf2>
lea    0xdca(%rip),%rdi
mov    $0x0,%al
call   1060 <puts0@plt>
jmp    1265 <append+0x105>
lea    0xdc1(%rip),%rdi
mov    $0x0,%al
call   1060 <puts0@plt>
jmp    13a8 <append+0x248>
movl   $0x1,-0x124(%rbp)
lea    0xdb2(%rip),%rdi
mov    $0x0,%al
call   1060 <puts0@plt>
movw   $0x0,-0x2(%rbp)
movzwl -0x2(%rbp),%eax
cmp    $0x100,%eax
jge    12af <append+0x14f>
movzwl -0x2(%rbp),%eax
movb   $0x0,-0x120(%rbp,%rax,1)
mov    -0x2(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x2(%rbp)
jmp    1283 <append+0x123>
lea    -0x120(%rbp),%rdi
mov    $0x100,%esi
mov    $0x0,%al
call   1030 <getsn@plt>
lea    0xd3f(%rip),%rdi
mov    $0x0,%al
call   1060 <puts0@plt>
lea    -0x120(%rbp),%rdi
mov    $0x0,%al
call   1060 <puts0@plt>
lea    0xd27(%rip),%rdi
mov    $0x0,%al
call   1060 <puts0@plt>
movzbl -0x120(%rbp),%eax
cmp    $0x5d,%eax
jne    1301 <append+0x1a1>
jmp    139f <append+0x23f>
cmpl   $0x0,-0x124(%rbp)
jne    1321 <append+0x1c1>
xor    %edi,%edi
mov    $0xa,%esi
mov    $0x0,%al
call   1040 <writec@plt>
jmp    132b <append+0x1cb>
movl   $0x0,-0x124(%rbp)
movw   $0x0,-0x2(%rbp)
movzwl -0x2(%rbp),%eax
cmp    $0x100,%eax
jge    139a <append+0x23a>
movzwl -0x2(%rbp),%eax
cmpb   $0x0,-0x120(%rbp,%rax,1)
je     137f <append+0x21f>
movzwl -0x2(%rbp),%eax
movzbl -0x120(%rbp,%rax,1),%esi
ff
xor    %edi,%edi
mov    $0x0,%al
call   1040 <writec@plt>
movzwl -0x2(%rbp),%eax
movzbl -0x120(%rbp,%rax,1),%edi
ff
mov    $0x0,%al
call   1070 <putch@plt>
jmp    1384 <append+0x224>
jmp    139a <append+0x23a>
jmp    1389 <append+0x229>
mov    -0x2(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x2(%rbp)
jmp    1331 <append+0x1d1>
jmp    126f <append+0x10f>
xor    %edi,%edi
mov    $0x0,%al
call   1080 <close_@plt>
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<append>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x120,%rsp
lea    0xe89(%rip),%rdi
xor    %eax,%eax
call   1060 <puts0@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
lea    0x20(%rsp),%rdi
mov    $0x100,%esi
xor    %eax,%eax
call   1030 <getsn@plt>
movaps 0x20(%rsp),%xmm0
movaps %xmm0,(%rsp)
movb   $0x0,0x10(%rsp)
lea    0xe5c(%rip),%rdi
xor    %eax,%eax
call   1060 <puts0@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <puts0@plt>
lea    0xe45(%rip),%rdi
xor    %eax,%eax
call   1060 <puts0@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <open_@plt>
cmp    $0x1,%ax
jne    12c0 <append+0x160>
lea    0xe22(%rip),%rdi
xor    %eax,%eax
call   1060 <puts0@plt>
lea    0xe2c(%rip),%rdi
xor    %eax,%eax
call   1060 <puts0@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xf0(%rsp)
movaps %xmm0,0x100(%rsp)
movaps %xmm0,0x110(%rsp)
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
xor    %eax,%eax
call   1030 <getsn@plt>
lea    0xd79(%rip),%rdi
xor    %eax,%eax
call   1060 <puts0@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <puts0@plt>
lea    0xd65(%rip),%rdi
xor    %eax,%eax
call   1060 <puts0@plt>
cmpb   $0x5d,0x20(%rsp)
jne    12df <append+0x17f>
xor    %edi,%edi
xor    %eax,%eax
call   1080 <close_@plt>
jmp    12ce <append+0x16e>
lea    0xd53(%rip),%rdi
xor    %eax,%eax
call   1060 <puts0@plt>
add    $0x120,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret
lea    0xd42(%rip),%r14
lea    0x20(%rsp),%r13
lea    0xd16(%rip),%r15
lea    0xd13(%rip),%r12
nopl   0x0(%rax)
xor    %ebx,%ebx
movzbl 0x20(%rsp,%rbx,1),%esi
test   %esi,%esi
je     132d <append+0x1cd>
xor    %edi,%edi
xor    %eax,%eax
call   1040 <writec@plt>
movzbl 0x20(%rsp,%rbx,1),%edi
xor    %eax,%eax
call   1070 <putch@plt>
add    $0x1,%rbx
cmp    $0x100,%rbx
jne    1302 <append+0x1a2>
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <puts0@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xf0(%rsp)
movaps %xmm0,0x100(%rsp)
movaps %xmm0,0x110(%rsp)
mov    %r13,%rdi
mov    $0x100,%esi
xor    %eax,%eax
call   1030 <getsn@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <puts0@plt>
mov    %r13,%rdi
xor    %eax,%eax
call   1060 <puts0@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1060 <puts0@plt>
cmpb   $0x5d,0x20(%rsp)
je     12b5 <append+0x155>
xor    %edi,%edi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <writec@plt>
jmp    1300 <append+0x1a0>

LLVM IR (-O0):
@.str = [8 x i8] c"file ? \00"
@.str.1 = [4 x i8] c"\0D\0A'\00"
@.str.2 = [4 x i8] c"'\0D\0A\00"
@.str.3 = [10 x i8] c"open OK\0D\0A\00"
@.str.4 = [14 x i8] c"open not ok\0D\0A\00"
@.str.5 = [34 x i8] c"data to file (] - end of text) ? \00"
define void @append() {
%1 = alloca i16
%2 = alloca i16
%3 = alloca i16
%4 = alloca i8
%5 = alloca [18 x i8]
%6 = alloca [256 x i8]
%7 = alloca i32
%8 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
store i16 0, i16* %1
br label %9
9: ; preds = %17, %0
%10 = load i16, i16* %1
%11 = zext i16 %10 to i32
%12 = icmp slt i32 %11, 16
br i1 %12, label %13, label %20
13: ; preds = %9
%14 = load i16, i16* %1
%15 = zext i16 %14 to i64
%16 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 %15
store i8 0, i8* %16
br label %17
17: ; preds = %13
%18 = load i16, i16* %1
%19 = add i16 %18, 1
store i16 %19, i16* %1
br label %9
20: ; preds = %9
%21 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%22 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @getsn to i32 (i8*, i32, ...)*)(i8* %21, i32 256)
store i16 0, i16* %1
br label %23
23: ; preds = %35, %20
%24 = load i16, i16* %1
%25 = zext i16 %24 to i32
%26 = icmp slt i32 %25, 16
br i1 %26, label %27, label %38
27: ; preds = %23
%28 = load i16, i16* %1
%29 = zext i16 %28 to i64
%30 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 %29
%31 = load i8, i8* %30
%32 = load i16, i16* %1
%33 = zext i16 %32 to i64
%34 = getelementptr inbounds [18 x i8], [18 x i8]* %5, i64 0, i64 %33
store i8 %31, i8* %34
br label %35
35: ; preds = %27
%36 = load i16, i16* %1
%37 = add i16 %36, 1
store i16 %37, i16* %1
br label %23
38: ; preds = %23
%39 = getelementptr inbounds [18 x i8], [18 x i8]* %5, i64 0, i64 16
store i8 0, i8* %39
%40 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%41 = getelementptr inbounds [18 x i8], [18 x i8]* %5, i64 0, i64 0
%42 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* %41)
%43 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%44 = getelementptr inbounds [18 x i8], [18 x i8]* %5, i64 0, i64 0
%45 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @open_ to i32 (i8*, i32, ...)*)(i8* %44, i32 3)
%46 = trunc i32 %45 to i16
store i16 %46, i16* %1
%47 = load i16, i16* %1
%48 = zext i16 %47 to i32
%49 = icmp eq i32 %48, 1
br i1 %49, label %50, label %52
50: ; preds = %38
%51 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
br label %54
52: ; preds = %38
%53 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
br label %118
54: ; preds = %50
store i32 1, i32* %7
br label %55
55: ; preds = %54, %115
%56 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
store i16 0, i16* %1
br label %57
57: ; preds = %65, %55
%58 = load i16, i16* %1
%59 = zext i16 %58 to i32
%60 = icmp slt i32 %59, 256
br i1 %60, label %61, label %68
61: ; preds = %57
%62 = load i16, i16* %1
%63 = zext i16 %62 to i64
%64 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 %63
store i8 0, i8* %64
br label %65
65: ; preds = %61
%66 = load i16, i16* %1
%67 = add i16 %66, 1
store i16 %67, i16* %1
br label %57
68: ; preds = %57
%69 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%70 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @getsn to i32 (i8*, i32, ...)*)(i8* %69, i32 256)
%71 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%72 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%73 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* %72)
%74 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%75 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%76 = load i8, i8* %75
%77 = zext i8 %76 to i32
%78 = icmp eq i32 %77, 93
br i1 %78, label %79, label %80
79: ; preds = %68
br label %116
80: ; preds = %68
%81 = load i32, i32* %7
%82 = icmp eq i32 %81, 0
br i1 %82, label %83, label %85
83: ; preds = %80
%84 = call i32 (i32, i32, ...) bitcast (i32 (...)* @writec to i32 (i32, i32, ...)*)(i32 0, i32 10)
br label %86
85: ; preds = %80
store i32 0, i32* %7
br label %86
86: ; preds = %85, %83
store i16 0, i16* %1
br label %87
87: ; preds = %112, %86
%88 = load i16, i16* %1
%89 = zext i16 %88 to i32
%90 = icmp slt i32 %89, 256
br i1 %90, label %91, label %115
91: ; preds = %87
%92 = load i16, i16* %1
%93 = zext i16 %92 to i64
%94 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 %93
%95 = load i8, i8* %94
%96 = icmp ne i8 %95, 0
br i1 %96, label %97, label %110
97: ; preds = %91
%98 = load i16, i16* %1
%99 = zext i16 %98 to i64
%100 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 %99
%101 = load i8, i8* %100
%102 = zext i8 %101 to i32
%103 = call i32 (i32, i32, ...) bitcast (i32 (...)* @writec to i32 (i32, i32, ...)*)(i32 0, i32 %102)
%104 = load i16, i16* %1
%105 = zext i16 %104 to i64
%106 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 %105
%107 = load i8, i8* %106
%108 = zext i8 %107 to i32
%109 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 %108)
br label %111
110: ; preds = %91
br label %115
111: ; preds = %97
br label %112
112: ; preds = %111
%113 = load i16, i16* %1
%114 = add i16 %113, 1
store i16 %114, i16* %1
br label %87
115: ; preds = %110, %87
br label %55
116: ; preds = %79
%117 = call i32 (i32, ...) bitcast (i32 (...)* @close_ to i32 (i32, ...)*)(i32 0)
br label %118
118: ; preds = %116, %52
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"file ? \00"
@.str.1 = [4 x i8] c"\0D\0A'\00"
@.str.2 = [4 x i8] c"'\0D\0A\00"
@.str.3 = [10 x i8] c"open OK\0D\0A\00"
@.str.4 = [14 x i8] c"open not ok\0D\0A\00"
@.str.5 = [34 x i8] c"data to file (] - end of text) ? \00"
define void @append() {
%1 = alloca [18 x i8]
%2 = getelementptr inbounds [18 x i8], [18 x i8]* %1, i64 0, i64 0
%3 = alloca [256 x i8]
%4 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%5 = getelementptr inbounds [18 x i8], [18 x i8]* %1, i64 0, i64 0
%6 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%7 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @getsn to i32 (i8*, i32, ...)*)(i8* %6, i32 256)
%9 = getelementptr inbounds [18 x i8], [18 x i8]* %1, i64 0, i64 16
store i8 0, i8* %9
%10 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* %5)
%12 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @open_ to i32 (i8*, i32, ...)*)(i8* %5, i32 3)
%14 = and i32 %13, 65535
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %25
16: ; preds = %0
%17 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%18 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%19 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @getsn to i32 (i8*, i32, ...)*)(i8* %6, i32 256)
%20 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%21 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* %6)
%22 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%23 = load i8, i8* %6
%24 = icmp eq i8 %23, 93
br i1 %24, label %52, label %29
25: ; preds = %0
%26 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
br label %54
27: ; preds = %44
%28 = call i32 (i32, i32, ...) bitcast (i32 (...)* @writec to i32 (i32, i32, ...)*)(i32 0, i32 10)
br label %42
29: ; preds = %16, %42
%30 = phi i64 [ %43, %42 ], [ 0, %16 ]
%31 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 %30
%32 = load i8, i8* %31
%33 = icmp eq i8 %32, 0
br i1 %33, label %44, label %34
34: ; preds = %29
%35 = zext i8 %32 to i32
%36 = call i32 (i32, i32, ...) bitcast (i32 (...)* @writec to i32 (i32, i32, ...)*)(i32 0, i32 %35)
%37 = load i8, i8* %31
%38 = zext i8 %37 to i32
%39 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 %38)
%40 = add nuw nsw i64 %30, 1
%41 = icmp eq i64 %40, 256
br i1 %41, label %44, label %42
42: ; preds = %34, %27
%43 = phi i64 [ %40, %34 ], [ 0, %27 ]
br label %29
44: ; preds = %29, %34
%45 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%46 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @getsn to i32 (i8*, i32, ...)*)(i8* %6, i32 256)
%47 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%48 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* %6)
%49 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%50 = load i8, i8* %6
%51 = icmp eq i8 %50, 93
br i1 %51, label %52, label %27
52: ; preds = %44, %16
%53 = call i32 (i32, ...) bitcast (i32 (...)* @close_ to i32 (i32, ...)*)(i32 0)
br label %54
54: ; preds = %52, %25
ret void
}