#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 */

/* Variables and functions */
char *OC_mkConstVarText(char *, char *, char *, char *, char *, char *, char *,
                        char *, char *, char *, char *, char *, char *);
char *OC_mkOverLoadConstVar(char *name, char *fixity, char *prec, char *tyskel,
                            char *varName) {
  char *constVar;
  constVar = OC_mkConstVarText(
      name, fixity, prec, "ref true", tyskel, "ref 0",
      "ref(Some(Array.make 0 true))", "ref None", "ref None",
      "ref(Absyn.PervasiveConstant(false))", varName, "0", name);
  return constVar;
}


x86 assembly (clang, -O0):
<OC_mkOverLoadConstVar>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x68,%rsp
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
mov    %rcx,-0x38(%rbp)
mov    %r8,-0x40(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%r8
mov    -0x40(%rbp),%r11
mov    -0x20(%rbp),%rax
lea    0xeb0(%rip),%rcx
lea    0xeb2(%rip),%r9
lea    0xeb1(%rip),%r15
lea    0xec7(%rip),%r14
lea    0xec9(%rip),%rbx
lea    0xe9a(%rip),%r10
mov    %r15,(%rsp)
mov    %r14,0x8(%rsp)
mov    %r14,0x10(%rsp)
mov    %rbx,0x18(%rsp)
mov    %r11,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
call   1030 <OC_mkConstVarText@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
add    $0x68,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<OC_mkOverLoadConstVar>:
push   %r14
push   %rbx
push   %rax
mov    %r8,%rax
mov    %rcx,%r8
sub    $0x8,%rsp
lea    0xee8(%rip),%r10
lea    0xf09(%rip),%r11
lea    0xef9(%rip),%rbx
lea    0xed5(%rip),%r14
lea    0xebf(%rip),%rcx
lea    0xec1(%rip),%r9
push   %rdi
push   %r10
push   %rax
push   %r11
push   %rbx
push   %rbx
push   %r14
call   1030 <OC_mkConstVarText@plt>
add    $0x48,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [9 x i8] c"ref true\00"
@.str.1 = [6 x i8] c"ref 0\00"
@.str.2 = [29 x i8] c"ref(Some(Array.make 0 true))\00"
@.str.3 = [9 x i8] c"ref None\00"
@.str.4 = [36 x i8] c"ref(Absyn.PervasiveConstant(false))\00"
@.str.5 = [2 x i8] c"0\00"
define i8* @OC_mkOverLoadConstVar(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
store i8* %0, i8** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i8* %3, i8** %9
store i8* %4, i8** %10
%12 = load i8*, i8** %6
%13 = load i8*, i8** %7
%14 = load i8*, i8** %8
%15 = load i8*, i8** %9
%16 = load i8*, i8** %10
%17 = load i8*, i8** %6
%18 = call i8* @OC_mkConstVarText(i8* %12, i8* %13, i8* %14, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* %15, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8* %17)
store i8* %18, i8** %11
%19 = load i8*, i8** %11
ret i8* %19
}

LLVM IR (-O2):
@.str = [9 x i8] c"ref true\00"
@.str.1 = [6 x i8] c"ref 0\00"
@.str.2 = [29 x i8] c"ref(Some(Array.make 0 true))\00"
@.str.3 = [9 x i8] c"ref None\00"
@.str.4 = [36 x i8] c"ref(Absyn.PervasiveConstant(false))\00"
@.str.5 = [2 x i8] c"0\00"
define i8* @OC_mkOverLoadConstVar(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4) {
%6 = tail call i8* @OC_mkConstVarText(i8* %0, i8* %1, i8* %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8* %0)
ret i8* %6
}