#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);
int copy_parms(FILE *f, FILE *conf) {
  char line[1024], *s;
  char var[256] = "", comment[64 * 1024] = "";
  int i;
  int ok = 0;
  while (fgets(line, sizeof(line), 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#\n", var);
        *var = 0;
        *comment = 0;
      }
      s += 4;
      for (i = 0; i < strlen(line); i++)
        if (line[i] == ';')
          line[i] = 0;
      ok = 1;
      strcpy(var, s);
      continue;
    }
    s = line;
    while (*s == ' ' || *s == '\t' || *s == '/' || *s == '*')
      s++;
    if (*comment != 0)
      strcat(comment, "\n");
    strcat(comment, "# ");
    strcat(comment, s);
  }
  if (*var != 0) {
    fprintf(conf, "%s\n", comment);
    fprintf(conf, "#%s\n", var);
  }
  return ok;
}


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>
movl   $0x0,-0x10528(%rbp)
lea    -0x410(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    $0x400,%esi
call   1070 <fgets@plt>
cmp    $0x0,%rax
je     14be <copy_parms+0x34e>
movl   $0x0,-0x10524(%rbp)
mov    -0x10524(%rbp),%eax
mov    %eax,-0x1052c(%rbp)
lea    -0x410(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0x1052c(%rbp),%eax
cmp    %ecx,%eax
jge    1244 <copy_parms+0xd4>
movslq -0x10524(%rbp),%rax
movsbl -0x410(%rbp,%rax,1),%eax
ff
cmp    $0xa,%eax
jne    122b <copy_parms+0xbb>
movslq -0x10524(%rbp),%rax
movb   $0x0,-0x410(%rbp,%rax,1)
jmp    1230 <copy_parms+0xc0>
mov    -0x10524(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10524(%rbp)
jmp    11dc <copy_parms+0x6c>
lea    -0x410(%rbp),%rax
mov    %rax,-0x418(%rbp)
mov    -0x418(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x1052d(%rbp)
je     1283 <copy_parms+0x113>
mov    -0x418(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
sete   %al
mov    %al,-0x1052d(%rbp)
mov    -0x1052d(%rbp),%al
test   $0x1,%al
jne    1296 <copy_parms+0x126>
jmp    12ad <copy_parms+0x13d>
mov    -0x418(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x418(%rbp)
jmp    1252 <copy_parms+0xe2>
mov    -0x418(%rbp),%rdi
lea    0xd45(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    13d1 <copy_parms+0x261>
movsbl -0x520(%rbp),%eax
cmp    $0x0,%eax
je     132b <copy_parms+0x1bb>
mov    -0x10(%rbp),%rdi
lea    -0x10520(%rbp),%rdx
lea    0xd1f(%rip),%rsi
call   1080 <fprintf@plt>
movsbl -0x520(%rbp),%eax
cmp    $0x0,%eax
je     131d <copy_parms+0x1ad>
mov    -0x10(%rbp),%rdi
lea    -0x520(%rbp),%rdx
lea    0xced(%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,-0x10534(%rbp)
lea    -0x410(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0x10534(%rbp),%eax
cmp    %ecx,%eax
jge    13af <copy_parms+0x23f>
movslq -0x10524(%rbp),%rax
movsbl -0x410(%rbp,%rax,1),%eax
ff
cmp    $0x3b,%eax
jne    1396 <copy_parms+0x226>
movslq -0x10524(%rbp),%rax
movb   $0x0,-0x410(%rbp,%rax,1)
jmp    139b <copy_parms+0x22b>
mov    -0x10524(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10524(%rbp)
jmp    1347 <copy_parms+0x1d7>
movl   $0x1,-0x10528(%rbp)
lea    -0x520(%rbp),%rdi
mov    -0x418(%rbp),%rsi
call   1040 <strcpy@plt>
jmp    11b3 <copy_parms+0x43>
lea    -0x410(%rbp),%rax
mov    %rax,-0x418(%rbp)
mov    -0x418(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x10535(%rbp)
je     1446 <copy_parms+0x2d6>
mov    -0x418(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x9,%ecx
mov    %al,-0x10535(%rbp)
je     1446 <copy_parms+0x2d6>
mov    -0x418(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x2f,%ecx
mov    %al,-0x10535(%rbp)
je     1446 <copy_parms+0x2d6>
mov    -0x418(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2a,%eax
sete   %al
mov    %al,-0x10535(%rbp)
mov    -0x10535(%rbp),%al
test   $0x1,%al
jne    1459 <copy_parms+0x2e9>
jmp    1470 <copy_parms+0x300>
mov    -0x418(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x418(%rbp)
jmp    13df <copy_parms+0x26f>
movsbl -0x10520(%rbp),%eax
cmp    $0x0,%eax
je     1493 <copy_parms+0x323>
lea    -0x10520(%rbp),%rdi
lea    0xb7c(%rip),%rsi
call   1090 <strcat@plt>
lea    -0x10520(%rbp),%rdi
lea    0xb6b(%rip),%rsi
call   1090 <strcat@plt>
lea    -0x10520(%rbp),%rdi
mov    -0x418(%rbp),%rsi
call   1090 <strcat@plt>
jmp    11b3 <copy_parms+0x43>
movsbl -0x520(%rbp),%eax
cmp    $0x0,%eax
je     14fc <copy_parms+0x38c>
mov    -0x10(%rbp),%rdi
lea    -0x10520(%rbp),%rdx
lea    0xb30(%rip),%rsi
call   1080 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    -0x520(%rbp),%rdx
lea    0xb18(%rip),%rsi
call   1080 <fprintf@plt>
mov    -0x10528(%rbp),%eax
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,%r13
mov    %rdi,%r15
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
xor    %ebx,%ebx
mov    $0x10000,%edx
xor    %esi,%esi
call   1060 <memset@plt>
lea    0x110(%rsp),%r14
mov    %r14,%rdi
mov    $0x400,%esi
mov    %r15,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     1427 <copy_parms+0x2b7>
xor    %ebx,%ebx
lea    0x510(%rsp),%rbp
movabs $0x840100000200,%r12
mov    %rbx,0x8(%rsp)
jmp    1283 <copy_parms+0x113>
nopw   0x0(%rax,%rax,1)
mov    %rbp,%rdi
lea    0xdb2(%rip),%rsi
call   1090 <strcat@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1090 <strcat@plt>
mov    %r14,%rdi
mov    $0x400,%esi
mov    %r15,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     1422 <copy_parms+0x2b2>
mov    %r14,%rdi
call   1050 <strlen@plt>
test   %eax,%eax
jle    12d0 <copy_parms+0x160>
xor    %ebx,%ebx
jmp    12b3 <copy_parms+0x143>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%rbx
mov    %r14,%rdi
call   1050 <strlen@plt>
cltq
cmp    %rax,%rbx
jge    12d0 <copy_parms+0x160>
cmpb   $0xa,0x110(%rsp,%rbx,1)
0a
jne    12a0 <copy_parms+0x130>
movb   $0x0,0x110(%rsp,%rbx,1)
jmp    12a0 <copy_parms+0x130>
nopw   0x0(%rax,%rax,1)
mov    %r14,%rbx
jmp    12e4 <copy_parms+0x174>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%rbx
movzbl (%rbx),%eax
cmp    $0x20,%al
je     12e0 <copy_parms+0x170>
cmp    $0x9,%al
je     12e0 <copy_parms+0x170>
mov    %rbx,%rdi
lea    0xd07(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1360 <copy_parms+0x1f0>
mov    %r14,%rbx
nopl   0x0(%rax,%rax,1)
movzbl (%rbx),%eax
cmp    $0x2f,%rax
ja     1330 <copy_parms+0x1c0>
bt     %rax,%r12
jae    1330 <copy_parms+0x1c0>
add    $0x1,%rbx
jmp    1310 <copy_parms+0x1a0>
cs nopw 0x0(%rax,%rax,1)
nop
cmpb   $0x0,0x510(%rsp)
je     1250 <copy_parms+0xe0>
mov    %rbp,%rdi
lea    0xcc2(%rip),%rsi
call   1090 <strcat@plt>
jmp    1250 <copy_parms+0xe0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmpb   $0x0,0x10(%rsp)
je     13a1 <copy_parms+0x231>
mov    %r13,%rdi
lea    0xc9f(%rip),%rsi
mov    %rbp,%rdx
call   1080 <fprintf@plt>
cmpb   $0x0,0x10(%rsp)
je     1394 <copy_parms+0x224>
mov    %r13,%rdi
lea    0xc7b(%rip),%rsi
lea    0x10(%rsp),%rdx
call   1080 <fprintf@plt>
movb   $0x0,0x10(%rsp)
movb   $0x0,0x510(%rsp)
mov    %r13,0x8(%rsp)
add    $0x4,%rbx
mov    %r14,%rdi
call   1050 <strlen@plt>
test   %eax,%eax
jle    13f0 <copy_parms+0x280>
xor    %r13d,%r13d
jmp    13d3 <copy_parms+0x263>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r13
mov    %r14,%rdi
call   1050 <strlen@plt>
cltq
cmp    %rax,%r13
jge    13f0 <copy_parms+0x280>
cmpb   $0x3b,0x110(%rsp,%r13,1)
jne    13c0 <copy_parms+0x250>
movb   $0x0,0x110(%rsp,%r13,1)
jmp    13c0 <copy_parms+0x250>
nopl   0x0(%rax)
lea    0x10(%rsp),%rdi
mov    %rbx,%rsi
call   1040 <strcpy@plt>
mov    %r14,%rdi
mov    $0x400,%esi
mov    %r15,%rdx
call   1070 <fgets@plt>
mov    $0x1,%ebx
test   %rax,%rax
mov    0x8(%rsp),%r13
jne    1240 <copy_parms+0xd0>
jmp    1427 <copy_parms+0x2b7>
mov    0x8(%rsp),%rbx
cmpb   $0x0,0x10(%rsp)
je     1459 <copy_parms+0x2e9>
lea    0xbdb(%rip),%rsi
lea    0x510(%rsp),%rdx
mov    %r13,%rdi
call   1080 <fprintf@plt>
lea    0xbc3(%rip),%rsi
lea    0x10(%rsp),%rdx
mov    %r13,%rdi
call   1080 <fprintf@plt>
mov    %ebx,%eax
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 = [7 x i8] c"#%s\0A#\0A\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [3 x i8] c"# \00"
@.str.5 = [5 x i8] c"#%s\0A\00"
define i32 @copy_parms(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca [1024 x i8]
%6 = alloca i8*
%7 = alloca [256 x i8]
%8 = alloca [65536 x i8]
%9 = alloca i32
%10 = alloca i32
store i32* %0, i32** %3
store i32* %1, i32** %4
%11 = bitcast [256 x i8]* %7 to i8*
%12 = bitcast [65536 x i8]* %8 to i8*
store i32 0, i32* %10
br label %13
13: ; preds = %142, %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 1024, i32* %15)
%17 = icmp ne i32* %16, null
br i1 %17, label %18, label %148
18: ; preds = %13
store i32 0, i32* %9
br label %19
19: ; preds = %36, %18
%20 = load i32, i32* %9
%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* %9
%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* %9
%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* %9
%38 = add nsw i32 %37, 1
store i32 %38, i32* %9
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]* %7, 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]* %8, 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]* %7, 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]* %7, i64 0, i64 0
%76 = call i32 @fprintf(i32* %74, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %75)
br label %77
77: ; preds = %73, %65
%78 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
store i8 0, i8* %78
%79 = getelementptr inbounds [65536 x i8], [65536 x i8]* %8, 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* %9
br label %83
83: ; preds = %100, %80
%84 = load i32, i32* %9
%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* %9
%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* %9
%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* %9
%102 = add nsw i32 %101, 1
store i32 %102, i32* %9
br label %83
103: ; preds = %83
store i32 1, i32* %10
%104 = getelementptr inbounds [256 x i8], [256 x i8]* %7, 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]* %8, i64 0, i64 0
%136 = load i8, i8* %135
%137 = sext i8 %136 to i32
%138 = icmp ne i32 %137, 0
br i1 %138, label %139, label %142
139: ; preds = %134
%140 = getelementptr inbounds [65536 x i8], [65536 x i8]* %8, i64 0, i64 0
%141 = call i32 @strcat(i8* %140, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %142
142: ; preds = %139, %134
%143 = getelementptr inbounds [65536 x i8], [65536 x i8]* %8, i64 0, i64 0
%144 = call i32 @strcat(i8* %143, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%145 = getelementptr inbounds [65536 x i8], [65536 x i8]* %8, i64 0, i64 0
%146 = load i8*, i8** %6
%147 = call i32 @strcat(i8* %145, i8* %146)
br label %13
148: ; preds = %13
%149 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%150 = load i8, i8* %149
%151 = sext i8 %150 to i32
%152 = icmp ne i32 %151, 0
br i1 %152, label %153, label %160
153: ; preds = %148
%154 = load i32*, i32** %4
%155 = getelementptr inbounds [65536 x i8], [65536 x i8]* %8, i64 0, i64 0
%156 = call i32 @fprintf(i32* %154, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %155)
%157 = load i32*, i32** %4
%158 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%159 = call i32 @fprintf(i32* %157, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %158)
br label %160
160: ; preds = %153, %148
%161 = load i32, i32* %10
ret i32 %161
}

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