#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 /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
scalar_t__ strcmp(char *, char *);
int strlen(char *);
char *strtok(char *, char *);
char tolower(char);
int parseCommands(FILE *cmds, FILE *out) {
  int exitLoop = 0;
  int retVal = 1;
  char line[81];
  char cmnd[5];
  char *p;
  char *a;
  while (exitLoop != 1) {
    fprintf(out, "%s ", "LSN>");
    memset(line, 0, 81);
    fgets(line, 81, cmds);
    for (p = line; *p; ++p) {
      *p = tolower(*p);
      if (*p == '\n')
        *p = 0;
    }
    p = strtok(line, " ");
    a = strtok(NULL, " ");
    if (p != NULL) {
      if (strlen(p) != 4) {
        fprintf(out, "Bad command: %s\n", p);
      } else {
        if (strcmp(p, "cont") == 0) {
          retVal = 1;
          exitLoop = 1;
        } else if (strcmp(p, "exit") == 0) {
          retVal = 0;
          exitLoop = 1;
        } else if (strcmp(p, "help") == 0) {
          fprintf(out, "Listener commands:\n");
          fprintf(out, "EXIT        - end process\n");
          fprintf(out, "CONT        - resume process\n");
          fprintf(out, "SMAC        - display MAC address\n");
          fprintf(out, "SNOD XX.XXX - show node information\n");
          fprintf(out, "SMAC        - display MAC address\n");
          fprintf(out, "SETM xx...  - set local MAC address\n");
          fprintf(out, "LIST        - enter list definition mode\n");
          fprintf(out, "SMAC        - display MAC address\n");
        } else {
          fprintf(out, "Command not implemented: %s\n", p);
        }
      }
    }
  }
  return retVal;
}


x86 assembly (clang, -O0):
<parseCommands>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
cmpl   $0x1,-0x14(%rbp)
je     13d9 <parseCommands+0x269>
mov    -0x10(%rbp),%rdi
lea    0xe5a(%rip),%rsi
lea    0xe57(%rip),%rdx
mov    $0x0,%al
call   1070 <fprintf@plt>
lea    -0x70(%rbp),%rdi
xor    %esi,%esi
mov    $0x51,%edx
call   1040 <memset@plt>
lea    -0x70(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    $0x51,%esi
call   1050 <fgets@plt>
lea    -0x70(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
cmpb   $0x0,(%rax)
je     122c <parseCommands+0xbc>
mov    -0x80(%rbp),%rax
movsbl (%rax),%edi
call   1080 <tolower@plt>
mov    %al,%cl
mov    -0x80(%rbp),%rax
mov    %cl,(%rax)
mov    -0x80(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
jne    1216 <parseCommands+0xa6>
mov    -0x80(%rbp),%rax
movb   $0x0,(%rax)
jmp    121b <parseCommands+0xab>
mov    -0x80(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x80(%rbp)
jmp    11de <parseCommands+0x6e>
lea    -0x70(%rbp),%rdi
lea    0xdcb(%rip),%rsi
call   1090 <strtok@plt>
mov    %rax,-0x80(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xdb7(%rip),%rsi
call   1090 <strtok@plt>
mov    %rax,-0x88(%rbp)
cmpq   $0x0,-0x80(%rbp)
je     13d4 <parseCommands+0x264>
mov    -0x80(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x4,%eax
je     128f <parseCommands+0x11f>
mov    -0x10(%rbp),%rdi
mov    -0x80(%rbp),%rdx
lea    0xd86(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    13cf <parseCommands+0x25f>
mov    -0x80(%rbp),%rdi
lea    0xd80(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    12bc <parseCommands+0x14c>
movl   $0x1,-0x18(%rbp)
movl   $0x1,-0x14(%rbp)
jmp    13ca <parseCommands+0x25a>
mov    -0x80(%rbp),%rdi
lea    0xd58(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    12e9 <parseCommands+0x179>
movl   $0x0,-0x18(%rbp)
movl   $0x1,-0x14(%rbp)
jmp    13c5 <parseCommands+0x255>
mov    -0x80(%rbp),%rdi
lea    0xd30(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    13aa <parseCommands+0x23a>
mov    -0x10(%rbp),%rdi
lea    0xd1b(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xd1d(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xd26(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xd32(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xd43(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xd0e(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xd44(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xd57(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xcd8(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    13c0 <parseCommands+0x250>
mov    -0x10(%rbp),%rdi
mov    -0x80(%rbp),%rdx
lea    0xd54(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    13c5 <parseCommands+0x255>
jmp    13ca <parseCommands+0x25a>
jmp    13cf <parseCommands+0x25f>
jmp    13d4 <parseCommands+0x264>
jmp    1191 <parseCommands+0x21>
mov    -0x18(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parseCommands>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rsi,%rbx
mov    %rdi,0x8(%rsp)
xor    %r12d,%r12d
lea    0x10(%rsp),%r13
lea    0xe5d(%rip),%r14
jmp    11c4 <parseCommands+0x44>
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
lea    0xe4f(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    %rbx,%rdi
lea    0xe32(%rip),%rsi
lea    0xe2f(%rip),%rdx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    %r13,%rdi
xor    %esi,%esi
mov    $0x51,%edx
call   1040 <memset@plt>
mov    %r13,%rdi
mov    $0x51,%esi
mov    0x8(%rsp),%rdx
call   1050 <fgets@plt>
mov    0x10(%rsp),%al
test   %al,%al
je     1230 <parseCommands+0xb0>
lea    0x11(%rsp),%rbp
nopw   0x0(%rax,%rax,1)
movsbl %al,%edi
call   1080 <tolower@plt>
cmp    $0xa,%al
movzbl %al,%eax
cmove  %r12d,%eax
mov    %al,-0x1(%rbp)
movzbl 0x0(%rbp),%eax
add    $0x1,%rbp
test   %al,%al
jne    1210 <parseCommands+0x90>
mov    %r13,%rdi
mov    %r14,%rsi
call   1090 <strtok@plt>
mov    %rax,%r15
xor    %edi,%edi
mov    %r14,%rsi
call   1090 <strtok@plt>
test   %r15,%r15
je     11c4 <parseCommands+0x44>
mov    %r15,%rdi
call   1030 <strlen@plt>
cmp    $0x4,%eax
jne    11b0 <parseCommands+0x30>
mov    %r15,%rdi
lea    0xdae(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1396 <parseCommands+0x216>
mov    %r15,%rdi
lea    0xd9b(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     139d <parseCommands+0x21d>
mov    %r15,%rdi
lea    0xd88(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     12b5 <parseCommands+0x135>
mov    %rbx,%rdi
lea    0xe5d(%rip),%rsi
jmp    11ba <parseCommands+0x3a>
mov    $0x13,%esi
mov    $0x1,%edx
lea    0xd63(%rip),%rdi
mov    %rbx,%rcx
call   10a0 <fwrite@plt>
mov    $0x1a,%esi
mov    $0x1,%edx
lea    0xd5e(%rip),%rdi
mov    %rbx,%rcx
call   10a0 <fwrite@plt>
mov    $0x1d,%esi
mov    $0x1,%edx
lea    0xd60(%rip),%rdi
mov    %rbx,%rcx
call   10a0 <fwrite@plt>
mov    $0x22,%esi
mov    $0x1,%edx
lea    0xd65(%rip),%rbp
mov    %rbp,%rdi
mov    %rbx,%rcx
call   10a0 <fwrite@plt>
mov    $0x24,%esi
mov    $0x1,%edx
lea    0xd6c(%rip),%rdi
mov    %rbx,%rcx
call   10a0 <fwrite@plt>
mov    $0x22,%esi
mov    $0x1,%edx
mov    %rbp,%rdi
mov    %rbx,%rcx
call   10a0 <fwrite@plt>
mov    $0x24,%esi
mov    $0x1,%edx
lea    0xd63(%rip),%rdi
mov    %rbx,%rcx
call   10a0 <fwrite@plt>
mov    $0x29,%esi
mov    $0x1,%edx
lea    0xd6f(%rip),%rdi
mov    %rbx,%rcx
call   10a0 <fwrite@plt>
mov    $0x22,%esi
mov    $0x1,%edx
mov    %rbp,%rdi
mov    %rbx,%rcx
call   10a0 <fwrite@plt>
jmp    11c4 <parseCommands+0x44>
mov    $0x1,%eax
jmp    139f <parseCommands+0x21f>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%s \00"
@.str.1 = [5 x i8] c"LSN>\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [17 x i8] c"Bad command: %s\0A\00"
@.str.4 = [5 x i8] c"cont\00"
@.str.5 = [5 x i8] c"exit\00"
@.str.6 = [5 x i8] c"help\00"
@.str.7 = [20 x i8] c"Listener commands:\0A\00"
@.str.8 = [27 x i8] c"EXIT - end process\0A\00"
@.str.9 = [30 x i8] c"CONT - resume process\0A\00"
@.str.10 = [35 x i8] c"SMAC - display MAC address\0A\00"
@.str.11 = [37 x i8] c"SNOD XX.XXX - show node information\0A\00"
@.str.12 = [37 x i8] c"SETM xx... - set local MAC address\0A\00"
@.str.13 = [42 x i8] c"LIST - enter list definition mode\0A\00"
@.str.14 = [29 x i8] c"Command not implemented: %s\0A\00"
define i32 @parseCommands(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
%7 = alloca [81 x i8]
%8 = alloca [5 x i8]
%9 = alloca i8*
%10 = alloca i8*
store i32* %0, i32** %3
store i32* %1, i32** %4
store i32 0, i32* %5
store i32 1, i32* %6
br label %11
11: ; preds = %97, %2
%12 = load i32, i32* %5
%13 = icmp ne i32 %12, 1
br i1 %13, label %14, label %98
14: ; preds = %11
%15 = load i32*, i32** %4
%16 = call i32 (i32*, i8*, ...) @fprintf(i32* %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%17 = getelementptr inbounds [81 x i8], [81 x i8]* %7, i64 0, i64 0
%18 = call i32 @memset(i8* %17, i32 0, i32 81)
%19 = getelementptr inbounds [81 x i8], [81 x i8]* %7, i64 0, i64 0
%20 = load i32*, i32** %3
%21 = call i32 @fgets(i8* %19, i32 81, i32* %20)
%22 = getelementptr inbounds [81 x i8], [81 x i8]* %7, i64 0, i64 0
store i8* %22, i8** %9
br label %23
23: ; preds = %39, %14
%24 = load i8*, i8** %9
%25 = load i8, i8* %24
%26 = icmp ne i8 %25, 0
br i1 %26, label %27, label %42
27: ; preds = %23
%28 = load i8*, i8** %9
%29 = load i8, i8* %28
%30 = call signext i8 @tolower(i8 signext %29)
%31 = load i8*, i8** %9
store i8 %30, i8* %31
%32 = load i8*, i8** %9
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 10
br i1 %35, label %36, label %38
36: ; preds = %27
%37 = load i8*, i8** %9
store i8 0, i8* %37
br label %38
38: ; preds = %36, %27
br label %39
39: ; preds = %38
%40 = load i8*, i8** %9
%41 = getelementptr inbounds i8, i8* %40, i32 1
store i8* %41, i8** %9
br label %23
42: ; preds = %23
%43 = getelementptr inbounds [81 x i8], [81 x i8]* %7, i64 0, i64 0
%44 = call i8* @strtok(i8* %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i8* %44, i8** %9
%45 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i8* %45, i8** %10
%46 = load i8*, i8** %9
%47 = icmp ne i8* %46, null
br i1 %47, label %48, label %97
48: ; preds = %42
%49 = load i8*, i8** %9
%50 = call i32 @strlen(i8* %49)
%51 = icmp ne i32 %50, 4
br i1 %51, label %52, label %56
52: ; preds = %48
%53 = load i32*, i32** %4
%54 = load i8*, i8** %9
%55 = call i32 (i32*, i8*, ...) @fprintf(i32* %53, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* %54)
br label %96
56: ; preds = %48
%57 = load i8*, i8** %9
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %61
60: ; preds = %56
store i32 1, i32* %6
store i32 1, i32* %5
br label %95
61: ; preds = %56
%62 = load i8*, i8** %9
%63 = call i64 @strcmp(i8* %62, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %66
65: ; preds = %61
store i32 0, i32* %6
store i32 1, i32* %5
br label %94
66: ; preds = %61
%67 = load i8*, i8** %9
%68 = call i64 @strcmp(i8* %67, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %89
70: ; preds = %66
%71 = load i32*, i32** %4
%72 = call i32 (i32*, i8*, ...) @fprintf(i32* %71, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%73 = load i32*, i32** %4
%74 = call i32 (i32*, i8*, ...) @fprintf(i32* %73, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0))
%75 = load i32*, i32** %4
%76 = call i32 (i32*, i8*, ...) @fprintf(i32* %75, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0))
%77 = load i32*, i32** %4
%78 = call i32 (i32*, i8*, ...) @fprintf(i32* %77, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
%79 = load i32*, i32** %4
%80 = call i32 (i32*, i8*, ...) @fprintf(i32* %79, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0))
%81 = load i32*, i32** %4
%82 = call i32 (i32*, i8*, ...) @fprintf(i32* %81, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
%83 = load i32*, i32** %4
%84 = call i32 (i32*, i8*, ...) @fprintf(i32* %83, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0))
%85 = load i32*, i32** %4
%86 = call i32 (i32*, i8*, ...) @fprintf(i32* %85, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.13, i64 0, i64 0))
%87 = load i32*, i32** %4
%88 = call i32 (i32*, i8*, ...) @fprintf(i32* %87, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
br label %93
89: ; preds = %66
%90 = load i32*, i32** %4
%91 = load i8*, i8** %9
%92 = call i32 (i32*, i8*, ...) @fprintf(i32* %90, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.14, i64 0, i64 0), i8* %91)
br label %93
93: ; preds = %89, %70
br label %94
94: ; preds = %93, %65
br label %95
95: ; preds = %94, %60
br label %96
96: ; preds = %95, %52
br label %97
97: ; preds = %96, %42
br label %11
98: ; preds = %11
%99 = load i32, i32* %6
ret i32 %99
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s \00"
@.str.1 = [5 x i8] c"LSN>\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [17 x i8] c"Bad command: %s\0A\00"
@.str.4 = [5 x i8] c"cont\00"
@.str.5 = [5 x i8] c"exit\00"
@.str.6 = [5 x i8] c"help\00"
@.str.7 = [20 x i8] c"Listener commands:\0A\00"
@.str.8 = [27 x i8] c"EXIT - end process\0A\00"
@.str.9 = [30 x i8] c"CONT - resume process\0A\00"
@.str.10 = [35 x i8] c"SMAC - display MAC address\0A\00"
@.str.11 = [37 x i8] c"SNOD XX.XXX - show node information\0A\00"
@.str.12 = [37 x i8] c"SETM xx... - set local MAC address\0A\00"
@.str.13 = [42 x i8] c"LIST - enter list definition mode\0A\00"
@.str.14 = [29 x i8] c"Command not implemented: %s\0A\00"
define i32 @parseCommands(i32* nocapture %0, i32* nocapture %1) {
%3 = alloca [81 x i8]
%4 = getelementptr inbounds [81 x i8], [81 x i8]* %3, i64 0, i64 0
br label %5
5: ; preds = %29, %2
%6 = call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @memset(i8* %4, i32 0, i32 81)
%8 = call i32 @fgets(i8* %4, i32 81, i32* %0)
%9 = load i8, i8* %4
%10 = icmp eq i8 %9, 0
br i1 %10, label %20, label %11
11: ; preds = %5, %11
%12 = phi i8 [ %18, %11 ], [ %9, %5 ]
%13 = phi i8* [ %17, %11 ], [ %4, %5 ]
%14 = call signext i8 @tolower(i8 signext %12)
%15 = icmp eq i8 %14, 10
%16 = select i1 %15, i8 0, i8 %14
store i8 %16, i8* %13
%17 = getelementptr inbounds i8, i8* %13, i64 1
%18 = load i8, i8* %17
%19 = icmp eq i8 %18, 0
br i1 %19, label %20, label %11
20: ; preds = %11, %5
%21 = call i8* @strtok(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%22 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%23 = icmp eq i8* %21, null
br i1 %23, label %29, label %24
24: ; preds = %20
%25 = call i32 @strlen(i8* %21)
%26 = icmp eq i32 %25, 4
br i1 %26, label %30, label %27
27: ; preds = %24
%28 = call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* %21)
br label %29
29: ; preds = %27, %49, %39, %20
br label %5
30: ; preds = %24
%31 = call i64 @strcmp(i8* %21, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %51, label %33
33: ; preds = %30
%34 = call i64 @strcmp(i8* %21, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %51, label %36
36: ; preds = %33
%37 = call i64 @strcmp(i8* %21, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %49
39: ; preds = %36
%40 = call i64 @fwrite(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i64 19, i64 1, i32* %1)
%41 = call i64 @fwrite(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i64 26, i64 1, i32* %1)
%42 = call i64 @fwrite(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0), i64 29, i64 1, i32* %1)
%43 = call i64 @fwrite(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0), i64 34, i64 1, i32* %1)
%44 = call i64 @fwrite(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0), i64 36, i64 1, i32* %1)
%45 = call i64 @fwrite(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0), i64 34, i64 1, i32* %1)
%46 = call i64 @fwrite(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0), i64 36, i64 1, i32* %1)
%47 = call i64 @fwrite(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.13, i64 0, i64 0), i64 41, i64 1, i32* %1)
%48 = call i64 @fwrite(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0), i64 34, i64 1, i32* %1)
br label %29
49: ; preds = %36
%50 = call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.14, i64 0, i64 0), i8* %21)
br label %29
51: ; preds = %30, %33
%52 = phi i32 [ 0, %33 ], [ 1, %30 ]
ret i32 %52
}