#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 errno;
int fflush(int /*<<< orphan*/ *);
int fprintf(int /*<<< orphan*/ *, char *);
int basl_fwrite_facs(FILE *fp) {
  int err;
  err = 0;
  err = fprintf(fp, "/*\n");
  if (err < 0)
    goto err_exit;
  ;
  err = fprintf(fp, " * bhyve FACS template\n");
  if (err < 0)
    goto err_exit;
  ;
  err = fprintf(fp, " */\n");
  if (err < 0)
    goto err_exit;
  ;
  err = fprintf(fp, "[0004]\t\tSignature : \"FACS\"\n");
  if (err < 0)
    goto err_exit;
  ;
  err = fprintf(fp, "[0004]\t\tLength : 00000040\n");
  if (err < 0)
    goto err_exit;
  ;
  err = fprintf(fp, "[0004]\t\tHardware Signature : 00000000\n");
  if (err < 0)
    goto err_exit;
  ;
  err = fprintf(fp, "[0004]\t\t32 Firmware Waking Vector : 00000000\n");
  if (err < 0)
    goto err_exit;
  ;
  err = fprintf(fp, "[0004]\t\tGlobal Lock : 00000000\n");
  if (err < 0)
    goto err_exit;
  ;
  err = fprintf(fp, "[0004]\t\tFlags (decoded below) : 00000000\n");
  if (err < 0)
    goto err_exit;
  ;
  err = fprintf(fp, "\t\t\tS4BIOS Support Present : 0\n");
  if (err < 0)
    goto err_exit;
  ;
  err = fprintf(fp, "\t\t\t64-bit Wake Supported (V2) : 0\n");
  if (err < 0)
    goto err_exit;
  ;
  err = fprintf(fp, "[0008]\t\t64 Firmware Waking Vector : 0000000000000000\n");
  if (err < 0)
    goto err_exit;
  ;
  err = fprintf(fp, "[0001]\t\tVersion : 02\n");
  if (err < 0)
    goto err_exit;
  ;
  err = fprintf(fp, "[0003]\t\tReserved : 000000\n");
  if (err < 0)
    goto err_exit;
  ;
  err = fprintf(fp, "[0004]\t\tOspmFlags (decoded below) : 00000000\n");
  if (err < 0)
    goto err_exit;
  ;
  err = fprintf(fp, "\t\t\t64-bit Wake Env Required (V2) : 0\n");
  if (err < 0)
    goto err_exit;
  ;
  err = fflush(fp);
  if (err != 0)
    goto err_exit;
  ;
  return (0);
err_exit:
  return (errno);
}


x86 assembly (clang, -O0):
<basl_fwrite_facs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xec2(%rip),%rsi
call   1030 <fprintf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    1155 <basl_fwrite_facs+0x35>
jmp    137a <basl_fwrite_facs+0x25a>
mov    -0x10(%rbp),%rdi
lea    0xea4(%rip),%rsi
call   1030 <fprintf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    1177 <basl_fwrite_facs+0x57>
jmp    137a <basl_fwrite_facs+0x25a>
mov    -0x10(%rbp),%rdi
lea    0xe9a(%rip),%rsi
call   1030 <fprintf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    1199 <basl_fwrite_facs+0x79>
jmp    137a <basl_fwrite_facs+0x25a>
mov    -0x10(%rbp),%rdi
lea    0xe7d(%rip),%rsi
call   1030 <fprintf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    11bb <basl_fwrite_facs+0x9b>
jmp    137a <basl_fwrite_facs+0x25a>
mov    -0x10(%rbp),%rdi
lea    0xe77(%rip),%rsi
call   1030 <fprintf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    11dd <basl_fwrite_facs+0xbd>
jmp    137a <basl_fwrite_facs+0x25a>
mov    -0x10(%rbp),%rdi
lea    0xe70(%rip),%rsi
call   1030 <fprintf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    11ff <basl_fwrite_facs+0xdf>
jmp    137a <basl_fwrite_facs+0x25a>
mov    -0x10(%rbp),%rdi
lea    0xe75(%rip),%rsi
call   1030 <fprintf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    1221 <basl_fwrite_facs+0x101>
jmp    137a <basl_fwrite_facs+0x25a>
mov    -0x10(%rbp),%rdi
lea    0xe81(%rip),%rsi
call   1030 <fprintf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    1243 <basl_fwrite_facs+0x123>
jmp    137a <basl_fwrite_facs+0x25a>
mov    -0x10(%rbp),%rdi
lea    0xe7f(%rip),%rsi
call   1030 <fprintf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    1265 <basl_fwrite_facs+0x145>
jmp    137a <basl_fwrite_facs+0x25a>
mov    -0x10(%rbp),%rdi
lea    0xe87(%rip),%rsi
call   1030 <fprintf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    1287 <basl_fwrite_facs+0x167>
jmp    137a <basl_fwrite_facs+0x25a>
mov    -0x10(%rbp),%rdi
lea    0xe84(%rip),%rsi
call   1030 <fprintf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    12a9 <basl_fwrite_facs+0x189>
jmp    137a <basl_fwrite_facs+0x25a>
mov    -0x10(%rbp),%rdi
lea    0xe85(%rip),%rsi
call   1030 <fprintf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    12cb <basl_fwrite_facs+0x1ab>
jmp    137a <basl_fwrite_facs+0x25a>
mov    -0x10(%rbp),%rdi
lea    0xe99(%rip),%rsi
call   1030 <fprintf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    12ed <basl_fwrite_facs+0x1cd>
jmp    137a <basl_fwrite_facs+0x25a>
mov    -0x10(%rbp),%rdi
lea    0xe8d(%rip),%rsi
call   1030 <fprintf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    130f <basl_fwrite_facs+0x1ef>
jmp    137a <basl_fwrite_facs+0x25a>
mov    -0x10(%rbp),%rdi
lea    0xe86(%rip),%rsi
call   1030 <fprintf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    1331 <basl_fwrite_facs+0x211>
jmp    137a <basl_fwrite_facs+0x25a>
mov    -0x10(%rbp),%rdi
lea    0xe92(%rip),%rsi
call   1030 <fprintf@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    1353 <basl_fwrite_facs+0x233>
jmp    137a <basl_fwrite_facs+0x25a>
mov    -0x10(%rbp),%rdi
call   1040 <fflush@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     136e <basl_fwrite_facs+0x24e>
jmp    137a <basl_fwrite_facs+0x25a>
movl   $0x0,-0x4(%rbp)
jmp    1386 <basl_fwrite_facs+0x266>
mov    0x2c5f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<basl_fwrite_facs>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rsi
call   1030 <fprintf@plt>
test   %eax,%eax
js     1281 <basl_fwrite_facs+0x161>
lea    0xec5(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
test   %eax,%eax
js     1281 <basl_fwrite_facs+0x161>
lea    0xec6(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
test   %eax,%eax
js     1281 <basl_fwrite_facs+0x161>
lea    0xeb4(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
test   %eax,%eax
js     1281 <basl_fwrite_facs+0x161>
lea    0xeb9(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
test   %eax,%eax
js     1281 <basl_fwrite_facs+0x161>
lea    0xebd(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
test   %eax,%eax
js     1281 <basl_fwrite_facs+0x161>
lea    0xecd(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
test   %eax,%eax
js     1281 <basl_fwrite_facs+0x161>
lea    0xee4(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
test   %eax,%eax
js     1281 <basl_fwrite_facs+0x161>
lea    0xeed(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
test   %eax,%eax
js     1281 <basl_fwrite_facs+0x161>
lea    0xf00(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
test   %eax,%eax
js     1281 <basl_fwrite_facs+0x161>
lea    0xf0c(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
test   %eax,%eax
js     1281 <basl_fwrite_facs+0x161>
lea    0xf1c(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
test   %eax,%eax
js     1281 <basl_fwrite_facs+0x161>
lea    0xf3f(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
test   %eax,%eax
js     1281 <basl_fwrite_facs+0x161>
lea    0xf42(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
test   %eax,%eax
js     1281 <basl_fwrite_facs+0x161>
lea    0xf4a(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
test   %eax,%eax
js     1281 <basl_fwrite_facs+0x161>
lea    0xf65(%rip),%rsi
mov    %rbx,%rdi
call   1030 <fprintf@plt>
test   %eax,%eax
js     1281 <basl_fwrite_facs+0x161>
mov    %rbx,%rdi
call   1040 <fflush@plt>
test   %eax,%eax
je     128c <basl_fwrite_facs+0x16c>
mov    0x2d58(%rip),%rax
mov    (%rax),%eax
pop    %rbx
ret
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"/*\0A\00"
@.str.1 = [24 x i8] c" * bhyve FACS template\0A\00"
@.str.2 = [5 x i8] c" */\0A\00"
@.str.3 = [28 x i8] c"[0004]\09\09Signature : \22FACS\22\0A\00"
@.str.4 = [27 x i8] c"[0004]\09\09Length : 00000040\0A\00"
@.str.5 = [39 x i8] c"[0004]\09\09Hardware Signature : 00000000\0A\00"
@.str.6 = [46 x i8] c"[0004]\09\0932 Firmware Waking Vector : 00000000\0A\00"
@.str.7 = [32 x i8] c"[0004]\09\09Global Lock : 00000000\0A\00"
@.str.8 = [42 x i8] c"[0004]\09\09Flags (decoded below) : 00000000\0A\00"
@.str.9 = [31 x i8] c"\09\09\09S4BIOS Support Present : 0\0A\00"
@.str.10 = [35 x i8] c"\09\09\0964-bit Wake Supported (V2) : 0\0A\00"
@.str.11 = [54 x i8] c"[0008]\09\0964 Firmware Waking Vector : 0000000000000000\0A\00"
@.str.12 = [22 x i8] c"[0001]\09\09Version : 02\0A\00"
@.str.13 = [27 x i8] c"[0003]\09\09Reserved : 000000\0A\00"
@.str.14 = [46 x i8] c"[0004]\09\09OspmFlags (decoded below) : 00000000\0A\00"
@.str.15 = [38 x i8] c"\09\09\0964-bit Wake Env Required (V2) : 0\0A\00"
@errno = global i32 0
define i32 @basl_fwrite_facs(i32* %0) {
%2 = alloca i32
%3 = alloca i32*
%4 = alloca i32
store i32* %0, i32** %3
store i32 0, i32* %4
%5 = load i32*, i32** %3
%6 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
store i32 %6, i32* %4
%7 = load i32, i32* %4
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %1
br label %107
10: ; preds = %1
%11 = load i32*, i32** %3
%12 = call i32 @fprintf(i32* %11, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
store i32 %12, i32* %4
%13 = load i32, i32* %4
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %10
br label %107
16: ; preds = %10
%17 = load i32*, i32** %3
%18 = call i32 @fprintf(i32* %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
store i32 %18, i32* %4
%19 = load i32, i32* %4
%20 = icmp slt i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %16
br label %107
22: ; preds = %16
%23 = load i32*, i32** %3
%24 = call i32 @fprintf(i32* %23, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
store i32 %24, i32* %4
%25 = load i32, i32* %4
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %22
br label %107
28: ; preds = %22
%29 = load i32*, i32** %3
%30 = call i32 @fprintf(i32* %29, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
store i32 %30, i32* %4
%31 = load i32, i32* %4
%32 = icmp slt i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %28
br label %107
34: ; preds = %28
%35 = load i32*, i32** %3
%36 = call i32 @fprintf(i32* %35, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
store i32 %36, i32* %4
%37 = load i32, i32* %4
%38 = icmp slt i32 %37, 0
br i1 %38, label %39, label %40
39: ; preds = %34
br label %107
40: ; preds = %34
%41 = load i32*, i32** %3
%42 = call i32 @fprintf(i32* %41, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.6, i64 0, i64 0))
store i32 %42, i32* %4
%43 = load i32, i32* %4
%44 = icmp slt i32 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %40
br label %107
46: ; preds = %40
%47 = load i32*, i32** %3
%48 = call i32 @fprintf(i32* %47, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0))
store i32 %48, i32* %4
%49 = load i32, i32* %4
%50 = icmp slt i32 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %46
br label %107
52: ; preds = %46
%53 = load i32*, i32** %3
%54 = call i32 @fprintf(i32* %53, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
store i32 %54, i32* %4
%55 = load i32, i32* %4
%56 = icmp slt i32 %55, 0
br i1 %56, label %57, label %58
57: ; preds = %52
br label %107
58: ; preds = %52
%59 = load i32*, i32** %3
%60 = call i32 @fprintf(i32* %59, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
store i32 %60, i32* %4
%61 = load i32, i32* %4
%62 = icmp slt i32 %61, 0
br i1 %62, label %63, label %64
63: ; preds = %58
br label %107
64: ; preds = %58
%65 = load i32*, i32** %3
%66 = call i32 @fprintf(i32* %65, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
store i32 %66, i32* %4
%67 = load i32, i32* %4
%68 = icmp slt i32 %67, 0
br i1 %68, label %69, label %70
69: ; preds = %64
br label %107
70: ; preds = %64
%71 = load i32*, i32** %3
%72 = call i32 @fprintf(i32* %71, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.11, i64 0, i64 0))
store i32 %72, i32* %4
%73 = load i32, i32* %4
%74 = icmp slt i32 %73, 0
br i1 %74, label %75, label %76
75: ; preds = %70
br label %107
76: ; preds = %70
%77 = load i32*, i32** %3
%78 = call i32 @fprintf(i32* %77, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0))
store i32 %78, i32* %4
%79 = load i32, i32* %4
%80 = icmp slt i32 %79, 0
br i1 %80, label %81, label %82
81: ; preds = %76
br label %107
82: ; preds = %76
%83 = load i32*, i32** %3
%84 = call i32 @fprintf(i32* %83, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0))
store i32 %84, i32* %4
%85 = load i32, i32* %4
%86 = icmp slt i32 %85, 0
br i1 %86, label %87, label %88
87: ; preds = %82
br label %107
88: ; preds = %82
%89 = load i32*, i32** %3
%90 = call i32 @fprintf(i32* %89, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.14, i64 0, i64 0))
store i32 %90, i32* %4
%91 = load i32, i32* %4
%92 = icmp slt i32 %91, 0
br i1 %92, label %93, label %94
93: ; preds = %88
br label %107
94: ; preds = %88
%95 = load i32*, i32** %3
%96 = call i32 @fprintf(i32* %95, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.15, i64 0, i64 0))
store i32 %96, i32* %4
%97 = load i32, i32* %4
%98 = icmp slt i32 %97, 0
br i1 %98, label %99, label %100
99: ; preds = %94
br label %107
100: ; preds = %94
%101 = load i32*, i32** %3
%102 = call i32 @fflush(i32* %101)
store i32 %102, i32* %4
%103 = load i32, i32* %4
%104 = icmp ne i32 %103, 0
br i1 %104, label %105, label %106
105: ; preds = %100
br label %107
106: ; preds = %100
store i32 0, i32* %2
br label %109
107: ; preds = %105, %99, %93, %87, %81, %75, %69, %63, %57, %51, %45, %39, %33, %27, %21, %15, %9
%108 = load i32, i32* @errno
store i32 %108, i32* %2
br label %109
109: ; preds = %107, %106
%110 = load i32, i32* %2
ret i32 %110
}

LLVM IR (-O2):
@.str = [4 x i8] c"/*\0A\00"
@.str.1 = [24 x i8] c" * bhyve FACS template\0A\00"
@.str.2 = [5 x i8] c" */\0A\00"
@.str.3 = [28 x i8] c"[0004]\09\09Signature : \22FACS\22\0A\00"
@.str.4 = [27 x i8] c"[0004]\09\09Length : 00000040\0A\00"
@.str.5 = [39 x i8] c"[0004]\09\09Hardware Signature : 00000000\0A\00"
@.str.6 = [46 x i8] c"[0004]\09\0932 Firmware Waking Vector : 00000000\0A\00"
@.str.7 = [32 x i8] c"[0004]\09\09Global Lock : 00000000\0A\00"
@.str.8 = [42 x i8] c"[0004]\09\09Flags (decoded below) : 00000000\0A\00"
@.str.9 = [31 x i8] c"\09\09\09S4BIOS Support Present : 0\0A\00"
@.str.10 = [35 x i8] c"\09\09\0964-bit Wake Supported (V2) : 0\0A\00"
@.str.11 = [54 x i8] c"[0008]\09\0964 Firmware Waking Vector : 0000000000000000\0A\00"
@.str.12 = [22 x i8] c"[0001]\09\09Version : 02\0A\00"
@.str.13 = [27 x i8] c"[0003]\09\09Reserved : 000000\0A\00"
@.str.14 = [46 x i8] c"[0004]\09\09OspmFlags (decoded below) : 00000000\0A\00"
@.str.15 = [38 x i8] c"\09\09\0964-bit Wake Env Required (V2) : 0\0A\00"
@errno = global i32 0
define i32 @basl_fwrite_facs(i32* nocapture %0) {
%2 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%3 = icmp slt i32 %2, 0
br i1 %3, label %52, label %4
4: ; preds = %1
%5 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp slt i32 %5, 0
br i1 %6, label %52, label %7
7: ; preds = %4
%8 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%9 = icmp slt i32 %8, 0
br i1 %9, label %52, label %10
10: ; preds = %7
%11 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%12 = icmp slt i32 %11, 0
br i1 %12, label %52, label %13
13: ; preds = %10
%14 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%15 = icmp slt i32 %14, 0
br i1 %15, label %52, label %16
16: ; preds = %13
%17 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
%18 = icmp slt i32 %17, 0
br i1 %18, label %52, label %19
19: ; preds = %16
%20 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.6, i64 0, i64 0))
%21 = icmp slt i32 %20, 0
br i1 %21, label %52, label %22
22: ; preds = %19
%23 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0))
%24 = icmp slt i32 %23, 0
br i1 %24, label %52, label %25
25: ; preds = %22
%26 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
%27 = icmp slt i32 %26, 0
br i1 %27, label %52, label %28
28: ; preds = %25
%29 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
%30 = icmp slt i32 %29, 0
br i1 %30, label %52, label %31
31: ; preds = %28
%32 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
%33 = icmp slt i32 %32, 0
br i1 %33, label %52, label %34
34: ; preds = %31
%35 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.11, i64 0, i64 0))
%36 = icmp slt i32 %35, 0
br i1 %36, label %52, label %37
37: ; preds = %34
%38 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0))
%39 = icmp slt i32 %38, 0
br i1 %39, label %52, label %40
40: ; preds = %37
%41 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0))
%42 = icmp slt i32 %41, 0
br i1 %42, label %52, label %43
43: ; preds = %40
%44 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.14, i64 0, i64 0))
%45 = icmp slt i32 %44, 0
br i1 %45, label %52, label %46
46: ; preds = %43
%47 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.15, i64 0, i64 0))
%48 = icmp slt i32 %47, 0
br i1 %48, label %52, label %49
49: ; preds = %46
%50 = tail call i32 @fflush(i32* %0)
%51 = icmp eq i32 %50, 0
br i1 %51, label %54, label %52
52: ; preds = %49, %46, %43, %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7, %4, %1
%53 = load i32, i32* @errno
br label %54
54: ; preds = %49, %52
%55 = phi i32 [ %53, %52 ], [ 0, %49 ]
ret i32 %55
}