#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 CreateImplFile(const char *libName, int numFiles, char **files,
                    FILE *fout) {
  int i;
  const char *dllexp = "VTK_ABI_EXPORT ";
  fprintf(fout, "// Generated by vtkWrapPythonInit in VTK/Wrapping\n");
  fprintf(fout, "#include \"vtkPython.h\"\n");
  fprintf(fout, "#include \"vtkPythonCompatibility.h\"\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 *); }\n",
            dllexp, files[i]);
  }
  fprintf(fout, "\nstatic PyMethodDef Py%s_Methods[] = {\n", libName);
  fprintf(fout, "{NULL, NULL, 0, NULL}};\n\n");
  fprintf(fout, "#ifdef VTK_PY3K\n");
  fprintf(fout, "static PyModuleDef Py%s_Module = {\n", libName);
  fprintf(fout, "  PyModuleDef_HEAD_INIT,\n");
  fprintf(fout, "  \"%s\", // m_name\n", libName);
  fprintf(fout, "  NULL, // m_doc\n");
  fprintf(fout, "  0, // m_size\n");
  fprintf(fout, "  Py%s_Methods, //m_methods\n", libName);
  fprintf(fout, "  NULL, // m_reload\n");
  fprintf(fout, "  NULL, // m_traverse\n");
  fprintf(fout, "  NULL, // m_clear\n");
  fprintf(fout, "  NULL  // m_free\n");
  fprintf(fout, "};\n");
  fprintf(fout, "#endif\n\n");
  fprintf(fout, "extern  \"C\" {%sPyObject *real_init%s(const char *); }\n\n",
          dllexp, libName);
  fprintf(fout, "PyObject *real_init%s(const char *)\n{\n", libName);
  fprintf(fout, "#ifdef VTK_PY3K\n");
  fprintf(fout, "  PyObject *m = PyModule_Create(&Py%s_Module);\n", libName);
  fprintf(fout, "#else\n\n");
  fprintf(fout,
          "  PyObject *m = Py_InitModule(\"%s\",\n"
          "                              Py%s_Methods);\n",
          libName, libName);
  fprintf(fout, "#endif\n\n");
  fprintf(fout, "  PyObject *d = PyModule_GetDict(m);\n");
  fprintf(fout, "  if (!d)\n");
  fprintf(fout, "    {\n");
  fprintf(fout, "    Py_FatalError(\"can't get dictionary for module %s\");\n",
          libName);
  fprintf(fout, "    }\n");
  for (i = 0; i < numFiles; i++) {
    fprintf(fout, "  PyVTKAddFile_%s(d);\n", files[i]);
  }
  fprintf(fout, "\n");
  fprintf(fout, "  return m;\n");
  fprintf(fout, "}\n\n");
}


x86 assembly (clang, -O0):
<CreateImplFile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%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)
mov    -0x20(%rbp),%rdi
lea    0xed3(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xef4(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xefa(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xf0d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xf1b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xf1e(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11e1 <CreateImplFile+0xd1>
mov    -0x20(%rbp),%rdi
mov    -0x30(%rbp),%rdx
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rcx
lea    0xf93(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11a5 <CreateImplFile+0x95>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xfa8(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xfbe(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xfc6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xfc1(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xfd3(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xfd7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xfd8(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xfd8(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xfd2(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xfdd(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xfe0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xfe5(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xfe7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xfe8(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xfda(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x30(%rbp),%rdx
mov    -0x8(%rbp),%rcx
lea    0xfc9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xfeb(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xea0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xfea(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x1008(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    -0x8(%rbp),%rcx
lea    0xff6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xf44(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x1024(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x1038(%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    -0x8(%rbp),%rdx
lea    0x1022(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x104a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1432 <CreateImplFile+0x322>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0x1020(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    13fa <CreateImplFile+0x2ea>
mov    -0x20(%rbp),%rdi
lea    0xd9b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0x1005(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xeae(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CreateImplFile>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rcx,%r15
mov    %rdx,%r14
mov    %esi,%ebx
mov    %rdi,0x10(%rsp)
lea    0xebe(%rip),%rdi
mov    $0x32,%esi
mov    $0x1,%edx
call   1050 <fwrite@plt>
lea    0xedb(%rip),%rdi
mov    $0x17,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xeda(%rip),%rdi
mov    $0x24,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xee6(%rip),%rdi
mov    $0x1f,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xeed(%rip),%rdi
mov    $0x14,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xee9(%rip),%rdi
mov    $0xa9,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
mov    %ebx,%r13d
mov    %ebx,0xc(%rsp)
test   %ebx,%ebx
jle    121d <CreateImplFile+0xed>
lea    0xf6f(%rip),%rbp
lea    0xe09(%rip),%rbx
xor    %r12d,%r12d
nopw   0x0(%rax,%rax,1)
mov    (%r14,%r12,8),%rcx
mov    %r15,%rdi
mov    %rbp,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%r12
cmp    %r12,%r13
jne    1200 <CreateImplFile+0xd0>
lea    0xf74(%rip),%rsi
mov    %r15,%rdi
mov    0x10(%rsp),%rbp
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xf83(%rip),%rdi
mov    $0x19,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xf84(%rip),%r12
mov    $0x10,%esi
mov    $0x1,%edx
mov    %r12,%rdi
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xf79(%rip),%rsi
mov    %r15,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xf89(%rip),%rdi
mov    $0x19,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xf8a(%rip),%rsi
mov    %r15,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xf89(%rip),%rdi
mov    $0x11,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xf82(%rip),%rdi
mov    $0xf,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xf79(%rip),%rsi
mov    %r15,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xf82(%rip),%rdi
mov    $0x14,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xf7e(%rip),%rdi
mov    $0x16,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xf7c(%rip),%rdi
mov    $0x13,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xf77(%rip),%rdi
mov    $0x12,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xf71(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xf5c(%rip),%rbx
mov    $0x8,%esi
mov    $0x1,%edx
mov    %rbx,%rdi
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xf49(%rip),%rsi
lea    0xc67(%rip),%rdx
mov    %r15,%rdi
mov    %rbp,%rcx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xf66(%rip),%rsi
mov    %r15,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x10,%esi
mov    $0x1,%edx
mov    %r12,%rdi
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xf64(%rip),%rsi
mov    %r15,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xf80(%rip),%rdi
mov    $0x7,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xf6f(%rip),%rsi
mov    %r15,%rdi
mov    %rbp,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x8,%esi
mov    $0x1,%edx
mov    %rbx,%rdi
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xf95(%rip),%rdi
mov    $0x25,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xfa2(%rip),%rdi
mov    $0xa,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xf94(%rip),%rdi
mov    $0x6,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xf82(%rip),%rsi
mov    %r15,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xfa8(%rip),%rdi
mov    $0x6,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
cmpl   $0x0,0xc(%rsp)
jle    14ca <CreateImplFile+0x39a>
lea    0xf8f(%rip),%rbx
xor    %ebp,%ebp
mov    (%r14,%rbp,8),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%rbp
cmp    %rbp,%r13
jne    14b0 <CreateImplFile+0x380>
mov    $0xa,%edi
mov    %r15,%rsi
call   1030 <fputc@plt>
lea    0xf76(%rip),%rdi
mov    $0xc,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xe18(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %r15,%rcx
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <fwrite@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"VTK_ABI_EXPORT \00"
@.str.1 = [51 x i8] c"// Generated by vtkWrapPythonInit in VTK/Wrapping\0A\00"
@.str.2 = [24 x i8] c"#include \22vtkPython.h\22\0A\00"
@.str.3 = [37 x i8] c"#include \22vtkPythonCompatibility.h\22\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 = [170 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 = [57 x i8] c"extern \22C\22 {%sPyObject *PyVTKAddFile_%s(PyObject *); }\0A\00"
@.str.8 = [40 x i8] c"\0Astatic PyMethodDef Py%s_Methods[] = {\0A\00"
@.str.9 = [26 x i8] c"{NULL, NULL, 0, NULL}};\0A\0A\00"
@.str.10 = [17 x i8] c"#ifdef VTK_PY3K\0A\00"
@.str.11 = [36 x i8] c"static PyModuleDef Py%s_Module = {\0A\00"
@.str.12 = [26 x i8] c" PyModuleDef_HEAD_INIT,\0A\00"
@.str.13 = [19 x i8] c" \22%s\22, // m_name\0A\00"
@.str.14 = [18 x i8] c" NULL, // m_doc\0A\00"
@.str.15 = [16 x i8] c" 0, // m_size\0A\00"
@.str.16 = [29 x i8] c" Py%s_Methods, //m_methods\0A\00"
@.str.17 = [21 x i8] c" NULL, // m_reload\0A\00"
@.str.18 = [23 x i8] c" NULL, // m_traverse\0A\00"
@.str.19 = [20 x i8] c" NULL, // m_clear\0A\00"
@.str.20 = [19 x i8] c" NULL // m_free\0A\00"
@.str.21 = [4 x i8] c"};\0A\00"
@.str.22 = [9 x i8] c"#endif\0A\0A\00"
@.str.23 = [56 x i8] c"extern \22C\22 {%sPyObject *real_init%s(const char *); }\0A\0A\00"
@.str.24 = [39 x i8] c"PyObject *real_init%s(const char *)\0A{\0A\00"
@.str.25 = [48 x i8] c" PyObject *m = PyModule_Create(&Py%s_Module);\0A\00"
@.str.26 = [8 x i8] c"#else\0A\0A\00"
@.str.27 = [82 x i8] c" PyObject *m = Py_InitModule(\22%s\22,\0A Py%s_Methods);\0A\00"
@.str.28 = [38 x i8] c" PyObject *d = PyModule_GetDict(m);\0A\00"
@.str.29 = [11 x i8] c" if (!d)\0A\00"
@.str.30 = [7 x i8] c" {\0A\00"
@.str.31 = [58 x i8] c" Py_FatalError(\22can't get dictionary for module %s\22);\0A\00"
@.str.32 = [7 x i8] c" }\0A\00"
@.str.33 = [23 x i8] c" PyVTKAddFile_%s(d);\0A\00"
@.str.34 = [2 x i8] c"\0A\00"
@.str.35 = [13 x i8] c" return m;\0A\00"
@.str.36 = [4 x i8] c"}\0A\0A\00"
define void @CreateImplFile(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*
store i8* %0, i8** %5
store i32 %1, i32* %6
store i8** %2, i8*** %7
store i32* %3, i32** %8
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8** %10
%11 = load i32*, i32** %8
%12 = call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0))
%13 = load i32*, i32** %8
%14 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%15 = load i32*, i32** %8
%16 = call i32 (i32*, i8*, ...) @fprintf(i32* %15, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%17 = load i32*, i32** %8
%18 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%19 = load i32*, i32** %8
%20 = call i32 (i32*, i8*, ...) @fprintf(i32* %19, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%21 = load i32*, i32** %8
%22 = call i32 (i32*, i8*, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %9
br label %23
23: ; preds = %36, %4
%24 = load i32, i32* %9
%25 = load i32, i32* %6
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %39
27: ; preds = %23
%28 = load i32*, i32** %8
%29 = load i8*, i8** %10
%30 = load i8**, i8*** %7
%31 = load i32, i32* %9
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8*, i8** %30, i64 %32
%34 = load i8*, i8** %33
%35 = call i32 (i32*, i8*, ...) @fprintf(i32* %28, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.7, i64 0, i64 0), i8* %29, i8* %34)
br label %36
36: ; preds = %27
%37 = load i32, i32* %9
%38 = add nsw i32 %37, 1
store i32 %38, i32* %9
br label %23
39: ; preds = %23
%40 = load i32*, i32** %8
%41 = load i8*, i8** %5
%42 = call i32 (i32*, i8*, ...) @fprintf(i32* %40, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0), i8* %41)
%43 = load i32*, i32** %8
%44 = call i32 (i32*, i8*, ...) @fprintf(i32* %43, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0))
%45 = load i32*, i32** %8
%46 = call i32 (i32*, i8*, ...) @fprintf(i32* %45, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0))
%47 = load i32*, i32** %8
%48 = load i8*, i8** %5
%49 = call i32 (i32*, i8*, ...) @fprintf(i32* %47, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0), i8* %48)
%50 = load i32*, i32** %8
%51 = call i32 (i32*, i8*, ...) @fprintf(i32* %50, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0))
%52 = load i32*, i32** %8
%53 = load i8*, i8** %5
%54 = call i32 (i32*, i8*, ...) @fprintf(i32* %52, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0), i8* %53)
%55 = load i32*, i32** %8
%56 = call i32 (i32*, i8*, ...) @fprintf(i32* %55, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0))
%57 = load i32*, i32** %8
%58 = call i32 (i32*, i8*, ...) @fprintf(i32* %57, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.15, i64 0, i64 0))
%59 = load i32*, i32** %8
%60 = load i8*, i8** %5
%61 = call i32 (i32*, i8*, ...) @fprintf(i32* %59, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.16, i64 0, i64 0), i8* %60)
%62 = load i32*, i32** %8
%63 = call i32 (i32*, i8*, ...) @fprintf(i32* %62, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0))
%64 = load i32*, i32** %8
%65 = call i32 (i32*, i8*, ...) @fprintf(i32* %64, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.18, i64 0, i64 0))
%66 = load i32*, i32** %8
%67 = call i32 (i32*, i8*, ...) @fprintf(i32* %66, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.19, i64 0, i64 0))
%68 = load i32*, i32** %8
%69 = call i32 (i32*, i8*, ...) @fprintf(i32* %68, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.20, i64 0, i64 0))
%70 = load i32*, i32** %8
%71 = call i32 (i32*, i8*, ...) @fprintf(i32* %70, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0))
%72 = load i32*, i32** %8
%73 = call i32 (i32*, i8*, ...) @fprintf(i32* %72, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.22, i64 0, i64 0))
%74 = load i32*, i32** %8
%75 = load i8*, i8** %10
%76 = load i8*, i8** %5
%77 = call i32 (i32*, i8*, ...) @fprintf(i32* %74, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.23, i64 0, i64 0), i8* %75, i8* %76)
%78 = load i32*, i32** %8
%79 = load i8*, i8** %5
%80 = call i32 (i32*, i8*, ...) @fprintf(i32* %78, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.24, i64 0, i64 0), i8* %79)
%81 = load i32*, i32** %8
%82 = call i32 (i32*, i8*, ...) @fprintf(i32* %81, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0))
%83 = load i32*, i32** %8
%84 = load i8*, i8** %5
%85 = call i32 (i32*, i8*, ...) @fprintf(i32* %83, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.25, i64 0, i64 0), i8* %84)
%86 = load i32*, i32** %8
%87 = call i32 (i32*, i8*, ...) @fprintf(i32* %86, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.26, i64 0, i64 0))
%88 = load i32*, i32** %8
%89 = load i8*, i8** %5
%90 = load i8*, i8** %5
%91 = call i32 (i32*, i8*, ...) @fprintf(i32* %88, i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.27, i64 0, i64 0), i8* %89, i8* %90)
%92 = load i32*, i32** %8
%93 = call i32 (i32*, i8*, ...) @fprintf(i32* %92, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.22, i64 0, i64 0))
%94 = load i32*, i32** %8
%95 = call i32 (i32*, i8*, ...) @fprintf(i32* %94, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.28, i64 0, i64 0))
%96 = load i32*, i32** %8
%97 = call i32 (i32*, i8*, ...) @fprintf(i32* %96, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.29, i64 0, i64 0))
%98 = load i32*, i32** %8
%99 = call i32 (i32*, i8*, ...) @fprintf(i32* %98, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.30, i64 0, i64 0))
%100 = load i32*, i32** %8
%101 = load i8*, i8** %5
%102 = call i32 (i32*, i8*, ...) @fprintf(i32* %100, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.31, i64 0, i64 0), i8* %101)
%103 = load i32*, i32** %8
%104 = call i32 (i32*, i8*, ...) @fprintf(i32* %103, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.32, i64 0, i64 0))
store i32 0, i32* %9
br label %105
105: ; preds = %117, %39
%106 = load i32, i32* %9
%107 = load i32, i32* %6
%108 = icmp slt i32 %106, %107
br i1 %108, label %109, label %120
109: ; preds = %105
%110 = load i32*, i32** %8
%111 = load i8**, i8*** %7
%112 = load i32, i32* %9
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i8*, i8** %111, i64 %113
%115 = load i8*, i8** %114
%116 = call i32 (i32*, i8*, ...) @fprintf(i32* %110, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.33, i64 0, i64 0), i8* %115)
br label %117
117: ; preds = %109
%118 = load i32, i32* %9
%119 = add nsw i32 %118, 1
store i32 %119, i32* %9
br label %105
120: ; preds = %105
%121 = load i32*, i32** %8
%122 = call i32 (i32*, i8*, ...) @fprintf(i32* %121, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.34, i64 0, i64 0))
%123 = load i32*, i32** %8
%124 = call i32 (i32*, i8*, ...) @fprintf(i32* %123, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.35, i64 0, i64 0))
%125 = load i32*, i32** %8
%126 = call i32 (i32*, i8*, ...) @fprintf(i32* %125, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.36, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"VTK_ABI_EXPORT \00"
@.str.1 = [51 x i8] c"// Generated by vtkWrapPythonInit in VTK/Wrapping\0A\00"
@.str.2 = [24 x i8] c"#include \22vtkPython.h\22\0A\00"
@.str.3 = [37 x i8] c"#include \22vtkPythonCompatibility.h\22\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 = [170 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 = [57 x i8] c"extern \22C\22 {%sPyObject *PyVTKAddFile_%s(PyObject *); }\0A\00"
@.str.8 = [40 x i8] c"\0Astatic PyMethodDef Py%s_Methods[] = {\0A\00"
@.str.9 = [26 x i8] c"{NULL, NULL, 0, NULL}};\0A\0A\00"
@.str.10 = [17 x i8] c"#ifdef VTK_PY3K\0A\00"
@.str.11 = [36 x i8] c"static PyModuleDef Py%s_Module = {\0A\00"
@.str.12 = [26 x i8] c" PyModuleDef_HEAD_INIT,\0A\00"
@.str.13 = [19 x i8] c" \22%s\22, // m_name\0A\00"
@.str.14 = [18 x i8] c" NULL, // m_doc\0A\00"
@.str.15 = [16 x i8] c" 0, // m_size\0A\00"
@.str.16 = [29 x i8] c" Py%s_Methods, //m_methods\0A\00"
@.str.17 = [21 x i8] c" NULL, // m_reload\0A\00"
@.str.18 = [23 x i8] c" NULL, // m_traverse\0A\00"
@.str.19 = [20 x i8] c" NULL, // m_clear\0A\00"
@.str.20 = [19 x i8] c" NULL // m_free\0A\00"
@.str.21 = [4 x i8] c"};\0A\00"
@.str.22 = [9 x i8] c"#endif\0A\0A\00"
@.str.23 = [56 x i8] c"extern \22C\22 {%sPyObject *real_init%s(const char *); }\0A\0A\00"
@.str.24 = [39 x i8] c"PyObject *real_init%s(const char *)\0A{\0A\00"
@.str.25 = [48 x i8] c" PyObject *m = PyModule_Create(&Py%s_Module);\0A\00"
@.str.26 = [8 x i8] c"#else\0A\0A\00"
@.str.27 = [82 x i8] c" PyObject *m = Py_InitModule(\22%s\22,\0A Py%s_Methods);\0A\00"
@.str.28 = [38 x i8] c" PyObject *d = PyModule_GetDict(m);\0A\00"
@.str.29 = [11 x i8] c" if (!d)\0A\00"
@.str.30 = [7 x i8] c" {\0A\00"
@.str.31 = [58 x i8] c" Py_FatalError(\22can't get dictionary for module %s\22);\0A\00"
@.str.32 = [7 x i8] c" }\0A\00"
@.str.33 = [23 x i8] c" PyVTKAddFile_%s(d);\0A\00"
@.str.35 = [13 x i8] c" return m;\0A\00"
@.str.36 = [4 x i8] c"}\0A\0A\00"
define void @CreateImplFile(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 ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i64 23, i64 1, i32* %3)
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i64 36, i64 1, i32* %3)
%8 = 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)
%9 = 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)
%10 = tail call i64 @fwrite(i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.6, i64 0, i64 0), i64 169, i64 1, i32* %3)
%11 = icmp sgt i32 %1, 0
br i1 %11, label %12, label %21
12: ; preds = %4
%13 = zext i32 %1 to i64
br label %14
14: ; preds = %12, %14
%15 = phi i64 [ 0, %12 ], [ %19, %14 ]
%16 = getelementptr inbounds i8*, i8** %2, i64 %15
%17 = load i8*, i8** %16
%18 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %17)
%19 = add nuw nsw i64 %15, 1
%20 = icmp eq i64 %19, %13
br i1 %20, label %21, label %14
21: ; preds = %14, %4
%22 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0), i8* %0)
%23 = 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)
%24 = tail call i64 @fwrite(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i64 16, i64 1, i32* %3)
%25 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0), i8* %0)
%26 = tail call i64 @fwrite(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0), i64 25, i64 1, i32* %3)
%27 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0), i8* %0)
%28 = tail call i64 @fwrite(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0), i64 17, i64 1, i32* %3)
%29 = tail call i64 @fwrite(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.15, i64 0, i64 0), i64 15, i64 1, i32* %3)
%30 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.16, i64 0, i64 0), i8* %0)
%31 = tail call i64 @fwrite(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0), i64 20, i64 1, i32* %3)
%32 = tail call i64 @fwrite(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.18, i64 0, i64 0), i64 22, i64 1, i32* %3)
%33 = tail call i64 @fwrite(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.19, i64 0, i64 0), i64 19, i64 1, i32* %3)
%34 = tail call i64 @fwrite(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.20, i64 0, i64 0), i64 18, i64 1, i32* %3)
%35 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0), i64 3, i64 1, i32* %3)
%36 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.22, i64 0, i64 0), i64 8, i64 1, i32* %3)
%37 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %0)
%38 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.24, i64 0, i64 0), i8* %0)
%39 = tail call i64 @fwrite(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i64 16, i64 1, i32* %3)
%40 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.25, i64 0, i64 0), i8* %0)
%41 = tail call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.26, i64 0, i64 0), i64 7, i64 1, i32* %3)
%42 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.27, i64 0, i64 0), i8* %0, i8* %0)
%43 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.22, i64 0, i64 0), i64 8, i64 1, i32* %3)
%44 = tail call i64 @fwrite(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.28, i64 0, i64 0), i64 37, i64 1, i32* %3)
%45 = tail call i64 @fwrite(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.29, i64 0, i64 0), i64 10, i64 1, i32* %3)
%46 = tail call i64 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.30, i64 0, i64 0), i64 6, i64 1, i32* %3)
%47 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.31, i64 0, i64 0), i8* %0)
%48 = tail call i64 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.32, i64 0, i64 0), i64 6, i64 1, i32* %3)
br i1 %11, label %49, label %58
49: ; preds = %21
%50 = zext i32 %1 to i64
br label %51
51: ; preds = %49, %51
%52 = phi i64 [ 0, %49 ], [ %56, %51 ]
%53 = getelementptr inbounds i8*, i8** %2, i64 %52
%54 = load i8*, i8** %53
%55 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.33, i64 0, i64 0), i8* %54)
%56 = add nuw nsw i64 %52, 1
%57 = icmp eq i64 %56, %50
br i1 %57, label %58, label %51
58: ; preds = %51, %21
%59 = tail call i32 @fputc(i32 10, i32* %3)
%60 = tail call i64 @fwrite(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.35, i64 0, i64 0), i64 12, i64 1, i32* %3)
%61 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.36, i64 0, i64 0), i64 3, i64 1, i32* %3)
ret void
}