#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*/ fprintf(int /*<<< orphan*/ *, char *, ...);
void CreateInitFile(const char *libName, int numConcrete, char **concrete,
                    FILE *fout) {
  int i;
  const char *prefix = "lib";
  const char *dllexp = "";
  fprintf(fout, "// Generated by vtkWrapPythonInit in VTK/Wrapping\n");
  fprintf(fout, "#include \"vtkPython.h\"\n\n");
  fprintf(fout, "#include \"vtkSystemIncludes.h\"\n");
  fprintf(fout, "#include <string.h>\n");
  fprintf(fout,
          "// Handle compiler warning messages, etc.\n"
          "#if defined( _MSC_VER ) && !defined(VTK_DISPLAY_WIN32_WARNINGS)\n"
          "#pragma warning ( disable : 4706 )\n"
          "#endif // Windows Warnings \n\n");
  for (i = 0; i < numConcrete; i++) {
    fprintf(fout,
            "extern  \"C\" {%sPyObject *PyVTKClass_%sNew(const char *); }\n",
            dllexp, concrete[i]);
  }
  fprintf(fout, "\nstatic PyMethodDef Py%s_ClassMethods[] = {\n", libName);
  fprintf(fout, "{NULL, NULL, 0, NULL}};\n\n");
  fprintf(fout, "extern  \"C\" {%svoid init%s%s();}\n\n", dllexp, prefix,
          libName);
  fprintf(fout, "void init%s%s()\n{\n", prefix, libName);
  fprintf(fout, "  PyObject *m, *d, *c;\n\n");
  fprintf(fout, "  static const char modulename[] = \"%s%s\";\n", prefix,
          libName);
  fprintf(fout, "  m = Py_InitModule((char*)modulename, Py%s_ClassMethods);\n",
          libName);
  fprintf(fout, "  d = PyModule_GetDict(m);\n");
  fprintf(fout,
          "  if (!d) Py_FatalError((char*)\"can't get dictionary for module "
          "%s!\");\n\n",
          libName);
  for (i = 0; i < numConcrete; i++) {
    fprintf(fout, "  c = PyVTKClass_%sNew(modulename);\n", concrete[i]);
    fprintf(fout,
            "  if (c && -1 == PyDict_SetItemString(d, (char*)\"%s\", c))\n",
            concrete[i]);
    fprintf(fout, "    {\n");
    fprintf(
        fout,
        "      Py_FatalError((char*)\"can't add class %s to dictionary!\");\n",
        concrete[i]);
    fprintf(fout, "    }\n\n");
  }
  fprintf(fout, "}\n\n");
}


x86 assembly (clang, -O0):
<CreateInitFile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
lea    0xed2(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xff6(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x20(%rbp),%rdi
lea    0xebc(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xedd(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xee4(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xef2(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xef5(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11da <CreateInitFile+0xca>
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%rdx
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rcx
lea    0xf6b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    119e <CreateInitFile+0x8e>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xf83(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xf9e(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    -0x8(%rbp),%r8
lea    0xf9a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%rcx
lea    0xfa3(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xfa4(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%rcx
lea    0xfa3(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xfb9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xfe3(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xfe9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1343 <CreateInitFile+0x233>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0x1001(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0x1008(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x1031(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0x101a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x104a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12ab <CreateInitFile+0x19b>
mov    -0x20(%rbp),%rdi
lea    0x102e(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CreateInitFile>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rcx,%rbx
mov    %rdx,%r15
mov    %esi,%ebp
mov    %rdi,%r12
lea    0xec4(%rip),%rdi
mov    $0x32,%esi
mov    $0x1,%edx
call   1040 <fwrite@plt>
lea    0xee1(%rip),%rdi
mov    $0x18,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xee1(%rip),%rdi
mov    $0x1f,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xee8(%rip),%rdi
mov    $0x14,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xee4(%rip),%rdi
mov    $0xaa,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
test   %ebp,%ebp
jle    1377 <CreateInitFile+0x257>
mov    %r12,0x10(%rsp)
mov    %ebp,0xc(%rsp)
mov    %ebp,%r12d
lea    0xf62(%rip),%r13
lea    0xf5a(%rip),%rbp
xor    %r14d,%r14d
nopl   0x0(%rax,%rax,1)
mov    (%r15,%r14,8),%rcx
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0x1,%r14
cmp    %r14,%r12
jne    11e0 <CreateInitFile+0xc0>
lea    0xf68(%rip),%rsi
mov    %rbx,%rdi
mov    0x10(%rsp),%rbp
mov    %rbp,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf7c(%rip),%rdi
mov    $0x19,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf7d(%rip),%rsi
lea    0xef2(%rip),%rdx
lea    0xdbc(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rcx
mov    %rbp,%r8
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf7b(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf77(%rip),%rdi
mov    $0x18,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf77(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf8c(%rip),%rsi
mov    %rbx,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xfb4(%rip),%rdi
mov    $0x1b,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xfb7(%rip),%rsi
mov    %rbx,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
cmpl   $0x0,0xc(%rsp)
jle    1451 <CreateInitFile+0x331>
lea    0x1048(%rip),%rbp
lea    0x1083(%rip),%r14
xor    %r13d,%r13d
nopl   0x0(%rax,%rax,1)
mov    (%r15,%r13,8),%rdx
mov    %rbx,%rdi
lea    0xfc1(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15,%r13,8),%rdx
mov    %rbx,%rdi
lea    0xfd1(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0x6,%esi
mov    $0x1,%edx
lea    0xff4(%rip),%rdi
mov    %rbx,%rcx
call   1040 <fwrite@plt>
mov    (%r15,%r13,8),%rdx
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0x7,%esi
mov    $0x1,%edx
mov    %r14,%rdi
mov    %rbx,%rcx
call   1040 <fwrite@plt>
add    $0x1,%r13
cmp    %r13,%r12
jne    1300 <CreateInitFile+0x1e0>
jmp    1451 <CreateInitFile+0x331>
lea    0xdee(%rip),%rsi
mov    %rbx,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xe07(%rip),%rdi
mov    $0x19,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xe08(%rip),%rsi
lea    0xd7d(%rip),%rdx
lea    0xc47(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rcx
mov    %r12,%r8
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xe06(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r12,%rcx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xe02(%rip),%rdi
mov    $0x18,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xe02(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r12,%rcx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xe17(%rip),%rsi
mov    %rbx,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xe3f(%rip),%rdi
mov    $0x1b,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xe42(%rip),%rsi
mov    %rbx,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf24(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"lib\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [51 x i8] c"// Generated by vtkWrapPythonInit in VTK/Wrapping\0A\00"
@.str.3 = [25 x i8] c"#include \22vtkPython.h\22\0A\0A\00"
@.str.4 = [32 x i8] c"#include \22vtkSystemIncludes.h\22\0A\00"
@.str.5 = [21 x i8] c"#include <string.h>\0A\00"
@.str.6 = [171 x i8] c"// Handle compiler warning messages, etc.\0A#if defined( _MSC_VER ) && !defined(VTK_DISPLAY_WIN32_WARNINGS)\0A#pragma warning ( disable : 4706 )\0A#endif // Windows Warnings \0A\0A\00"
@.str.7 = [60 x i8] c"extern \22C\22 {%sPyObject *PyVTKClass_%sNew(const char *); }\0A\00"
@.str.8 = [45 x i8] c"\0Astatic PyMethodDef Py%s_ClassMethods[] = {\0A\00"
@.str.9 = [26 x i8] c"{NULL, NULL, 0, NULL}};\0A\0A\00"
@.str.10 = [35 x i8] c"extern \22C\22 {%svoid init%s%s();}\0A\0A\00"
@.str.11 = [19 x i8] c"void init%s%s()\0A{\0A\00"
@.str.12 = [25 x i8] c" PyObject *m, *d, *c;\0A\0A\00"
@.str.13 = [44 x i8] c" static const char modulename[] = \22%s%s\22;\0A\00"
@.str.14 = [60 x i8] c" m = Py_InitModule((char*)modulename, Py%s_ClassMethods);\0A\00"
@.str.15 = [28 x i8] c" d = PyModule_GetDict(m);\0A\00"
@.str.16 = [73 x i8] c" if (!d) Py_FatalError((char*)\22can't get dictionary for module %s!\22);\0A\0A\00"
@.str.17 = [37 x i8] c" c = PyVTKClass_%sNew(modulename);\0A\00"
@.str.18 = [59 x i8] c" if (c && -1 == PyDict_SetItemString(d, (char*)\22%s\22, c))\0A\00"
@.str.19 = [7 x i8] c" {\0A\00"
@.str.20 = [66 x i8] c" Py_FatalError((char*)\22can't add class %s to dictionary!\22);\0A\00"
@.str.21 = [8 x i8] c" }\0A\0A\00"
@.str.22 = [4 x i8] c"}\0A\0A\00"
define void @CreateInitFile(i8* %0, i32 %1, i8** %2, i32* %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8**
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i8*
store i8* %0, i8** %5
store i32 %1, i32* %6
store i8** %2, i8*** %7
store i32* %3, i32** %8
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8** %10
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8** %11
%12 = load i32*, i32** %8
%13 = call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0))
%14 = load i32*, i32** %8
%15 = call i32 (i32*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%16 = load i32*, i32** %8
%17 = call i32 (i32*, i8*, ...) @fprintf(i32* %16, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%18 = load i32*, i32** %8
%19 = call i32 (i32*, i8*, ...) @fprintf(i32* %18, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%20 = load i32*, i32** %8
%21 = call i32 (i32*, i8*, ...) @fprintf(i32* %20, i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %9
br label %22
22: ; preds = %35, %4
%23 = load i32, i32* %9
%24 = load i32, i32* %6
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %38
26: ; preds = %22
%27 = load i32*, i32** %8
%28 = load i8*, i8** %11
%29 = load i8**, i8*** %7
%30 = load i32, i32* %9
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8*, i8** %29, i64 %31
%33 = load i8*, i8** %32
%34 = call i32 (i32*, i8*, ...) @fprintf(i32* %27, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.7, i64 0, i64 0), i8* %28, i8* %33)
br label %35
35: ; preds = %26
%36 = load i32, i32* %9
%37 = add nsw i32 %36, 1
store i32 %37, i32* %9
br label %22
38: ; preds = %22
%39 = load i32*, i32** %8
%40 = load i8*, i8** %5
%41 = call i32 (i32*, i8*, ...) @fprintf(i32* %39, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.8, i64 0, i64 0), i8* %40)
%42 = load i32*, i32** %8
%43 = call i32 (i32*, i8*, ...) @fprintf(i32* %42, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0))
%44 = load i32*, i32** %8
%45 = load i8*, i8** %11
%46 = load i8*, i8** %10
%47 = load i8*, i8** %5
%48 = call i32 (i32*, i8*, ...) @fprintf(i32* %44, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0), i8* %45, i8* %46, i8* %47)
%49 = load i32*, i32** %8
%50 = load i8*, i8** %10
%51 = load i8*, i8** %5
%52 = call i32 (i32*, i8*, ...) @fprintf(i32* %49, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i8* %50, i8* %51)
%53 = load i32*, i32** %8
%54 = call i32 (i32*, i8*, ...) @fprintf(i32* %53, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0))
%55 = load i32*, i32** %8
%56 = load i8*, i8** %10
%57 = load i8*, i8** %5
%58 = call i32 (i32*, i8*, ...) @fprintf(i32* %55, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.13, i64 0, i64 0), i8* %56, i8* %57)
%59 = load i32*, i32** %8
%60 = load i8*, i8** %5
%61 = call i32 (i32*, i8*, ...) @fprintf(i32* %59, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.14, i64 0, i64 0), i8* %60)
%62 = load i32*, i32** %8
%63 = call i32 (i32*, i8*, ...) @fprintf(i32* %62, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0))
%64 = load i32*, i32** %8
%65 = load i8*, i8** %5
%66 = call i32 (i32*, i8*, ...) @fprintf(i32* %64, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.16, i64 0, i64 0), i8* %65)
store i32 0, i32* %9
br label %67
67: ; preds = %97, %38
%68 = load i32, i32* %9
%69 = load i32, i32* %6
%70 = icmp slt i32 %68, %69
br i1 %70, label %71, label %100
71: ; preds = %67
%72 = load i32*, i32** %8
%73 = load i8**, i8*** %7
%74 = load i32, i32* %9
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8*, i8** %73, i64 %75
%77 = load i8*, i8** %76
%78 = call i32 (i32*, i8*, ...) @fprintf(i32* %72, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.17, i64 0, i64 0), i8* %77)
%79 = load i32*, i32** %8
%80 = load i8**, i8*** %7
%81 = load i32, i32* %9
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8*, i8** %80, i64 %82
%84 = load i8*, i8** %83
%85 = call i32 (i32*, i8*, ...) @fprintf(i32* %79, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.18, i64 0, i64 0), i8* %84)
%86 = load i32*, i32** %8
%87 = call i32 (i32*, i8*, ...) @fprintf(i32* %86, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0))
%88 = load i32*, i32** %8
%89 = load i8**, i8*** %7
%90 = load i32, i32* %9
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8*, i8** %89, i64 %91
%93 = load i8*, i8** %92
%94 = call i32 (i32*, i8*, ...) @fprintf(i32* %88, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.20, i64 0, i64 0), i8* %93)
%95 = load i32*, i32** %8
%96 = call i32 (i32*, i8*, ...) @fprintf(i32* %95, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.21, i64 0, i64 0))
br label %97
97: ; preds = %71
%98 = load i32, i32* %9
%99 = add nsw i32 %98, 1
store i32 %99, i32* %9
br label %67
100: ; preds = %67
%101 = load i32*, i32** %8
%102 = call i32 (i32*, i8*, ...) @fprintf(i32* %101, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"lib\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [51 x i8] c"// Generated by vtkWrapPythonInit in VTK/Wrapping\0A\00"
@.str.3 = [25 x i8] c"#include \22vtkPython.h\22\0A\0A\00"
@.str.4 = [32 x i8] c"#include \22vtkSystemIncludes.h\22\0A\00"
@.str.5 = [21 x i8] c"#include <string.h>\0A\00"
@.str.6 = [171 x i8] c"// Handle compiler warning messages, etc.\0A#if defined( _MSC_VER ) && !defined(VTK_DISPLAY_WIN32_WARNINGS)\0A#pragma warning ( disable : 4706 )\0A#endif // Windows Warnings \0A\0A\00"
@.str.7 = [60 x i8] c"extern \22C\22 {%sPyObject *PyVTKClass_%sNew(const char *); }\0A\00"
@.str.8 = [45 x i8] c"\0Astatic PyMethodDef Py%s_ClassMethods[] = {\0A\00"
@.str.9 = [26 x i8] c"{NULL, NULL, 0, NULL}};\0A\0A\00"
@.str.10 = [35 x i8] c"extern \22C\22 {%svoid init%s%s();}\0A\0A\00"
@.str.11 = [19 x i8] c"void init%s%s()\0A{\0A\00"
@.str.12 = [25 x i8] c" PyObject *m, *d, *c;\0A\0A\00"
@.str.13 = [44 x i8] c" static const char modulename[] = \22%s%s\22;\0A\00"
@.str.14 = [60 x i8] c" m = Py_InitModule((char*)modulename, Py%s_ClassMethods);\0A\00"
@.str.15 = [28 x i8] c" d = PyModule_GetDict(m);\0A\00"
@.str.16 = [73 x i8] c" if (!d) Py_FatalError((char*)\22can't get dictionary for module %s!\22);\0A\0A\00"
@.str.17 = [37 x i8] c" c = PyVTKClass_%sNew(modulename);\0A\00"
@.str.18 = [59 x i8] c" if (c && -1 == PyDict_SetItemString(d, (char*)\22%s\22, c))\0A\00"
@.str.19 = [7 x i8] c" {\0A\00"
@.str.20 = [66 x i8] c" Py_FatalError((char*)\22can't add class %s to dictionary!\22);\0A\00"
@.str.21 = [8 x i8] c" }\0A\0A\00"
@.str.22 = [4 x i8] c"}\0A\0A\00"
define void @CreateInitFile(i8* %0, i32 %1, i8** nocapture %2, i32* %3) {
%5 = tail call i64 @fwrite(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i64 50, i64 1, i32* %3)
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i64 24, i64 1, i32* %3)
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i64 31, i64 1, i32* %3)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i64 20, i64 1, i32* %3)
%9 = tail call i64 @fwrite(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str.6, i64 0, i64 0), i64 170, i64 1, i32* %3)
%10 = icmp sgt i32 %1, 0
br i1 %10, label %11, label %45
11: ; preds = %4
%12 = zext i32 %1 to i64
br label %13
13: ; preds = %11, %13
%14 = phi i64 [ 0, %11 ], [ %18, %13 ]
%15 = getelementptr inbounds i8*, i8** %2, i64 %14
%16 = load i8*, i8** %15
%17 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* %16)
%18 = add nuw nsw i64 %14, 1
%19 = icmp eq i64 %18, %12
br i1 %19, label %20, label %13
20: ; preds = %13
%21 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.8, i64 0, i64 0), i8* %0)
%22 = tail call i64 @fwrite(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0), i64 25, i64 1, i32* %3)
%23 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
%24 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
%25 = tail call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), i64 24, i64 1, i32* %3)
%26 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
%27 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.14, i64 0, i64 0), i8* %0)
%28 = tail call i64 @fwrite(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0), i64 27, i64 1, i32* %3)
%29 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.16, i64 0, i64 0), i8* %0)
br i1 %10, label %30, label %55
30: ; preds = %20
%31 = zext i32 %1 to i64
br label %32
32: ; preds = %30, %32
%33 = phi i64 [ 0, %30 ], [ %43, %32 ]
%34 = getelementptr inbounds i8*, i8** %2, i64 %33
%35 = load i8*, i8** %34
%36 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.17, i64 0, i64 0), i8* %35)
%37 = load i8*, i8** %34
%38 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.18, i64 0, i64 0), i8* %37)
%39 = tail call i64 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0), i64 6, i64 1, i32* %3)
%40 = load i8*, i8** %34
%41 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.20, i64 0, i64 0), i8* %40)
%42 = tail call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.21, i64 0, i64 0), i64 7, i64 1, i32* %3)
%43 = add nuw nsw i64 %33, 1
%44 = icmp eq i64 %43, %31
br i1 %44, label %55, label %32
45: ; preds = %4
%46 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.8, i64 0, i64 0), i8* %0)
%47 = tail call i64 @fwrite(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0), i64 25, i64 1, i32* %3)
%48 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
%49 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
%50 = tail call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), i64 24, i64 1, i32* %3)
%51 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
%52 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.14, i64 0, i64 0), i8* %0)
%53 = tail call i64 @fwrite(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0), i64 27, i64 1, i32* %3)
%54 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.16, i64 0, i64 0), i8* %0)
br label %55
55: ; preds = %32, %45, %20
%56 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0), i64 3, i64 1, i32* %3)
ret void
}