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

/* Variables and functions */
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
scalar_t__ strncmp(char *, char *, int);
void copy_parms(FILE *f, FILE *conf) {
  char line[1024], *s, *p;
  char var[256] = "", comment[64 * 1024] = "";
  int i;
  while (fgets(line, sizeof(line) - 1, f) != NULL) {
    for (i = 0; i < strlen(line); i++)
      if (line[i] == '\n')
        line[i] = 0;
    s = line;
    while (*s == ' ' || *s == '\t')
      s++;
    if (strncmp(s, "int ", 4) == 0) {
      if (*var != 0) {
        fprintf(conf, "%s\n", comment);
        if (*var != 0)
          fprintf(conf, "%s\n", var);
        *var = 0;
        *comment = 0;
      }
      s += 4;
      for (i = 0; i < strlen(line); i++)
        if (line[i] == ';')
          line[i] = 0;
      strcpy(var, s);
      continue;
    }
    s = line;
    while (*s == ' ' || *s == '\t' || *s == '/' || *s == '*')
      s++;
    strcat(comment, "\n# ");
    strcat(comment, s);
  }
  if (*var != 0) {
    fprintf(conf, "%s\n", comment);
    fprintf(conf, "%s\n", var);
  }
}


x86 assembly (clang, -O0):
<copy_parms>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10540,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x520(%rbp),%rdi
xor    %esi,%esi
mov    $0x100,%edx
call   1060 <memset@plt>
lea    -0x10520(%rbp),%rdi
xor    %esi,%esi
mov    $0x10000,%edx
call   1060 <memset@plt>
lea    -0x410(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    $0x3ff,%esi
call   1070 <fgets@plt>
cmp    $0x0,%rax
je     1487 <copy_parms+0x317>
movl   $0x0,-0x10524(%rbp)
mov    -0x10524(%rbp),%eax
mov    %eax,-0x10528(%rbp)
lea    -0x410(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0x10528(%rbp),%eax
cmp    %ecx,%eax
jge    123a <copy_parms+0xca>
movslq -0x10524(%rbp),%rax
movsbl -0x410(%rbp,%rax,1),%eax
ff
cmp    $0xa,%eax
jne    1221 <copy_parms+0xb1>
movslq -0x10524(%rbp),%rax
movb   $0x0,-0x410(%rbp,%rax,1)
jmp    1226 <copy_parms+0xb6>
mov    -0x10524(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10524(%rbp)
jmp    11d2 <copy_parms+0x62>
lea    -0x410(%rbp),%rax
mov    %rax,-0x418(%rbp)
mov    -0x418(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x10529(%rbp)
je     1279 <copy_parms+0x109>
mov    -0x418(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
sete   %al
mov    %al,-0x10529(%rbp)
mov    -0x10529(%rbp),%al
test   $0x1,%al
jne    128c <copy_parms+0x11c>
jmp    12a3 <copy_parms+0x133>
mov    -0x418(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x418(%rbp)
jmp    1248 <copy_parms+0xd8>
mov    -0x418(%rbp),%rdi
lea    0xd4f(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    13bd <copy_parms+0x24d>
movsbl -0x520(%rbp),%eax
cmp    $0x0,%eax
je     1321 <copy_parms+0x1b1>
mov    -0x10(%rbp),%rdi
lea    -0x10520(%rbp),%rdx
lea    0xd1e(%rip),%rsi
call   1080 <fprintf@plt>
movsbl -0x520(%rbp),%eax
cmp    $0x0,%eax
je     1313 <copy_parms+0x1a3>
mov    -0x10(%rbp),%rdi
lea    -0x520(%rbp),%rdx
lea    0xcf7(%rip),%rsi
call   1080 <fprintf@plt>
movb   $0x0,-0x520(%rbp)
movb   $0x0,-0x10520(%rbp)
mov    -0x418(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x418(%rbp)
movl   $0x0,-0x10524(%rbp)
mov    -0x10524(%rbp),%eax
mov    %eax,-0x10530(%rbp)
lea    -0x410(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0x10530(%rbp),%eax
cmp    %ecx,%eax
jge    13a5 <copy_parms+0x235>
movslq -0x10524(%rbp),%rax
movsbl -0x410(%rbp,%rax,1),%eax
ff
cmp    $0x3b,%eax
jne    138c <copy_parms+0x21c>
movslq -0x10524(%rbp),%rax
movb   $0x0,-0x410(%rbp,%rax,1)
jmp    1391 <copy_parms+0x221>
mov    -0x10524(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10524(%rbp)
jmp    133d <copy_parms+0x1cd>
lea    -0x520(%rbp),%rdi
mov    -0x418(%rbp),%rsi
call   1040 <strcpy@plt>
jmp    11a9 <copy_parms+0x39>
lea    -0x410(%rbp),%rax
mov    %rax,-0x418(%rbp)
mov    -0x418(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x10531(%rbp)
je     1432 <copy_parms+0x2c2>
mov    -0x418(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x9,%ecx
mov    %al,-0x10531(%rbp)
je     1432 <copy_parms+0x2c2>
mov    -0x418(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x2f,%ecx
mov    %al,-0x10531(%rbp)
je     1432 <copy_parms+0x2c2>
mov    -0x418(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2a,%eax
sete   %al
mov    %al,-0x10531(%rbp)
mov    -0x10531(%rbp),%al
test   $0x1,%al
jne    1445 <copy_parms+0x2d5>
jmp    145c <copy_parms+0x2ec>
mov    -0x418(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x418(%rbp)
jmp    13cb <copy_parms+0x25b>
lea    -0x10520(%rbp),%rdi
lea    0xb9f(%rip),%rsi
call   1090 <strcat@plt>
lea    -0x10520(%rbp),%rdi
mov    -0x418(%rbp),%rsi
call   1090 <strcat@plt>
jmp    11a9 <copy_parms+0x39>
movsbl -0x520(%rbp),%eax
cmp    $0x0,%eax
je     14c5 <copy_parms+0x355>
mov    -0x10(%rbp),%rdi
lea    -0x10520(%rbp),%rdx
lea    0xb5c(%rip),%rsi
call   1080 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    -0x520(%rbp),%rdx
lea    0xb45(%rip),%rsi
call   1080 <fprintf@plt>
add    $0x10540,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<copy_parms>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10518,%rsp
mov    %rsi,%rbp
mov    %rdi,%rbx
xorps  %xmm0,%xmm0
movaps %xmm0,0x100(%rsp)
movaps %xmm0,0xf0(%rsp)
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
lea    0x510(%rsp),%rdi
mov    $0x10000,%edx
xor    %esi,%esi
call   1060 <memset@plt>
lea    0x110(%rsp),%r13
mov    %r13,%rdi
mov    $0x3ff,%esi
mov    %rbx,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     1423 <copy_parms+0x2b3>
mov    %rbp,(%rsp)
lea    0xdcb(%rip),%r12
movabs $0x840100000200,%r14
mov    %rbx,0x8(%rsp)
jmp    128e <copy_parms+0x11e>
cs nopw 0x0(%rax,%rax,1)
lea    0x510(%rsp),%r15
mov    %r15,%rdi
lea    0xda7(%rip),%rsi
call   1090 <strcat@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1090 <strcat@plt>
mov    %rbp,%rbx
mov    %r13,%rdi
mov    $0x3ff,%esi
mov    %rbx,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     13ee <copy_parms+0x27e>
mov    %rbx,%rbp
mov    %r13,%rdi
call   1050 <strlen@plt>
test   %eax,%eax
jle    12e0 <copy_parms+0x170>
xor    %ebx,%ebx
jmp    12c3 <copy_parms+0x153>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
mov    %r13,%rdi
call   1050 <strlen@plt>
cltq
cmp    %rax,%rbx
jge    12e0 <copy_parms+0x170>
cmpb   $0xa,0x110(%rsp,%rbx,1)
0a
jne    12b0 <copy_parms+0x140>
movb   $0x0,0x110(%rsp,%rbx,1)
jmp    12b0 <copy_parms+0x140>
nopw   0x0(%rax,%rax,1)
mov    %r13,%rbx
jmp    12f4 <copy_parms+0x184>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%rbx
movzbl (%rbx),%eax
cmp    $0x20,%al
je     12f0 <copy_parms+0x180>
cmp    $0x9,%al
je     12f0 <copy_parms+0x180>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1340 <copy_parms+0x1d0>
mov    %r13,%rbx
nopw   0x0(%rax,%rax,1)
movzbl (%rbx),%eax
cmp    $0x2f,%rax
ja     1250 <copy_parms+0xe0>
bt     %rax,%r14
jae    1250 <copy_parms+0xe0>
add    $0x1,%rbx
jmp    1320 <copy_parms+0x1b0>
nopl   (%rax)
cmpb   $0x0,0x10(%rsp)
mov    (%rsp),%r15
je     1389 <copy_parms+0x219>
mov    %r15,%rdi
lea    0xcb0(%rip),%r12
mov    %r12,%rsi
lea    0x510(%rsp),%rdx
call   1080 <fprintf@plt>
cmpb   $0x0,0x10(%rsp)
je     137c <copy_parms+0x20c>
mov    %r15,%rdi
mov    %r12,%rsi
lea    0x10(%rsp),%rdx
call   1080 <fprintf@plt>
movb   $0x0,0x10(%rsp)
movb   $0x0,0x510(%rsp)
add    $0x4,%rbx
mov    %r13,%rdi
call   1050 <strlen@plt>
test   %eax,%eax
jle    13d0 <copy_parms+0x260>
xor    %r12d,%r12d
jmp    13b3 <copy_parms+0x243>
xchg   %ax,%ax
add    $0x1,%r12
mov    %r13,%rdi
call   1050 <strlen@plt>
cltq
cmp    %rax,%r12
jge    13d0 <copy_parms+0x260>
cmpb   $0x3b,0x110(%rsp,%r12,1)
jne    13a0 <copy_parms+0x230>
movb   $0x0,0x110(%rsp,%r12,1)
jmp    13a0 <copy_parms+0x230>
nopl   0x0(%rax)
lea    0x10(%rsp),%rdi
mov    %rbx,%rsi
call   1040 <strcpy@plt>
lea    0xc1c(%rip),%r12
mov    0x8(%rsp),%rbx
jmp    1275 <copy_parms+0x105>
cmpb   $0x0,0x10(%rsp)
mov    (%rsp),%rbp
je     1423 <copy_parms+0x2b3>
lea    0xc05(%rip),%rbx
lea    0x510(%rsp),%rdx
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1080 <fprintf@plt>
lea    0x10(%rsp),%rdx
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1080 <fprintf@plt>
add    $0x10518,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"int \00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [4 x i8] c"\0A# \00"
define void @copy_parms(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca [1024 x i8]
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca [256 x i8]
%9 = alloca [65536 x i8]
%10 = alloca i32
store i32* %0, i32** %3
store i32* %1, i32** %4
%11 = bitcast [256 x i8]* %8 to i8*
%12 = bitcast [65536 x i8]* %9 to i8*
br label %13
13: ; preds = %134, %103, %2
%14 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%15 = load i32*, i32** %3
%16 = call i32* @fgets(i8* %14, i32 1023, i32* %15)
%17 = icmp ne i32* %16, null
br i1 %17, label %18, label %140
18: ; preds = %13
store i32 0, i32* %10
br label %19
19: ; preds = %36, %18
%20 = load i32, i32* %10
%21 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%22 = call i32 @strlen(i8* %21)
%23 = icmp slt i32 %20, %22
br i1 %23, label %24, label %39
24: ; preds = %19
%25 = load i32, i32* %10
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 %26
%28 = load i8, i8* %27
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 10
br i1 %30, label %31, label %35
31: ; preds = %24
%32 = load i32, i32* %10
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 %33
store i8 0, i8* %34
br label %35
35: ; preds = %31, %24
br label %36
36: ; preds = %35
%37 = load i32, i32* %10
%38 = add nsw i32 %37, 1
store i32 %38, i32* %10
br label %19
39: ; preds = %19
%40 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
store i8* %40, i8** %6
br label %41
41: ; preds = %53, %39
%42 = load i8*, i8** %6
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 32
br i1 %45, label %51, label %46
46: ; preds = %41
%47 = load i8*, i8** %6
%48 = load i8, i8* %47
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 9
br label %51
51: ; preds = %46, %41
%52 = phi i1 [ true, %41 ], [ %50, %46 ]
br i1 %52, label %53, label %56
53: ; preds = %51
%54 = load i8*, i8** %6
%55 = getelementptr inbounds i8, i8* %54, i32 1
store i8* %55, i8** %6
br label %41
56: ; preds = %51
%57 = load i8*, i8** %6
%58 = call i64 @strncmp(i8* %57, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %107
60: ; preds = %56
%61 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%62 = load i8, i8* %61
%63 = sext i8 %62 to i32
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %80
65: ; preds = %60
%66 = load i32*, i32** %4
%67 = getelementptr inbounds [65536 x i8], [65536 x i8]* %9, i64 0, i64 0
%68 = call i32 @fprintf(i32* %66, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %67)
%69 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %77
73: ; preds = %65
%74 = load i32*, i32** %4
%75 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%76 = call i32 @fprintf(i32* %74, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %75)
br label %77
77: ; preds = %73, %65
%78 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
store i8 0, i8* %78
%79 = getelementptr inbounds [65536 x i8], [65536 x i8]* %9, i64 0, i64 0
store i8 0, i8* %79
br label %80
80: ; preds = %77, %60
%81 = load i8*, i8** %6
%82 = getelementptr inbounds i8, i8* %81, i64 4
store i8* %82, i8** %6
store i32 0, i32* %10
br label %83
83: ; preds = %100, %80
%84 = load i32, i32* %10
%85 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%86 = call i32 @strlen(i8* %85)
%87 = icmp slt i32 %84, %86
br i1 %87, label %88, label %103
88: ; preds = %83
%89 = load i32, i32* %10
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 %90
%92 = load i8, i8* %91
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %93, 59
br i1 %94, label %95, label %99
95: ; preds = %88
%96 = load i32, i32* %10
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 %97
store i8 0, i8* %98
br label %99
99: ; preds = %95, %88
br label %100
100: ; preds = %99
%101 = load i32, i32* %10
%102 = add nsw i32 %101, 1
store i32 %102, i32* %10
br label %83
103: ; preds = %83
%104 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%105 = load i8*, i8** %6
%106 = call i32 @strcpy(i8* %104, i8* %105)
br label %13
107: ; preds = %56
%108 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
store i8* %108, i8** %6
br label %109
109: ; preds = %131, %107
%110 = load i8*, i8** %6
%111 = load i8, i8* %110
%112 = sext i8 %111 to i32
%113 = icmp eq i32 %112, 32
br i1 %113, label %129, label %114
114: ; preds = %109
%115 = load i8*, i8** %6
%116 = load i8, i8* %115
%117 = sext i8 %116 to i32
%118 = icmp eq i32 %117, 9
br i1 %118, label %129, label %119
119: ; preds = %114
%120 = load i8*, i8** %6
%121 = load i8, i8* %120
%122 = sext i8 %121 to i32
%123 = icmp eq i32 %122, 47
br i1 %123, label %129, label %124
124: ; preds = %119
%125 = load i8*, i8** %6
%126 = load i8, i8* %125
%127 = sext i8 %126 to i32
%128 = icmp eq i32 %127, 42
br label %129
129: ; preds = %124, %119, %114, %109
%130 = phi i1 [ true, %119 ], [ true, %114 ], [ true, %109 ], [ %128, %124 ]
br i1 %130, label %131, label %134
131: ; preds = %129
%132 = load i8*, i8** %6
%133 = getelementptr inbounds i8, i8* %132, i32 1
store i8* %133, i8** %6
br label %109
134: ; preds = %129
%135 = getelementptr inbounds [65536 x i8], [65536 x i8]* %9, i64 0, i64 0
%136 = call i32 @strcat(i8* %135, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%137 = getelementptr inbounds [65536 x i8], [65536 x i8]* %9, i64 0, i64 0
%138 = load i8*, i8** %6
%139 = call i32 @strcat(i8* %137, i8* %138)
br label %13
140: ; preds = %13
%141 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%142 = load i8, i8* %141
%143 = sext i8 %142 to i32
%144 = icmp ne i32 %143, 0
br i1 %144, label %145, label %152
145: ; preds = %140
%146 = load i32*, i32** %4
%147 = getelementptr inbounds [65536 x i8], [65536 x i8]* %9, i64 0, i64 0
%148 = call i32 @fprintf(i32* %146, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %147)
%149 = load i32*, i32** %4
%150 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%151 = call i32 @fprintf(i32* %149, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %150)
br label %152
152: ; preds = %145, %140
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"int \00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [4 x i8] c"\0A# \00"
define void @copy_parms(i32* nocapture %0, i32* nocapture %1) {
%3 = alloca [1024 x i8]
%4 = alloca [256 x i8]
%5 = alloca [65536 x i8]
%6 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [65536 x i8], [65536 x i8]* %5, i64 0, i64 0
%9 = call i32* @fgets(i8* %6, i32 1023, i32* %0)
%10 = icmp eq i32* %9, null
br i1 %10, label %78, label %11
11: ; preds = %2, %61
%12 = call i32 @strlen(i8* %6)
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %25
14: ; preds = %11, %20
%15 = phi i64 [ %21, %20 ], [ 0, %11 ]
%16 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 %15
%17 = load i8, i8* %16
%18 = icmp eq i8 %17, 10
br i1 %18, label %19, label %20
19: ; preds = %14
store i8 0, i8* %16
br label %20
20: ; preds = %14, %19
%21 = add nuw nsw i64 %15, 1
%22 = call i32 @strlen(i8* %6)
%23 = sext i32 %22 to i64
%24 = icmp slt i64 %21, %23
br i1 %24, label %14, label %25
25: ; preds = %20, %11
br label %26
26: ; preds = %25, %29
%27 = phi i8* [ %30, %29 ], [ %6, %25 ]
%28 = load i8, i8* %27
switch i8 %28, label %31 [
i8 32, label %29
i8 9, label %29
]
29: ; preds = %26, %26
%30 = getelementptr inbounds i8, i8* %27, i64 1
br label %26
31: ; preds = %26
%32 = call i64 @strncmp(i8* %27, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %64
34: ; preds = %31
%35 = load i8, i8* %7
%36 = icmp eq i8 %35, 0
br i1 %36, label %44, label %37
37: ; preds = %34
%38 = call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %8)
%39 = load i8, i8* %7
%40 = icmp eq i8 %39, 0
br i1 %40, label %43, label %41
41: ; preds = %37
%42 = call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %7)
br label %43
43: ; preds = %41, %37
store i8 0, i8* %7
store i8 0, i8* %8
br label %44
44: ; preds = %43, %34
%45 = getelementptr inbounds i8, i8* %27, i64 4
%46 = call i32 @strlen(i8* %6)
%47 = icmp sgt i32 %46, 0
br i1 %47, label %48, label %59
48: ; preds = %44, %54
%49 = phi i64 [ %55, %54 ], [ 0, %44 ]
%50 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 %49
%51 = load i8, i8* %50
%52 = icmp eq i8 %51, 59
br i1 %52, label %53, label %54
53: ; preds = %48
store i8 0, i8* %50
br label %54
54: ; preds = %48, %53
%55 = add nuw nsw i64 %49, 1
%56 = call i32 @strlen(i8* %6)
%57 = sext i32 %56 to i64
%58 = icmp slt i64 %55, %57
br i1 %58, label %48, label %59
59: ; preds = %54, %44
%60 = call i32 @strcpy(i8* %7, i8* %45)
br label %61
61: ; preds = %59, %69
%62 = call i32* @fgets(i8* %6, i32 1023, i32* %0)
%63 = icmp eq i32* %62, null
br i1 %63, label %72, label %11
64: ; preds = %31, %67
%65 = phi i8* [ %68, %67 ], [ %6, %31 ]
%66 = load i8, i8* %65
switch i8 %66, label %69 [
i8 32, label %67
i8 9, label %67
i8 47, label %67
i8 42, label %67
]
67: ; preds = %64, %64, %64, %64
%68 = getelementptr inbounds i8, i8* %65, i64 1
br label %64
69: ; preds = %64
%70 = call i32 @strcat(i8* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%71 = call i32 @strcat(i8* %8, i8* %65)
br label %61
72: ; preds = %61
%73 = load i8, i8* %7
%74 = icmp eq i8 %73, 0
br i1 %74, label %78, label %75
75: ; preds = %72
%76 = call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %8)
%77 = call i32 @fprintf(i32* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %7)
br label %78
78: ; preds = %2, %75, %72
ret void
}