#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 JoinPoint {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ __assert_fail(char *, char *, unsigned int, char *);
char const *__utac__get_this_argtype(int i, struct JoinPoint *this) {
  char const *retValue_acc;
  unsigned long __cil_tmp4;
  unsigned long __cil_tmp5;
  int __cil_tmp6;
  int __cil_tmp7;
  unsigned long __cil_tmp8;
  unsigned long __cil_tmp9;
  char const **__cil_tmp10;
  char const **__cil_tmp11;
  int *mem_12;
  char const ***mem_13;
  {
    if (i > 0) {
      {
        __cil_tmp4 = (unsigned long)this;
        __cil_tmp5 = __cil_tmp4 + 16;
        mem_12 = (int *)__cil_tmp5;
        __cil_tmp6 = *mem_12;
        if (i <= __cil_tmp6) {
        } else {
          {
            __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", 131U,
                          "__utac__get_this_argtype");
          }
        }
      }
    } else {
      {
        __assert_fail("i > 0 && i <= this->argsCount", "libacc.c", 131U,
                      "__utac__get_this_argtype");
      }
    }
    __cil_tmp7 = i - 1;
    __cil_tmp8 = (unsigned long)this;
    __cil_tmp9 = __cil_tmp8 + 24;
    mem_13 = (char const ***)__cil_tmp9;
    __cil_tmp10 = *mem_13;
    __cil_tmp11 = __cil_tmp10 + __cil_tmp7;
    retValue_acc = *__cil_tmp11;
    return (retValue_acc);
    return (retValue_acc);
  }
}


x86 assembly (clang, -O0):
<__utac__get_this_argtype>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x0,-0x4(%rbp)
jle    1183 <__utac__get_this_argtype+0x73>
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jg     115f <__utac__get_this_argtype+0x4f>
jmp    117e <__utac__get_this_argtype+0x6e>
lea    0xe9a(%rip),%rdi
lea    0xeb1(%rip),%rsi
mov    $0x83,%edx
lea    0xeae(%rip),%rcx
call   1030 <__assert_fail@plt>
jmp    11a2 <__utac__get_this_argtype+0x92>
lea    0xe76(%rip),%rdi
lea    0xe8d(%rip),%rsi
mov    $0x83,%edx
lea    0xe8a(%rip),%rcx
call   1030 <__assert_fail@plt>
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
add    $0x18,%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
movslq -0x30(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__utac__get_this_argtype>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %edi,%ebx
test   %edi,%edi
jle    1123 <__utac__get_this_argtype+0x13>
cmp    %ebx,0x10(%r14)
jge    1142 <__utac__get_this_argtype+0x32>
lea    0xed6(%rip),%rdi
lea    0xeed(%rip),%rsi
lea    0xeef(%rip),%rcx
mov    $0x83,%edx
call   1030 <__assert_fail@plt>
mov    0x18(%r14),%rax
movslq %ebx,%rcx
mov    -0x8(%rax,%rcx,8),%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.JoinPoint = type { i32 }
@.str = [30 x i8] c"i > 0 && i <= this->argsCount\00"
@.str.1 = [9 x i8] c"libacc.c\00"
@.str.2 = [25 x i8] c"__utac__get_this_argtype\00"
define i8* @__utac__get_this_argtype(i32 %0, %struct.JoinPoint* %1) {
%3 = alloca i32
%4 = alloca %struct.JoinPoint*
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i64
%8 = alloca i32
%9 = alloca i32
%10 = alloca i64
%11 = alloca i64
%12 = alloca i8**
%13 = alloca i8**
%14 = alloca i32*
%15 = alloca i8***
store i32 %0, i32* %3
store %struct.JoinPoint* %1, %struct.JoinPoint** %4
%16 = load i32, i32* %3
%17 = icmp sgt i32 %16, 0
br i1 %17, label %18, label %34
18: ; preds = %2
%19 = load %struct.JoinPoint*, %struct.JoinPoint** %4
%20 = ptrtoint %struct.JoinPoint* %19 to i64
store i64 %20, i64* %6
%21 = load i64, i64* %6
%22 = add i64 %21, 16
store i64 %22, i64* %7
%23 = load i64, i64* %7
%24 = inttoptr i64 %23 to i32*
store i32* %24, i32** %14
%25 = load i32*, i32** %14
%26 = load i32, i32* %25
store i32 %26, i32* %8
%27 = load i32, i32* %3
%28 = load i32, i32* %8
%29 = icmp sle i32 %27, %28
br i1 %29, label %30, label %31
30: ; preds = %18
br label %33
31: ; preds = %18
%32 = call i32 @__assert_fail(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 131, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
br label %33
33: ; preds = %31, %30
br label %36
34: ; preds = %2
%35 = call i32 @__assert_fail(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 131, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
br label %36
36: ; preds = %34, %33
%37 = load i32, i32* %3
%38 = sub nsw i32 %37, 1
store i32 %38, i32* %9
%39 = load %struct.JoinPoint*, %struct.JoinPoint** %4
%40 = ptrtoint %struct.JoinPoint* %39 to i64
store i64 %40, i64* %10
%41 = load i64, i64* %10
%42 = add i64 %41, 24
store i64 %42, i64* %11
%43 = load i64, i64* %11
%44 = inttoptr i64 %43 to i8***
store i8*** %44, i8**** %15
%45 = load i8***, i8**** %15
%46 = load i8**, i8*** %45
store i8** %46, i8*** %12
%47 = load i8**, i8*** %12
%48 = load i32, i32* %9
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8*, i8** %47, i64 %49
store i8** %50, i8*** %13
%51 = load i8**, i8*** %13
%52 = load i8*, i8** %51
store i8* %52, i8** %5
%53 = load i8*, i8** %5
ret i8* %53
}

LLVM IR (-O2):
%struct.JoinPoint = type { i32 }
@.str = [30 x i8] c"i > 0 && i <= this->argsCount\00"
@.str.1 = [9 x i8] c"libacc.c\00"
@.str.2 = [25 x i8] c"__utac__get_this_argtype\00"
define i8* @__utac__get_this_argtype(i32 %0, %struct.JoinPoint* %1) {
%3 = icmp sgt i32 %0, 0
br i1 %3, label %4, label %12
4: ; preds = %2
%5 = ptrtoint %struct.JoinPoint* %1 to i64
%6 = add i64 %5, 16
%7 = inttoptr i64 %6 to i32*
%8 = load i32, i32* %7
%9 = icmp slt i32 %8, %0
br i1 %9, label %10, label %15
10: ; preds = %4
%11 = tail call i32 @__assert_fail(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 131, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
br label %15
12: ; preds = %2
%13 = tail call i32 @__assert_fail(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 131, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%14 = ptrtoint %struct.JoinPoint* %1 to i64
br label %15
15: ; preds = %10, %4, %12
%16 = phi i64 [ %5, %10 ], [ %5, %4 ], [ %14, %12 ]
%17 = add nsw i32 %0, -1
%18 = add i64 %16, 24
%19 = inttoptr i64 %18 to i8***
%20 = load i8**, i8*** %19
%21 = sext i32 %17 to i64
%22 = getelementptr inbounds i8*, i8** %20, i64 %21
%23 = load i8*, i8** %22
ret i8* %23
}