#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 */
int ilaenv_(int *, char const *, char const *, int *, int *, int *, int *, int,
            int);
scalar_t__ strlen(char const *);
int aa_cla_ilaenv(int ispec, const char *name, const char *opts, int n1, int n2,
                  int n3, int n4) {
  int nl = (int)strlen(name);
  int ol = (int)strlen(opts);
  return ilaenv_(&ispec, name, opts, &n1, &n2, &n3, &n4, nl, ol);
}


x86 assembly (clang, -O0):
<aa_cla_ilaenv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x28(%rbp),%r10d
mov    -0x2c(%rbp),%eax
lea    -0x4(%rbp),%rdi
lea    -0x1c(%rbp),%rcx
lea    -0x20(%rbp),%r8
lea    -0x24(%rbp),%r9
lea    0x10(%rbp),%r11
mov    %r11,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1040 <ilaenv_@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<aa_cla_ilaenv>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rdx,%r14
mov    %rsi,%rbx
mov    %edi,0xc(%rsp)
mov    %ecx,0x8(%rsp)
mov    %r8d,0x4(%rsp)
mov    %r9d,(%rsp)
mov    %rsi,%rdi
call   1030 <strlen@plt>
mov    %rax,%r15
mov    %r14,%rdi
call   1030 <strlen@plt>
sub    $0x8,%rsp
lea    0x38(%rsp),%r10
lea    0x14(%rsp),%rdi
lea    0x10(%rsp),%rcx
lea    0xc(%rsp),%r8
lea    0x8(%rsp),%r9
mov    %rbx,%rsi
mov    %r14,%rdx
push   %rax
push   %r15
push   %r10
call   1040 <ilaenv_@plt>
add    $0x30,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @aa_cla_ilaenv(i32 %0, i8* %1, i8* %2, i32 %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i32 %0, i32* %8
store i8* %1, i8** %9
store i8* %2, i8** %10
store i32 %3, i32* %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store i32 %6, i32* %14
%17 = load i8*, i8** %9
%18 = call i64 @strlen(i8* %17)
%19 = trunc i64 %18 to i32
store i32 %19, i32* %15
%20 = load i8*, i8** %10
%21 = call i64 @strlen(i8* %20)
%22 = trunc i64 %21 to i32
store i32 %22, i32* %16
%23 = load i8*, i8** %9
%24 = load i8*, i8** %10
%25 = load i32, i32* %15
%26 = load i32, i32* %16
%27 = call i32 @ilaenv_(i32* %8, i8* %23, i8* %24, i32* %11, i32* %12, i32* %13, i32* %14, i32 %25, i32 %26)
ret i32 %27
}

LLVM IR (-O2):
define i32 @aa_cla_ilaenv(i32 %0, i8* %1, i8* %2, i32 %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 %0, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
store i32 %5, i32* %11
store i32 %6, i32* %12
%13 = tail call i64 @strlen(i8* dereferenceable(1) %1)
%14 = trunc i64 %13 to i32
%15 = tail call i64 @strlen(i8* dereferenceable(1) %2)
%16 = trunc i64 %15 to i32
%17 = call i32 @ilaenv_(i32* %8, i8* %1, i8* %2, i32* %9, i32* %10, i32* %11, i32* %12, i32 %14, i32 %16)
ret i32 %17
}