#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_3__ TYPE_1__;

/* Type definitions */
typedef int /*<<< orphan*/ hwloc_topology_t;
typedef TYPE_1__ *hwloc_obj_t;
struct TYPE_3__ {
  int arity;
  scalar_t__ type;
  int depth;
  struct TYPE_3__ **children;
};

/* Variables and functions */
scalar_t__ HWLOC_OBJ_GROUP;
scalar_t__ HWLOC_OBJ_NODE;
scalar_t__ HWLOC_OBJ_PU;
scalar_t__ HWLOC_OBJ_SOCKET;
int /*<<< orphan*/ assert(int);
unsigned int hwloc_get_nbobjs_by_depth(int /*<<< orphan*/, unsigned int);
TYPE_1__ *hwloc_get_root_obj(int /*<<< orphan*/);
unsigned int hwloc_get_type_depth(int /*<<< orphan*/, scalar_t__);
int /*<<< orphan*/ hwloc_topology_destroy(int /*<<< orphan*/);
int /*<<< orphan*/ hwloc_topology_init(int /*<<< orphan*/ *);
int /*<<< orphan*/ hwloc_topology_load(int /*<<< orphan*/);
int /*<<< orphan*/ hwloc_topology_set_distance_matrix(int /*<<< orphan*/,
                                                      scalar_t__, int,
                                                      unsigned int *, float *);
int /*<<< orphan*/ hwloc_topology_set_synthetic(int /*<<< orphan*/, char *);
int main(void) {
  hwloc_topology_t topology;
  hwloc_obj_t obj;
  unsigned indexes[5];
  float distances[5 * 5];
  unsigned depth;
  unsigned width;
  hwloc_topology_init(&topology);
  hwloc_topology_set_synthetic(topology, "node:3 pu:1");
  indexes[0] = 0;
  indexes[1] = 1;
  indexes[2] = 2;
  distances[0] = 1;
  distances[1] = 4;
  distances[2] = 4;
  distances[3] = 4;
  distances[4] = 1;
  distances[5] = 2;
  distances[6] = 4;
  distances[7] = 2;
  distances[8] = 1;
  hwloc_topology_set_distance_matrix(topology, HWLOC_OBJ_PU, 3, indexes,
                                     distances);
  hwloc_topology_load(topology);
  depth = hwloc_get_type_depth(topology, HWLOC_OBJ_GROUP);
  assert(depth == 1);
  width = hwloc_get_nbobjs_by_depth(topology, depth);
  assert(width == 1);
  depth = hwloc_get_type_depth(topology, HWLOC_OBJ_NODE);
  assert(depth == 2);
  width = hwloc_get_nbobjs_by_depth(topology, depth);
  assert(width == 3);
  obj = hwloc_get_root_obj(topology);
  assert(obj->arity == 2);
  assert(obj->children[0]->type == HWLOC_OBJ_NODE);
  assert(obj->children[0]->depth == 2);
  assert(obj->children[0]->arity == 1);
  assert(obj->children[1]->type == HWLOC_OBJ_GROUP);
  assert(obj->children[1]->depth == 1);
  assert(obj->children[1]->arity == 2);
  hwloc_topology_destroy(topology);
  hwloc_topology_init(&topology);
  hwloc_topology_set_synthetic(topology, "node:1 socket:5 pu:1");
  indexes[0] = 0;
  indexes[1] = 1;
  indexes[2] = 2;
  indexes[3] = 3;
  indexes[4] = 4;
  distances[0] = 1;
  distances[1] = 2;
  distances[2] = 4;
  distances[3] = 4;
  distances[4] = 4;
  distances[5] = 2;
  distances[6] = 1;
  distances[7] = 4;
  distances[8] = 4;
  distances[9] = 4;
  distances[10] = 4;
  distances[11] = 4;
  distances[12] = 1;
  distances[13] = 4;
  distances[14] = 4;
  distances[15] = 4;
  distances[16] = 4;
  distances[17] = 4;
  distances[18] = 1;
  distances[19] = 2;
  distances[20] = 4;
  distances[21] = 4;
  distances[22] = 4;
  distances[23] = 2;
  distances[24] = 1;
  hwloc_topology_set_distance_matrix(topology, HWLOC_OBJ_SOCKET, 5, indexes,
                                     distances);
  hwloc_topology_load(topology);
  depth = hwloc_get_type_depth(topology, HWLOC_OBJ_NODE);
  assert(depth == 1);
  width = hwloc_get_nbobjs_by_depth(topology, depth);
  assert(width == 1);
  depth = hwloc_get_type_depth(topology, HWLOC_OBJ_GROUP);
  assert(depth == 2);
  width = hwloc_get_nbobjs_by_depth(topology, depth);
  assert(width == 2);
  depth = hwloc_get_type_depth(topology, HWLOC_OBJ_SOCKET);
  assert(depth == 3);
  width = hwloc_get_nbobjs_by_depth(topology, depth);
  assert(width == 5);
  obj = hwloc_get_root_obj(topology);
  assert(obj->arity == 1);
  obj = obj->children[0];
  assert(obj->type == HWLOC_OBJ_NODE);
  assert(obj->arity == 3);
  assert(obj->children[0]->type == HWLOC_OBJ_GROUP);
  assert(obj->children[0]->depth == 2);
  assert(obj->children[0]->arity == 2);
  assert(obj->children[1]->type == HWLOC_OBJ_SOCKET);
  assert(obj->children[1]->depth == 3);
  assert(obj->children[1]->arity == 1);
  assert(obj->children[2]->type == HWLOC_OBJ_GROUP);
  assert(obj->children[2]->depth == 2);
  assert(obj->children[2]->arity == 2);
  hwloc_topology_destroy(topology);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x8(%rbp),%rdi
call   1030 <hwloc_topology_init@plt>
mov    -0x8(%rbp),%edi
lea    0xe57(%rip),%rsi
call   1090 <hwloc_topology_set_synthetic@plt>
movl   $0x0,-0x30(%rbp)
movl   $0x1,-0x2c(%rbp)
movl   $0x2,-0x28(%rbp)
movss  0xe29(%rip),%xmm0
movss  %xmm0,-0xa0(%rbp)
ff
movss  0xe21(%rip),%xmm0
movss  %xmm0,-0x9c(%rbp)
ff
movss  0xe11(%rip),%xmm0
movss  %xmm0,-0x98(%rbp)
ff
movss  0xe01(%rip),%xmm0
movss  %xmm0,-0x94(%rbp)
ff
movss  0xde9(%rip),%xmm0
movss  %xmm0,-0x90(%rbp)
ff
movss  0xddd(%rip),%xmm0
movss  %xmm0,-0x8c(%rbp)
ff
movss  0xdd1(%rip),%xmm0
movss  %xmm0,-0x88(%rbp)
ff
movss  0xdbd(%rip),%xmm0
movss  %xmm0,-0x84(%rbp)
ff
movss  0xda9(%rip),%xmm0
movss  %xmm0,-0x80(%rbp)
mov    -0x8(%rbp),%edi
mov    0x2d62(%rip),%rax
mov    (%rax),%rsi
lea    -0x30(%rbp),%rcx
lea    -0xa0(%rbp),%r8
mov    $0x3,%edx
call   1060 <hwloc_topology_set_distance_matrix@plt>
mov    -0x8(%rbp),%edi
call   1040 <hwloc_topology_load@plt>
mov    -0x8(%rbp),%edi
mov    0x2d50(%rip),%rax
mov    (%rax),%rsi
call   1050 <hwloc_get_type_depth@plt>
mov    %eax,-0xa4(%rbp)
cmpl   $0x1,-0xa4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x8(%rbp),%edi
mov    -0xa4(%rbp),%esi
call   1080 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0xa8(%rbp)
cmpl   $0x1,-0xa8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x8(%rbp),%edi
mov    0x2d04(%rip),%rax
mov    (%rax),%rsi
call   1050 <hwloc_get_type_depth@plt>
mov    %eax,-0xa4(%rbp)
cmpl   $0x2,-0xa4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x8(%rbp),%edi
mov    -0xa4(%rbp),%esi
call   1080 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0xa8(%rbp)
cmpl   $0x3,-0xa8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x8(%rbp),%edi
call   10a0 <hwloc_get_root_obj@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpl   $0x2,(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    (%rax),%rax
mov    0x8(%rax),%rax
mov    0x2c84(%rip),%rcx
cmp    (%rcx),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    (%rax),%rax
cmpl   $0x2,0x10(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    (%rax),%rax
cmpl   $0x1,(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    0x8(%rax),%rax
mov    0x8(%rax),%rax
mov    0x2c1e(%rip),%rcx
cmp    (%rcx),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    0x8(%rax),%rax
cmpl   $0x1,0x10(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    0x8(%rax),%rax
cmpl   $0x2,(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x8(%rbp),%edi
call   10b0 <hwloc_topology_destroy@plt>
lea    -0x8(%rbp),%rdi
call   1030 <hwloc_topology_init@plt>
mov    -0x8(%rbp),%edi
lea    0xbf2(%rip),%rsi
call   1090 <hwloc_topology_set_synthetic@plt>
movl   $0x0,-0x30(%rbp)
movl   $0x1,-0x2c(%rbp)
movl   $0x2,-0x28(%rbp)
movl   $0x3,-0x24(%rbp)
movl   $0x4,-0x20(%rbp)
movss  0xbaa(%rip),%xmm0
movss  %xmm0,-0xa0(%rbp)
ff
movss  0xb9e(%rip),%xmm0
movss  %xmm0,-0x9c(%rbp)
ff
movss  0xb92(%rip),%xmm0
movss  %xmm0,-0x98(%rbp)
ff
movss  0xb82(%rip),%xmm0
movss  %xmm0,-0x94(%rbp)
ff
movss  0xb72(%rip),%xmm0
movss  %xmm0,-0x90(%rbp)
ff
movss  0xb5e(%rip),%xmm0
movss  %xmm0,-0x8c(%rbp)
ff
movss  0xb4a(%rip),%xmm0
movss  %xmm0,-0x88(%rbp)
ff
movss  0xb42(%rip),%xmm0
movss  %xmm0,-0x84(%rbp)
ff
movss  0xb32(%rip),%xmm0
movss  %xmm0,-0x80(%rbp)
movss  0xb25(%rip),%xmm0
movss  %xmm0,-0x7c(%rbp)
movss  0xb18(%rip),%xmm0
movss  %xmm0,-0x78(%rbp)
movss  0xb0b(%rip),%xmm0
movss  %xmm0,-0x74(%rbp)
movss  0xaf6(%rip),%xmm0
movss  %xmm0,-0x70(%rbp)
movss  0xaf1(%rip),%xmm0
movss  %xmm0,-0x6c(%rbp)
movss  0xae4(%rip),%xmm0
movss  %xmm0,-0x68(%rbp)
movss  0xad7(%rip),%xmm0
movss  %xmm0,-0x64(%rbp)
movss  0xaca(%rip),%xmm0
movss  %xmm0,-0x60(%rbp)
movss  0xabd(%rip),%xmm0
movss  %xmm0,-0x5c(%rbp)
movss  0xaa8(%rip),%xmm0
movss  %xmm0,-0x58(%rbp)
movss  0xa9f(%rip),%xmm0
movss  %xmm0,-0x54(%rbp)
movss  0xa96(%rip),%xmm0
movss  %xmm0,-0x50(%rbp)
movss  0xa89(%rip),%xmm0
movss  %xmm0,-0x4c(%rbp)
movss  0xa7c(%rip),%xmm0
movss  %xmm0,-0x48(%rbp)
movss  0xa6b(%rip),%xmm0
movss  %xmm0,-0x44(%rbp)
movss  0xa5a(%rip),%xmm0
movss  %xmm0,-0x40(%rbp)
mov    -0x8(%rbp),%edi
mov    0x2a23(%rip),%rax
mov    (%rax),%rsi
lea    -0x30(%rbp),%rcx
lea    -0xa0(%rbp),%r8
mov    $0x5,%edx
call   1060 <hwloc_topology_set_distance_matrix@plt>
mov    -0x8(%rbp),%edi
call   1040 <hwloc_topology_load@plt>
mov    -0x8(%rbp),%edi
mov    0x2a09(%rip),%rax
mov    (%rax),%rsi
call   1050 <hwloc_get_type_depth@plt>
mov    %eax,-0xa4(%rbp)
cmpl   $0x1,-0xa4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x8(%rbp),%edi
mov    -0xa4(%rbp),%esi
call   1080 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0xa8(%rbp)
cmpl   $0x1,-0xa8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x8(%rbp),%edi
mov    0x29ad(%rip),%rax
mov    (%rax),%rsi
call   1050 <hwloc_get_type_depth@plt>
mov    %eax,-0xa4(%rbp)
cmpl   $0x2,-0xa4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x8(%rbp),%edi
mov    -0xa4(%rbp),%esi
call   1080 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0xa8(%rbp)
cmpl   $0x2,-0xa8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x8(%rbp),%edi
mov    0x2951(%rip),%rax
mov    (%rax),%rsi
call   1050 <hwloc_get_type_depth@plt>
mov    %eax,-0xa4(%rbp)
cmpl   $0x3,-0xa4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x8(%rbp),%edi
mov    -0xa4(%rbp),%esi
call   1080 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0xa8(%rbp)
cmpl   $0x5,-0xa8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x8(%rbp),%edi
call   10a0 <hwloc_get_root_obj@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpl   $0x1,(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    (%rax),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    0x28d9(%rip),%rcx
cmp    (%rcx),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x10(%rbp),%rax
cmpl   $0x3,(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    (%rax),%rax
mov    0x8(%rax),%rax
mov    0x2897(%rip),%rcx
cmp    (%rcx),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    (%rax),%rax
cmpl   $0x2,0x10(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    (%rax),%rax
cmpl   $0x2,(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    0x8(%rax),%rax
mov    0x8(%rax),%rax
mov    0x2831(%rip),%rcx
cmp    (%rcx),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    0x8(%rax),%rax
cmpl   $0x3,0x10(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    0x8(%rax),%rax
cmpl   $0x1,(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    0x10(%rax),%rax
mov    0x8(%rax),%rax
mov    0x27d9(%rip),%rcx
cmp    (%rcx),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    0x10(%rax),%rax
cmpl   $0x2,0x10(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    0x10(%rax),%rax
cmpl   $0x2,(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1070 <assert@plt>
mov    -0x8(%rbp),%edi
call   10b0 <hwloc_topology_destroy@plt>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
lea    0xc(%rsp),%r12
mov    %r12,%rdi
call   1030 <hwloc_topology_init@plt>
mov    0xc(%rsp),%edi
lea    0xec7(%rip),%rsi
call   1090 <hwloc_topology_set_synthetic@plt>
movabs $0x100000000,%rax
mov    %rax,0x10(%rsp)
movl   $0x2,0x18(%rsp)
movaps 0xe24(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe28(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movl   $0x3f800000,0x50(%rsp)
3f
mov    0xc(%rsp),%edi
mov    0x2dc8(%rip),%rax
mov    (%rax),%rsi
lea    0x10(%rsp),%r15
lea    0x30(%rsp),%r8
mov    $0x3,%edx
mov    %r15,%rcx
call   1060 <hwloc_topology_set_distance_matrix@plt>
mov    0xc(%rsp),%edi
call   1040 <hwloc_topology_load@plt>
mov    0xc(%rsp),%edi
mov    0x2db2(%rip),%r13
mov    0x0(%r13),%rsi
call   1050 <hwloc_get_type_depth@plt>
mov    %eax,%ebx
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1070 <assert@plt>
mov    0xc(%rsp),%edi
mov    %ebx,%esi
call   1080 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1070 <assert@plt>
mov    0xc(%rsp),%edi
mov    0x2d7d(%rip),%r14
mov    (%r14),%rsi
call   1050 <hwloc_get_type_depth@plt>
mov    %eax,%ebx
xor    %edi,%edi
cmp    $0x2,%eax
sete   %dil
call   1070 <assert@plt>
mov    0xc(%rsp),%edi
mov    %ebx,%esi
call   1080 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x3,%eax
sete   %dil
call   1070 <assert@plt>
mov    0xc(%rsp),%edi
call   10a0 <hwloc_get_root_obj@plt>
mov    %rax,%rbx
xor    %edi,%edi
cmpl   $0x2,(%rax)
sete   %dil
call   1070 <assert@plt>
mov    0x18(%rbx),%rax
mov    (%rax),%rax
mov    0x8(%rax),%rax
xor    %edi,%edi
cmp    (%r14),%rax
sete   %dil
call   1070 <assert@plt>
mov    0x18(%rbx),%rax
mov    (%rax),%rax
xor    %edi,%edi
cmpl   $0x2,0x10(%rax)
sete   %dil
call   1070 <assert@plt>
mov    0x18(%rbx),%rax
mov    (%rax),%rax
xor    %edi,%edi
cmpl   $0x1,(%rax)
sete   %dil
call   1070 <assert@plt>
mov    0x18(%rbx),%rax
mov    0x8(%rax),%rax
mov    0x8(%rax),%rax
xor    %edi,%edi
cmp    0x0(%r13),%rax
sete   %dil
call   1070 <assert@plt>
mov    0x18(%rbx),%rax
mov    0x8(%rax),%rax
xor    %edi,%edi
cmpl   $0x1,0x10(%rax)
sete   %dil
call   1070 <assert@plt>
mov    0x18(%rbx),%rax
mov    0x8(%rax),%rax
xor    %edi,%edi
cmpl   $0x2,(%rax)
sete   %dil
call   1070 <assert@plt>
mov    0xc(%rsp),%edi
call   10b0 <hwloc_topology_destroy@plt>
mov    %r12,%rdi
call   1030 <hwloc_topology_init@plt>
mov    0xc(%rsp),%edi
lea    0xd2e(%rip),%rsi
call   1090 <hwloc_topology_set_synthetic@plt>
movaps 0xcb6(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movl   $0x4,0x20(%rsp)
movaps 0xcb2(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xcb6(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xcba(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xc5e(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xcb2(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xcb6(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movl   $0x3f800000,0x90(%rsp)
mov    0xc(%rsp),%edi
mov    0x2c00(%rip),%rbp
mov    0x0(%rbp),%rsi
mov    $0x5,%edx
mov    %r15,%rcx
lea    0x30(%rsp),%r8
call   1060 <hwloc_topology_set_distance_matrix@plt>
mov    0xc(%rsp),%edi
call   1040 <hwloc_topology_load@plt>
mov    0xc(%rsp),%edi
mov    (%r14),%rsi
call   1050 <hwloc_get_type_depth@plt>
mov    %eax,%ebx
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1070 <assert@plt>
mov    0xc(%rsp),%edi
mov    %ebx,%esi
call   1080 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1070 <assert@plt>
mov    0xc(%rsp),%edi
mov    0x0(%r13),%rsi
call   1050 <hwloc_get_type_depth@plt>
mov    %eax,%ebx
xor    %edi,%edi
cmp    $0x2,%eax
sete   %dil
call   1070 <assert@plt>
mov    0xc(%rsp),%edi
mov    %ebx,%esi
call   1080 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x2,%eax
sete   %dil
call   1070 <assert@plt>
mov    0xc(%rsp),%edi
mov    0x0(%rbp),%rsi
call   1050 <hwloc_get_type_depth@plt>
mov    %eax,%ebx
xor    %edi,%edi
cmp    $0x3,%eax
sete   %dil
call   1070 <assert@plt>
mov    0xc(%rsp),%edi
mov    %ebx,%esi
call   1080 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x5,%eax
sete   %dil
call   1070 <assert@plt>
mov    0xc(%rsp),%edi
call   10a0 <hwloc_get_root_obj@plt>
mov    %rax,%rbx
xor    %edi,%edi
cmpl   $0x1,(%rax)
sete   %dil
call   1070 <assert@plt>
mov    0x18(%rbx),%rax
mov    (%rax),%rbx
mov    0x8(%rbx),%rax
xor    %edi,%edi
cmp    (%r14),%rax
sete   %dil
call   1070 <assert@plt>
xor    %edi,%edi
cmpl   $0x3,(%rbx)
sete   %dil
call   1070 <assert@plt>
mov    0x18(%rbx),%rax
mov    (%rax),%rax
mov    0x8(%rax),%rax
xor    %edi,%edi
cmp    0x0(%r13),%rax
sete   %dil
call   1070 <assert@plt>
mov    0x18(%rbx),%rax
mov    (%rax),%rax
xor    %edi,%edi
cmpl   $0x2,0x10(%rax)
sete   %dil
call   1070 <assert@plt>
mov    0x18(%rbx),%rax
mov    (%rax),%rax
xor    %edi,%edi
cmpl   $0x2,(%rax)
sete   %dil
call   1070 <assert@plt>
mov    0x18(%rbx),%rax
mov    0x8(%rax),%rax
mov    0x8(%rax),%rax
xor    %edi,%edi
cmp    0x0(%rbp),%rax
sete   %dil
call   1070 <assert@plt>
mov    0x18(%rbx),%rax
mov    0x8(%rax),%rax
xor    %edi,%edi
cmpl   $0x3,0x10(%rax)
sete   %dil
call   1070 <assert@plt>
mov    0x18(%rbx),%rax
mov    0x8(%rax),%rax
xor    %edi,%edi
cmpl   $0x1,(%rax)
sete   %dil
call   1070 <assert@plt>
mov    0x18(%rbx),%rax
mov    0x10(%rax),%rax
mov    0x8(%rax),%rax
xor    %edi,%edi
cmp    0x0(%r13),%rax
sete   %dil
call   1070 <assert@plt>
mov    0x18(%rbx),%rax
mov    0x10(%rax),%rax
xor    %edi,%edi
cmpl   $0x2,0x10(%rax)
sete   %dil
call   1070 <assert@plt>
mov    0x18(%rbx),%rax
mov    0x10(%rax),%rax
xor    %edi,%edi
cmpl   $0x2,(%rax)
sete   %dil
call   1070 <assert@plt>
mov    0xc(%rsp),%edi
call   10b0 <hwloc_topology_destroy@plt>
xor    %eax,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.TYPE_3__ = type { i32, i64, i32, %struct.TYPE_3__** }
@.str = [12 x i8] c"node:3 pu:1\00"
@HWLOC_OBJ_PU = global i64 0
@HWLOC_OBJ_GROUP = global i64 0
@HWLOC_OBJ_NODE = global i64 0
@.str.1 = [21 x i8] c"node:1 socket:5 pu:1\00"
@HWLOC_OBJ_SOCKET = global i64 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca %struct.TYPE_3__*
%4 = alloca [5 x i32]
%5 = alloca [25 x float]
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
%8 = call i32 @hwloc_topology_init(i32* %2)
%9 = load i32, i32* %2
%10 = call i32 @hwloc_topology_set_synthetic(i32 %9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%11 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 0
store i32 0, i32* %11
%12 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 1
store i32 1, i32* %12
%13 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 2
store i32 2, i32* %13
%14 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 0
store float 1.000000e+00, float* %14
%15 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 1
store float 4.000000e+00, float* %15
%16 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 2
store float 4.000000e+00, float* %16
%17 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 3
store float 4.000000e+00, float* %17
%18 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 4
store float 1.000000e+00, float* %18
%19 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 5
store float 2.000000e+00, float* %19
%20 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 6
store float 4.000000e+00, float* %20
%21 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 7
store float 2.000000e+00, float* %21
%22 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 8
store float 1.000000e+00, float* %22
%23 = load i32, i32* %2
%24 = load i64, i64* @HWLOC_OBJ_PU
%25 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 0
%26 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 0
%27 = call i32 @hwloc_topology_set_distance_matrix(i32 %23, i64 %24, i32 3, i32* %25, float* %26)
%28 = load i32, i32* %2
%29 = call i32 @hwloc_topology_load(i32 %28)
%30 = load i32, i32* %2
%31 = load i64, i64* @HWLOC_OBJ_GROUP
%32 = call i32 @hwloc_get_type_depth(i32 %30, i64 %31)
store i32 %32, i32* %6
%33 = load i32, i32* %6
%34 = icmp eq i32 %33, 1
%35 = zext i1 %34 to i32
%36 = call i32 @assert(i32 %35)
%37 = load i32, i32* %2
%38 = load i32, i32* %6
%39 = call i32 @hwloc_get_nbobjs_by_depth(i32 %37, i32 %38)
store i32 %39, i32* %7
%40 = load i32, i32* %7
%41 = icmp eq i32 %40, 1
%42 = zext i1 %41 to i32
%43 = call i32 @assert(i32 %42)
%44 = load i32, i32* %2
%45 = load i64, i64* @HWLOC_OBJ_NODE
%46 = call i32 @hwloc_get_type_depth(i32 %44, i64 %45)
store i32 %46, i32* %6
%47 = load i32, i32* %6
%48 = icmp eq i32 %47, 2
%49 = zext i1 %48 to i32
%50 = call i32 @assert(i32 %49)
%51 = load i32, i32* %2
%52 = load i32, i32* %6
%53 = call i32 @hwloc_get_nbobjs_by_depth(i32 %51, i32 %52)
store i32 %53, i32* %7
%54 = load i32, i32* %7
%55 = icmp eq i32 %54, 3
%56 = zext i1 %55 to i32
%57 = call i32 @assert(i32 %56)
%58 = load i32, i32* %2
%59 = call %struct.TYPE_3__* @hwloc_get_root_obj(i32 %58)
store %struct.TYPE_3__* %59, %struct.TYPE_3__** %3
%60 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%61 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %60, i32 0, i32 0
%62 = load i32, i32* %61
%63 = icmp eq i32 %62, 2
%64 = zext i1 %63 to i32
%65 = call i32 @assert(i32 %64)
%66 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%67 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %66, i32 0, i32 3
%68 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %67
%69 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %68, i64 0
%70 = load %struct.TYPE_3__*, %struct.TYPE_3__** %69
%71 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %70, i32 0, i32 1
%72 = load i64, i64* %71
%73 = load i64, i64* @HWLOC_OBJ_NODE
%74 = icmp eq i64 %72, %73
%75 = zext i1 %74 to i32
%76 = call i32 @assert(i32 %75)
%77 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%78 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %77, i32 0, i32 3
%79 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %78
%80 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %79, i64 0
%81 = load %struct.TYPE_3__*, %struct.TYPE_3__** %80
%82 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %81, i32 0, i32 2
%83 = load i32, i32* %82
%84 = icmp eq i32 %83, 2
%85 = zext i1 %84 to i32
%86 = call i32 @assert(i32 %85)
%87 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%88 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %87, i32 0, i32 3
%89 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %88
%90 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %89, i64 0
%91 = load %struct.TYPE_3__*, %struct.TYPE_3__** %90
%92 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %91, i32 0, i32 0
%93 = load i32, i32* %92
%94 = icmp eq i32 %93, 1
%95 = zext i1 %94 to i32
%96 = call i32 @assert(i32 %95)
%97 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%98 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %97, i32 0, i32 3
%99 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %98
%100 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %99, i64 1
%101 = load %struct.TYPE_3__*, %struct.TYPE_3__** %100
%102 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %101, i32 0, i32 1
%103 = load i64, i64* %102
%104 = load i64, i64* @HWLOC_OBJ_GROUP
%105 = icmp eq i64 %103, %104
%106 = zext i1 %105 to i32
%107 = call i32 @assert(i32 %106)
%108 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%109 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %108, i32 0, i32 3
%110 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %109
%111 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %110, i64 1
%112 = load %struct.TYPE_3__*, %struct.TYPE_3__** %111
%113 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %112, i32 0, i32 2
%114 = load i32, i32* %113
%115 = icmp eq i32 %114, 1
%116 = zext i1 %115 to i32
%117 = call i32 @assert(i32 %116)
%118 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%119 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %118, i32 0, i32 3
%120 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %119
%121 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %120, i64 1
%122 = load %struct.TYPE_3__*, %struct.TYPE_3__** %121
%123 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %122, i32 0, i32 0
%124 = load i32, i32* %123
%125 = icmp eq i32 %124, 2
%126 = zext i1 %125 to i32
%127 = call i32 @assert(i32 %126)
%128 = load i32, i32* %2
%129 = call i32 @hwloc_topology_destroy(i32 %128)
%130 = call i32 @hwloc_topology_init(i32* %2)
%131 = load i32, i32* %2
%132 = call i32 @hwloc_topology_set_synthetic(i32 %131, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%133 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 0
store i32 0, i32* %133
%134 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 1
store i32 1, i32* %134
%135 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 2
store i32 2, i32* %135
%136 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 3
store i32 3, i32* %136
%137 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 4
store i32 4, i32* %137
%138 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 0
store float 1.000000e+00, float* %138
%139 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 1
store float 2.000000e+00, float* %139
%140 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 2
store float 4.000000e+00, float* %140
%141 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 3
store float 4.000000e+00, float* %141
%142 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 4
store float 4.000000e+00, float* %142
%143 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 5
store float 2.000000e+00, float* %143
%144 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 6
store float 1.000000e+00, float* %144
%145 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 7
store float 4.000000e+00, float* %145
%146 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 8
store float 4.000000e+00, float* %146
%147 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 9
store float 4.000000e+00, float* %147
%148 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 10
store float 4.000000e+00, float* %148
%149 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 11
store float 4.000000e+00, float* %149
%150 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 12
store float 1.000000e+00, float* %150
%151 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 13
store float 4.000000e+00, float* %151
%152 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 14
store float 4.000000e+00, float* %152
%153 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 15
store float 4.000000e+00, float* %153
%154 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 16
store float 4.000000e+00, float* %154
%155 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 17
store float 4.000000e+00, float* %155
%156 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 18
store float 1.000000e+00, float* %156
%157 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 19
store float 2.000000e+00, float* %157
%158 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 20
store float 4.000000e+00, float* %158
%159 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 21
store float 4.000000e+00, float* %159
%160 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 22
store float 4.000000e+00, float* %160
%161 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 23
store float 2.000000e+00, float* %161
%162 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 24
store float 1.000000e+00, float* %162
%163 = load i32, i32* %2
%164 = load i64, i64* @HWLOC_OBJ_SOCKET
%165 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 0
%166 = getelementptr inbounds [25 x float], [25 x float]* %5, i64 0, i64 0
%167 = call i32 @hwloc_topology_set_distance_matrix(i32 %163, i64 %164, i32 5, i32* %165, float* %166)
%168 = load i32, i32* %2
%169 = call i32 @hwloc_topology_load(i32 %168)
%170 = load i32, i32* %2
%171 = load i64, i64* @HWLOC_OBJ_NODE
%172 = call i32 @hwloc_get_type_depth(i32 %170, i64 %171)
store i32 %172, i32* %6
%173 = load i32, i32* %6
%174 = icmp eq i32 %173, 1
%175 = zext i1 %174 to i32
%176 = call i32 @assert(i32 %175)
%177 = load i32, i32* %2
%178 = load i32, i32* %6
%179 = call i32 @hwloc_get_nbobjs_by_depth(i32 %177, i32 %178)
store i32 %179, i32* %7
%180 = load i32, i32* %7
%181 = icmp eq i32 %180, 1
%182 = zext i1 %181 to i32
%183 = call i32 @assert(i32 %182)
%184 = load i32, i32* %2
%185 = load i64, i64* @HWLOC_OBJ_GROUP
%186 = call i32 @hwloc_get_type_depth(i32 %184, i64 %185)
store i32 %186, i32* %6
%187 = load i32, i32* %6
%188 = icmp eq i32 %187, 2
%189 = zext i1 %188 to i32
%190 = call i32 @assert(i32 %189)
%191 = load i32, i32* %2
%192 = load i32, i32* %6
%193 = call i32 @hwloc_get_nbobjs_by_depth(i32 %191, i32 %192)
store i32 %193, i32* %7
%194 = load i32, i32* %7
%195 = icmp eq i32 %194, 2
%196 = zext i1 %195 to i32
%197 = call i32 @assert(i32 %196)
%198 = load i32, i32* %2
%199 = load i64, i64* @HWLOC_OBJ_SOCKET
%200 = call i32 @hwloc_get_type_depth(i32 %198, i64 %199)
store i32 %200, i32* %6
%201 = load i32, i32* %6
%202 = icmp eq i32 %201, 3
%203 = zext i1 %202 to i32
%204 = call i32 @assert(i32 %203)
%205 = load i32, i32* %2
%206 = load i32, i32* %6
%207 = call i32 @hwloc_get_nbobjs_by_depth(i32 %205, i32 %206)
store i32 %207, i32* %7
%208 = load i32, i32* %7
%209 = icmp eq i32 %208, 5
%210 = zext i1 %209 to i32
%211 = call i32 @assert(i32 %210)
%212 = load i32, i32* %2
%213 = call %struct.TYPE_3__* @hwloc_get_root_obj(i32 %212)
store %struct.TYPE_3__* %213, %struct.TYPE_3__** %3
%214 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%215 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %214, i32 0, i32 0
%216 = load i32, i32* %215
%217 = icmp eq i32 %216, 1
%218 = zext i1 %217 to i32
%219 = call i32 @assert(i32 %218)
%220 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%221 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %220, i32 0, i32 3
%222 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %221
%223 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %222, i64 0
%224 = load %struct.TYPE_3__*, %struct.TYPE_3__** %223
store %struct.TYPE_3__* %224, %struct.TYPE_3__** %3
%225 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%226 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %225, i32 0, i32 1
%227 = load i64, i64* %226
%228 = load i64, i64* @HWLOC_OBJ_NODE
%229 = icmp eq i64 %227, %228
%230 = zext i1 %229 to i32
%231 = call i32 @assert(i32 %230)
%232 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%233 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %232, i32 0, i32 0
%234 = load i32, i32* %233
%235 = icmp eq i32 %234, 3
%236 = zext i1 %235 to i32
%237 = call i32 @assert(i32 %236)
%238 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%239 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %238, i32 0, i32 3
%240 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %239
%241 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %240, i64 0
%242 = load %struct.TYPE_3__*, %struct.TYPE_3__** %241
%243 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %242, i32 0, i32 1
%244 = load i64, i64* %243
%245 = load i64, i64* @HWLOC_OBJ_GROUP
%246 = icmp eq i64 %244, %245
%247 = zext i1 %246 to i32
%248 = call i32 @assert(i32 %247)
%249 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%250 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %249, i32 0, i32 3
%251 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %250
%252 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %251, i64 0
%253 = load %struct.TYPE_3__*, %struct.TYPE_3__** %252
%254 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %253, i32 0, i32 2
%255 = load i32, i32* %254
%256 = icmp eq i32 %255, 2
%257 = zext i1 %256 to i32
%258 = call i32 @assert(i32 %257)
%259 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%260 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %259, i32 0, i32 3
%261 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %260
%262 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %261, i64 0
%263 = load %struct.TYPE_3__*, %struct.TYPE_3__** %262
%264 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %263, i32 0, i32 0
%265 = load i32, i32* %264
%266 = icmp eq i32 %265, 2
%267 = zext i1 %266 to i32
%268 = call i32 @assert(i32 %267)
%269 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%270 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %269, i32 0, i32 3
%271 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %270
%272 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %271, i64 1
%273 = load %struct.TYPE_3__*, %struct.TYPE_3__** %272
%274 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %273, i32 0, i32 1
%275 = load i64, i64* %274
%276 = load i64, i64* @HWLOC_OBJ_SOCKET
%277 = icmp eq i64 %275, %276
%278 = zext i1 %277 to i32
%279 = call i32 @assert(i32 %278)
%280 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%281 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %280, i32 0, i32 3
%282 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %281
%283 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %282, i64 1
%284 = load %struct.TYPE_3__*, %struct.TYPE_3__** %283
%285 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %284, i32 0, i32 2
%286 = load i32, i32* %285
%287 = icmp eq i32 %286, 3
%288 = zext i1 %287 to i32
%289 = call i32 @assert(i32 %288)
%290 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%291 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %290, i32 0, i32 3
%292 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %291
%293 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %292, i64 1
%294 = load %struct.TYPE_3__*, %struct.TYPE_3__** %293
%295 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %294, i32 0, i32 0
%296 = load i32, i32* %295
%297 = icmp eq i32 %296, 1
%298 = zext i1 %297 to i32
%299 = call i32 @assert(i32 %298)
%300 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%301 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %300, i32 0, i32 3
%302 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %301
%303 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %302, i64 2
%304 = load %struct.TYPE_3__*, %struct.TYPE_3__** %303
%305 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %304, i32 0, i32 1
%306 = load i64, i64* %305
%307 = load i64, i64* @HWLOC_OBJ_GROUP
%308 = icmp eq i64 %306, %307
%309 = zext i1 %308 to i32
%310 = call i32 @assert(i32 %309)
%311 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%312 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %311, i32 0, i32 3
%313 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %312
%314 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %313, i64 2
%315 = load %struct.TYPE_3__*, %struct.TYPE_3__** %314
%316 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %315, i32 0, i32 2
%317 = load i32, i32* %316
%318 = icmp eq i32 %317, 2
%319 = zext i1 %318 to i32
%320 = call i32 @assert(i32 %319)
%321 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%322 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %321, i32 0, i32 3
%323 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %322
%324 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %323, i64 2
%325 = load %struct.TYPE_3__*, %struct.TYPE_3__** %324
%326 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %325, i32 0, i32 0
%327 = load i32, i32* %326
%328 = icmp eq i32 %327, 2
%329 = zext i1 %328 to i32
%330 = call i32 @assert(i32 %329)
%331 = load i32, i32* %2
%332 = call i32 @hwloc_topology_destroy(i32 %331)
ret i32 0
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32, i64, i32, %struct.TYPE_3__** }
@.str = [12 x i8] c"node:3 pu:1\00"
@HWLOC_OBJ_PU = global i64 0
@HWLOC_OBJ_GROUP = global i64 0
@HWLOC_OBJ_NODE = global i64 0
@.str.1 = [21 x i8] c"node:1 socket:5 pu:1\00"
@HWLOC_OBJ_SOCKET = global i64 0
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x i32]
%3 = alloca [25 x float]
%4 = bitcast i32* %1 to i8*
%5 = bitcast [5 x i32]* %2 to i8*
%6 = bitcast [25 x float]* %3 to i8*
%7 = call i32 @hwloc_topology_init(i32* %1)
%8 = load i32, i32* %1
%9 = call i32 @hwloc_topology_set_synthetic(i32 %8, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%10 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 0
store i32 0, i32* %10
%11 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 1
store i32 1, i32* %11
%12 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 2
store i32 2, i32* %12
%13 = getelementptr inbounds [25 x float], [25 x float]* %3, i64 0, i64 0
%14 = bitcast [25 x float]* %3 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 4.000000e+00, float 4.000000e+00, float 4.000000e+00>, <4 x float>* %14
%15 = getelementptr inbounds [25 x float], [25 x float]* %3, i64 0, i64 4
%16 = bitcast float* %15 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 2.000000e+00, float 4.000000e+00, float 2.000000e+00>, <4 x float>* %16
%17 = getelementptr inbounds [25 x float], [25 x float]* %3, i64 0, i64 8
store float 1.000000e+00, float* %17
%18 = load i32, i32* %1
%19 = load i64, i64* @HWLOC_OBJ_PU
%20 = call i32 @hwloc_topology_set_distance_matrix(i32 %18, i64 %19, i32 3, i32* %10, float* %13)
%21 = load i32, i32* %1
%22 = call i32 @hwloc_topology_load(i32 %21)
%23 = load i32, i32* %1
%24 = load i64, i64* @HWLOC_OBJ_GROUP
%25 = call i32 @hwloc_get_type_depth(i32 %23, i64 %24)
%26 = icmp eq i32 %25, 1
%27 = zext i1 %26 to i32
%28 = call i32 @assert(i32 %27)
%29 = load i32, i32* %1
%30 = call i32 @hwloc_get_nbobjs_by_depth(i32 %29, i32 %25)
%31 = icmp eq i32 %30, 1
%32 = zext i1 %31 to i32
%33 = call i32 @assert(i32 %32)
%34 = load i32, i32* %1
%35 = load i64, i64* @HWLOC_OBJ_NODE
%36 = call i32 @hwloc_get_type_depth(i32 %34, i64 %35)
%37 = icmp eq i32 %36, 2
%38 = zext i1 %37 to i32
%39 = call i32 @assert(i32 %38)
%40 = load i32, i32* %1
%41 = call i32 @hwloc_get_nbobjs_by_depth(i32 %40, i32 %36)
%42 = icmp eq i32 %41, 3
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 %43)
%45 = load i32, i32* %1
%46 = call %struct.TYPE_3__* @hwloc_get_root_obj(i32 %45)
%47 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %46, i64 0, i32 0
%48 = load i32, i32* %47
%49 = icmp eq i32 %48, 2
%50 = zext i1 %49 to i32
%51 = call i32 @assert(i32 %50)
%52 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %46, i64 0, i32 3
%53 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %52
%54 = load %struct.TYPE_3__*, %struct.TYPE_3__** %53
%55 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %54, i64 0, i32 1
%56 = load i64, i64* %55
%57 = load i64, i64* @HWLOC_OBJ_NODE
%58 = icmp eq i64 %56, %57
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 %59)
%61 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %52
%62 = load %struct.TYPE_3__*, %struct.TYPE_3__** %61
%63 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %62, i64 0, i32 2
%64 = load i32, i32* %63
%65 = icmp eq i32 %64, 2
%66 = zext i1 %65 to i32
%67 = call i32 @assert(i32 %66)
%68 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %52
%69 = load %struct.TYPE_3__*, %struct.TYPE_3__** %68
%70 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %69, i64 0, i32 0
%71 = load i32, i32* %70
%72 = icmp eq i32 %71, 1
%73 = zext i1 %72 to i32
%74 = call i32 @assert(i32 %73)
%75 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %52
%76 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %75, i64 1
%77 = load %struct.TYPE_3__*, %struct.TYPE_3__** %76
%78 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %77, i64 0, i32 1
%79 = load i64, i64* %78
%80 = load i64, i64* @HWLOC_OBJ_GROUP
%81 = icmp eq i64 %79, %80
%82 = zext i1 %81 to i32
%83 = call i32 @assert(i32 %82)
%84 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %52
%85 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %84, i64 1
%86 = load %struct.TYPE_3__*, %struct.TYPE_3__** %85
%87 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %86, i64 0, i32 2
%88 = load i32, i32* %87
%89 = icmp eq i32 %88, 1
%90 = zext i1 %89 to i32
%91 = call i32 @assert(i32 %90)
%92 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %52
%93 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %92, i64 1
%94 = load %struct.TYPE_3__*, %struct.TYPE_3__** %93
%95 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %94, i64 0, i32 0
%96 = load i32, i32* %95
%97 = icmp eq i32 %96, 2
%98 = zext i1 %97 to i32
%99 = call i32 @assert(i32 %98)
%100 = load i32, i32* %1
%101 = call i32 @hwloc_topology_destroy(i32 %100)
%102 = call i32 @hwloc_topology_init(i32* %1)
%103 = load i32, i32* %1
%104 = call i32 @hwloc_topology_set_synthetic(i32 %103, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%105 = bitcast [5 x i32]* %2 to <4 x i32>*
store <4 x i32> <i32 0, i32 1, i32 2, i32 3>, <4 x i32>* %105
%106 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 4
store i32 4, i32* %106
%107 = bitcast [25 x float]* %3 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 2.000000e+00, float 4.000000e+00, float 4.000000e+00>, <4 x float>* %107
%108 = bitcast float* %15 to <4 x float>*
store <4 x float> <float 4.000000e+00, float 2.000000e+00, float 1.000000e+00, float 4.000000e+00>, <4 x float>* %108
%109 = bitcast float* %17 to <4 x float>*
store <4 x float> <float 4.000000e+00, float 4.000000e+00, float 4.000000e+00, float 4.000000e+00>, <4 x float>* %109
%110 = getelementptr inbounds [25 x float], [25 x float]* %3, i64 0, i64 12
%111 = bitcast float* %110 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 4.000000e+00, float 4.000000e+00, float 4.000000e+00>, <4 x float>* %111
%112 = getelementptr inbounds [25 x float], [25 x float]* %3, i64 0, i64 16
%113 = bitcast float* %112 to <4 x float>*
store <4 x float> <float 4.000000e+00, float 4.000000e+00, float 1.000000e+00, float 2.000000e+00>, <4 x float>* %113
%114 = getelementptr inbounds [25 x float], [25 x float]* %3, i64 0, i64 20
%115 = bitcast float* %114 to <4 x float>*
store <4 x float> <float 4.000000e+00, float 4.000000e+00, float 4.000000e+00, float 2.000000e+00>, <4 x float>* %115
%116 = getelementptr inbounds [25 x float], [25 x float]* %3, i64 0, i64 24
store float 1.000000e+00, float* %116
%117 = load i32, i32* %1
%118 = load i64, i64* @HWLOC_OBJ_SOCKET
%119 = call i32 @hwloc_topology_set_distance_matrix(i32 %117, i64 %118, i32 5, i32* %10, float* %13)
%120 = load i32, i32* %1
%121 = call i32 @hwloc_topology_load(i32 %120)
%122 = load i32, i32* %1
%123 = load i64, i64* @HWLOC_OBJ_NODE
%124 = call i32 @hwloc_get_type_depth(i32 %122, i64 %123)
%125 = icmp eq i32 %124, 1
%126 = zext i1 %125 to i32
%127 = call i32 @assert(i32 %126)
%128 = load i32, i32* %1
%129 = call i32 @hwloc_get_nbobjs_by_depth(i32 %128, i32 %124)
%130 = icmp eq i32 %129, 1
%131 = zext i1 %130 to i32
%132 = call i32 @assert(i32 %131)
%133 = load i32, i32* %1
%134 = load i64, i64* @HWLOC_OBJ_GROUP
%135 = call i32 @hwloc_get_type_depth(i32 %133, i64 %134)
%136 = icmp eq i32 %135, 2
%137 = zext i1 %136 to i32
%138 = call i32 @assert(i32 %137)
%139 = load i32, i32* %1
%140 = call i32 @hwloc_get_nbobjs_by_depth(i32 %139, i32 %135)
%141 = icmp eq i32 %140, 2
%142 = zext i1 %141 to i32
%143 = call i32 @assert(i32 %142)
%144 = load i32, i32* %1
%145 = load i64, i64* @HWLOC_OBJ_SOCKET
%146 = call i32 @hwloc_get_type_depth(i32 %144, i64 %145)
%147 = icmp eq i32 %146, 3
%148 = zext i1 %147 to i32
%149 = call i32 @assert(i32 %148)
%150 = load i32, i32* %1
%151 = call i32 @hwloc_get_nbobjs_by_depth(i32 %150, i32 %146)
%152 = icmp eq i32 %151, 5
%153 = zext i1 %152 to i32
%154 = call i32 @assert(i32 %153)
%155 = load i32, i32* %1
%156 = call %struct.TYPE_3__* @hwloc_get_root_obj(i32 %155)
%157 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %156, i64 0, i32 0
%158 = load i32, i32* %157
%159 = icmp eq i32 %158, 1
%160 = zext i1 %159 to i32
%161 = call i32 @assert(i32 %160)
%162 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %156, i64 0, i32 3
%163 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %162
%164 = load %struct.TYPE_3__*, %struct.TYPE_3__** %163
%165 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %164, i64 0, i32 1
%166 = load i64, i64* %165
%167 = load i64, i64* @HWLOC_OBJ_NODE
%168 = icmp eq i64 %166, %167
%169 = zext i1 %168 to i32
%170 = call i32 @assert(i32 %169)
%171 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %164, i64 0, i32 0
%172 = load i32, i32* %171
%173 = icmp eq i32 %172, 3
%174 = zext i1 %173 to i32
%175 = call i32 @assert(i32 %174)
%176 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %164, i64 0, i32 3
%177 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %176
%178 = load %struct.TYPE_3__*, %struct.TYPE_3__** %177
%179 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %178, i64 0, i32 1
%180 = load i64, i64* %179
%181 = load i64, i64* @HWLOC_OBJ_GROUP
%182 = icmp eq i64 %180, %181
%183 = zext i1 %182 to i32
%184 = call i32 @assert(i32 %183)
%185 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %176
%186 = load %struct.TYPE_3__*, %struct.TYPE_3__** %185
%187 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %186, i64 0, i32 2
%188 = load i32, i32* %187
%189 = icmp eq i32 %188, 2
%190 = zext i1 %189 to i32
%191 = call i32 @assert(i32 %190)
%192 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %176
%193 = load %struct.TYPE_3__*, %struct.TYPE_3__** %192
%194 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %193, i64 0, i32 0
%195 = load i32, i32* %194
%196 = icmp eq i32 %195, 2
%197 = zext i1 %196 to i32
%198 = call i32 @assert(i32 %197)
%199 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %176
%200 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %199, i64 1
%201 = load %struct.TYPE_3__*, %struct.TYPE_3__** %200
%202 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %201, i64 0, i32 1
%203 = load i64, i64* %202
%204 = load i64, i64* @HWLOC_OBJ_SOCKET
%205 = icmp eq i64 %203, %204
%206 = zext i1 %205 to i32
%207 = call i32 @assert(i32 %206)
%208 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %176
%209 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %208, i64 1
%210 = load %struct.TYPE_3__*, %struct.TYPE_3__** %209
%211 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %210, i64 0, i32 2
%212 = load i32, i32* %211
%213 = icmp eq i32 %212, 3
%214 = zext i1 %213 to i32
%215 = call i32 @assert(i32 %214)
%216 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %176
%217 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %216, i64 1
%218 = load %struct.TYPE_3__*, %struct.TYPE_3__** %217
%219 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %218, i64 0, i32 0
%220 = load i32, i32* %219
%221 = icmp eq i32 %220, 1
%222 = zext i1 %221 to i32
%223 = call i32 @assert(i32 %222)
%224 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %176
%225 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %224, i64 2
%226 = load %struct.TYPE_3__*, %struct.TYPE_3__** %225
%227 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %226, i64 0, i32 1
%228 = load i64, i64* %227
%229 = load i64, i64* @HWLOC_OBJ_GROUP
%230 = icmp eq i64 %228, %229
%231 = zext i1 %230 to i32
%232 = call i32 @assert(i32 %231)
%233 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %176
%234 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %233, i64 2
%235 = load %struct.TYPE_3__*, %struct.TYPE_3__** %234
%236 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %235, i64 0, i32 2
%237 = load i32, i32* %236
%238 = icmp eq i32 %237, 2
%239 = zext i1 %238 to i32
%240 = call i32 @assert(i32 %239)
%241 = load %struct.TYPE_3__**, %struct.TYPE_3__*** %176
%242 = getelementptr inbounds %struct.TYPE_3__*, %struct.TYPE_3__** %241, i64 2
%243 = load %struct.TYPE_3__*, %struct.TYPE_3__** %242
%244 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %243, i64 0, i32 0
%245 = load i32, i32* %244
%246 = icmp eq i32 %245, 2
%247 = zext i1 %246 to i32
%248 = call i32 @assert(i32 %247)
%249 = load i32, i32* %1
%250 = call i32 @hwloc_topology_destroy(i32 %249)
ret i32 0
}