#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_mkTabDec(char *, char *);
char *UTIL_mallocStr(size_t);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
char *OC_mkFixedMLI() {
  char *kindDec = OC_mkTabDec("pervasiveKinds", "akind");
  char *constDec = OC_mkTabDec("pervasiveConstants", "aconstant");
  char *tyabbrDec = OC_mkTabDec("pervasiveTypeAbbrevs", "atypeabbrev");
  size_t length =
      strlen(kindDec) + strlen(constDec) + strlen(tyabbrDec) +
      strlen("val implicationTerm : Absyn.aterm\nval andTerm : Absyn.aterm\n") +
      strlen("val isPerv : Absyn.aconstant -> bool                             "
             "             \nval regClobberingPerv : Absyn.aconstant -> bool   "
             "                             \nval backtrackablePerv : "
             "Absyn.aconstant -> bool\n") +
      10;
  char *decs = UTIL_mallocStr(length + 1);
  strcpy(decs, kindDec);
  free(kindDec);
  strcat(decs, constDec);
  free(constDec);
  strcat(decs, tyabbrDec);
  free(tyabbrDec);
  strcat(decs, "\n");
  strcat(decs,
         "val implicationTerm : Absyn.aterm\nval andTerm : Absyn.aterm\n");
  strcat(decs, "\n");
  strcat(
      decs,
      "val isPerv : Absyn.aconstant -> bool                                    "
      "      \nval regClobberingPerv : Absyn.aconstant -> bool                 "
      "               \nval backtrackablePerv : Absyn.aconstant -> bool\n");
  strcat(decs, "\n");
  return decs;
}


x86 assembly (clang, -O0):
<OC_mkFixedMLI>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
lea    0xe91(%rip),%rdi
lea    0xe99(%rip),%rsi
call   1060 <OC_mkTabDec@plt>
mov    %rax,-0x8(%rbp)
lea    0xe8f(%rip),%rdi
lea    0xe9b(%rip),%rsi
call   1060 <OC_mkTabDec@plt>
mov    %rax,-0x10(%rbp)
lea    0xe95(%rip),%rdi
lea    0xea3(%rip),%rsi
call   1060 <OC_mkTabDec@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0x38(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x34(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0x34(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x30(%rbp)
lea    0xe6d(%rip),%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x2c(%rbp)
lea    0xe94(%rip),%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0x2c(%rbp),%eax
add    %ecx,%eax
add    $0xa,%eax
cltq
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
add    $0x1,%rdi
call   1070 <UTIL_mallocStr@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1080 <strcat@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1080 <strcat@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
lea    0xeef(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x28(%rbp),%rdi
lea    0xdd4(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x28(%rbp),%rdi
lea    0xecf(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x28(%rbp),%rdi
lea    0xdf1(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x28(%rbp),%rdi
lea    0xeaf(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x28(%rbp),%rax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<OC_mkFixedMLI>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xe8e(%rip),%rdi
lea    0xe96(%rip),%rsi
call   1060 <OC_mkTabDec@plt>
mov    %rax,%r12
lea    0xe8d(%rip),%rdi
lea    0xe99(%rip),%rsi
call   1060 <OC_mkTabDec@plt>
mov    %rax,%r15
lea    0xe94(%rip),%rdi
lea    0xea2(%rip),%rsi
call   1060 <OC_mkTabDec@plt>
mov    %rax,%r14
mov    %r12,%rdi
call   1050 <strlen@plt>
mov    %eax,%ebp
mov    %r15,%rdi
call   1050 <strlen@plt>
mov    %eax,%ebx
add    %ebp,%ebx
mov    %r14,%rdi
call   1050 <strlen@plt>
mov    %eax,%ebp
add    %ebx,%ebp
lea    0xe7d(%rip),%r13
mov    %r13,%rdi
call   1050 <strlen@plt>
mov    %eax,%ebx
add    %ebp,%ebx
lea    0xea7(%rip),%rdi
call   1050 <strlen@plt>
add    %ebx,%eax
movslq %eax,%rdi
add    $0xb,%rdi
call   1070 <UTIL_mallocStr@plt>
mov    %rax,%rbp
mov    %rax,%rdi
mov    %r12,%rsi
call   1040 <strcpy@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
call   1080 <strcat@plt>
mov    %r14,%rdi
call   1030 <free@plt>
lea    0xf1f(%rip),%rbx
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1080 <strcat@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
call   1080 <strcat@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1080 <strcat@plt>
mov    %rbp,%rdi
lea    0xe26(%rip),%rsi
call   1080 <strcat@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1080 <strcat@plt>
mov    %rbp,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [15 x i8] c"pervasiveKinds\00"
@.str.1 = [6 x i8] c"akind\00"
@.str.2 = [19 x i8] c"pervasiveConstants\00"
@.str.3 = [10 x i8] c"aconstant\00"
@.str.4 = [21 x i8] c"pervasiveTypeAbbrevs\00"
@.str.5 = [12 x i8] c"atypeabbrev\00"
@.str.6 = [61 x i8] c"val implicationTerm : Absyn.aterm\0Aval andTerm : Absyn.aterm\0A\00"
@.str.7 = [208 x i8] c"val isPerv : Absyn.aconstant -> bool \0Aval regClobberingPerv : Absyn.aconstant -> bool \0Aval backtrackablePerv : Absyn.aconstant -> bool\0A\00"
@.str.8 = [2 x i8] c"\0A\00"
define i8* @OC_mkFixedMLI() {
%1 = alloca i8*
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i8*
%6 = call i8* @OC_mkTabDec(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
store i8* %6, i8** %1
%7 = call i8* @OC_mkTabDec(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
store i8* %7, i8** %2
%8 = call i8* @OC_mkTabDec(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
store i8* %8, i8** %3
%9 = load i8*, i8** %1
%10 = call i32 @strlen(i8* %9)
%11 = load i8*, i8** %2
%12 = call i32 @strlen(i8* %11)
%13 = add nsw i32 %10, %12
%14 = load i8*, i8** %3
%15 = call i32 @strlen(i8* %14)
%16 = add nsw i32 %13, %15
%17 = call i32 @strlen(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0))
%18 = add nsw i32 %16, %17
%19 = call i32 @strlen(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str.7, i64 0, i64 0))
%20 = add nsw i32 %18, %19
%21 = add nsw i32 %20, 10
%22 = sext i32 %21 to i64
store i64 %22, i64* %4
%23 = load i64, i64* %4
%24 = add i64 %23, 1
%25 = call i8* @UTIL_mallocStr(i64 %24)
store i8* %25, i8** %5
%26 = load i8*, i8** %5
%27 = load i8*, i8** %1
%28 = call i32 @strcpy(i8* %26, i8* %27)
%29 = load i8*, i8** %1
%30 = call i32 @free(i8* %29)
%31 = load i8*, i8** %5
%32 = load i8*, i8** %2
%33 = call i32 @strcat(i8* %31, i8* %32)
%34 = load i8*, i8** %2
%35 = call i32 @free(i8* %34)
%36 = load i8*, i8** %5
%37 = load i8*, i8** %3
%38 = call i32 @strcat(i8* %36, i8* %37)
%39 = load i8*, i8** %3
%40 = call i32 @free(i8* %39)
%41 = load i8*, i8** %5
%42 = call i32 @strcat(i8* %41, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%43 = load i8*, i8** %5
%44 = call i32 @strcat(i8* %43, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0))
%45 = load i8*, i8** %5
%46 = call i32 @strcat(i8* %45, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%47 = load i8*, i8** %5
%48 = call i32 @strcat(i8* %47, i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str.7, i64 0, i64 0))
%49 = load i8*, i8** %5
%50 = call i32 @strcat(i8* %49, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%51 = load i8*, i8** %5
ret i8* %51
}

LLVM IR (-O2):
@.str = [15 x i8] c"pervasiveKinds\00"
@.str.1 = [6 x i8] c"akind\00"
@.str.2 = [19 x i8] c"pervasiveConstants\00"
@.str.3 = [10 x i8] c"aconstant\00"
@.str.4 = [21 x i8] c"pervasiveTypeAbbrevs\00"
@.str.5 = [12 x i8] c"atypeabbrev\00"
@.str.6 = [61 x i8] c"val implicationTerm : Absyn.aterm\0Aval andTerm : Absyn.aterm\0A\00"
@.str.7 = [208 x i8] c"val isPerv : Absyn.aconstant -> bool \0Aval regClobberingPerv : Absyn.aconstant -> bool \0Aval backtrackablePerv : Absyn.aconstant -> bool\0A\00"
@.str.8 = [2 x i8] c"\0A\00"
define i8* @OC_mkFixedMLI() {
%1 = tail call i8* @OC_mkTabDec(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i8* @OC_mkTabDec(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i8* @OC_mkTabDec(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%4 = tail call i32 @strlen(i8* %1)
%5 = tail call i32 @strlen(i8* %2)
%6 = add nsw i32 %5, %4
%7 = tail call i32 @strlen(i8* %3)
%8 = add nsw i32 %6, %7
%9 = tail call i32 @strlen(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0))
%10 = add nsw i32 %8, %9
%11 = tail call i32 @strlen(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str.7, i64 0, i64 0))
%12 = add nsw i32 %10, %11
%13 = sext i32 %12 to i64
%14 = add nsw i64 %13, 11
%15 = tail call i8* @UTIL_mallocStr(i64 %14)
%16 = tail call i32 @strcpy(i8* %15, i8* %1)
%17 = tail call i32 @free(i8* %1)
%18 = tail call i32 @strcat(i8* %15, i8* %2)
%19 = tail call i32 @free(i8* %2)
%20 = tail call i32 @strcat(i8* %15, i8* %3)
%21 = tail call i32 @free(i8* %3)
%22 = tail call i32 @strcat(i8* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%23 = tail call i32 @strcat(i8* %15, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0))
%24 = tail call i32 @strcat(i8* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%25 = tail call i32 @strcat(i8* %15, i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str.7, i64 0, i64 0))
%26 = tail call i32 @strcat(i8* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
ret i8* %15
}