#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 */
struct Cyc_Absyn_Exp {
  int dummy;
};

/* Variables and functions */
void *Cyc_AssnDef_raw_alloc(struct Cyc_Absyn_Exp *, int, void *, void *,
                            void *);
void *Cyc_AssnDef_alloc(struct Cyc_Absyn_Exp *e, void *nelts, void *invok,
                        void *tp) {
  struct Cyc_Absyn_Exp *_T0;
  int _T1;
  int _T2;
  void *_T3;
  void *_T4;
  void *_T5;
  void *_T6;
  static int counter = 0;
  _T0 = e;
  _T1 = counter;
  counter = _T1 + 1;
  _T2 = _T1;
  _T3 = nelts;
  _T4 = invok;
  _T5 = tp;
  _T6 = Cyc_AssnDef_raw_alloc(_T0, _T2, _T3, _T4, _T5);
  return _T6;
}


x86 assembly (clang, -O0):
<Cyc_AssnDef_alloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    0x2ef6(%rip),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,0x2ee7(%rip)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%esi
mov    -0x38(%rbp),%rdx
mov    -0x40(%rbp),%rcx
mov    -0x48(%rbp),%r8
call   1030 <Cyc_AssnDef_raw_alloc@plt>
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cyc_AssnDef_alloc>:
mov    %rcx,%r8
mov    %rdx,%rcx
mov    %rsi,%rdx
mov    0x2f0d(%rip),%esi
lea    0x1(%rsi),%eax
mov    %eax,0x2f04(%rip)
jmp    1030 <Cyc_AssnDef_raw_alloc@plt>

LLVM IR (-O0):
%struct.Cyc_Absyn_Exp = type { i32 }
@Cyc_AssnDef_alloc.counter = internal global i32 0
define i8* @Cyc_AssnDef_alloc(%struct.Cyc_Absyn_Exp* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca %struct.Cyc_Absyn_Exp*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca %struct.Cyc_Absyn_Exp*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
store %struct.Cyc_Absyn_Exp* %0, %struct.Cyc_Absyn_Exp** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%16 = load %struct.Cyc_Absyn_Exp*, %struct.Cyc_Absyn_Exp** %5
store %struct.Cyc_Absyn_Exp* %16, %struct.Cyc_Absyn_Exp** %9
%17 = load i32, i32* @Cyc_AssnDef_alloc.counter
store i32 %17, i32* %10
%18 = load i32, i32* %10
%19 = add nsw i32 %18, 1
store i32 %19, i32* @Cyc_AssnDef_alloc.counter
%20 = load i32, i32* %10
store i32 %20, i32* %11
%21 = load i8*, i8** %6
store i8* %21, i8** %12
%22 = load i8*, i8** %7
store i8* %22, i8** %13
%23 = load i8*, i8** %8
store i8* %23, i8** %14
%24 = load %struct.Cyc_Absyn_Exp*, %struct.Cyc_Absyn_Exp** %9
%25 = load i32, i32* %11
%26 = load i8*, i8** %12
%27 = load i8*, i8** %13
%28 = load i8*, i8** %14
%29 = call i8* @Cyc_AssnDef_raw_alloc(%struct.Cyc_Absyn_Exp* %24, i32 %25, i8* %26, i8* %27, i8* %28)
store i8* %29, i8** %15
%30 = load i8*, i8** %15
ret i8* %30
}

LLVM IR (-O2):
%struct.Cyc_Absyn_Exp = type { i32 }
@Cyc_AssnDef_alloc.counter = internal unnamed_addr global i32 0
define i8* @Cyc_AssnDef_alloc(%struct.Cyc_Absyn_Exp* %0, i8* %1, i8* %2, i8* %3) {
%5 = load i32, i32* @Cyc_AssnDef_alloc.counter
%6 = add nsw i32 %5, 1
store i32 %6, i32* @Cyc_AssnDef_alloc.counter
%7 = tail call i8* @Cyc_AssnDef_raw_alloc(%struct.Cyc_Absyn_Exp* %0, i32 %5, i8* %1, i8* %2, i8* %3)
ret i8* %7
}