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

/* Variables and functions */
int /*<<< orphan*/ FILENAME_MAX;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
scalar_t__ isprint(int);
int /*<<< orphan*/ snprintf(char *, int, char *, ...);
void build_file(char *name, int (*func)(int)) {
  char file[FILENAME_MAX + 1];
  char ident[20];
  char fname[100];
  FILE *fp;
  int i, res;
  snprintf(file, sizeof(file), "test_%s.c", name);
  fp = fopen(file, "w");
  if (fp != NULL) {
    fprintf(fp, "\n#include \"ctype_test.h\"\n");
    for (i = 0; i < 256; i++) {
      snprintf(ident, sizeof(ident), "0x%02x", i);
      snprintf(fname, sizeof(fname), "%s_%s", name, ident);
      if (isprint(i) && i != '"' && i != '\\') {
        snprintf(ident, sizeof(ident), "%c", i);
      }
      fprintf(fp, "void t_%s()\n{\n", fname);
      res = func(i) ? 1 : 0;
      fprintf(fp, "    Assert(%s(%d) %s,\"%s should be %d for %s\");\n", name,
              i, res == 0 ? " == 0 " : "", name, res, ident);
      fprintf(fp, "}\n\n");
    }
    fprintf(fp, "\n\n");
    fprintf(fp, "int test_%s()\n{\n", name);
    fprintf(fp, "    suite_setup(\"%s\");\n", name);
    for (i = 0; i < 256; i++) {
      snprintf(ident, sizeof(ident), "0x%02x", i);
      fprintf(fp, "    suite_add_test(t_%s_%s);\n", name, ident);
    }
    fprintf(fp, "     return suite_run();\n}\n");
    fclose(fp);
  }
}


x86 assembly (clang, -O0):
<build_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e7e(%rip),%rax
mov    (%rax),%eax
add    $0x1,%eax
mov    %rsp,%rcx
mov    %rcx,-0x18(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,-0xc8(%rbp)
mov    %rdi,%rsp
mov    %rax,-0x20(%rbp)
mov    %eax,%esi
mov    -0x8(%rbp),%rcx
lea    0xe5e(%rip),%rdx
mov    $0x0,%al
call   1040 <snprintf@plt>
mov    -0xc8(%rbp),%rdi
lea    0xe53(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0xb8(%rbp)
cmpq   $0x0,-0xb8(%rbp)
je     141b <build_file+0x2cb>
mov    -0xb8(%rbp),%rdi
lea    0xe2d(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0xbc(%rbp)
cmpl   $0x100,-0xbc(%rbp)
jge    134b <build_file+0x1fb>
lea    -0x40(%rbp),%rdi
mov    -0xbc(%rbp),%ecx
mov    $0x14,%esi
lea    0xe10(%rip),%rdx
mov    $0x0,%al
call   1040 <snprintf@plt>
lea    -0xb0(%rbp),%rdi
mov    -0x8(%rbp),%rcx
lea    -0x40(%rbp),%r8
mov    $0x64,%esi
lea    0xdf5(%rip),%rdx
mov    $0x0,%al
call   1040 <snprintf@plt>
mov    -0xbc(%rbp),%edi
call   1060 <isprint@plt>
cmp    $0x0,%rax
je     128b <build_file+0x13b>
cmpl   $0x22,-0xbc(%rbp)
je     128b <build_file+0x13b>
cmpl   $0x5c,-0xbc(%rbp)
je     128b <build_file+0x13b>
lea    -0x40(%rbp),%rdi
mov    -0xbc(%rbp),%ecx
mov    $0x14,%esi
lea    0xdaf(%rip),%rdx
mov    $0x0,%al
call   1040 <snprintf@plt>
mov    -0xb8(%rbp),%rdi
lea    -0xb0(%rbp),%rdx
lea    0xd96(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x10(%rbp),%rax
mov    -0xbc(%rbp),%edi
call   *%rax
mov    %eax,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %eax,-0xc0(%rbp)
mov    -0xb8(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    -0xbc(%rbp),%ecx
mov    -0xc0(%rbp),%esi
lea    0xd9a(%rip),%r8
lea    0xd89(%rip),%rax
cmp    $0x0,%esi
cmove  %rax,%r8
mov    -0x8(%rbp),%r9
mov    -0xc0(%rbp),%r10d
lea    -0x40(%rbp),%rax
lea    0xd3b(%rip),%rsi
sub    $0x10,%rsp
mov    %r10d,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1050 <fprintf@plt>
add    $0x10,%rsp
mov    -0xb8(%rbp),%rdi
lea    0xd4d(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0xbc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbc(%rbp)
jmp    11f0 <build_file+0xa0>
mov    -0xb8(%rbp),%rdi
lea    0xd25(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0xb8(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xd0f(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0xb8(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xd07(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0xbc(%rbp)
cmpl   $0x100,-0xbc(%rbp)
jge    13fa <build_file+0x2aa>
lea    -0x40(%rbp),%rdi
mov    -0xbc(%rbp),%ecx
mov    $0x14,%esi
lea    0xc64(%rip),%rdx
mov    $0x0,%al
call   1040 <snprintf@plt>
mov    -0xb8(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    -0x40(%rbp),%rcx
lea    0xccb(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0xbc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbc(%rbp)
jmp    139c <build_file+0x24c>
mov    -0xb8(%rbp),%rdi
lea    0xcc0(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0xb8(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<build_file>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %rsi,-0x30(%rbp)
mov    %rdi,%r14
mov    0x2e66(%rip),%rax
mov    (%rax),%esi
add    $0x1,%esi
mov    %rsp,%rbx
lea    0xf(%rsi),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
lea    0xe61(%rip),%rdx
mov    %rbx,%rdi
mov    %r14,%rcx
xor    %eax,%eax
call   1040 <snprintf@plt>
lea    0xe57(%rip),%rsi
mov    %rbx,%rdi
call   1070 <fopen@plt>
test   %rax,%rax
je     13aa <build_file+0x24a>
mov    %rax,%r13
lea    0xe3e(%rip),%rdi
mov    $0x19,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1080 <fwrite@plt>
lea    -0x50(%rbp),%r12
lea    -0xc0(%rbp),%rbx
xor    %r15d,%r15d
jmp    1280 <build_file+0x120>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r13,%rdi
lea    0xe2c(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %r15d,%edi
call   *-0x30(%rbp)
mov    %rbx,%r10
xor    %ebx,%ebx
test   %eax,%eax
setne  %bl
lea    0xe4b(%rip),%r8
lea    0xe4e(%rip),%rax
cmovne %rax,%r8
mov    %r13,%rdi
lea    0xe05(%rip),%rsi
mov    %r14,%rdx
mov    %r15d,%ecx
mov    %r14,%r9
xor    %eax,%eax
push   %r12
push   %rbx
mov    %r10,%rbx
call   1050 <fprintf@plt>
add    $0x10,%rsp
mov    $0x3,%esi
mov    $0x1,%edx
lea    0xe12(%rip),%rdi
mov    %r13,%rcx
call   1080 <fwrite@plt>
add    $0x1,%r15d
cmp    $0x100,%r15d
je     12f8 <build_file+0x198>
mov    %r12,%rdi
mov    $0x14,%esi
lea    0xd97(%rip),%rdx
mov    %r15d,%ecx
xor    %eax,%eax
call   1040 <snprintf@plt>
mov    %rbx,%rdi
mov    $0x64,%esi
lea    0xd85(%rip),%rdx
mov    %r14,%rcx
mov    %r12,%r8
xor    %eax,%eax
call   1040 <snprintf@plt>
mov    %r15d,%edi
call   1060 <isprint@plt>
test   %rax,%rax
je     1200 <build_file+0xa0>
cmp    $0x22,%r15d
je     1200 <build_file+0xa0>
cmp    $0x5c,%r15d
je     1200 <build_file+0xa0>
mov    %r12,%rdi
mov    $0x14,%esi
lea    0xd4a(%rip),%rdx
mov    %r15d,%ecx
xor    %eax,%eax
call   1040 <snprintf@plt>
jmp    1200 <build_file+0xa0>
lea    0xd7f(%rip),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    %r13,%rcx
call   1080 <fwrite@plt>
lea    0xd69(%rip),%rsi
mov    %r13,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
lea    0xd66(%rip),%rsi
mov    %r13,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
lea    -0x50(%rbp),%r12
lea    0xd66(%rip),%rbx
xor    %r15d,%r15d
nopw   0x0(%rax,%rax,1)
mov    %r12,%rdi
mov    $0x14,%esi
lea    0xcc7(%rip),%rdx
mov    %r15d,%ecx
xor    %eax,%eax
call   1040 <snprintf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %r12,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
add    $0x1,%r15d
cmp    $0x100,%r15d
jne    1350 <build_file+0x1f0>
lea    0xd38(%rip),%rdi
mov    $0x1b,%esi
mov    $0x1,%edx
mov    %r13,%rcx
call   1080 <fwrite@plt>
mov    %r13,%rdi
call   1030 <fclose@plt>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@FILENAME_MAX = global i32 0
@.str = [10 x i8] c"test_%s.c\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [26 x i8] c"\0A#include \22ctype_test.h\22\0A\00"
@.str.3 = [7 x i8] c"0x%02x\00"
@.str.4 = [6 x i8] c"%s_%s\00"
@.str.5 = [3 x i8] c"%c\00"
@.str.6 = [15 x i8] c"void t_%s()\0A{\0A\00"
@.str.7 = [49 x i8] c" Assert(%s(%d) %s,\22%s should be %d for %s\22);\0A\00"
@.str.8 = [7 x i8] c" == 0 \00"
@.str.9 = [1 x i8] zeroinitializer
@.str.10 = [4 x i8] c"}\0A\0A\00"
@.str.11 = [3 x i8] c"\0A\0A\00"
@.str.12 = [17 x i8] c"int test_%s()\0A{\0A\00"
@.str.13 = [24 x i8] c" suite_setup(\22%s\22);\0A\00"
@.str.14 = [30 x i8] c" suite_add_test(t_%s_%s);\0A\00"
@.str.15 = [28 x i8] c" return suite_run();\0A}\0A\00"
define void @build_file(i8* %0, i32 (i32)* %1) {
%3 = alloca i8*
%4 = alloca i32 (i32)*
%5 = alloca i8*
%6 = alloca i64
%7 = alloca [20 x i8]
%8 = alloca [100 x i8]
%9 = alloca i32*
%10 = alloca i32
%11 = alloca i32
store i8* %0, i8** %3
store i32 (i32)* %1, i32 (i32)** %4
%12 = load i32, i32* @FILENAME_MAX
%13 = add nsw i32 %12, 1
%14 = zext i32 %13 to i64
%15 = call i8* @llvm.stacksave()
store i8* %15, i8** %5
%16 = alloca i8, i64 %14
store i64 %14, i64* %6
%17 = trunc i64 %14 to i32
%18 = load i8*, i8** %3
%19 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %16, i32 %17, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %18)
%20 = call i32* @fopen(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %20, i32** %9
%21 = load i32*, i32** %9
%22 = icmp ne i32* %21, null
br i1 %22, label %23, label %104
23: ; preds = %2
%24 = load i32*, i32** %9
%25 = call i32 (i32*, i8*, ...) @fprintf(i32* %24, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %10
br label %26
26: ; preds = %73, %23
%27 = load i32, i32* %10
%28 = icmp slt i32 %27, 256
br i1 %28, label %29, label %76
29: ; preds = %26
%30 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%31 = load i32, i32* %10
%32 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %30, i32 20, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %31)
%33 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%34 = load i8*, i8** %3
%35 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%36 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %33, i32 100, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %34, i8* %35)
%37 = load i32, i32* %10
%38 = call i64 @isprint(i32 %37)
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %50
40: ; preds = %29
%41 = load i32, i32* %10
%42 = icmp ne i32 %41, 34
br i1 %42, label %43, label %50
43: ; preds = %40
%44 = load i32, i32* %10
%45 = icmp ne i32 %44, 92
br i1 %45, label %46, label %50
46: ; preds = %43
%47 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%48 = load i32, i32* %10
%49 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %47, i32 20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 %48)
br label %50
50: ; preds = %46, %43, %40, %29
%51 = load i32*, i32** %9
%52 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%53 = call i32 (i32*, i8*, ...) @fprintf(i32* %51, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8* %52)
%54 = load i32 (i32)*, i32 (i32)** %4
%55 = load i32, i32* %10
%56 = call i32 %54(i32 %55)
%57 = icmp ne i32 %56, 0
%58 = zext i1 %57 to i64
%59 = select i1 %57, i32 1, i32 0
store i32 %59, i32* %11
%60 = load i32*, i32** %9
%61 = load i8*, i8** %3
%62 = load i32, i32* %10
%63 = load i32, i32* %11
%64 = icmp eq i32 %63, 0
%65 = zext i1 %64 to i64
%66 = select i1 %64, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0)
%67 = load i8*, i8** %3
%68 = load i32, i32* %11
%69 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%70 = call i32 (i32*, i8*, ...) @fprintf(i32* %60, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0), i8* %61, i32 %62, i8* %66, i8* %67, i32 %68, i8* %69)
%71 = load i32*, i32** %9
%72 = call i32 (i32*, i8*, ...) @fprintf(i32* %71, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
br label %73
73: ; preds = %50
%74 = load i32, i32* %10
%75 = add nsw i32 %74, 1
store i32 %75, i32* %10
br label %26
76: ; preds = %26
%77 = load i32*, i32** %9
%78 = call i32 (i32*, i8*, ...) @fprintf(i32* %77, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%79 = load i32*, i32** %9
%80 = load i8*, i8** %3
%81 = call i32 (i32*, i8*, ...) @fprintf(i32* %79, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), i8* %80)
%82 = load i32*, i32** %9
%83 = load i8*, i8** %3
%84 = call i32 (i32*, i8*, ...) @fprintf(i32* %82, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0), i8* %83)
store i32 0, i32* %10
br label %85
85: ; preds = %96, %76
%86 = load i32, i32* %10
%87 = icmp slt i32 %86, 256
br i1 %87, label %88, label %99
88: ; preds = %85
%89 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%90 = load i32, i32* %10
%91 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %89, i32 20, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %90)
%92 = load i32*, i32** %9
%93 = load i8*, i8** %3
%94 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%95 = call i32 (i32*, i8*, ...) @fprintf(i32* %92, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i8* %93, i8* %94)
br label %96
96: ; preds = %88
%97 = load i32, i32* %10
%98 = add nsw i32 %97, 1
store i32 %98, i32* %10
br label %85
99: ; preds = %85
%100 = load i32*, i32** %9
%101 = call i32 (i32*, i8*, ...) @fprintf(i32* %100, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0))
%102 = load i32*, i32** %9
%103 = call i32 @fclose(i32* %102)
br label %104
104: ; preds = %99, %2
%105 = load i8*, i8** %5
ret void
}

LLVM IR (-O2):
@FILENAME_MAX = global i32 0
@.str = [10 x i8] c"test_%s.c\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [26 x i8] c"\0A#include \22ctype_test.h\22\0A\00"
@.str.3 = [7 x i8] c"0x%02x\00"
@.str.4 = [6 x i8] c"%s_%s\00"
@.str.5 = [3 x i8] c"%c\00"
@.str.6 = [15 x i8] c"void t_%s()\0A{\0A\00"
@.str.7 = [49 x i8] c" Assert(%s(%d) %s,\22%s should be %d for %s\22);\0A\00"
@.str.8 = [7 x i8] c" == 0 \00"
@.str.9 = [1 x i8] zeroinitializer
@.str.10 = [4 x i8] c"}\0A\0A\00"
@.str.11 = [3 x i8] c"\0A\0A\00"
@.str.12 = [17 x i8] c"int test_%s()\0A{\0A\00"
@.str.13 = [24 x i8] c" suite_setup(\22%s\22);\0A\00"
@.str.14 = [30 x i8] c" suite_add_test(t_%s_%s);\0A\00"
@.str.15 = [28 x i8] c" return suite_run();\0A}\0A\00"
define void @build_file(i8* %0, i32 (i32)* nocapture %1) {
%3 = alloca [20 x i8]
%4 = alloca [100 x i8]
%5 = load i32, i32* @FILENAME_MAX
%6 = add nsw i32 %5, 1
%7 = zext i32 %6 to i64
%8 = alloca i8, i64 %7
%9 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%10 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%11 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %8, i32 %6, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %0)
%12 = call i32* @fopen(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i32* %12, null
br i1 %13, label %51, label %14
14: ; preds = %2
%15 = call i64 @fwrite(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i64 25, i64 1, i32* %12)
br label %16
16: ; preds = %14, %28
%17 = phi i32 [ 0, %14 ], [ %36, %28 ]
%18 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %9, i32 20, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %17)
%19 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %10, i32 100, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %0, i8* %9)
%20 = call i64 @isprint(i32 %17)
%21 = icmp ne i64 %20, 0
%22 = icmp ne i32 %17, 34
%23 = and i1 %21, %22
%24 = icmp ne i32 %17, 92
%25 = and i1 %23, %24
br i1 %25, label %26, label %28
26: ; preds = %16
%27 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %9, i32 20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 %17)
br label %28
28: ; preds = %26, %16
%29 = call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8* %10)
%30 = call i32 %1(i32 %17)
%31 = icmp ne i32 %30, 0
%32 = zext i1 %31 to i32
%33 = select i1 %31, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0)
%34 = call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0), i8* %0, i32 %17, i8* %33, i8* %0, i32 %32, i8* %9)
%35 = call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i64 3, i64 1, i32* %12)
%36 = add nuw nsw i32 %17, 1
%37 = icmp eq i32 %36, 256
br i1 %37, label %38, label %16
38: ; preds = %28
%39 = call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i64 2, i64 1, i32* %12)
%40 = call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), i8* %0)
%41 = call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0), i8* %0)
br label %42
42: ; preds = %38, %42
%43 = phi i32 [ 0, %38 ], [ %46, %42 ]
%44 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %9, i32 20, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %43)
%45 = call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i8* %0, i8* %9)
%46 = add nuw nsw i32 %43, 1
%47 = icmp eq i32 %46, 256
br i1 %47, label %48, label %42
48: ; preds = %42
%49 = call i64 @fwrite(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0), i64 27, i64 1, i32* %12)
%50 = call i32 @fclose(i32* %12)
br label %51
51: ; preds = %48, %2
ret void
}