#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 */
typedef struct TYPE_5__ TYPE_2__;
typedef struct TYPE_4__ TYPE_1__;

/* Type definitions */
struct TYPE_5__ {
  int base_addr;
  int elem_len;
  int version;
  int attribute;
  int rank;
  int type;
  TYPE_1__ *dim;
};
struct TYPE_4__ {
  int lower_bound;
  int sm;
  int extent;
};
typedef TYPE_2__ CFI_cdesc_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void bar(CFI_cdesc_t *d) {
  printf("CFI_cdesc_t.base_addr = %p\n", d->base_addr);
  printf("CFI_cdesc_t.elem_len  = %zu\n", d->elem_len);
  printf("CFI_cdesc_t.version   = %d\n", d->version);
  printf("CFI_cdesc_t.attribute = %td\n", d->attribute);
  printf("CFI_cdesc_t.rank      = %td\n", d->rank);
  printf("CFI_cdesc_t.type      = %td\n", d->type);
  printf("CFI_cdesc_t.dim[0].lb = %td\n", d->dim[0].lower_bound);
  printf("CFI_cdesc_t.dim[0].sm = %td\n", d->dim[0].sm);
  printf("CFI_cdesc_t.dim[0].xt = %td\n", d->dim[0].extent);
}


x86 assembly (clang, -O0):
<bar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
lea    0xed7(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%esi
lea    0xee0(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%esi
lea    0xeea(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%esi
lea    0xef3(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%esi
lea    0xefd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x14(%rax),%esi
lea    0xf07(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%rax
mov    (%rax),%esi
lea    0xf0e(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%rax
mov    0x4(%rax),%esi
lea    0xf14(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%rax
mov    0x8(%rax),%esi
lea    0xf1a(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bar>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%esi
lea    0xee3(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rbx),%esi
lea    0xef0(%rip),%rdi
call   1030 <printf@plt>
mov    0x8(%rbx),%esi
lea    0xefe(%rip),%rdi
call   1030 <printf@plt>
mov    0xc(%rbx),%esi
lea    0xf0b(%rip),%rdi
call   1030 <printf@plt>
mov    0x10(%rbx),%esi
lea    0xf19(%rip),%rdi
call   1030 <printf@plt>
mov    0x14(%rbx),%esi
lea    0xf27(%rip),%rdi
call   1030 <printf@plt>
mov    0x18(%rbx),%rax
mov    (%rax),%esi
lea    0xf32(%rip),%rdi
call   1030 <printf@plt>
mov    0x18(%rbx),%rax
mov    0x4(%rax),%esi
lea    0xf3c(%rip),%rdi
call   1030 <printf@plt>
mov    0x18(%rbx),%rax
mov    0x8(%rax),%esi
lea    0xf46(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
%struct.TYPE_5__ = type { i32, i32, i32, i32, i32, i32, %struct.TYPE_4__* }
%struct.TYPE_4__ = type { i32, i32, i32 }
@.str = [28 x i8] c"CFI_cdesc_t.base_addr = %p\0A\00"
@.str.1 = [29 x i8] c"CFI_cdesc_t.elem_len = %zu\0A\00"
@.str.2 = [28 x i8] c"CFI_cdesc_t.version = %d\0A\00"
@.str.3 = [29 x i8] c"CFI_cdesc_t.attribute = %td\0A\00"
@.str.4 = [29 x i8] c"CFI_cdesc_t.rank = %td\0A\00"
@.str.5 = [29 x i8] c"CFI_cdesc_t.type = %td\0A\00"
@.str.6 = [29 x i8] c"CFI_cdesc_t.dim[0].lb = %td\0A\00"
@.str.7 = [29 x i8] c"CFI_cdesc_t.dim[0].sm = %td\0A\00"
@.str.8 = [29 x i8] c"CFI_cdesc_t.dim[0].xt = %td\0A\00"
define void @bar(%struct.TYPE_5__* %0) {
%2 = alloca %struct.TYPE_5__*
store %struct.TYPE_5__* %0, %struct.TYPE_5__** %2
%3 = load %struct.TYPE_5__*, %struct.TYPE_5__** %2
%4 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %3, i32 0, i32 0
%5 = load i32, i32* %4
%6 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = load %struct.TYPE_5__*, %struct.TYPE_5__** %2
%8 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %7, i32 0, i32 1
%9 = load i32, i32* %8
%10 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %9)
%11 = load %struct.TYPE_5__*, %struct.TYPE_5__** %2
%12 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %11, i32 0, i32 2
%13 = load i32, i32* %12
%14 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i32 %13)
%15 = load %struct.TYPE_5__*, %struct.TYPE_5__** %2
%16 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %15, i32 0, i32 3
%17 = load i32, i32* %16
%18 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %17)
%19 = load %struct.TYPE_5__*, %struct.TYPE_5__** %2
%20 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %19, i32 0, i32 4
%21 = load i32, i32* %20
%22 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i32 %21)
%23 = load %struct.TYPE_5__*, %struct.TYPE_5__** %2
%24 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %23, i32 0, i32 5
%25 = load i32, i32* %24
%26 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i32 %25)
%27 = load %struct.TYPE_5__*, %struct.TYPE_5__** %2
%28 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %27, i32 0, i32 6
%29 = load %struct.TYPE_4__*, %struct.TYPE_4__** %28
%30 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %29, i64 0
%31 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %30, i32 0, i32 0
%32 = load i32, i32* %31
%33 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i32 %32)
%34 = load %struct.TYPE_5__*, %struct.TYPE_5__** %2
%35 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %34, i32 0, i32 6
%36 = load %struct.TYPE_4__*, %struct.TYPE_4__** %35
%37 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %36, i64 0
%38 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %37, i32 0, i32 1
%39 = load i32, i32* %38
%40 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i32 %39)
%41 = load %struct.TYPE_5__*, %struct.TYPE_5__** %2
%42 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %41, i32 0, i32 6
%43 = load %struct.TYPE_4__*, %struct.TYPE_4__** %42
%44 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %43, i64 0
%45 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %44, i32 0, i32 2
%46 = load i32, i32* %45
%47 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0), i32 %46)
ret void
}

LLVM IR (-O2):
%struct.TYPE_5__ = type { i32, i32, i32, i32, i32, i32, %struct.TYPE_4__* }
%struct.TYPE_4__ = type { i32, i32, i32 }
@.str = [28 x i8] c"CFI_cdesc_t.base_addr = %p\0A\00"
@.str.1 = [29 x i8] c"CFI_cdesc_t.elem_len = %zu\0A\00"
@.str.2 = [28 x i8] c"CFI_cdesc_t.version = %d\0A\00"
@.str.3 = [29 x i8] c"CFI_cdesc_t.attribute = %td\0A\00"
@.str.4 = [29 x i8] c"CFI_cdesc_t.rank = %td\0A\00"
@.str.5 = [29 x i8] c"CFI_cdesc_t.type = %td\0A\00"
@.str.6 = [29 x i8] c"CFI_cdesc_t.dim[0].lb = %td\0A\00"
@.str.7 = [29 x i8] c"CFI_cdesc_t.dim[0].sm = %td\0A\00"
@.str.8 = [29 x i8] c"CFI_cdesc_t.dim[0].xt = %td\0A\00"
define void @bar(%struct.TYPE_5__* nocapture %0) {
%2 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %0, i64 0, i32 0
%3 = load i32, i32* %2
%4 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %0, i64 0, i32 1
%6 = load i32, i32* %5
%7 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %6)
%8 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %0, i64 0, i32 2
%9 = load i32, i32* %8
%10 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i32 %9)
%11 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %0, i64 0, i32 3
%12 = load i32, i32* %11
%13 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %12)
%14 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %0, i64 0, i32 4
%15 = load i32, i32* %14
%16 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i32 %15)
%17 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %0, i64 0, i32 5
%18 = load i32, i32* %17
%19 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i32 %18)
%20 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %0, i64 0, i32 6
%21 = load %struct.TYPE_4__*, %struct.TYPE_4__** %20
%22 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %21, i64 0, i32 0
%23 = load i32, i32* %22
%24 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i32 %23)
%25 = load %struct.TYPE_4__*, %struct.TYPE_4__** %20
%26 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %25, i64 0, i32 1
%27 = load i32, i32* %26
%28 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i32 %27)
%29 = load %struct.TYPE_4__*, %struct.TYPE_4__** %20
%30 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %29, i64 0, i32 2
%31 = load i32, i32* %30
%32 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0), i32 %31)
ret void
}