#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*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *, char *);
int gen_suricata_afp_mapping() {
  int unit, bss;
  FILE *fp = NULL;
  if (!(fp = fopen("./af-packet-mapping.yaml", "w"))) {
    printf("Failed to open %s\n", "./af-packet-mapping.yaml");
    return -1;
  }
  fprintf(fp, "%YAML 1.1\n---\n");
  fprintf(fp, "af-packet:\n");
  for (unit = 0; unit < 2; unit++) {
    for (bss = 0; bss < 7; bss++) {
      {
        fprintf(fp, "  - interface: ath%d%d", unit, bss);
        fprintf(fp, "    threads: auto\n");
        fprintf(fp, "    cluster-id: 98\n");
        fprintf(fp, "    defrag: yes\n");
        fprintf(fp, "    cluster-type: cluster_flow\n");
        fprintf(fp, "    copy-mode: ips\n");
        fprintf(fp, "    copy-iface: tapSec_ath%d%d\n", unit, bss);
        fprintf(fp, "    buffer-size: 32768\n");
        fprintf(fp, "\n");
        fprintf(fp, "  - interface: tapSec_ath%d%d", unit, bss);
        fprintf(fp, "    threads: auto\n");
        fprintf(fp, "    cluster-id: 98\n");
        fprintf(fp, "    defrag: yes\n");
        fprintf(fp, "    cluster-type: cluster_flow\n");
        fprintf(fp, "    copy-mode: ips\n");
        fprintf(fp, "    copy-iface: ath%d%d\n", unit, bss);
        fprintf(fp, "    buffer-size: 32768\n\n");
        fprintf(fp, "\n");
      }
    }
  }
  fclose(fp);
  return 0;
}


x86 assembly (clang, -O0):
<gen_suricata_afp_mapping>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movq   $0x0,-0x18(%rbp)
lea    0xea9(%rip),%rdi
lea    0xebb(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    1190 <gen_suricata_afp_mapping+0x50>
lea    0xea3(%rip),%rdi
lea    0xe81(%rip),%rsi
call   1040 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1363 <gen_suricata_afp_mapping+0x223>
mov    -0x18(%rbp),%rdi
lea    0xe93(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe90(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1353 <gen_suricata_afp_mapping+0x213>
movl   $0x0,-0xc(%rbp)
cmpl   $0x7,-0xc(%rbp)
jge    1340 <gen_suricata_afp_mapping+0x200>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xe62(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe67(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe68(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe6a(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe69(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe77(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xe73(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe81(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xed5(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xe6f(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xdb9(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xdba(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xdbc(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xdbb(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xdc9(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xe1b(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe22(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe27(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11cc <gen_suricata_afp_mapping+0x8c>
jmp    1345 <gen_suricata_afp_mapping+0x205>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11bb <gen_suricata_afp_mapping+0x7b>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gen_suricata_afp_mapping>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xe8e(%rip),%rdi
lea    0xea0(%rip),%rsi
call   1070 <fopen@plt>
test   %rax,%rax
je     139d <gen_suricata_afp_mapping+0x23d>
mov    %rax,%rbx
lea    0xe9d(%rip),%rsi
mov    %rax,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xe9b(%rip),%rdi
mov    $0xb,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1080 <fwrite@plt>
mov    $0x1,%al
lea    0xe8c(%rip),%r13
xor    %r15d,%r15d
mov    %eax,0x4(%rsp)
xor    %r12d,%r12d
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r15d,%edx
mov    %r12d,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x12,%esi
mov    $0x1,%edx
lea    0xe6c(%rip),%r14
mov    %r14,%rdi
mov    %rbx,%rcx
call   1080 <fwrite@plt>
mov    $0x13,%esi
mov    $0x1,%edx
lea    0xe63(%rip),%rbp
mov    %rbp,%rdi
mov    %rbx,%rcx
call   1080 <fwrite@plt>
mov    $0x10,%esi
mov    $0x1,%edx
lea    0xe5b(%rip),%rdi
mov    %rbx,%rcx
call   1080 <fwrite@plt>
mov    $0x1f,%esi
mov    $0x1,%edx
lea    0xe53(%rip),%rdi
mov    %rbx,%rcx
call   1080 <fwrite@plt>
mov    $0x13,%esi
mov    $0x1,%edx
lea    0xe5a(%rip),%rdi
mov    %rbx,%rcx
call   1080 <fwrite@plt>
mov    %rbx,%rdi
lea    0xe5c(%rip),%rsi
mov    %r15d,%edx
mov    %r12d,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x17,%esi
mov    $0x1,%edx
lea    0xe5e(%rip),%rdi
mov    %rbx,%rcx
call   1080 <fwrite@plt>
mov    $0xa,%edi
mov    %rbx,%rsi
call   1050 <fputc@plt>
mov    %rbx,%rdi
lea    0xe57(%rip),%rsi
mov    %r15d,%edx
mov    %r12d,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x12,%esi
mov    $0x1,%edx
mov    %r14,%rdi
mov    %rbx,%rcx
call   1080 <fwrite@plt>
mov    $0x13,%esi
mov    $0x1,%edx
mov    %rbp,%rdi
mov    %rbx,%rcx
call   1080 <fwrite@plt>
mov    $0x10,%esi
mov    $0x1,%edx
lea    0xd92(%rip),%rdi
mov    %rbx,%rcx
call   1080 <fwrite@plt>
mov    $0x1f,%esi
mov    $0x1,%edx
lea    0xd8a(%rip),%rdi
mov    %rbx,%rcx
call   1080 <fwrite@plt>
mov    $0x13,%esi
mov    $0x1,%edx
lea    0xd91(%rip),%rdi
mov    %rbx,%rcx
call   1080 <fwrite@plt>
mov    %rbx,%rdi
lea    0xde9(%rip),%rsi
mov    %r15d,%edx
mov    %r12d,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x18,%esi
mov    $0x1,%edx
lea    0xde4(%rip),%rdi
mov    %rbx,%rcx
call   1080 <fwrite@plt>
mov    $0xa,%edi
mov    %rbx,%rsi
call   1050 <fputc@plt>
add    $0x1,%r12d
cmp    $0x7,%r12d
jne    11d0 <gen_suricata_afp_mapping+0x70>
mov    $0x1,%r15d
xor    %r12d,%r12d
testb  $0x1,0x4(%rsp)
mov    $0x0,%eax
jne    11c0 <gen_suricata_afp_mapping+0x60>
mov    %rbx,%rdi
call   1030 <fclose@plt>
jmp    13b6 <gen_suricata_afp_mapping+0x256>
lea    0xc77(%rip),%rdi
lea    0xc55(%rip),%rsi
call   1040 <printf@plt>
mov    $0xffffffff,%r12d
mov    %r12d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [25 x i8] c"./af-packet-mapping.yaml\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [19 x i8] c"Failed to open %s\0A\00"
@.str.3 = [15 x i8] c"%YAML 1.1\0A---\0A\00"
@.str.4 = [12 x i8] c"af-packet:\0A\00"
@.str.5 = [23 x i8] c" - interface: ath%d%d\00"
@.str.6 = [19 x i8] c" threads: auto\0A\00"
@.str.7 = [20 x i8] c" cluster-id: 98\0A\00"
@.str.8 = [17 x i8] c" defrag: yes\0A\00"
@.str.9 = [32 x i8] c" cluster-type: cluster_flow\0A\00"
@.str.10 = [20 x i8] c" copy-mode: ips\0A\00"
@.str.11 = [32 x i8] c" copy-iface: tapSec_ath%d%d\0A\00"
@.str.12 = [24 x i8] c" buffer-size: 32768\0A\00"
@.str.13 = [2 x i8] c"\0A\00"
@.str.14 = [30 x i8] c" - interface: tapSec_ath%d%d\00"
@.str.15 = [25 x i8] c" copy-iface: ath%d%d\0A\00"
@.str.16 = [25 x i8] c" buffer-size: 32768\0A\0A\00"
define i32 @gen_suricata_afp_mapping() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32*
store i32* null, i32** %4
%5 = call i32* @fopen(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %5, i32** %4
%6 = icmp ne i32* %5, null
br i1 %6, label %9, label %7
7: ; preds = %0
%8 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
store i32 -1, i32* %1
br label %76
9: ; preds = %0
%10 = load i32*, i32** %4
%11 = call i32 (i32*, i8*, ...) @fprintf(i32* %10, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%12 = load i32*, i32** %4
%13 = call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %2
br label %14
14: ; preds = %70, %9
%15 = load i32, i32* %2
%16 = icmp slt i32 %15, 2
br i1 %16, label %17, label %73
17: ; preds = %14
store i32 0, i32* %3
br label %18
18: ; preds = %66, %17
%19 = load i32, i32* %3
%20 = icmp slt i32 %19, 7
br i1 %20, label %21, label %69
21: ; preds = %18
%22 = load i32*, i32** %4
%23 = load i32, i32* %2
%24 = load i32, i32* %3
%25 = call i32 (i32*, i8*, ...) @fprintf(i32* %22, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %23, i32 %24)
%26 = load i32*, i32** %4
%27 = call i32 (i32*, i8*, ...) @fprintf(i32* %26, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
%28 = load i32*, i32** %4
%29 = call i32 (i32*, i8*, ...) @fprintf(i32* %28, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%30 = load i32*, i32** %4
%31 = call i32 (i32*, i8*, ...) @fprintf(i32* %30, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%32 = load i32*, i32** %4
%33 = call i32 (i32*, i8*, ...) @fprintf(i32* %32, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0))
%34 = load i32*, i32** %4
%35 = call i32 (i32*, i8*, ...) @fprintf(i32* %34, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
%36 = load i32*, i32** %4
%37 = load i32, i32* %2
%38 = load i32, i32* %3
%39 = call i32 (i32*, i8*, ...) @fprintf(i32* %36, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i32 %37, i32 %38)
%40 = load i32*, i32** %4
%41 = call i32 (i32*, i8*, ...) @fprintf(i32* %40, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0))
%42 = load i32*, i32** %4
%43 = call i32 (i32*, i8*, ...) @fprintf(i32* %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%44 = load i32*, i32** %4
%45 = load i32, i32* %2
%46 = load i32, i32* %3
%47 = call i32 (i32*, i8*, ...) @fprintf(i32* %44, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i32 %45, i32 %46)
%48 = load i32*, i32** %4
%49 = call i32 (i32*, i8*, ...) @fprintf(i32* %48, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
%50 = load i32*, i32** %4
%51 = call i32 (i32*, i8*, ...) @fprintf(i32* %50, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%52 = load i32*, i32** %4
%53 = call i32 (i32*, i8*, ...) @fprintf(i32* %52, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%54 = load i32*, i32** %4
%55 = call i32 (i32*, i8*, ...) @fprintf(i32* %54, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0))
%56 = load i32*, i32** %4
%57 = call i32 (i32*, i8*, ...) @fprintf(i32* %56, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
%58 = load i32*, i32** %4
%59 = load i32, i32* %2
%60 = load i32, i32* %3
%61 = call i32 (i32*, i8*, ...) @fprintf(i32* %58, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.15, i64 0, i64 0), i32 %59, i32 %60)
%62 = load i32*, i32** %4
%63 = call i32 (i32*, i8*, ...) @fprintf(i32* %62, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.16, i64 0, i64 0))
%64 = load i32*, i32** %4
%65 = call i32 (i32*, i8*, ...) @fprintf(i32* %64, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
br label %66
66: ; preds = %21
%67 = load i32, i32* %3
%68 = add nsw i32 %67, 1
store i32 %68, i32* %3
br label %18
69: ; preds = %18
br label %70
70: ; preds = %69
%71 = load i32, i32* %2
%72 = add nsw i32 %71, 1
store i32 %72, i32* %2
br label %14
73: ; preds = %14
%74 = load i32*, i32** %4
%75 = call i32 @fclose(i32* %74)
store i32 0, i32* %1
br label %76
76: ; preds = %73, %7
%77 = load i32, i32* %1
ret i32 %77
}

LLVM IR (-O2):
@.str = [25 x i8] c"./af-packet-mapping.yaml\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [19 x i8] c"Failed to open %s\0A\00"
@.str.3 = [15 x i8] c"%YAML 1.1\0A---\0A\00"
@.str.4 = [12 x i8] c"af-packet:\0A\00"
@.str.5 = [23 x i8] c" - interface: ath%d%d\00"
@.str.6 = [19 x i8] c" threads: auto\0A\00"
@.str.7 = [20 x i8] c" cluster-id: 98\0A\00"
@.str.8 = [17 x i8] c" defrag: yes\0A\00"
@.str.9 = [32 x i8] c" cluster-type: cluster_flow\0A\00"
@.str.10 = [20 x i8] c" copy-mode: ips\0A\00"
@.str.11 = [32 x i8] c" copy-iface: tapSec_ath%d%d\0A\00"
@.str.12 = [24 x i8] c" buffer-size: 32768\0A\00"
@.str.14 = [30 x i8] c" - interface: tapSec_ath%d%d\00"
@.str.15 = [25 x i8] c" copy-iface: ath%d%d\0A\00"
@.str.16 = [25 x i8] c" buffer-size: 32768\0A\0A\00"
define i32 @gen_suricata_afp_mapping() {
%1 = tail call i32* @fopen(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%2 = icmp eq i32* %1, null
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
br label %36
5: ; preds = %0
%6 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i64 11, i64 1, i32* %1)
br label %8
8: ; preds = %5, %33
%9 = phi i1 [ true, %5 ], [ false, %33 ]
%10 = phi i32 [ 0, %5 ], [ 1, %33 ]
br label %11
11: ; preds = %8, %11
%12 = phi i32 [ 0, %8 ], [ %31, %11 ]
%13 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %10, i32 %12)
%14 = tail call i64 @fwrite(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i64 18, i64 1, i32* %1)
%15 = tail call i64 @fwrite(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i64 19, i64 1, i32* %1)
%16 = tail call i64 @fwrite(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i64 16, i64 1, i32* %1)
%17 = tail call i64 @fwrite(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0), i64 31, i64 1, i32* %1)
%18 = tail call i64 @fwrite(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i64 19, i64 1, i32* %1)
%19 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i32 %10, i32 %12)
%20 = tail call i64 @fwrite(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i64 23, i64 1, i32* %1)
%21 = tail call i32 @fputc(i32 10, i32* %1)
%22 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i32 %10, i32 %12)
%23 = tail call i64 @fwrite(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i64 18, i64 1, i32* %1)
%24 = tail call i64 @fwrite(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i64 19, i64 1, i32* %1)
%25 = tail call i64 @fwrite(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i64 16, i64 1, i32* %1)
%26 = tail call i64 @fwrite(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0), i64 31, i64 1, i32* %1)
%27 = tail call i64 @fwrite(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i64 19, i64 1, i32* %1)
%28 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.15, i64 0, i64 0), i32 %10, i32 %12)
%29 = tail call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.16, i64 0, i64 0), i64 24, i64 1, i32* %1)
%30 = tail call i32 @fputc(i32 10, i32* %1)
%31 = add nuw nsw i32 %12, 1
%32 = icmp eq i32 %31, 7
br i1 %32, label %33, label %11
33: ; preds = %11
br i1 %9, label %8, label %34
34: ; preds = %33
%35 = tail call i32 @fclose(i32* %1)
br label %36
36: ; preds = %34, %3
%37 = phi i32 [ 0, %34 ], [ -1, %3 ]
ret i32 %37
}