#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 *, ...);
scalar_t__ strcmp(char const *, char *);
void CreateInitFile(const char *libName, int numFiles, char **files,
                    FILE *fout) {
  int i;
  const char *prefix = "";
  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 < numFiles; i++) {
    fprintf(fout,
            "extern  \"C\" {%sPyObject *PyVTKAddFile_%s(PyObject *, const char "
            "*); }\n",
            dllexp, files[i]);
  }
  fprintf(fout, "\nstatic PyMethodDef Py%s_ClassMethods[] = {\n", libName);
  fprintf(fout, "{NULL, NULL, 0, NULL}};\n\n");
  fprintf(fout, "static void real_init%s(const char *modulename);\n\n",
          libName);
  for (;;) {
    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, "  static const char modulename[] = \"%s%s\";\n", prefix,
            libName);
    fprintf(fout, "  real_init%s(modulename);\n}\n\n", libName);
    if (strcmp(prefix, "lib") != 0) {
      prefix = "lib";
      continue;
    }
    break;
  }
  fprintf(fout, "void real_init%s(const char *modulename)\n{\n", libName);
  fprintf(fout, "  PyObject *m, *d;\n\n");
  fprintf(fout, "  m = Py_InitModule((char*)modulename, Py%s_ClassMethods);\n",
          libName);
  fprintf(fout, "  d = PyModule_GetDict(m);\n");
  fprintf(fout, "  if (!d)\n");
  fprintf(fout, "    {\n");
  fprintf(fout,
          "    Py_FatalError((char*)\"can't get dictionary for module %s\");\n",
          libName);
  fprintf(fout, "    }\n");
  for (i = 0; i < numFiles; i++) {
    fprintf(fout, "  PyVTKAddFile_%s(d, modulename);\n", files[i]);
  }
  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    0xfed(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xfe2(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x20(%rbp),%rdi
lea    0xea8(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xec9(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xed0(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xede(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xee1(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11ea <CreateInitFile+0xca>
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%rdx
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rcx
lea    0xf57(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11ae <CreateInitFile+0x8e>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xf7a(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xf95(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xf99(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    -0x8(%rbp),%r8
lea    0xfae(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%rcx
lea    0xfb9(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%rcx
lea    0xfb2(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xfc8(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x30(%rbp),%rdi
lea    0xfd5(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     12ba <CreateInitFile+0x19a>
lea    0xfbf(%rip),%rax
mov    %rax,-0x30(%rbp)
jmp    1228 <CreateInitFile+0x108>
jmp    12bf <CreateInitFile+0x19f>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xfa6(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xfc0(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xfbf(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xfe9(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xff3(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xfec(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xfdd(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x100c(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    139a <CreateInitFile+0x27a>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xfe2(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1362 <CreateInitFile+0x242>
mov    -0x20(%rbp),%rdi
lea    0xec7(%rip),%rsi
mov    $0x0,%al
call   1040 <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,0x8(%rsp)
mov    %esi,%ebp
mov    %rdi,%r12
lea    0xeae(%rip),%rdi
mov    $0x32,%esi
mov    $0x1,%edx
call   1050 <fwrite@plt>
lea    0xecb(%rip),%rdi
mov    $0x18,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xecb(%rip),%rdi
mov    $0x1f,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xed2(%rip),%rdi
mov    $0x14,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xece(%rip),%rdi
mov    $0xaa,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
mov    %ebp,%r13d
mov    %ebp,0x4(%rsp)
test   %ebp,%ebp
jle    1202 <CreateInitFile+0xd2>
lea    0xf55(%rip),%r14
lea    0xf4d(%rip),%r15
xor    %ebp,%ebp
mov    0x8(%rsp),%rax
mov    (%rax,%rbp,8),%rcx
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%rbp
cmp    %rbp,%r13
jne    11e0 <CreateInitFile+0xb0>
mov    %r13,0x10(%rsp)
lea    0xf65(%rip),%rsi
mov    %rbx,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xf7e(%rip),%rdi
mov    $0x19,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf7f(%rip),%rsi
mov    %rbx,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xf9e(%rip),%rsi
lea    0xed5(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r14,%rcx
mov    %r12,%r8
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xfa2(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r12,%rcx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xf9e(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %r12,%rcx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xfb3(%rip),%rsi
mov    %rbx,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xfbe(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1344 <CreateInitFile+0x214>
lea    0xfa6(%rip),%r15
lea    0xf41(%rip),%r14
lea    0xf4d(%rip),%rbp
lea    0xf72(%rip),%r13
nop
mov    %rbx,%rdi
lea    0xf03(%rip),%rsi
lea    0xe3a(%rip),%rdx
mov    %r15,%rcx
mov    %r12,%r8
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
mov    %r12,%rcx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %r12,%rcx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %r15,%rdi
mov    %r15,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
jne    12e0 <CreateInitFile+0x1b0>
lea    0xf29(%rip),%rsi
mov    %rbx,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xf41(%rip),%rdi
mov    $0x14,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf3d(%rip),%rsi
mov    %rbx,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xf65(%rip),%rdi
mov    $0x1b,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf68(%rip),%rdi
mov    $0xa,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf5a(%rip),%rdi
mov    $0x6,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf48(%rip),%rsi
mov    %rbx,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xf75(%rip),%rdi
mov    $0x6,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
cmpl   $0x0,0x4(%rsp)
mov    0x8(%rsp),%r15
mov    0x10(%rsp),%r12
jle    143a <CreateInitFile+0x30a>
lea    0xf52(%rip),%r14
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
mov    (%r15,%rbp,8),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%rbp
cmp    %rbp,%r12
jne    1420 <CreateInitFile+0x2f0>
lea    0xe2b(%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    1050 <fwrite@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [51 x i8] c"// Generated by vtkWrapPythonInit in VTK/Wrapping\0A\00"
@.str.2 = [25 x i8] c"#include \22vtkPython.h\22\0A\0A\00"
@.str.3 = [32 x i8] c"#include \22vtkSystemIncludes.h\22\0A\00"
@.str.4 = [21 x i8] c"#include <string.h>\0A\00"
@.str.5 = [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.6 = [71 x i8] c"extern \22C\22 {%sPyObject *PyVTKAddFile_%s(PyObject *, const char *); }\0A\00"
@.str.7 = [45 x i8] c"\0Astatic PyMethodDef Py%s_ClassMethods[] = {\0A\00"
@.str.8 = [26 x i8] c"{NULL, NULL, 0, NULL}};\0A\0A\00"
@.str.9 = [51 x i8] c"static void real_init%s(const char *modulename);\0A\0A\00"
@.str.10 = [37 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 = [44 x i8] c" static const char modulename[] = \22%s%s\22;\0A\00"
@.str.13 = [31 x i8] c" real_init%s(modulename);\0A}\0A\0A\00"
@.str.14 = [4 x i8] c"lib\00"
@.str.15 = [44 x i8] c"void real_init%s(const char *modulename)\0A{\0A\00"
@.str.16 = [21 x i8] c" PyObject *m, *d;\0A\0A\00"
@.str.17 = [60 x i8] c" m = Py_InitModule((char*)modulename, Py%s_ClassMethods);\0A\00"
@.str.18 = [28 x i8] c" d = PyModule_GetDict(m);\0A\00"
@.str.19 = [11 x i8] c" if (!d)\0A\00"
@.str.20 = [7 x i8] c" {\0A\00"
@.str.21 = [65 x i8] c" Py_FatalError((char*)\22can't get dictionary for module %s\22);\0A\00"
@.str.22 = [7 x i8] c" }\0A\00"
@.str.23 = [35 x i8] c" PyVTKAddFile_%s(d, modulename);\0A\00"
@.str.24 = [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 ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %10
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, 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.1, 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.2, 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.3, 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.4, 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.5, 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 ([71 x i8], [71 x i8]* @.str.6, 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.7, 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.8, i64 0, i64 0))
%44 = load i32*, i32** %8
%45 = load i8*, i8** %5
%46 = call i32 (i32*, i8*, ...) @fprintf(i32* %44, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.9, i64 0, i64 0), i8* %45)
br label %47
47: ; preds = %67, %38
%48 = load i32*, i32** %8
%49 = load i8*, i8** %11
%50 = load i8*, i8** %10
%51 = load i8*, i8** %5
%52 = call i32 (i32*, i8*, ...) @fprintf(i32* %48, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.10, i64 0, i64 0), i8* %49, i8* %50, i8* %51)
%53 = load i32*, i32** %8
%54 = load i8*, i8** %10
%55 = load i8*, i8** %5
%56 = call i32 (i32*, i8*, ...) @fprintf(i32* %53, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i8* %54, i8* %55)
%57 = load i32*, i32** %8
%58 = load i8*, i8** %10
%59 = load i8*, i8** %5
%60 = call i32 (i32*, i8*, ...) @fprintf(i32* %57, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.12, i64 0, i64 0), i8* %58, i8* %59)
%61 = load i32*, i32** %8
%62 = load i8*, i8** %5
%63 = call i32 (i32*, i8*, ...) @fprintf(i32* %61, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.13, i64 0, i64 0), i8* %62)
%64 = load i8*, i8** %10
%65 = call i64 @strcmp(i8* %64, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%66 = icmp ne i64 %65, 0
br i1 %66, label %67, label %68
67: ; preds = %47
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), i8** %10
br label %47
68: ; preds = %47
br label %69
69: ; preds = %68
%70 = load i32*, i32** %8
%71 = load i8*, i8** %5
%72 = call i32 (i32*, i8*, ...) @fprintf(i32* %70, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.15, i64 0, i64 0), i8* %71)
%73 = load i32*, i32** %8
%74 = call i32 (i32*, i8*, ...) @fprintf(i32* %73, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.16, i64 0, i64 0))
%75 = load i32*, i32** %8
%76 = load i8*, i8** %5
%77 = call i32 (i32*, i8*, ...) @fprintf(i32* %75, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.17, i64 0, i64 0), i8* %76)
%78 = load i32*, i32** %8
%79 = call i32 (i32*, i8*, ...) @fprintf(i32* %78, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.18, i64 0, i64 0))
%80 = load i32*, i32** %8
%81 = call i32 (i32*, i8*, ...) @fprintf(i32* %80, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0))
%82 = load i32*, i32** %8
%83 = call i32 (i32*, i8*, ...) @fprintf(i32* %82, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0))
%84 = load i32*, i32** %8
%85 = load i8*, i8** %5
%86 = call i32 (i32*, i8*, ...) @fprintf(i32* %84, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.21, i64 0, i64 0), i8* %85)
%87 = load i32*, i32** %8
%88 = call i32 (i32*, i8*, ...) @fprintf(i32* %87, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i64 0, i64 0))
store i32 0, i32* %9
br label %89
89: ; preds = %101, %69
%90 = load i32, i32* %9
%91 = load i32, i32* %6
%92 = icmp slt i32 %90, %91
br i1 %92, label %93, label %104
93: ; preds = %89
%94 = load i32*, i32** %8
%95 = load i8**, i8*** %7
%96 = load i32, i32* %9
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i8*, i8** %95, i64 %97
%99 = load i8*, i8** %98
%100 = call i32 (i32*, i8*, ...) @fprintf(i32* %94, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.23, i64 0, i64 0), i8* %99)
br label %101
101: ; preds = %93
%102 = load i32, i32* %9
%103 = add nsw i32 %102, 1
store i32 %103, i32* %9
br label %89
104: ; preds = %89
%105 = load i32*, i32** %8
%106 = call i32 (i32*, i8*, ...) @fprintf(i32* %105, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0))
ret void
}

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