#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_mkArrowType(char *, char *);
char *OC_mkDotStr(char *, char *);
char *OC_mkVarDec(char *, char *);
int /*<<< orphan*/ free(char *);
char *OC_mkIsConstFuncDec(char *funcName) {
  char *constType = OC_mkDotStr("Absyn", "aconstant");
  char *arrowType = OC_mkArrowType(constType, "bool");
  char *dec = OC_mkVarDec(funcName, arrowType);
  free(constType);
  free(arrowType);
  return dec;
}


x86 assembly (clang, -O0):
<OC_mkIsConstFuncDec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xead(%rip),%rdi
lea    0xeac(%rip),%rsi
call   1040 <OC_mkDotStr@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xea2(%rip),%rsi
call   1050 <OC_mkArrowType@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1060 <OC_mkVarDec@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<OC_mkIsConstFuncDec>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
lea    0xeb1(%rip),%rdi
lea    0xeb0(%rip),%rsi
call   1040 <OC_mkDotStr@plt>
mov    %rax,%r15
lea    0xeab(%rip),%rsi
mov    %rax,%rdi
call   1050 <OC_mkArrowType@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    %rax,%rsi
call   1060 <OC_mkVarDec@plt>
mov    %rax,%r14
mov    %r15,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r14,%rax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [6 x i8] c"Absyn\00"
@.str.1 = [10 x i8] c"aconstant\00"
@.str.2 = [5 x i8] c"bool\00"
define i8* @OC_mkIsConstFuncDec(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %2
%6 = call i8* @OC_mkDotStr(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
store i8* %6, i8** %3
%7 = load i8*, i8** %3
%8 = call i8* @OC_mkArrowType(i8* %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
store i8* %8, i8** %4
%9 = load i8*, i8** %2
%10 = load i8*, i8** %4
%11 = call i8* @OC_mkVarDec(i8* %9, i8* %10)
store i8* %11, i8** %5
%12 = load i8*, i8** %3
%13 = call i32 @free(i8* %12)
%14 = load i8*, i8** %4
%15 = call i32 @free(i8* %14)
%16 = load i8*, i8** %5
ret i8* %16
}

LLVM IR (-O2):
@.str = [6 x i8] c"Absyn\00"
@.str.1 = [10 x i8] c"aconstant\00"
@.str.2 = [5 x i8] c"bool\00"
define i8* @OC_mkIsConstFuncDec(i8* %0) {
%2 = tail call i8* @OC_mkDotStr(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i8* @OC_mkArrowType(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i8* @OC_mkVarDec(i8* %0, i8* %3)
%5 = tail call i32 @free(i8* %2)
%6 = tail call i32 @free(i8* %3)
ret i8* %4
}