#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 vtkWrapPython_GenerateObjectType(FILE *fp, const char *module,
                                      const char *classname) {
  fprintf(fp,
          "static PyTypeObject Py%s_Type = {\n"
          "  PyVarObject_HEAD_INIT(&PyType_Type, 0)\n"
          "  \"%sPython.%s\", // tp_name\n"
          "  sizeof(PyVTKObject), // tp_basicsize\n"
          "  0, // tp_itemsize\n"
          "  PyVTKObject_Delete, // tp_dealloc\n"
          "  0, // tp_print\n"
          "  0, // tp_getattr\n"
          "  0, // tp_setattr\n"
          "  0, // tp_compare\n"
          "  PyVTKObject_Repr, // tp_repr\n",
          classname, module, classname);
  fprintf(fp, "  0, // tp_as_number\n"
              "  0, // tp_as_sequence\n"
              "  0, // tp_as_mapping\n"
              "  0, // tp_hash\n"
              "  0, // tp_call\n"
              "  PyVTKObject_String, // tp_str\n");
  fprintf(fp, "  PyObject_GenericGetAttr, // tp_getattro\n"
              "  PyObject_GenericSetAttr, // tp_setattro\n"
              "  &PyVTKObject_AsBuffer, // tp_as_buffer\n"
              "  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE,"
              " // tp_flags\n"
              "  0, // tp_doc\n"
              "  PyVTKObject_Traverse, // tp_traverse\n"
              "  0, // tp_clear\n"
              "  0, // tp_richcompare\n"
              "  offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset\n"
              "  0, // tp_iter\n"
              "  0, // tp_iternext\n"
              "  0, // tp_methods\n"
              "  0, // tp_members\n"
              "  PyVTKObject_GetSet, // tp_getset\n"
              "  0, // tp_base\n"
              "  0, // tp_dict\n"
              "  0, // tp_descr_get\n"
              "  0, // tp_descr_set\n"
              "  offsetof(PyVTKObject, vtk_dict), // tp_dictoffset\n"
              "  0, // tp_init\n"
              "  0, // tp_alloc\n"
              "  PyVTKObject_New, // tp_new\n"
              "  PyObject_GC_Del, // tp_free\n"
              "  0, // tp_is_gc\n");
  fprintf(fp, "  0, // tp_bases\n"
              "  0, // tp_mro\n"
              "  0, // tp_cache\n"
              "  0, // tp_subclasses\n"
              "  0, // tp_weaklist\n");
  fprintf(fp, "  VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED\n"
              "};\n"
              "\n");
}


x86 assembly (clang, -O0):
<vtkWrapPython_GenerateObjectType>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%r8
lea    0xec5(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xfe3(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x1054(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x12fe(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0x1348(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vtkWrapPython_GenerateObjectType>:
push   %rbx
mov    %rsi,%rcx
mov    %rdi,%rbx
lea    0xed2(%rip),%rsi
mov    %rdx,%r8
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xff1(%rip),%rdi
mov    $0x82,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0x105b(%rip),%rdi
mov    $0x2bb,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0x12fe(%rip),%rdi
mov    $0x5b,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0x1341(%rip),%rdi
mov    $0x2d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
@.str = [304 x i8] c"static PyTypeObject Py%s_Type = {\0A PyVarObject_HEAD_INIT(&PyType_Type, 0)\0A \22%sPython.%s\22, // tp_name\0A sizeof(PyVTKObject), // tp_basicsize\0A 0, // tp_itemsize\0A PyVTKObject_Delete, // tp_dealloc\0A 0, // tp_print\0A 0, // tp_getattr\0A 0, // tp_setattr\0A 0, // tp_compare\0A PyVTKObject_Repr, // tp_repr\0A\00"
@.str.1 = [131 x i8] c" 0, // tp_as_number\0A 0, // tp_as_sequence\0A 0, // tp_as_mapping\0A 0, // tp_hash\0A 0, // tp_call\0A PyVTKObject_String, // tp_str\0A\00"
@.str.2 = [700 x i8] c" PyObject_GenericGetAttr, // tp_getattro\0A PyObject_GenericSetAttr, // tp_setattro\0A &PyVTKObject_AsBuffer, // tp_as_buffer\0A Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags\0A 0, // tp_doc\0A PyVTKObject_Traverse, // tp_traverse\0A 0, // tp_clear\0A 0, // tp_richcompare\0A offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset\0A 0, // tp_iter\0A 0, // tp_iternext\0A 0, // tp_methods\0A 0, // tp_members\0A PyVTKObject_GetSet, // tp_getset\0A 0, // tp_base\0A 0, // tp_dict\0A 0, // tp_descr_get\0A 0, // tp_descr_set\0A offsetof(PyVTKObject, vtk_dict), // tp_dictoffset\0A 0, // tp_init\0A 0, // tp_alloc\0A PyVTKObject_New, // tp_new\0A PyObject_GC_Del, // tp_free\0A 0, // tp_is_gc\0A\00"
@.str.3 = [92 x i8] c" 0, // tp_bases\0A 0, // tp_mro\0A 0, // tp_cache\0A 0, // tp_subclasses\0A 0, // tp_weaklist\0A\00"
@.str.4 = [46 x i8] c" VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED\0A};\0A\0A\00"
define void @vtkWrapPython_GenerateObjectType(i32* %0, i8* %1, i8* %2) {
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca i8*
store i32* %0, i32** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i32*, i32** %4
%8 = load i8*, i8** %6
%9 = load i8*, i8** %5
%10 = load i8*, i8** %6
%11 = call i32 (i32*, i8*, ...) @fprintf(i32* %7, i8* getelementptr inbounds ([304 x i8], [304 x i8]* @.str, i64 0, i64 0), i8* %8, i8* %9, i8* %10)
%12 = load i32*, i32** %4
%13 = call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0))
%14 = load i32*, i32** %4
%15 = call i32 (i32*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([700 x i8], [700 x i8]* @.str.2, i64 0, i64 0))
%16 = load i32*, i32** %4
%17 = call i32 (i32*, i8*, ...) @fprintf(i32* %16, i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.3, i64 0, i64 0))
%18 = load i32*, i32** %4
%19 = call i32 (i32*, i8*, ...) @fprintf(i32* %18, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [304 x i8] c"static PyTypeObject Py%s_Type = {\0A PyVarObject_HEAD_INIT(&PyType_Type, 0)\0A \22%sPython.%s\22, // tp_name\0A sizeof(PyVTKObject), // tp_basicsize\0A 0, // tp_itemsize\0A PyVTKObject_Delete, // tp_dealloc\0A 0, // tp_print\0A 0, // tp_getattr\0A 0, // tp_setattr\0A 0, // tp_compare\0A PyVTKObject_Repr, // tp_repr\0A\00"
@.str.1 = [131 x i8] c" 0, // tp_as_number\0A 0, // tp_as_sequence\0A 0, // tp_as_mapping\0A 0, // tp_hash\0A 0, // tp_call\0A PyVTKObject_String, // tp_str\0A\00"
@.str.2 = [700 x i8] c" PyObject_GenericGetAttr, // tp_getattro\0A PyObject_GenericSetAttr, // tp_setattro\0A &PyVTKObject_AsBuffer, // tp_as_buffer\0A Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC|Py_TPFLAGS_BASETYPE, // tp_flags\0A 0, // tp_doc\0A PyVTKObject_Traverse, // tp_traverse\0A 0, // tp_clear\0A 0, // tp_richcompare\0A offsetof(PyVTKObject, vtk_weakreflist), // tp_weaklistoffset\0A 0, // tp_iter\0A 0, // tp_iternext\0A 0, // tp_methods\0A 0, // tp_members\0A PyVTKObject_GetSet, // tp_getset\0A 0, // tp_base\0A 0, // tp_dict\0A 0, // tp_descr_get\0A 0, // tp_descr_set\0A offsetof(PyVTKObject, vtk_dict), // tp_dictoffset\0A 0, // tp_init\0A 0, // tp_alloc\0A PyVTKObject_New, // tp_new\0A PyObject_GC_Del, // tp_free\0A 0, // tp_is_gc\0A\00"
@.str.3 = [92 x i8] c" 0, // tp_bases\0A 0, // tp_mro\0A 0, // tp_cache\0A 0, // tp_subclasses\0A 0, // tp_weaklist\0A\00"
@.str.4 = [46 x i8] c" VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED\0A};\0A\0A\00"
define void @vtkWrapPython_GenerateObjectType(i32* nocapture %0, i8* %1, i8* %2) {
%4 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([304 x i8], [304 x i8]* @.str, i64 0, i64 0), i8* %2, i8* %1, i8* %2)
%5 = tail call i64 @fwrite(i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.1, i64 0, i64 0), i64 130, i64 1, i32* %0)
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([700 x i8], [700 x i8]* @.str.2, i64 0, i64 0), i64 699, i64 1, i32* %0)
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.3, i64 0, i64 0), i64 91, i64 1, i32* %0)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.4, i64 0, i64 0), i64 45, i64 1, i32* %0)
ret void
}