#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 */
typedef int /*<<< orphan*/ hwloc_topology_t;

/* Variables and functions */
int /*<<< orphan*/ HWLOC_OBJ_CORE;
int /*<<< orphan*/ assert(int);
unsigned int hwloc_get_nbobjs_by_depth(int /*<<< orphan*/, int);
int /*<<< orphan*/ hwloc_topology_destroy(int /*<<< orphan*/);
unsigned int hwloc_topology_get_depth(int /*<<< orphan*/);
int /*<<< orphan*/ hwloc_topology_init(int /*<<< orphan*/ *);
int /*<<< orphan*/ hwloc_topology_load(int /*<<< orphan*/);
scalar_t__ hwloc_topology_set_distance_matrix(int /*<<< orphan*/,
                                              int /*<<< orphan*/, int,
                                              unsigned int *, float *);
int /*<<< orphan*/ hwloc_topology_set_synthetic(int /*<<< orphan*/, char *);
int /*<<< orphan*/ putenv(char *);
int main(void) {
  hwloc_topology_t topology;
  unsigned indexes[16];
  float distances[16 * 16];
  unsigned i, j;
  unsigned depth;
  unsigned width;
  hwloc_topology_init(&topology);
  hwloc_topology_set_synthetic(topology, "node:2 core:8 pu:1");
  hwloc_topology_load(topology);
  depth = hwloc_topology_get_depth(topology);
  assert(depth == 4);
  width = hwloc_get_nbobjs_by_depth(topology, 0);
  assert(width == 1);
  width = hwloc_get_nbobjs_by_depth(topology, 1);
  assert(width == 2);
  width = hwloc_get_nbobjs_by_depth(topology, 2);
  assert(width == 16);
  width = hwloc_get_nbobjs_by_depth(topology, 3);
  assert(width == 16);
  for (i = 0; i < 16; i++) {
    indexes[i] = i;
    for (j = 0; j < 16; j++)
      if (i == j)
        distances[i + 16 * j] = distances[j + 16 * i] = 3;
      else if (i / 2 == j / 2)
        distances[i + 16 * j] = distances[j + 16 * i] = 5;
      else if (i / 4 == j / 4)
        distances[i + 16 * j] = distances[j + 16 * i] = 7;
      else
        distances[i + 16 * j] = distances[j + 16 * i] = 9;
  }
  assert(!hwloc_topology_set_distance_matrix(topology, HWLOC_OBJ_CORE, 16,
                                             indexes, distances));
  hwloc_topology_load(topology);
  depth = hwloc_topology_get_depth(topology);
  assert(depth == 6);
  width = hwloc_get_nbobjs_by_depth(topology, 0);
  assert(width == 1);
  width = hwloc_get_nbobjs_by_depth(topology, 1);
  assert(width == 2);
  width = hwloc_get_nbobjs_by_depth(topology, 2);
  assert(width == 4);
  width = hwloc_get_nbobjs_by_depth(topology, 3);
  assert(width == 8);
  width = hwloc_get_nbobjs_by_depth(topology, 4);
  assert(width == 16);
  distances[0] = 2.9;
  distances[1] = 5.1;
  distances[16] = 5.2;
  assert(!hwloc_topology_set_distance_matrix(topology, HWLOC_OBJ_CORE, 16,
                                             indexes, distances));
  putenv("HWLOC_GROUPING_ACCURACY=0.1");
  hwloc_topology_load(topology);
  depth = hwloc_topology_get_depth(topology);
  assert(depth == 6);
  putenv("HWLOC_GROUPING_ACCURACY=try");
  hwloc_topology_load(topology);
  depth = hwloc_topology_get_depth(topology);
  assert(depth == 6);
  putenv("HWLOC_GROUPING_ACCURACY=0.01");
  hwloc_topology_load(topology);
  depth = hwloc_topology_get_depth(topology);
  assert(depth == 4);
  putenv("HWLOC_GROUPING_ACCURACY=0");
  hwloc_topology_load(topology);
  depth = hwloc_topology_get_depth(topology);
  assert(depth == 4);
  assert(!hwloc_topology_set_distance_matrix(topology, HWLOC_OBJ_CORE, 0, NULL,
                                             NULL));
  hwloc_topology_load(topology);
  depth = hwloc_topology_get_depth(topology);
  assert(depth == 4);
  width = hwloc_get_nbobjs_by_depth(topology, 0);
  assert(width == 1);
  width = hwloc_get_nbobjs_by_depth(topology, 1);
  assert(width == 2);
  width = hwloc_get_nbobjs_by_depth(topology, 2);
  assert(width == 16);
  width = hwloc_get_nbobjs_by_depth(topology, 3);
  assert(width == 16);
  hwloc_topology_set_synthetic(topology, "node:2 core:4 pu:4");
  hwloc_topology_load(topology);
  depth = hwloc_topology_get_depth(topology);
  assert(depth == 4);
  width = hwloc_get_nbobjs_by_depth(topology, 0);
  assert(width == 1);
  width = hwloc_get_nbobjs_by_depth(topology, 1);
  assert(width == 2);
  width = hwloc_get_nbobjs_by_depth(topology, 2);
  assert(width == 8);
  width = hwloc_get_nbobjs_by_depth(topology, 3);
  assert(width == 32);
  putenv("HWLOC_Core_DISTANCES=0,1,2,3,4,5,6,7:4*2");
  hwloc_topology_load(topology);
  depth = hwloc_topology_get_depth(topology);
  assert(depth == 5);
  width = hwloc_get_nbobjs_by_depth(topology, 0);
  assert(width == 1);
  width = hwloc_get_nbobjs_by_depth(topology, 1);
  assert(width == 2);
  width = hwloc_get_nbobjs_by_depth(topology, 2);
  assert(width == 4);
  width = hwloc_get_nbobjs_by_depth(topology, 3);
  assert(width == 8);
  width = hwloc_get_nbobjs_by_depth(topology, 4);
  assert(width == 32);
  putenv("HWLOC_PU_DISTANCES=0-31:16*2");
  hwloc_topology_load(topology);
  depth = hwloc_topology_get_depth(topology);
  assert(depth == 6);
  width = hwloc_get_nbobjs_by_depth(topology, 0);
  assert(width == 1);
  width = hwloc_get_nbobjs_by_depth(topology, 1);
  assert(width == 2);
  width = hwloc_get_nbobjs_by_depth(topology, 2);
  assert(width == 4);
  width = hwloc_get_nbobjs_by_depth(topology, 3);
  assert(width == 8);
  width = hwloc_get_nbobjs_by_depth(topology, 4);
  assert(width == 16);
  width = hwloc_get_nbobjs_by_depth(topology, 5);
  assert(width == 32);
  putenv("HWLOC_Core_DISTANCES=0-7:2*4");
  hwloc_topology_load(topology);
  depth = hwloc_topology_get_depth(topology);
  assert(depth == 5);
  width = hwloc_get_nbobjs_by_depth(topology, 0);
  assert(width == 1);
  width = hwloc_get_nbobjs_by_depth(topology, 1);
  assert(width == 2);
  width = hwloc_get_nbobjs_by_depth(topology, 2);
  assert(width == 8);
  width = hwloc_get_nbobjs_by_depth(topology, 3);
  assert(width == 16);
  width = hwloc_get_nbobjs_by_depth(topology, 4);
  assert(width == 32);
  putenv("HWLOC_Core_DISTANCES=none");
  putenv("HWLOC_PU_DISTANCES=none");
  hwloc_topology_load(topology);
  depth = hwloc_topology_get_depth(topology);
  assert(depth == 4);
  width = hwloc_get_nbobjs_by_depth(topology, 0);
  assert(width == 1);
  width = hwloc_get_nbobjs_by_depth(topology, 1);
  assert(width == 2);
  width = hwloc_get_nbobjs_by_depth(topology, 2);
  assert(width == 8);
  width = hwloc_get_nbobjs_by_depth(topology, 3);
  assert(width == 32);
  assert(hwloc_topology_set_distance_matrix(topology, HWLOC_OBJ_CORE, 16, NULL,
                                            NULL) < 0);
  assert(hwloc_topology_set_distance_matrix(topology, HWLOC_OBJ_CORE, 0,
                                            indexes, NULL) < 0);
  indexes[1] = 0;
  assert(hwloc_topology_set_distance_matrix(topology, HWLOC_OBJ_CORE, 16,
                                            indexes, distances) < 0);
  hwloc_topology_destroy(topology);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x460,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x8(%rbp),%rdi
call   1030 <hwloc_topology_init@plt>
mov    -0x8(%rbp),%edi
lea    0xe67(%rip),%rsi
call   10a0 <hwloc_topology_set_synthetic@plt>
mov    -0x8(%rbp),%edi
call   1040 <hwloc_topology_load@plt>
mov    -0x8(%rbp),%edi
call   1050 <hwloc_topology_get_depth@plt>
mov    %eax,-0x45c(%rbp)
cmpl   $0x4,-0x45c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
xor    %esi,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x1,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x1,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x2,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x2,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x10,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x3,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x10,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
movl   $0x0,-0x454(%rbp)
cmpl   $0x10,-0x454(%rbp)
jae    146c <main+0x2dc>
mov    -0x454(%rbp),%ecx
mov    -0x454(%rbp),%eax
mov    %ecx,-0x50(%rbp,%rax,4)
movl   $0x0,-0x458(%rbp)
cmpl   $0x10,-0x458(%rbp)
jae    1453 <main+0x2c3>
mov    -0x454(%rbp),%eax
cmp    -0x458(%rbp),%eax
jne    131a <main+0x18a>
mov    -0x458(%rbp),%eax
mov    -0x454(%rbp),%ecx
shl    $0x4,%ecx
add    %ecx,%eax
mov    %eax,%eax
movss  0xd30(%rip),%xmm0
movss  %xmm0,-0x450(%rbp,%rax,4)
ff ff
mov    -0x454(%rbp),%eax
mov    -0x458(%rbp),%ecx
shl    $0x4,%ecx
add    %ecx,%eax
mov    %eax,%eax
movss  0xd0c(%rip),%xmm0
movss  %xmm0,-0x450(%rbp,%rax,4)
ff ff
jmp    143a <main+0x2aa>
mov    -0x454(%rbp),%eax
shr    $0x1,%eax
mov    -0x458(%rbp),%ecx
shr    $0x1,%ecx
cmp    %ecx,%eax
jne    1381 <main+0x1f1>
mov    -0x458(%rbp),%eax
mov    -0x454(%rbp),%ecx
shl    $0x4,%ecx
add    %ecx,%eax
mov    %eax,%eax
movss  0xcc5(%rip),%xmm0
movss  %xmm0,-0x450(%rbp,%rax,4)
ff ff
mov    -0x454(%rbp),%eax
mov    -0x458(%rbp),%ecx
shl    $0x4,%ecx
add    %ecx,%eax
mov    %eax,%eax
movss  0xca1(%rip),%xmm0
movss  %xmm0,-0x450(%rbp,%rax,4)
ff ff
jmp    1435 <main+0x2a5>
mov    -0x454(%rbp),%eax
shr    $0x2,%eax
mov    -0x458(%rbp),%ecx
shr    $0x2,%ecx
cmp    %ecx,%eax
jne    13e8 <main+0x258>
mov    -0x458(%rbp),%eax
mov    -0x454(%rbp),%ecx
shl    $0x4,%ecx
add    %ecx,%eax
mov    %eax,%eax
movss  0xc5a(%rip),%xmm0
movss  %xmm0,-0x450(%rbp,%rax,4)
ff ff
mov    -0x454(%rbp),%eax
mov    -0x458(%rbp),%ecx
shl    $0x4,%ecx
add    %ecx,%eax
mov    %eax,%eax
movss  0xc36(%rip),%xmm0
movss  %xmm0,-0x450(%rbp,%rax,4)
ff ff
jmp    1430 <main+0x2a0>
mov    -0x458(%rbp),%eax
mov    -0x454(%rbp),%ecx
shl    $0x4,%ecx
add    %ecx,%eax
mov    %eax,%eax
movss  0xc09(%rip),%xmm0
movss  %xmm0,-0x450(%rbp,%rax,4)
ff ff
mov    -0x454(%rbp),%eax
mov    -0x458(%rbp),%ecx
shl    $0x4,%ecx
add    %ecx,%eax
mov    %eax,%eax
movss  0xbe5(%rip),%xmm0
movss  %xmm0,-0x450(%rbp,%rax,4)
ff ff
jmp    1435 <main+0x2a5>
jmp    143a <main+0x2aa>
jmp    143f <main+0x2af>
mov    -0x458(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x458(%rbp)
jmp    12ae <main+0x11e>
jmp    1458 <main+0x2c8>
mov    -0x454(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x454(%rbp)
jmp    1287 <main+0xf7>
mov    -0x8(%rbp),%edi
mov    0x2b6a(%rip),%rax
mov    (%rax),%esi
lea    -0x50(%rbp),%rcx
lea    -0x450(%rbp),%r8
mov    $0x10,%edx
call   1060 <hwloc_topology_set_distance_matrix@plt>
cmp    $0x0,%rax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
call   1040 <hwloc_topology_load@plt>
mov    -0x8(%rbp),%edi
call   1050 <hwloc_topology_get_depth@plt>
mov    %eax,-0x45c(%rbp)
cmpl   $0x6,-0x45c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
xor    %esi,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x1,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x1,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x2,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x2,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x4,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x3,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x8,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x4,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x10,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
movss  0xa76(%rip),%xmm0
movss  %xmm0,-0x450(%rbp)
ff
movss  0xa62(%rip),%xmm0
movss  %xmm0,-0x44c(%rbp)
ff
movss  0xa4e(%rip),%xmm0
movss  %xmm0,-0x410(%rbp)
ff
mov    -0x8(%rbp),%edi
mov    0x2a1c(%rip),%rax
mov    (%rax),%esi
lea    -0x50(%rbp),%rcx
lea    -0x450(%rbp),%r8
mov    $0x10,%edx
call   1060 <hwloc_topology_set_distance_matrix@plt>
cmp    $0x0,%rax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    0xa3a(%rip),%rdi
call   1070 <putenv@plt>
mov    -0x8(%rbp),%edi
call   1040 <hwloc_topology_load@plt>
mov    -0x8(%rbp),%edi
call   1050 <hwloc_topology_get_depth@plt>
mov    %eax,-0x45c(%rbp)
cmpl   $0x6,-0x45c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    0xa20(%rip),%rdi
call   1070 <putenv@plt>
mov    -0x8(%rbp),%edi
call   1040 <hwloc_topology_load@plt>
mov    -0x8(%rbp),%edi
call   1050 <hwloc_topology_get_depth@plt>
mov    %eax,-0x45c(%rbp)
cmpl   $0x6,-0x45c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    0xa06(%rip),%rdi
call   1070 <putenv@plt>
mov    -0x8(%rbp),%edi
call   1040 <hwloc_topology_load@plt>
mov    -0x8(%rbp),%edi
call   1050 <hwloc_topology_get_depth@plt>
mov    %eax,-0x45c(%rbp)
cmpl   $0x4,-0x45c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    0x9ed(%rip),%rdi
call   1070 <putenv@plt>
mov    -0x8(%rbp),%edi
call   1040 <hwloc_topology_load@plt>
mov    -0x8(%rbp),%edi
call   1050 <hwloc_topology_get_depth@plt>
mov    %eax,-0x45c(%rbp)
cmpl   $0x4,-0x45c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    0x2910(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
xor    %eax,%eax
mov    %eax,%r8d
mov    %r8,%rcx
call   1060 <hwloc_topology_set_distance_matrix@plt>
cmp    $0x0,%rax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
call   1040 <hwloc_topology_load@plt>
mov    -0x8(%rbp),%edi
call   1050 <hwloc_topology_get_depth@plt>
mov    %eax,-0x45c(%rbp)
cmpl   $0x4,-0x45c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
xor    %esi,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x1,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x1,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x2,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x2,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x10,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x3,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x10,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
lea    0x8dd(%rip),%rsi
call   10a0 <hwloc_topology_set_synthetic@plt>
mov    -0x8(%rbp),%edi
call   1040 <hwloc_topology_load@plt>
mov    -0x8(%rbp),%edi
call   1050 <hwloc_topology_get_depth@plt>
mov    %eax,-0x45c(%rbp)
cmpl   $0x4,-0x45c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
xor    %esi,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x1,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x1,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x2,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x2,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x8,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x3,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x20,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    0x821(%rip),%rdi
call   1070 <putenv@plt>
mov    -0x8(%rbp),%edi
call   1040 <hwloc_topology_load@plt>
mov    -0x8(%rbp),%edi
call   1050 <hwloc_topology_get_depth@plt>
mov    %eax,-0x45c(%rbp)
cmpl   $0x5,-0x45c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
xor    %esi,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x1,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x1,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x2,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x2,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x4,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x3,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x8,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x4,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x20,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    0x754(%rip),%rdi
call   1070 <putenv@plt>
mov    -0x8(%rbp),%edi
call   1040 <hwloc_topology_load@plt>
mov    -0x8(%rbp),%edi
call   1050 <hwloc_topology_get_depth@plt>
mov    %eax,-0x45c(%rbp)
cmpl   $0x6,-0x45c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
xor    %esi,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x1,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x1,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x2,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x2,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x4,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x3,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x8,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x4,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x10,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x5,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x20,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    0x654(%rip),%rdi
call   1070 <putenv@plt>
mov    -0x8(%rbp),%edi
call   1040 <hwloc_topology_load@plt>
mov    -0x8(%rbp),%edi
call   1050 <hwloc_topology_get_depth@plt>
mov    %eax,-0x45c(%rbp)
cmpl   $0x5,-0x45c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
xor    %esi,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x1,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x1,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x2,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x2,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x8,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x3,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x10,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x4,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x20,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
lea    0x57b(%rip),%rdi
call   1070 <putenv@plt>
lea    0x589(%rip),%rdi
call   1070 <putenv@plt>
mov    -0x8(%rbp),%edi
call   1040 <hwloc_topology_load@plt>
mov    -0x8(%rbp),%edi
call   1050 <hwloc_topology_get_depth@plt>
mov    %eax,-0x45c(%rbp)
cmpl   $0x4,-0x45c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
xor    %esi,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x1,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x1,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x2,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x2,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x8,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    $0x3,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
mov    %eax,-0x460(%rbp)
cmpl   $0x20,-0x460(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    0x2369(%rip),%rax
mov    (%rax),%esi
mov    $0x10,%edx
xor    %eax,%eax
mov    %eax,%r8d
mov    %r8,%rcx
call   1060 <hwloc_topology_set_distance_matrix@plt>
cmp    $0x0,%rax
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
mov    0x233a(%rip),%rax
mov    (%rax),%esi
lea    -0x50(%rbp),%rcx
xor    %edx,%edx
xor    %eax,%eax
mov    %eax,%r8d
call   1060 <hwloc_topology_set_distance_matrix@plt>
cmp    $0x0,%rax
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
movl   $0x0,-0x4c(%rbp)
mov    -0x8(%rbp),%edi
mov    0x2306(%rip),%rax
mov    (%rax),%esi
lea    -0x50(%rbp),%rcx
lea    -0x450(%rbp),%r8
mov    $0x10,%edx
call   1060 <hwloc_topology_set_distance_matrix@plt>
cmp    $0x0,%rax
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1080 <assert@plt>
mov    -0x8(%rbp),%edi
call   10b0 <hwloc_topology_destroy@plt>
xor    %eax,%eax
add    $0x460,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x450,%rsp
lea    0xc(%rsp),%rdi
call   1030 <hwloc_topology_init@plt>
mov    0xc(%rsp),%edi
lea    0xe4f(%rip),%rsi
call   10a0 <hwloc_topology_set_synthetic@plt>
mov    0xc(%rsp),%edi
call   1040 <hwloc_topology_load@plt>
mov    0xc(%rsp),%edi
call   1050 <hwloc_topology_get_depth@plt>
xor    %edi,%edi
cmp    $0x4,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
xor    %ebx,%ebx
xor    %esi,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x1,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x2,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x2,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x10,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x3,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x10,%eax
sete   %dil
call   1080 <assert@plt>
lea    0x50(%rsp),%rax
mov    %rax,%r8
jmp    1266 <main+0xd6>
nop
add    $0x1,%rbx
add    $0x4,%r8
add    $0x40,%rax
cmp    $0x10,%rbx
je     12e3 <main+0x153>
mov    %ebx,0x10(%rsp,%rbx,4)
mov    %rbx,%rdx
shl    $0x4,%rdx
add    %rbx,%rdx
mov    %r8,%rsi
xor    %edi,%edi
jmp    1296 <main+0x106>
nopl   0x0(%rax,%rax,1)
movl   $0x40400000,0x50(%rsp,%rdx,4)
40
add    $0x1,%rdi
add    $0x40,%rsi
cmp    $0x10,%rdi
je     1250 <main+0xc0>
cmp    %rdi,%rbx
je     1280 <main+0xf0>
mov    %edi,%ecx
xor    %ebx,%ecx
cmp    $0x1,%ecx
ja     12c0 <main+0x130>
movl   $0x40a00000,(%rax,%rdi,4)
movl   $0x40a00000,(%rsi)
jmp    1288 <main+0xf8>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmp    $0x3,%ecx
ja     12d4 <main+0x144>
movl   $0x40e00000,(%rax,%rdi,4)
movl   $0x40e00000,(%rsi)
jmp    1288 <main+0xf8>
movl   $0x41100000,(%rax,%rdi,4)
movl   $0x41100000,(%rsi)
jmp    1288 <main+0xf8>
mov    0xc(%rsp),%edi
mov    0x2cf2(%rip),%rbx
mov    (%rbx),%esi
lea    0x10(%rsp),%r15
lea    0x50(%rsp),%r14
mov    $0x10,%edx
mov    %r15,%rcx
mov    %r14,%r8
call   1060 <hwloc_topology_set_distance_matrix@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
call   1040 <hwloc_topology_load@plt>
mov    0xc(%rsp),%edi
call   1050 <hwloc_topology_get_depth@plt>
xor    %edi,%edi
cmp    $0x6,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
xor    %esi,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x1,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x2,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x2,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x4,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x3,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x8,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x4,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x10,%eax
sete   %dil
call   1080 <assert@plt>
movabs $0x40a333334039999a,%rax
33 a3 40
mov    %rax,0x50(%rsp)
movl   $0x40a66666,0x90(%rsp)
66 66 a6 40
mov    0xc(%rsp),%edi
mov    (%rbx),%esi
mov    $0x10,%edx
mov    %r15,%rcx
mov    %r14,%r8
call   1060 <hwloc_topology_set_distance_matrix@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1080 <assert@plt>
lea    0xc0d(%rip),%rdi
call   1070 <putenv@plt>
mov    0xc(%rsp),%edi
call   1040 <hwloc_topology_load@plt>
mov    0xc(%rsp),%edi
call   1050 <hwloc_topology_get_depth@plt>
xor    %edi,%edi
cmp    $0x6,%eax
sete   %dil
call   1080 <assert@plt>
lea    0xbfd(%rip),%rdi
call   1070 <putenv@plt>
mov    0xc(%rsp),%edi
call   1040 <hwloc_topology_load@plt>
mov    0xc(%rsp),%edi
call   1050 <hwloc_topology_get_depth@plt>
xor    %edi,%edi
cmp    $0x6,%eax
sete   %dil
call   1080 <assert@plt>
lea    0xbed(%rip),%rdi
call   1070 <putenv@plt>
mov    0xc(%rsp),%edi
call   1040 <hwloc_topology_load@plt>
mov    0xc(%rsp),%edi
call   1050 <hwloc_topology_get_depth@plt>
xor    %edi,%edi
cmp    $0x4,%eax
sete   %dil
call   1080 <assert@plt>
lea    0xbde(%rip),%rdi
call   1070 <putenv@plt>
mov    0xc(%rsp),%edi
call   1040 <hwloc_topology_load@plt>
mov    0xc(%rsp),%edi
call   1050 <hwloc_topology_get_depth@plt>
xor    %edi,%edi
cmp    $0x4,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    (%rbx),%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
call   1060 <hwloc_topology_set_distance_matrix@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
call   1040 <hwloc_topology_load@plt>
mov    0xc(%rsp),%edi
call   1050 <hwloc_topology_get_depth@plt>
xor    %edi,%edi
cmp    $0x4,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
xor    %esi,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x1,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x2,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x2,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x10,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x3,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x10,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
lea    0xb1b(%rip),%rsi
call   10a0 <hwloc_topology_set_synthetic@plt>
mov    0xc(%rsp),%edi
call   1040 <hwloc_topology_load@plt>
mov    0xc(%rsp),%edi
call   1050 <hwloc_topology_get_depth@plt>
xor    %edi,%edi
cmp    $0x4,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
xor    %esi,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x1,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x2,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x2,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x8,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x3,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x20,%eax
sete   %dil
call   1080 <assert@plt>
lea    0xa95(%rip),%rdi
call   1070 <putenv@plt>
mov    0xc(%rsp),%edi
call   1040 <hwloc_topology_load@plt>
mov    0xc(%rsp),%edi
call   1050 <hwloc_topology_get_depth@plt>
xor    %edi,%edi
cmp    $0x5,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
xor    %esi,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x1,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x2,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x2,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x4,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x3,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x8,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x4,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x20,%eax
sete   %dil
call   1080 <assert@plt>
lea    0xa09(%rip),%rdi
call   1070 <putenv@plt>
mov    0xc(%rsp),%edi
call   1040 <hwloc_topology_load@plt>
mov    0xc(%rsp),%edi
call   1050 <hwloc_topology_get_depth@plt>
xor    %edi,%edi
cmp    $0x6,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
xor    %esi,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x1,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x2,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x2,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x4,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x3,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x8,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x4,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x10,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x5,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x20,%eax
sete   %dil
call   1080 <assert@plt>
lea    0x955(%rip),%rdi
call   1070 <putenv@plt>
mov    0xc(%rsp),%edi
call   1040 <hwloc_topology_load@plt>
mov    0xc(%rsp),%edi
call   1050 <hwloc_topology_get_depth@plt>
xor    %edi,%edi
cmp    $0x5,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
xor    %esi,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x1,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x2,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x2,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x8,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x3,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x10,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x4,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x20,%eax
sete   %dil
call   1080 <assert@plt>
lea    0x8bd(%rip),%rdi
call   1070 <putenv@plt>
lea    0x8cb(%rip),%rdi
call   1070 <putenv@plt>
mov    0xc(%rsp),%edi
call   1040 <hwloc_topology_load@plt>
mov    0xc(%rsp),%edi
call   1050 <hwloc_topology_get_depth@plt>
xor    %edi,%edi
cmp    $0x4,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
xor    %esi,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x1,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x2,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x2,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x8,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    $0x3,%esi
call   1090 <hwloc_get_nbobjs_by_depth@plt>
xor    %edi,%edi
cmp    $0x20,%eax
sete   %dil
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    (%rbx),%esi
mov    $0x10,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
call   1060 <hwloc_topology_set_distance_matrix@plt>
shr    $0x3f,%rax
mov    %eax,%edi
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
mov    (%rbx),%esi
xor    %edx,%edx
mov    %r15,%rcx
xor    %r8d,%r8d
call   1060 <hwloc_topology_set_distance_matrix@plt>
shr    $0x3f,%rax
mov    %eax,%edi
call   1080 <assert@plt>
movl   $0x0,0x14(%rsp)
mov    0xc(%rsp),%edi
mov    (%rbx),%esi
mov    $0x10,%edx
mov    %r15,%rcx
mov    %r14,%r8
call   1060 <hwloc_topology_set_distance_matrix@plt>
shr    $0x3f,%rax
mov    %eax,%edi
call   1080 <assert@plt>
mov    0xc(%rsp),%edi
call   10b0 <hwloc_topology_destroy@plt>
xor    %eax,%eax
add    $0x450,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [19 x i8] c"node:2 core:8 pu:1\00"
@HWLOC_OBJ_CORE = global i32 0
@.str.1 = [28 x i8] c"HWLOC_GROUPING_ACCURACY=0.1\00"
@.str.2 = [28 x i8] c"HWLOC_GROUPING_ACCURACY=try\00"
@.str.3 = [29 x i8] c"HWLOC_GROUPING_ACCURACY=0.01\00"
@.str.4 = [26 x i8] c"HWLOC_GROUPING_ACCURACY=0\00"
@.str.5 = [19 x i8] c"node:2 core:4 pu:4\00"
@.str.6 = [41 x i8] c"HWLOC_Core_DISTANCES=0,1,2,3,4,5,6,7:4*2\00"
@.str.7 = [29 x i8] c"HWLOC_PU_DISTANCES=0-31:16*2\00"
@.str.8 = [29 x i8] c"HWLOC_Core_DISTANCES=0-7:2*4\00"
@.str.9 = [26 x i8] c"HWLOC_Core_DISTANCES=none\00"
@.str.10 = [24 x i8] c"HWLOC_PU_DISTANCES=none\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [16 x i32]
%4 = alloca [256 x float]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
%9 = call i32 @hwloc_topology_init(i32* %2)
%10 = load i32, i32* %2
%11 = call i32 @hwloc_topology_set_synthetic(i32 %10, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%12 = load i32, i32* %2
%13 = call i32 @hwloc_topology_load(i32 %12)
%14 = load i32, i32* %2
%15 = call i32 @hwloc_topology_get_depth(i32 %14)
store i32 %15, i32* %7
%16 = load i32, i32* %7
%17 = icmp eq i32 %16, 4
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 %18)
%20 = load i32, i32* %2
%21 = call i32 @hwloc_get_nbobjs_by_depth(i32 %20, i32 0)
store i32 %21, i32* %8
%22 = load i32, i32* %8
%23 = icmp eq i32 %22, 1
%24 = zext i1 %23 to i32
%25 = call i32 @assert(i32 %24)
%26 = load i32, i32* %2
%27 = call i32 @hwloc_get_nbobjs_by_depth(i32 %26, i32 1)
store i32 %27, i32* %8
%28 = load i32, i32* %8
%29 = icmp eq i32 %28, 2
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 %30)
%32 = load i32, i32* %2
%33 = call i32 @hwloc_get_nbobjs_by_depth(i32 %32, i32 2)
store i32 %33, i32* %8
%34 = load i32, i32* %8
%35 = icmp eq i32 %34, 16
%36 = zext i1 %35 to i32
%37 = call i32 @assert(i32 %36)
%38 = load i32, i32* %2
%39 = call i32 @hwloc_get_nbobjs_by_depth(i32 %38, i32 3)
store i32 %39, i32* %8
%40 = load i32, i32* %8
%41 = icmp eq i32 %40, 16
%42 = zext i1 %41 to i32
%43 = call i32 @assert(i32 %42)
store i32 0, i32* %5
br label %44
44: ; preds = %130, %0
%45 = load i32, i32* %5
%46 = icmp ult i32 %45, 16
br i1 %46, label %47, label %133
47: ; preds = %44
%48 = load i32, i32* %5
%49 = load i32, i32* %5
%50 = zext i32 %49 to i64
%51 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 %50
store i32 %48, i32* %51
store i32 0, i32* %6
br label %52
52: ; preds = %126, %47
%53 = load i32, i32* %6
%54 = icmp ult i32 %53, 16
br i1 %54, label %55, label %129
55: ; preds = %52
%56 = load i32, i32* %5
%57 = load i32, i32* %6
%58 = icmp eq i32 %56, %57
br i1 %58, label %59, label %72
59: ; preds = %55
%60 = load i32, i32* %6
%61 = load i32, i32* %5
%62 = mul i32 16, %61
%63 = add i32 %60, %62
%64 = zext i32 %63 to i64
%65 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 %64
store float 3.000000e+00, float* %65
%66 = load i32, i32* %5
%67 = load i32, i32* %6
%68 = mul i32 16, %67
%69 = add i32 %66, %68
%70 = zext i32 %69 to i64
%71 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 %70
store float 3.000000e+00, float* %71
br label %125
72: ; preds = %55
%73 = load i32, i32* %5
%74 = udiv i32 %73, 2
%75 = load i32, i32* %6
%76 = udiv i32 %75, 2
%77 = icmp eq i32 %74, %76
br i1 %77, label %78, label %91
78: ; preds = %72
%79 = load i32, i32* %6
%80 = load i32, i32* %5
%81 = mul i32 16, %80
%82 = add i32 %79, %81
%83 = zext i32 %82 to i64
%84 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 %83
store float 5.000000e+00, float* %84
%85 = load i32, i32* %5
%86 = load i32, i32* %6
%87 = mul i32 16, %86
%88 = add i32 %85, %87
%89 = zext i32 %88 to i64
%90 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 %89
store float 5.000000e+00, float* %90
br label %124
91: ; preds = %72
%92 = load i32, i32* %5
%93 = udiv i32 %92, 4
%94 = load i32, i32* %6
%95 = udiv i32 %94, 4
%96 = icmp eq i32 %93, %95
br i1 %96, label %97, label %110
97: ; preds = %91
%98 = load i32, i32* %6
%99 = load i32, i32* %5
%100 = mul i32 16, %99
%101 = add i32 %98, %100
%102 = zext i32 %101 to i64
%103 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 %102
store float 7.000000e+00, float* %103
%104 = load i32, i32* %5
%105 = load i32, i32* %6
%106 = mul i32 16, %105
%107 = add i32 %104, %106
%108 = zext i32 %107 to i64
%109 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 %108
store float 7.000000e+00, float* %109
br label %123
110: ; preds = %91
%111 = load i32, i32* %6
%112 = load i32, i32* %5
%113 = mul i32 16, %112
%114 = add i32 %111, %113
%115 = zext i32 %114 to i64
%116 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 %115
store float 9.000000e+00, float* %116
%117 = load i32, i32* %5
%118 = load i32, i32* %6
%119 = mul i32 16, %118
%120 = add i32 %117, %119
%121 = zext i32 %120 to i64
%122 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 %121
store float 9.000000e+00, float* %122
br label %123
123: ; preds = %110, %97
br label %124
124: ; preds = %123, %78
br label %125
125: ; preds = %124, %59
br label %126
126: ; preds = %125
%127 = load i32, i32* %6
%128 = add i32 %127, 1
store i32 %128, i32* %6
br label %52
129: ; preds = %52
br label %130
130: ; preds = %129
%131 = load i32, i32* %5
%132 = add i32 %131, 1
store i32 %132, i32* %5
br label %44
133: ; preds = %44
%134 = load i32, i32* %2
%135 = load i32, i32* @HWLOC_OBJ_CORE
%136 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 0
%137 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 0
%138 = call i64 @hwloc_topology_set_distance_matrix(i32 %134, i32 %135, i32 16, i32* %136, float* %137)
%139 = icmp ne i64 %138, 0
%140 = xor i1 %139, true
%141 = zext i1 %140 to i32
%142 = call i32 @assert(i32 %141)
%143 = load i32, i32* %2
%144 = call i32 @hwloc_topology_load(i32 %143)
%145 = load i32, i32* %2
%146 = call i32 @hwloc_topology_get_depth(i32 %145)
store i32 %146, i32* %7
%147 = load i32, i32* %7
%148 = icmp eq i32 %147, 6
%149 = zext i1 %148 to i32
%150 = call i32 @assert(i32 %149)
%151 = load i32, i32* %2
%152 = call i32 @hwloc_get_nbobjs_by_depth(i32 %151, i32 0)
store i32 %152, i32* %8
%153 = load i32, i32* %8
%154 = icmp eq i32 %153, 1
%155 = zext i1 %154 to i32
%156 = call i32 @assert(i32 %155)
%157 = load i32, i32* %2
%158 = call i32 @hwloc_get_nbobjs_by_depth(i32 %157, i32 1)
store i32 %158, i32* %8
%159 = load i32, i32* %8
%160 = icmp eq i32 %159, 2
%161 = zext i1 %160 to i32
%162 = call i32 @assert(i32 %161)
%163 = load i32, i32* %2
%164 = call i32 @hwloc_get_nbobjs_by_depth(i32 %163, i32 2)
store i32 %164, i32* %8
%165 = load i32, i32* %8
%166 = icmp eq i32 %165, 4
%167 = zext i1 %166 to i32
%168 = call i32 @assert(i32 %167)
%169 = load i32, i32* %2
%170 = call i32 @hwloc_get_nbobjs_by_depth(i32 %169, i32 3)
store i32 %170, i32* %8
%171 = load i32, i32* %8
%172 = icmp eq i32 %171, 8
%173 = zext i1 %172 to i32
%174 = call i32 @assert(i32 %173)
%175 = load i32, i32* %2
%176 = call i32 @hwloc_get_nbobjs_by_depth(i32 %175, i32 4)
store i32 %176, i32* %8
%177 = load i32, i32* %8
%178 = icmp eq i32 %177, 16
%179 = zext i1 %178 to i32
%180 = call i32 @assert(i32 %179)
%181 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 0
store float 0x4007333340000000, float* %181
%182 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 1
store float 0x4014666660000000, float* %182
%183 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 16
store float 0x4014CCCCC0000000, float* %183
%184 = load i32, i32* %2
%185 = load i32, i32* @HWLOC_OBJ_CORE
%186 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 0
%187 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 0
%188 = call i64 @hwloc_topology_set_distance_matrix(i32 %184, i32 %185, i32 16, i32* %186, float* %187)
%189 = icmp ne i64 %188, 0
%190 = xor i1 %189, true
%191 = zext i1 %190 to i32
%192 = call i32 @assert(i32 %191)
%193 = call i32 @putenv(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%194 = load i32, i32* %2
%195 = call i32 @hwloc_topology_load(i32 %194)
%196 = load i32, i32* %2
%197 = call i32 @hwloc_topology_get_depth(i32 %196)
store i32 %197, i32* %7
%198 = load i32, i32* %7
%199 = icmp eq i32 %198, 6
%200 = zext i1 %199 to i32
%201 = call i32 @assert(i32 %200)
%202 = call i32 @putenv(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%203 = load i32, i32* %2
%204 = call i32 @hwloc_topology_load(i32 %203)
%205 = load i32, i32* %2
%206 = call i32 @hwloc_topology_get_depth(i32 %205)
store i32 %206, i32* %7
%207 = load i32, i32* %7
%208 = icmp eq i32 %207, 6
%209 = zext i1 %208 to i32
%210 = call i32 @assert(i32 %209)
%211 = call i32 @putenv(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%212 = load i32, i32* %2
%213 = call i32 @hwloc_topology_load(i32 %212)
%214 = load i32, i32* %2
%215 = call i32 @hwloc_topology_get_depth(i32 %214)
store i32 %215, i32* %7
%216 = load i32, i32* %7
%217 = icmp eq i32 %216, 4
%218 = zext i1 %217 to i32
%219 = call i32 @assert(i32 %218)
%220 = call i32 @putenv(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0))
%221 = load i32, i32* %2
%222 = call i32 @hwloc_topology_load(i32 %221)
%223 = load i32, i32* %2
%224 = call i32 @hwloc_topology_get_depth(i32 %223)
store i32 %224, i32* %7
%225 = load i32, i32* %7
%226 = icmp eq i32 %225, 4
%227 = zext i1 %226 to i32
%228 = call i32 @assert(i32 %227)
%229 = load i32, i32* %2
%230 = load i32, i32* @HWLOC_OBJ_CORE
%231 = call i64 @hwloc_topology_set_distance_matrix(i32 %229, i32 %230, i32 0, i32* null, float* null)
%232 = icmp ne i64 %231, 0
%233 = xor i1 %232, true
%234 = zext i1 %233 to i32
%235 = call i32 @assert(i32 %234)
%236 = load i32, i32* %2
%237 = call i32 @hwloc_topology_load(i32 %236)
%238 = load i32, i32* %2
%239 = call i32 @hwloc_topology_get_depth(i32 %238)
store i32 %239, i32* %7
%240 = load i32, i32* %7
%241 = icmp eq i32 %240, 4
%242 = zext i1 %241 to i32
%243 = call i32 @assert(i32 %242)
%244 = load i32, i32* %2
%245 = call i32 @hwloc_get_nbobjs_by_depth(i32 %244, i32 0)
store i32 %245, i32* %8
%246 = load i32, i32* %8
%247 = icmp eq i32 %246, 1
%248 = zext i1 %247 to i32
%249 = call i32 @assert(i32 %248)
%250 = load i32, i32* %2
%251 = call i32 @hwloc_get_nbobjs_by_depth(i32 %250, i32 1)
store i32 %251, i32* %8
%252 = load i32, i32* %8
%253 = icmp eq i32 %252, 2
%254 = zext i1 %253 to i32
%255 = call i32 @assert(i32 %254)
%256 = load i32, i32* %2
%257 = call i32 @hwloc_get_nbobjs_by_depth(i32 %256, i32 2)
store i32 %257, i32* %8
%258 = load i32, i32* %8
%259 = icmp eq i32 %258, 16
%260 = zext i1 %259 to i32
%261 = call i32 @assert(i32 %260)
%262 = load i32, i32* %2
%263 = call i32 @hwloc_get_nbobjs_by_depth(i32 %262, i32 3)
store i32 %263, i32* %8
%264 = load i32, i32* %8
%265 = icmp eq i32 %264, 16
%266 = zext i1 %265 to i32
%267 = call i32 @assert(i32 %266)
%268 = load i32, i32* %2
%269 = call i32 @hwloc_topology_set_synthetic(i32 %268, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%270 = load i32, i32* %2
%271 = call i32 @hwloc_topology_load(i32 %270)
%272 = load i32, i32* %2
%273 = call i32 @hwloc_topology_get_depth(i32 %272)
store i32 %273, i32* %7
%274 = load i32, i32* %7
%275 = icmp eq i32 %274, 4
%276 = zext i1 %275 to i32
%277 = call i32 @assert(i32 %276)
%278 = load i32, i32* %2
%279 = call i32 @hwloc_get_nbobjs_by_depth(i32 %278, i32 0)
store i32 %279, i32* %8
%280 = load i32, i32* %8
%281 = icmp eq i32 %280, 1
%282 = zext i1 %281 to i32
%283 = call i32 @assert(i32 %282)
%284 = load i32, i32* %2
%285 = call i32 @hwloc_get_nbobjs_by_depth(i32 %284, i32 1)
store i32 %285, i32* %8
%286 = load i32, i32* %8
%287 = icmp eq i32 %286, 2
%288 = zext i1 %287 to i32
%289 = call i32 @assert(i32 %288)
%290 = load i32, i32* %2
%291 = call i32 @hwloc_get_nbobjs_by_depth(i32 %290, i32 2)
store i32 %291, i32* %8
%292 = load i32, i32* %8
%293 = icmp eq i32 %292, 8
%294 = zext i1 %293 to i32
%295 = call i32 @assert(i32 %294)
%296 = load i32, i32* %2
%297 = call i32 @hwloc_get_nbobjs_by_depth(i32 %296, i32 3)
store i32 %297, i32* %8
%298 = load i32, i32* %8
%299 = icmp eq i32 %298, 32
%300 = zext i1 %299 to i32
%301 = call i32 @assert(i32 %300)
%302 = call i32 @putenv(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0))
%303 = load i32, i32* %2
%304 = call i32 @hwloc_topology_load(i32 %303)
%305 = load i32, i32* %2
%306 = call i32 @hwloc_topology_get_depth(i32 %305)
store i32 %306, i32* %7
%307 = load i32, i32* %7
%308 = icmp eq i32 %307, 5
%309 = zext i1 %308 to i32
%310 = call i32 @assert(i32 %309)
%311 = load i32, i32* %2
%312 = call i32 @hwloc_get_nbobjs_by_depth(i32 %311, i32 0)
store i32 %312, i32* %8
%313 = load i32, i32* %8
%314 = icmp eq i32 %313, 1
%315 = zext i1 %314 to i32
%316 = call i32 @assert(i32 %315)
%317 = load i32, i32* %2
%318 = call i32 @hwloc_get_nbobjs_by_depth(i32 %317, i32 1)
store i32 %318, i32* %8
%319 = load i32, i32* %8
%320 = icmp eq i32 %319, 2
%321 = zext i1 %320 to i32
%322 = call i32 @assert(i32 %321)
%323 = load i32, i32* %2
%324 = call i32 @hwloc_get_nbobjs_by_depth(i32 %323, i32 2)
store i32 %324, i32* %8
%325 = load i32, i32* %8
%326 = icmp eq i32 %325, 4
%327 = zext i1 %326 to i32
%328 = call i32 @assert(i32 %327)
%329 = load i32, i32* %2
%330 = call i32 @hwloc_get_nbobjs_by_depth(i32 %329, i32 3)
store i32 %330, i32* %8
%331 = load i32, i32* %8
%332 = icmp eq i32 %331, 8
%333 = zext i1 %332 to i32
%334 = call i32 @assert(i32 %333)
%335 = load i32, i32* %2
%336 = call i32 @hwloc_get_nbobjs_by_depth(i32 %335, i32 4)
store i32 %336, i32* %8
%337 = load i32, i32* %8
%338 = icmp eq i32 %337, 32
%339 = zext i1 %338 to i32
%340 = call i32 @assert(i32 %339)
%341 = call i32 @putenv(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
%342 = load i32, i32* %2
%343 = call i32 @hwloc_topology_load(i32 %342)
%344 = load i32, i32* %2
%345 = call i32 @hwloc_topology_get_depth(i32 %344)
store i32 %345, i32* %7
%346 = load i32, i32* %7
%347 = icmp eq i32 %346, 6
%348 = zext i1 %347 to i32
%349 = call i32 @assert(i32 %348)
%350 = load i32, i32* %2
%351 = call i32 @hwloc_get_nbobjs_by_depth(i32 %350, i32 0)
store i32 %351, i32* %8
%352 = load i32, i32* %8
%353 = icmp eq i32 %352, 1
%354 = zext i1 %353 to i32
%355 = call i32 @assert(i32 %354)
%356 = load i32, i32* %2
%357 = call i32 @hwloc_get_nbobjs_by_depth(i32 %356, i32 1)
store i32 %357, i32* %8
%358 = load i32, i32* %8
%359 = icmp eq i32 %358, 2
%360 = zext i1 %359 to i32
%361 = call i32 @assert(i32 %360)
%362 = load i32, i32* %2
%363 = call i32 @hwloc_get_nbobjs_by_depth(i32 %362, i32 2)
store i32 %363, i32* %8
%364 = load i32, i32* %8
%365 = icmp eq i32 %364, 4
%366 = zext i1 %365 to i32
%367 = call i32 @assert(i32 %366)
%368 = load i32, i32* %2
%369 = call i32 @hwloc_get_nbobjs_by_depth(i32 %368, i32 3)
store i32 %369, i32* %8
%370 = load i32, i32* %8
%371 = icmp eq i32 %370, 8
%372 = zext i1 %371 to i32
%373 = call i32 @assert(i32 %372)
%374 = load i32, i32* %2
%375 = call i32 @hwloc_get_nbobjs_by_depth(i32 %374, i32 4)
store i32 %375, i32* %8
%376 = load i32, i32* %8
%377 = icmp eq i32 %376, 16
%378 = zext i1 %377 to i32
%379 = call i32 @assert(i32 %378)
%380 = load i32, i32* %2
%381 = call i32 @hwloc_get_nbobjs_by_depth(i32 %380, i32 5)
store i32 %381, i32* %8
%382 = load i32, i32* %8
%383 = icmp eq i32 %382, 32
%384 = zext i1 %383 to i32
%385 = call i32 @assert(i32 %384)
%386 = call i32 @putenv(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
%387 = load i32, i32* %2
%388 = call i32 @hwloc_topology_load(i32 %387)
%389 = load i32, i32* %2
%390 = call i32 @hwloc_topology_get_depth(i32 %389)
store i32 %390, i32* %7
%391 = load i32, i32* %7
%392 = icmp eq i32 %391, 5
%393 = zext i1 %392 to i32
%394 = call i32 @assert(i32 %393)
%395 = load i32, i32* %2
%396 = call i32 @hwloc_get_nbobjs_by_depth(i32 %395, i32 0)
store i32 %396, i32* %8
%397 = load i32, i32* %8
%398 = icmp eq i32 %397, 1
%399 = zext i1 %398 to i32
%400 = call i32 @assert(i32 %399)
%401 = load i32, i32* %2
%402 = call i32 @hwloc_get_nbobjs_by_depth(i32 %401, i32 1)
store i32 %402, i32* %8
%403 = load i32, i32* %8
%404 = icmp eq i32 %403, 2
%405 = zext i1 %404 to i32
%406 = call i32 @assert(i32 %405)
%407 = load i32, i32* %2
%408 = call i32 @hwloc_get_nbobjs_by_depth(i32 %407, i32 2)
store i32 %408, i32* %8
%409 = load i32, i32* %8
%410 = icmp eq i32 %409, 8
%411 = zext i1 %410 to i32
%412 = call i32 @assert(i32 %411)
%413 = load i32, i32* %2
%414 = call i32 @hwloc_get_nbobjs_by_depth(i32 %413, i32 3)
store i32 %414, i32* %8
%415 = load i32, i32* %8
%416 = icmp eq i32 %415, 16
%417 = zext i1 %416 to i32
%418 = call i32 @assert(i32 %417)
%419 = load i32, i32* %2
%420 = call i32 @hwloc_get_nbobjs_by_depth(i32 %419, i32 4)
store i32 %420, i32* %8
%421 = load i32, i32* %8
%422 = icmp eq i32 %421, 32
%423 = zext i1 %422 to i32
%424 = call i32 @assert(i32 %423)
%425 = call i32 @putenv(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0))
%426 = call i32 @putenv(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0))
%427 = load i32, i32* %2
%428 = call i32 @hwloc_topology_load(i32 %427)
%429 = load i32, i32* %2
%430 = call i32 @hwloc_topology_get_depth(i32 %429)
store i32 %430, i32* %7
%431 = load i32, i32* %7
%432 = icmp eq i32 %431, 4
%433 = zext i1 %432 to i32
%434 = call i32 @assert(i32 %433)
%435 = load i32, i32* %2
%436 = call i32 @hwloc_get_nbobjs_by_depth(i32 %435, i32 0)
store i32 %436, i32* %8
%437 = load i32, i32* %8
%438 = icmp eq i32 %437, 1
%439 = zext i1 %438 to i32
%440 = call i32 @assert(i32 %439)
%441 = load i32, i32* %2
%442 = call i32 @hwloc_get_nbobjs_by_depth(i32 %441, i32 1)
store i32 %442, i32* %8
%443 = load i32, i32* %8
%444 = icmp eq i32 %443, 2
%445 = zext i1 %444 to i32
%446 = call i32 @assert(i32 %445)
%447 = load i32, i32* %2
%448 = call i32 @hwloc_get_nbobjs_by_depth(i32 %447, i32 2)
store i32 %448, i32* %8
%449 = load i32, i32* %8
%450 = icmp eq i32 %449, 8
%451 = zext i1 %450 to i32
%452 = call i32 @assert(i32 %451)
%453 = load i32, i32* %2
%454 = call i32 @hwloc_get_nbobjs_by_depth(i32 %453, i32 3)
store i32 %454, i32* %8
%455 = load i32, i32* %8
%456 = icmp eq i32 %455, 32
%457 = zext i1 %456 to i32
%458 = call i32 @assert(i32 %457)
%459 = load i32, i32* %2
%460 = load i32, i32* @HWLOC_OBJ_CORE
%461 = call i64 @hwloc_topology_set_distance_matrix(i32 %459, i32 %460, i32 16, i32* null, float* null)
%462 = icmp slt i64 %461, 0
%463 = zext i1 %462 to i32
%464 = call i32 @assert(i32 %463)
%465 = load i32, i32* %2
%466 = load i32, i32* @HWLOC_OBJ_CORE
%467 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 0
%468 = call i64 @hwloc_topology_set_distance_matrix(i32 %465, i32 %466, i32 0, i32* %467, float* null)
%469 = icmp slt i64 %468, 0
%470 = zext i1 %469 to i32
%471 = call i32 @assert(i32 %470)
%472 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 1
store i32 0, i32* %472
%473 = load i32, i32* %2
%474 = load i32, i32* @HWLOC_OBJ_CORE
%475 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 0
%476 = getelementptr inbounds [256 x float], [256 x float]* %4, i64 0, i64 0
%477 = call i64 @hwloc_topology_set_distance_matrix(i32 %473, i32 %474, i32 16, i32* %475, float* %476)
%478 = icmp slt i64 %477, 0
%479 = zext i1 %478 to i32
%480 = call i32 @assert(i32 %479)
%481 = load i32, i32* %2
%482 = call i32 @hwloc_topology_destroy(i32 %481)
ret i32 0
}

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