#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */
typedef struct TYPE_5__ TYPE_1__;

/* Type definitions */
typedef int /*<<< orphan*/ hwloc_topology_t;
typedef TYPE_1__ *hwloc_obj_t;
typedef int /*<<< orphan*/ hwloc_bitmap_t;
struct TYPE_5__ {
  int /*<<< orphan*/ cpuset;
};

/* Variables and functions */
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ check_cpuset(int /*<<< orphan*/, char *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ hwloc_bitmap_alloc();
int /*<<< orphan*/ hwloc_bitmap_alloc_full();
int hwloc_bitmap_asprintf(char **, int /*<<< orphan*/);
int /*<<< orphan*/ hwloc_bitmap_clr(int /*<<< orphan*/, int);
int /*<<< orphan*/ hwloc_bitmap_clr_range(int /*<<< orphan*/, int, int);
int /*<<< orphan*/ hwloc_bitmap_free(int /*<<< orphan*/);
int /*<<< orphan*/ hwloc_bitmap_set(int /*<<< orphan*/, int);
int /*<<< orphan*/ hwloc_bitmap_set_range(int /*<<< orphan*/, int, int);
scalar_t__ hwloc_get_nbobjs_by_depth(int /*<<< orphan*/, unsigned int);
TYPE_1__ *hwloc_get_obj_by_depth(int /*<<< orphan*/, unsigned int, scalar_t__);
TYPE_1__ *hwloc_get_root_obj(int /*<<< orphan*/);
int hwloc_obj_cpuset_snprintf(char *, int, int, TYPE_1__ **);
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*/);
int /*<<< orphan*/ hwloc_topology_set_synthetic(int /*<<< orphan*/, char *);
int /*<<< orphan*/ memset(char *, char, int);
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  hwloc_topology_t topology;
  unsigned depth;
  char *string = NULL;
  int stringlen, len;
  hwloc_obj_t obj;
  hwloc_bitmap_t set;
  set = hwloc_bitmap_alloc();
  check_cpuset(set, "0x0");
  hwloc_bitmap_free(set);
  printf("empty cpuset converted back and forth, ok\n");
  set = hwloc_bitmap_alloc_full();
  check_cpuset(set, "0xf...f");
  hwloc_bitmap_free(set);
  printf("full cpuset converted back and forth, ok\n");
  set = hwloc_bitmap_alloc_full();
  hwloc_bitmap_clr(set, 173);
  hwloc_bitmap_clr_range(set, 60, 70);
  check_cpuset(set, NULL);
  hwloc_bitmap_free(set);
  printf("infinite/nonfull cpuset converted back and forth, ok\n");
  set = hwloc_bitmap_alloc();
  hwloc_bitmap_set(set, 2);
  hwloc_bitmap_set_range(set, 67, 70);
  check_cpuset(set, "0x00000078,,0x00000004");
  hwloc_bitmap_free(set);
  printf("finite/nonnull cpuset converted back and forth, ok\n");
  hwloc_topology_init(&topology);
  hwloc_topology_set_synthetic(topology, "6 5 4 3 2");
  hwloc_topology_load(topology);
  depth = hwloc_topology_get_depth(topology);
  obj = hwloc_get_root_obj(topology);
  stringlen = hwloc_bitmap_asprintf(&string, obj->cpuset);
  printf("system cpuset is %s\n", string);
  check_cpuset(obj->cpuset, NULL);
  printf("system cpuset converted back and forth, ok\n");
  printf("truncating system cpuset to NULL buffer\n");
  len = hwloc_obj_cpuset_snprintf(NULL, 0, 1, &obj);
  assert(len == stringlen);
  printf("truncating system cpuset to 0 char (no modification)\n");
  memset(string, 'X', 1);
  string[1] = 0;
  len = hwloc_obj_cpuset_snprintf(string, 0, 1, &obj);
  assert(len == stringlen);
  assert(string[0] == 'X');
  printf("truncating system cpuset to 1 char (empty string)\n");
  memset(string, 'X', 2);
  string[2] = 0;
  len = hwloc_obj_cpuset_snprintf(string, 1, 1, &obj);
  printf("got %s\n", string);
  assert(len == stringlen);
  assert(string[0] == 0);
  assert(string[1] == 'X');
  printf("truncating system cpuset to 10 chars (single 32bit subset except "
         "last char)\n");
  memset(string, 'X', 11);
  string[11] = 0;
  len = hwloc_obj_cpuset_snprintf(string, 10, 1, &obj);
  printf("got %s\n", string);
  assert(len == stringlen);
  assert(string[8] == 'f');
  assert(string[9] == 0);
  assert(string[10] == 'X');
  printf("truncating system cpuset to 11 chars (single 32bit subset)\n");
  memset(string, 'X', 12);
  string[12] = 0;
  len = hwloc_obj_cpuset_snprintf(string, 11, 1, &obj);
  printf("got %s\n", string);
  assert(len == stringlen);
  assert(string[9] == 'f');
  assert(string[10] == 0);
  assert(string[11] == 'X');
  printf("truncating system cpuset to 23 chars (two 32bit subsets with ending "
         "comma)\n");
  memset(string, 'X', 24);
  string[24] = 0;
  len = hwloc_obj_cpuset_snprintf(string, 23, 1, &obj);
  printf("got %s\n", string);
  assert(len == stringlen);
  assert(string[20] == 'f');
  assert(string[21] == ',');
  assert(string[22] == 0);
  assert(string[23] == 'X');
  printf("truncating system cpuset to 51 chars (truncate to four and a half "
         "32bit subsets)\n");
  memset(string, 'X', 52);
  string[52] = 0;
  len = hwloc_obj_cpuset_snprintf(string, 51, 1, &obj);
  printf("got %s\n", string);
  assert(len == stringlen);
  assert(string[49] == 'f');
  assert(string[50] == 0);
  assert(string[51] == 'X');
  obj = hwloc_get_obj_by_depth(topology, depth - 1, 0);
  hwloc_obj_cpuset_snprintf(string, stringlen + 1, 1, &obj);
  printf("first cpu cpuset is %s\n", string);
  check_cpuset(obj->cpuset, NULL);
  printf("first cpu cpuset converted back and forth, ok\n");
  obj = hwloc_get_obj_by_depth(
      topology, depth - 1, hwloc_get_nbobjs_by_depth(topology, depth - 1) - 1);
  hwloc_obj_cpuset_snprintf(string, stringlen + 1, 1, &obj);
  printf("last cpu cpuset is %s\n", string);
  check_cpuset(obj->cpuset, NULL);
  printf("last cpu cpuset converted back and forth, ok\n");
  free(string);
  hwloc_topology_destroy(topology);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x18(%rbp)
mov    $0x0,%al
call   1030 <hwloc_bitmap_alloc@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%edi
lea    0xd75(%rip),%rsi
call   1180 <check_cpuset@plt>
mov    -0x2c(%rbp),%edi
call   1060 <hwloc_bitmap_free@plt>
lea    0xd65(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
mov    $0x0,%al
call   1120 <hwloc_bitmap_alloc_full@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%edi
lea    0xd75(%rip),%rsi
call   1180 <check_cpuset@plt>
mov    -0x2c(%rbp),%edi
call   1060 <hwloc_bitmap_free@plt>
lea    0xd75(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
mov    $0x0,%al
call   1120 <hwloc_bitmap_alloc_full@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%edi
mov    $0xad,%esi
call   1070 <hwloc_bitmap_clr@plt>
mov    -0x2c(%rbp),%edi
mov    $0x3c,%esi
mov    $0x46,%edx
call   1140 <hwloc_bitmap_clr_range@plt>
mov    -0x2c(%rbp),%edi
xor    %eax,%eax
mov    %eax,%esi
call   1180 <check_cpuset@plt>
mov    -0x2c(%rbp),%edi
call   1060 <hwloc_bitmap_free@plt>
lea    0xd1e(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
mov    $0x0,%al
call   1030 <hwloc_bitmap_alloc@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%edi
mov    $0x2,%esi
call   10d0 <hwloc_bitmap_set@plt>
mov    -0x2c(%rbp),%edi
mov    $0x43,%esi
mov    $0x46,%edx
call   1100 <hwloc_bitmap_set_range@plt>
mov    -0x2c(%rbp),%edi
lea    0xd1a(%rip),%rsi
call   1180 <check_cpuset@plt>
mov    -0x2c(%rbp),%edi
call   1060 <hwloc_bitmap_free@plt>
lea    0xd1d(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
lea    -0x8(%rbp),%rdi
call   1080 <hwloc_topology_init@plt>
mov    -0x8(%rbp),%edi
lea    0xd37(%rip),%rsi
call   1150 <hwloc_topology_set_synthetic@plt>
mov    -0x8(%rbp),%edi
call   10b0 <hwloc_topology_load@plt>
mov    -0x8(%rbp),%edi
call   10c0 <hwloc_topology_get_depth@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
call   1160 <hwloc_get_root_obj@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%esi
lea    -0x18(%rbp),%rdi
call   10a0 <hwloc_bitmap_asprintf@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xd00(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
mov    -0x28(%rbp),%rax
mov    (%rax),%edi
xor    %eax,%eax
mov    %eax,%esi
call   1180 <check_cpuset@plt>
lea    0xcf8(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
lea    0xd16(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
xor    %eax,%eax
mov    %eax,%edi
xor    %esi,%esi
mov    $0x1,%edx
lea    -0x28(%rbp),%rcx
call   1090 <hwloc_obj_cpuset_snprintf@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
lea    0xd07(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    $0x58,%esi
mov    $0x1,%edx
call   10f0 <memset@plt>
mov    -0x18(%rbp),%rax
movb   $0x0,0x1(%rax)
mov    -0x18(%rbp),%rdi
xor    %esi,%esi
mov    $0x1,%edx
lea    -0x28(%rbp),%rcx
call   1090 <hwloc_obj_cpuset_snprintf@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x58,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
lea    0xcd3(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    $0x58,%esi
mov    $0x2,%edx
call   10f0 <memset@plt>
mov    -0x18(%rbp),%rax
movb   $0x0,0x2(%rax)
mov    -0x18(%rbp),%rdi
mov    $0x1,%edx
lea    -0x28(%rbp),%rcx
mov    %edx,%esi
call   1090 <hwloc_obj_cpuset_snprintf@plt>
mov    %eax,-0x20(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xcc2(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
mov    -0x18(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x58,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
lea    0xc7a(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    $0x58,%esi
mov    $0xb,%edx
call   10f0 <memset@plt>
mov    -0x18(%rbp),%rax
movb   $0x0,0xb(%rax)
mov    -0x18(%rbp),%rdi
mov    $0xa,%esi
mov    $0x1,%edx
lea    -0x28(%rbp),%rcx
call   1090 <hwloc_obj_cpuset_snprintf@plt>
mov    %eax,-0x20(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xc2b(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
mov    -0x18(%rbp),%rax
movsbl 0x8(%rax),%eax
cmp    $0x66,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
mov    -0x18(%rbp),%rax
movsbl 0x9(%rax),%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
mov    -0x18(%rbp),%rax
movsbl 0xa(%rax),%eax
cmp    $0x58,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
lea    0xc17(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    $0x58,%esi
mov    $0xc,%edx
call   10f0 <memset@plt>
mov    -0x18(%rbp),%rax
movb   $0x0,0xc(%rax)
mov    -0x18(%rbp),%rdi
mov    $0xb,%esi
mov    $0x1,%edx
lea    -0x28(%rbp),%rcx
call   1090 <hwloc_obj_cpuset_snprintf@plt>
mov    %eax,-0x20(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xb7b(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
mov    -0x18(%rbp),%rax
movsbl 0x9(%rax),%eax
cmp    $0x66,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
mov    -0x18(%rbp),%rax
movsbl 0xa(%rax),%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
mov    -0x18(%rbp),%rax
movsbl 0xb(%rax),%eax
cmp    $0x58,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
lea    0xba3(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    $0x58,%esi
mov    $0x18,%edx
call   10f0 <memset@plt>
mov    -0x18(%rbp),%rax
movb   $0x0,0x18(%rax)
mov    -0x18(%rbp),%rdi
mov    $0x17,%esi
mov    $0x1,%edx
lea    -0x28(%rbp),%rcx
call   1090 <hwloc_obj_cpuset_snprintf@plt>
mov    %eax,-0x20(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xacb(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
mov    -0x18(%rbp),%rax
movsbl 0x14(%rax),%eax
cmp    $0x66,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
mov    -0x18(%rbp),%rax
movsbl 0x15(%rax),%eax
cmp    $0x2c,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
mov    -0x18(%rbp),%rax
movsbl 0x16(%rax),%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
mov    -0x18(%rbp),%rax
movsbl 0x17(%rax),%eax
cmp    $0x58,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
lea    0xb27(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    $0x58,%esi
mov    $0x34,%edx
call   10f0 <memset@plt>
mov    -0x18(%rbp),%rax
movb   $0x0,0x34(%rax)
mov    -0x18(%rbp),%rdi
mov    $0x33,%esi
mov    $0x1,%edx
lea    -0x28(%rbp),%rcx
call   1090 <hwloc_obj_cpuset_snprintf@plt>
mov    %eax,-0x20(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xa03(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
mov    -0x18(%rbp),%rax
movsbl 0x31(%rax),%eax
cmp    $0x66,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
mov    -0x18(%rbp),%rax
movsbl 0x32(%rax),%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
mov    -0x18(%rbp),%rax
movsbl 0x33(%rax),%eax
cmp    $0x58,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1110 <assert@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
sub    $0x1,%esi
xor    %eax,%eax
mov    %eax,%edx
call   1040 <hwloc_get_obj_by_depth@plt>
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
mov    $0x1,%edx
lea    -0x28(%rbp),%rcx
call   1090 <hwloc_obj_cpuset_snprintf@plt>
mov    -0x18(%rbp),%rsi
lea    0xa97(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
mov    -0x28(%rbp),%rax
mov    (%rax),%edi
xor    %eax,%eax
mov    %eax,%esi
call   1180 <check_cpuset@plt>
lea    0xa92(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x30(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
sub    $0x1,%esi
call   1130 <hwloc_get_nbobjs_by_depth@plt>
mov    -0x34(%rbp),%edi
mov    -0x30(%rbp),%esi
mov    %rax,%rdx
sub    $0x1,%rdx
call   1040 <hwloc_get_obj_by_depth@plt>
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
mov    $0x1,%edx
lea    -0x28(%rbp),%rcx
call   1090 <hwloc_obj_cpuset_snprintf@plt>
mov    -0x18(%rbp),%rsi
lea    0xa64(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
mov    -0x28(%rbp),%rax
mov    (%rax),%edi
xor    %eax,%eax
mov    %eax,%esi
call   1180 <check_cpuset@plt>
lea    0xa5e(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1050 <free@plt>
mov    -0x8(%rbp),%edi
call   1170 <hwloc_topology_destroy@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x20,%rsp
movq   $0x0,0x8(%rsp)
xor    %eax,%eax
call   1030 <hwloc_bitmap_alloc@plt>
mov    %eax,%ebx
lea    0xd6b(%rip),%rsi
mov    %eax,%edi
call   1190 <check_cpuset@plt>
mov    %ebx,%edi
call   1060 <hwloc_bitmap_free@plt>
lea    0xdcf(%rip),%rdi
call   1090 <puts@plt>
xor    %eax,%eax
call   1130 <hwloc_bitmap_alloc_full@plt>
mov    %eax,%ebx
lea    0xd45(%rip),%rsi
mov    %eax,%edi
call   1190 <check_cpuset@plt>
mov    %ebx,%edi
call   1060 <hwloc_bitmap_free@plt>
lea    0xddb(%rip),%rdi
call   1090 <puts@plt>
xor    %eax,%eax
call   1130 <hwloc_bitmap_alloc_full@plt>
mov    %eax,%ebx
mov    %eax,%edi
mov    $0xad,%esi
call   1070 <hwloc_bitmap_clr@plt>
mov    %ebx,%edi
mov    $0x3c,%esi
mov    $0x46,%edx
call   1150 <hwloc_bitmap_clr_range@plt>
mov    %ebx,%edi
xor    %esi,%esi
call   1190 <check_cpuset@plt>
mov    %ebx,%edi
call   1060 <hwloc_bitmap_free@plt>
lea    0xd8d(%rip),%rdi
call   1090 <puts@plt>
xor    %eax,%eax
call   1030 <hwloc_bitmap_alloc@plt>
mov    %eax,%ebx
mov    %eax,%edi
mov    $0x2,%esi
call   10e0 <hwloc_bitmap_set@plt>
mov    %ebx,%edi
mov    $0x43,%esi
mov    $0x46,%edx
call   1110 <hwloc_bitmap_set_range@plt>
lea    0xcc4(%rip),%rsi
mov    %ebx,%edi
call   1190 <check_cpuset@plt>
mov    %ebx,%edi
call   1060 <hwloc_bitmap_free@plt>
lea    0xd7b(%rip),%rdi
call   1090 <puts@plt>
lea    0x14(%rsp),%rdi
call   1080 <hwloc_topology_init@plt>
mov    0x14(%rsp),%edi
lea    0xcac(%rip),%rsi
call   1160 <hwloc_topology_set_synthetic@plt>
mov    0x14(%rsp),%edi
call   10c0 <hwloc_topology_load@plt>
mov    0x14(%rsp),%edi
call   10d0 <hwloc_topology_get_depth@plt>
mov    %eax,%r12d
mov    0x14(%rsp),%edi
call   1170 <hwloc_get_root_obj@plt>
mov    %rax,%rbx
mov    %rax,0x18(%rsp)
mov    (%rax),%esi
lea    0x8(%rsp),%rdi
call   10b0 <hwloc_bitmap_asprintf@plt>
mov    %eax,%ebp
mov    0x8(%rsp),%rsi
lea    0xc71(%rip),%rdi
xor    %eax,%eax
call   10f0 <printf@plt>
mov    (%rbx),%edi
xor    %esi,%esi
call   1190 <check_cpuset@plt>
lea    0xd38(%rip),%rdi
call   1090 <puts@plt>
lea    0xd57(%rip),%rdi
call   1090 <puts@plt>
lea    0x18(%rsp),%r14
xor    %edi,%edi
xor    %esi,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10a0 <hwloc_obj_cpuset_snprintf@plt>
xor    %edi,%edi
cmp    %ebp,%eax
sete   %dil
call   1120 <assert@plt>
lea    0xd50(%rip),%rdi
call   1090 <puts@plt>
mov    0x8(%rsp),%rdi
mov    $0x58,%esi
mov    $0x1,%edx
call   1100 <memset@plt>
mov    0x8(%rsp),%rax
movb   $0x0,0x1(%rax)
mov    0x8(%rsp),%rdi
xor    %esi,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10a0 <hwloc_obj_cpuset_snprintf@plt>
xor    %edi,%edi
cmp    %ebp,%eax
sete   %dil
call   1120 <assert@plt>
mov    0x8(%rsp),%rax
xor    %edi,%edi
cmpb   $0x58,(%rax)
sete   %dil
call   1120 <assert@plt>
lea    0xd28(%rip),%rdi
call   1090 <puts@plt>
mov    0x8(%rsp),%rdi
mov    $0x58,%esi
mov    $0x2,%edx
call   1100 <memset@plt>
mov    0x8(%rsp),%rax
movb   $0x0,0x2(%rax)
mov    0x8(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10a0 <hwloc_obj_cpuset_snprintf@plt>
mov    %eax,%ebx
mov    0x8(%rsp),%rsi
lea    0xb90(%rip),%r15
mov    %r15,%rdi
xor    %eax,%eax
call   10f0 <printf@plt>
xor    %edi,%edi
cmp    %ebp,%ebx
sete   %dil
call   1120 <assert@plt>
mov    0x8(%rsp),%rax
xor    %edi,%edi
cmpb   $0x0,(%rax)
sete   %dil
call   1120 <assert@plt>
mov    0x8(%rsp),%rax
xor    %edi,%edi
cmpb   $0x58,0x1(%rax)
sete   %dil
call   1120 <assert@plt>
lea    0xcce(%rip),%rdi
call   1090 <puts@plt>
mov    0x8(%rsp),%rdi
mov    $0x58,%esi
mov    $0xb,%edx
call   1100 <memset@plt>
mov    0x8(%rsp),%rdi
movb   $0x0,0xb(%rdi)
mov    $0xa,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10a0 <hwloc_obj_cpuset_snprintf@plt>
mov    %eax,%ebx
mov    0x8(%rsp),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   10f0 <printf@plt>
xor    %edi,%edi
cmp    %ebp,%ebx
sete   %dil
call   1120 <assert@plt>
mov    0x8(%rsp),%rax
xor    %edi,%edi
cmpb   $0x66,0x8(%rax)
sete   %dil
call   1120 <assert@plt>
mov    0x8(%rsp),%rax
xor    %edi,%edi
cmpb   $0x0,0x9(%rax)
sete   %dil
call   1120 <assert@plt>
mov    0x8(%rsp),%rax
xor    %edi,%edi
cmpb   $0x58,0xa(%rax)
sete   %dil
call   1120 <assert@plt>
lea    0xc85(%rip),%rdi
call   1090 <puts@plt>
mov    0x8(%rsp),%rdi
mov    $0x58,%esi
mov    $0xc,%edx
call   1100 <memset@plt>
mov    0x8(%rsp),%rdi
movb   $0x0,0xc(%rdi)
mov    $0xb,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10a0 <hwloc_obj_cpuset_snprintf@plt>
mov    %eax,%ebx
mov    0x8(%rsp),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   10f0 <printf@plt>
xor    %edi,%edi
cmp    %ebp,%ebx
sete   %dil
call   1120 <assert@plt>
mov    0x8(%rsp),%rax
xor    %edi,%edi
cmpb   $0x66,0x9(%rax)
sete   %dil
call   1120 <assert@plt>
mov    0x8(%rsp),%rax
xor    %edi,%edi
cmpb   $0x0,0xa(%rax)
sete   %dil
call   1120 <assert@plt>
mov    0x8(%rsp),%rax
xor    %edi,%edi
cmpb   $0x58,0xb(%rax)
sete   %dil
call   1120 <assert@plt>
lea    0xc2b(%rip),%rdi
call   1090 <puts@plt>
mov    0x8(%rsp),%rdi
mov    $0x58,%esi
mov    $0x18,%edx
call   1100 <memset@plt>
mov    0x8(%rsp),%rdi
movb   $0x0,0x18(%rdi)
mov    $0x17,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10a0 <hwloc_obj_cpuset_snprintf@plt>
mov    %eax,%ebx
mov    0x8(%rsp),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   10f0 <printf@plt>
xor    %edi,%edi
cmp    %ebp,%ebx
sete   %dil
call   1120 <assert@plt>
mov    0x8(%rsp),%rax
xor    %edi,%edi
cmpb   $0x66,0x14(%rax)
sete   %dil
call   1120 <assert@plt>
mov    0x8(%rsp),%rax
xor    %edi,%edi
cmpb   $0x2c,0x15(%rax)
sete   %dil
call   1120 <assert@plt>
mov    0x8(%rsp),%rax
xor    %edi,%edi
cmpb   $0x0,0x16(%rax)
sete   %dil
call   1120 <assert@plt>
mov    0x8(%rsp),%rax
xor    %edi,%edi
cmpb   $0x58,0x17(%rax)
sete   %dil
call   1120 <assert@plt>
lea    0xbcd(%rip),%rdi
call   1090 <puts@plt>
mov    0x8(%rsp),%rdi
mov    $0x58,%esi
mov    $0x34,%edx
call   1100 <memset@plt>
mov    0x8(%rsp),%rdi
movb   $0x0,0x34(%rdi)
mov    $0x33,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10a0 <hwloc_obj_cpuset_snprintf@plt>
mov    %eax,%ebx
mov    0x8(%rsp),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   10f0 <printf@plt>
xor    %edi,%edi
cmp    %ebp,%ebx
sete   %dil
call   1120 <assert@plt>
mov    0x8(%rsp),%rax
xor    %edi,%edi
cmpb   $0x66,0x31(%rax)
sete   %dil
call   1120 <assert@plt>
mov    0x8(%rsp),%rax
xor    %edi,%edi
cmpb   $0x0,0x32(%rax)
sete   %dil
call   1120 <assert@plt>
mov    0x8(%rsp),%rax
xor    %edi,%edi
cmpb   $0x58,0x33(%rax)
sete   %dil
call   1120 <assert@plt>
mov    0x14(%rsp),%edi
add    $0xffffffff,%r12d
mov    %r12d,%esi
xor    %edx,%edx
call   1040 <hwloc_get_obj_by_depth@plt>
mov    %rax,0x18(%rsp)
mov    0x8(%rsp),%rdi
add    $0x1,%ebp
mov    %ebp,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10a0 <hwloc_obj_cpuset_snprintf@plt>
mov    0x8(%rsp),%rsi
lea    0x8b8(%rip),%rdi
xor    %eax,%eax
call   10f0 <printf@plt>
mov    0x18(%rsp),%rax
mov    (%rax),%edi
xor    %esi,%esi
call   1190 <check_cpuset@plt>
lea    0xb3a(%rip),%rdi
call   1090 <puts@plt>
mov    0x14(%rsp),%ebx
mov    %ebx,%edi
mov    %r12d,%esi
call   1140 <hwloc_get_nbobjs_by_depth@plt>
lea    -0x1(%rax),%rdx
mov    %ebx,%edi
mov    %r12d,%esi
call   1040 <hwloc_get_obj_by_depth@plt>
mov    %rax,0x18(%rsp)
mov    0x8(%rsp),%rdi
mov    %ebp,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10a0 <hwloc_obj_cpuset_snprintf@plt>
mov    0x8(%rsp),%rsi
lea    0x86e(%rip),%rdi
xor    %eax,%eax
call   10f0 <printf@plt>
mov    0x18(%rsp),%rax
mov    (%rax),%edi
xor    %esi,%esi
call   1190 <check_cpuset@plt>
lea    0xb06(%rip),%rdi
call   1090 <puts@plt>
mov    0x8(%rsp),%rdi
call   1050 <free@plt>
mov    0x14(%rsp),%edi
call   1180 <hwloc_topology_destroy@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.TYPE_5__ = type { i32 }
@.str = [4 x i8] c"0x0\00"
@.str.1 = [43 x i8] c"empty cpuset converted back and forth, ok\0A\00"
@.str.2 = [8 x i8] c"0xf...f\00"
@.str.3 = [42 x i8] c"full cpuset converted back and forth, ok\0A\00"
@.str.4 = [54 x i8] c"infinite/nonfull cpuset converted back and forth, ok\0A\00"
@.str.5 = [23 x i8] c"0x00000078,,0x00000004\00"
@.str.6 = [52 x i8] c"finite/nonnull cpuset converted back and forth, ok\0A\00"
@.str.7 = [10 x i8] c"6 5 4 3 2\00"
@.str.8 = [21 x i8] c"system cpuset is %s\0A\00"
@.str.9 = [44 x i8] c"system cpuset converted back and forth, ok\0A\00"
@.str.10 = [41 x i8] c"truncating system cpuset to NULL buffer\0A\00"
@.str.11 = [54 x i8] c"truncating system cpuset to 0 char (no modification)\0A\00"
@.str.12 = [51 x i8] c"truncating system cpuset to 1 char (empty string)\0A\00"
@.str.13 = [8 x i8] c"got %s\0A\00"
@.str.14 = [77 x i8] c"truncating system cpuset to 10 chars (single 32bit subset except last char)\0A\00"
@.str.15 = [60 x i8] c"truncating system cpuset to 11 chars (single 32bit subset)\0A\00"
@.str.16 = [76 x i8] c"truncating system cpuset to 23 chars (two 32bit subsets with ending comma)\0A\00"
@.str.17 = [82 x i8] c"truncating system cpuset to 51 chars (truncate to four and a half 32bit subsets)\0A\00"
@.str.18 = [24 x i8] c"first cpu cpuset is %s\0A\00"
@.str.19 = [47 x i8] c"first cpu cpuset converted back and forth, ok\0A\00"
@.str.20 = [23 x i8] c"last cpu cpuset is %s\0A\00"
@.str.21 = [46 x i8] c"last cpu cpuset converted back and forth, ok\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca %struct.TYPE_5__*
%8 = alloca i32
store i32 0, i32* %1
store i8* null, i8** %4
%9 = call i32 (...) @hwloc_bitmap_alloc()
store i32 %9, i32* %8
%10 = load i32, i32* %8
%11 = call i32 @check_cpuset(i32 %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%12 = load i32, i32* %8
%13 = call i32 @hwloc_bitmap_free(i32 %12)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 (...) @hwloc_bitmap_alloc_full()
store i32 %15, i32* %8
%16 = load i32, i32* %8
%17 = call i32 @check_cpuset(i32 %16, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%18 = load i32, i32* %8
%19 = call i32 @hwloc_bitmap_free(i32 %18)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
%21 = call i32 (...) @hwloc_bitmap_alloc_full()
store i32 %21, i32* %8
%22 = load i32, i32* %8
%23 = call i32 @hwloc_bitmap_clr(i32 %22, i32 173)
%24 = load i32, i32* %8
%25 = call i32 @hwloc_bitmap_clr_range(i32 %24, i32 60, i32 70)
%26 = load i32, i32* %8
%27 = call i32 @check_cpuset(i32 %26, i8* null)
%28 = load i32, i32* %8
%29 = call i32 @hwloc_bitmap_free(i32 %28)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.4, i64 0, i64 0))
%31 = call i32 (...) @hwloc_bitmap_alloc()
store i32 %31, i32* %8
%32 = load i32, i32* %8
%33 = call i32 @hwloc_bitmap_set(i32 %32, i32 2)
%34 = load i32, i32* %8
%35 = call i32 @hwloc_bitmap_set_range(i32 %34, i32 67, i32 70)
%36 = load i32, i32* %8
%37 = call i32 @check_cpuset(i32 %36, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
%38 = load i32, i32* %8
%39 = call i32 @hwloc_bitmap_free(i32 %38)
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%41 = call i32 @hwloc_topology_init(i32* %2)
%42 = load i32, i32* %2
%43 = call i32 @hwloc_topology_set_synthetic(i32 %42, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%44 = load i32, i32* %2
%45 = call i32 @hwloc_topology_load(i32 %44)
%46 = load i32, i32* %2
%47 = call i32 @hwloc_topology_get_depth(i32 %46)
store i32 %47, i32* %3
%48 = load i32, i32* %2
%49 = call %struct.TYPE_5__* @hwloc_get_root_obj(i32 %48)
store %struct.TYPE_5__* %49, %struct.TYPE_5__** %7
%50 = load %struct.TYPE_5__*, %struct.TYPE_5__** %7
%51 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %50, i32 0, i32 0
%52 = load i32, i32* %51
%53 = call i32 @hwloc_bitmap_asprintf(i8** %4, i32 %52)
store i32 %53, i32* %5
%54 = load i8*, i8** %4
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i8* %54)
%56 = load %struct.TYPE_5__*, %struct.TYPE_5__** %7
%57 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %56, i32 0, i32 0
%58 = load i32, i32* %57
%59 = call i32 @check_cpuset(i32 %58, i8* null)
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.9, i64 0, i64 0))
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%62 = call i32 @hwloc_obj_cpuset_snprintf(i8* null, i32 0, i32 1, %struct.TYPE_5__** %7)
store i32 %62, i32* %6
%63 = load i32, i32* %6
%64 = load i32, i32* %5
%65 = icmp eq i32 %63, %64
%66 = zext i1 %65 to i32
%67 = call i32 @assert(i32 %66)
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.11, i64 0, i64 0))
%69 = load i8*, i8** %4
%70 = call i32 @memset(i8* %69, i8 signext 88, i32 1)
%71 = load i8*, i8** %4
%72 = getelementptr inbounds i8, i8* %71, i64 1
store i8 0, i8* %72
%73 = load i8*, i8** %4
%74 = call i32 @hwloc_obj_cpuset_snprintf(i8* %73, i32 0, i32 1, %struct.TYPE_5__** %7)
store i32 %74, i32* %6
%75 = load i32, i32* %6
%76 = load i32, i32* %5
%77 = icmp eq i32 %75, %76
%78 = zext i1 %77 to i32
%79 = call i32 @assert(i32 %78)
%80 = load i8*, i8** %4
%81 = getelementptr inbounds i8, i8* %80, i64 0
%82 = load i8, i8* %81
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %83, 88
%85 = zext i1 %84 to i32
%86 = call i32 @assert(i32 %85)
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.12, i64 0, i64 0))
%88 = load i8*, i8** %4
%89 = call i32 @memset(i8* %88, i8 signext 88, i32 2)
%90 = load i8*, i8** %4
%91 = getelementptr inbounds i8, i8* %90, i64 2
store i8 0, i8* %91
%92 = load i8*, i8** %4
%93 = call i32 @hwloc_obj_cpuset_snprintf(i8* %92, i32 1, i32 1, %struct.TYPE_5__** %7)
store i32 %93, i32* %6
%94 = load i8*, i8** %4
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %94)
%96 = load i32, i32* %6
%97 = load i32, i32* %5
%98 = icmp eq i32 %96, %97
%99 = zext i1 %98 to i32
%100 = call i32 @assert(i32 %99)
%101 = load i8*, i8** %4
%102 = getelementptr inbounds i8, i8* %101, i64 0
%103 = load i8, i8* %102
%104 = sext i8 %103 to i32
%105 = icmp eq i32 %104, 0
%106 = zext i1 %105 to i32
%107 = call i32 @assert(i32 %106)
%108 = load i8*, i8** %4
%109 = getelementptr inbounds i8, i8* %108, i64 1
%110 = load i8, i8* %109
%111 = sext i8 %110 to i32
%112 = icmp eq i32 %111, 88
%113 = zext i1 %112 to i32
%114 = call i32 @assert(i32 %113)
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.14, i64 0, i64 0))
%116 = load i8*, i8** %4
%117 = call i32 @memset(i8* %116, i8 signext 88, i32 11)
%118 = load i8*, i8** %4
%119 = getelementptr inbounds i8, i8* %118, i64 11
store i8 0, i8* %119
%120 = load i8*, i8** %4
%121 = call i32 @hwloc_obj_cpuset_snprintf(i8* %120, i32 10, i32 1, %struct.TYPE_5__** %7)
store i32 %121, i32* %6
%122 = load i8*, i8** %4
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %122)
%124 = load i32, i32* %6
%125 = load i32, i32* %5
%126 = icmp eq i32 %124, %125
%127 = zext i1 %126 to i32
%128 = call i32 @assert(i32 %127)
%129 = load i8*, i8** %4
%130 = getelementptr inbounds i8, i8* %129, i64 8
%131 = load i8, i8* %130
%132 = sext i8 %131 to i32
%133 = icmp eq i32 %132, 102
%134 = zext i1 %133 to i32
%135 = call i32 @assert(i32 %134)
%136 = load i8*, i8** %4
%137 = getelementptr inbounds i8, i8* %136, i64 9
%138 = load i8, i8* %137
%139 = sext i8 %138 to i32
%140 = icmp eq i32 %139, 0
%141 = zext i1 %140 to i32
%142 = call i32 @assert(i32 %141)
%143 = load i8*, i8** %4
%144 = getelementptr inbounds i8, i8* %143, i64 10
%145 = load i8, i8* %144
%146 = sext i8 %145 to i32
%147 = icmp eq i32 %146, 88
%148 = zext i1 %147 to i32
%149 = call i32 @assert(i32 %148)
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.15, i64 0, i64 0))
%151 = load i8*, i8** %4
%152 = call i32 @memset(i8* %151, i8 signext 88, i32 12)
%153 = load i8*, i8** %4
%154 = getelementptr inbounds i8, i8* %153, i64 12
store i8 0, i8* %154
%155 = load i8*, i8** %4
%156 = call i32 @hwloc_obj_cpuset_snprintf(i8* %155, i32 11, i32 1, %struct.TYPE_5__** %7)
store i32 %156, i32* %6
%157 = load i8*, i8** %4
%158 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %157)
%159 = load i32, i32* %6
%160 = load i32, i32* %5
%161 = icmp eq i32 %159, %160
%162 = zext i1 %161 to i32
%163 = call i32 @assert(i32 %162)
%164 = load i8*, i8** %4
%165 = getelementptr inbounds i8, i8* %164, i64 9
%166 = load i8, i8* %165
%167 = sext i8 %166 to i32
%168 = icmp eq i32 %167, 102
%169 = zext i1 %168 to i32
%170 = call i32 @assert(i32 %169)
%171 = load i8*, i8** %4
%172 = getelementptr inbounds i8, i8* %171, i64 10
%173 = load i8, i8* %172
%174 = sext i8 %173 to i32
%175 = icmp eq i32 %174, 0
%176 = zext i1 %175 to i32
%177 = call i32 @assert(i32 %176)
%178 = load i8*, i8** %4
%179 = getelementptr inbounds i8, i8* %178, i64 11
%180 = load i8, i8* %179
%181 = sext i8 %180 to i32
%182 = icmp eq i32 %181, 88
%183 = zext i1 %182 to i32
%184 = call i32 @assert(i32 %183)
%185 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.16, i64 0, i64 0))
%186 = load i8*, i8** %4
%187 = call i32 @memset(i8* %186, i8 signext 88, i32 24)
%188 = load i8*, i8** %4
%189 = getelementptr inbounds i8, i8* %188, i64 24
store i8 0, i8* %189
%190 = load i8*, i8** %4
%191 = call i32 @hwloc_obj_cpuset_snprintf(i8* %190, i32 23, i32 1, %struct.TYPE_5__** %7)
store i32 %191, i32* %6
%192 = load i8*, i8** %4
%193 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %192)
%194 = load i32, i32* %6
%195 = load i32, i32* %5
%196 = icmp eq i32 %194, %195
%197 = zext i1 %196 to i32
%198 = call i32 @assert(i32 %197)
%199 = load i8*, i8** %4
%200 = getelementptr inbounds i8, i8* %199, i64 20
%201 = load i8, i8* %200
%202 = sext i8 %201 to i32
%203 = icmp eq i32 %202, 102
%204 = zext i1 %203 to i32
%205 = call i32 @assert(i32 %204)
%206 = load i8*, i8** %4
%207 = getelementptr inbounds i8, i8* %206, i64 21
%208 = load i8, i8* %207
%209 = sext i8 %208 to i32
%210 = icmp eq i32 %209, 44
%211 = zext i1 %210 to i32
%212 = call i32 @assert(i32 %211)
%213 = load i8*, i8** %4
%214 = getelementptr inbounds i8, i8* %213, i64 22
%215 = load i8, i8* %214
%216 = sext i8 %215 to i32
%217 = icmp eq i32 %216, 0
%218 = zext i1 %217 to i32
%219 = call i32 @assert(i32 %218)
%220 = load i8*, i8** %4
%221 = getelementptr inbounds i8, i8* %220, i64 23
%222 = load i8, i8* %221
%223 = sext i8 %222 to i32
%224 = icmp eq i32 %223, 88
%225 = zext i1 %224 to i32
%226 = call i32 @assert(i32 %225)
%227 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.17, i64 0, i64 0))
%228 = load i8*, i8** %4
%229 = call i32 @memset(i8* %228, i8 signext 88, i32 52)
%230 = load i8*, i8** %4
%231 = getelementptr inbounds i8, i8* %230, i64 52
store i8 0, i8* %231
%232 = load i8*, i8** %4
%233 = call i32 @hwloc_obj_cpuset_snprintf(i8* %232, i32 51, i32 1, %struct.TYPE_5__** %7)
store i32 %233, i32* %6
%234 = load i8*, i8** %4
%235 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %234)
%236 = load i32, i32* %6
%237 = load i32, i32* %5
%238 = icmp eq i32 %236, %237
%239 = zext i1 %238 to i32
%240 = call i32 @assert(i32 %239)
%241 = load i8*, i8** %4
%242 = getelementptr inbounds i8, i8* %241, i64 49
%243 = load i8, i8* %242
%244 = sext i8 %243 to i32
%245 = icmp eq i32 %244, 102
%246 = zext i1 %245 to i32
%247 = call i32 @assert(i32 %246)
%248 = load i8*, i8** %4
%249 = getelementptr inbounds i8, i8* %248, i64 50
%250 = load i8, i8* %249
%251 = sext i8 %250 to i32
%252 = icmp eq i32 %251, 0
%253 = zext i1 %252 to i32
%254 = call i32 @assert(i32 %253)
%255 = load i8*, i8** %4
%256 = getelementptr inbounds i8, i8* %255, i64 51
%257 = load i8, i8* %256
%258 = sext i8 %257 to i32
%259 = icmp eq i32 %258, 88
%260 = zext i1 %259 to i32
%261 = call i32 @assert(i32 %260)
%262 = load i32, i32* %2
%263 = load i32, i32* %3
%264 = sub i32 %263, 1
%265 = call %struct.TYPE_5__* @hwloc_get_obj_by_depth(i32 %262, i32 %264, i64 0)
store %struct.TYPE_5__* %265, %struct.TYPE_5__** %7
%266 = load i8*, i8** %4
%267 = load i32, i32* %5
%268 = add nsw i32 %267, 1
%269 = call i32 @hwloc_obj_cpuset_snprintf(i8* %266, i32 %268, i32 1, %struct.TYPE_5__** %7)
%270 = load i8*, i8** %4
%271 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.18, i64 0, i64 0), i8* %270)
%272 = load %struct.TYPE_5__*, %struct.TYPE_5__** %7
%273 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %272, i32 0, i32 0
%274 = load i32, i32* %273
%275 = call i32 @check_cpuset(i32 %274, i8* null)
%276 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.19, i64 0, i64 0))
%277 = load i32, i32* %2
%278 = load i32, i32* %3
%279 = sub i32 %278, 1
%280 = load i32, i32* %2
%281 = load i32, i32* %3
%282 = sub i32 %281, 1
%283 = call i64 @hwloc_get_nbobjs_by_depth(i32 %280, i32 %282)
%284 = sub nsw i64 %283, 1
%285 = call %struct.TYPE_5__* @hwloc_get_obj_by_depth(i32 %277, i32 %279, i64 %284)
store %struct.TYPE_5__* %285, %struct.TYPE_5__** %7
%286 = load i8*, i8** %4
%287 = load i32, i32* %5
%288 = add nsw i32 %287, 1
%289 = call i32 @hwloc_obj_cpuset_snprintf(i8* %286, i32 %288, i32 1, %struct.TYPE_5__** %7)
%290 = load i8*, i8** %4
%291 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.20, i64 0, i64 0), i8* %290)
%292 = load %struct.TYPE_5__*, %struct.TYPE_5__** %7
%293 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %292, i32 0, i32 0
%294 = load i32, i32* %293
%295 = call i32 @check_cpuset(i32 %294, i8* null)
%296 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.21, i64 0, i64 0))
%297 = load i8*, i8** %4
%298 = call i32 @free(i8* %297)
%299 = load i32, i32* %2
%300 = call i32 @hwloc_topology_destroy(i32 %299)
ret i32 0
}

LLVM IR (-O2):
%struct.TYPE_5__ = type { i32 }
@.str = [4 x i8] c"0x0\00"
@.str.2 = [8 x i8] c"0xf...f\00"
@.str.5 = [23 x i8] c"0x00000078,,0x00000004\00"
@.str.7 = [10 x i8] c"6 5 4 3 2\00"
@.str.8 = [21 x i8] c"system cpuset is %s\0A\00"
@.str.13 = [8 x i8] c"got %s\0A\00"
@.str.18 = [24 x i8] c"first cpu cpuset is %s\0A\00"
@.str.20 = [23 x i8] c"last cpu cpuset is %s\0A\00"
@str = [42 x i8] c"empty cpuset converted back and forth, ok\00"
@str.22 = [41 x i8] c"full cpuset converted back and forth, ok\00"
@str.23 = [53 x i8] c"infinite/nonfull cpuset converted back and forth, ok\00"
@str.24 = [51 x i8] c"finite/nonnull cpuset converted back and forth, ok\00"
@str.25 = [43 x i8] c"system cpuset converted back and forth, ok\00"
@str.26 = [40 x i8] c"truncating system cpuset to NULL buffer\00"
@str.27 = [53 x i8] c"truncating system cpuset to 0 char (no modification)\00"
@str.28 = [50 x i8] c"truncating system cpuset to 1 char (empty string)\00"
@str.29 = [76 x i8] c"truncating system cpuset to 10 chars (single 32bit subset except last char)\00"
@str.30 = [59 x i8] c"truncating system cpuset to 11 chars (single 32bit subset)\00"
@str.31 = [75 x i8] c"truncating system cpuset to 23 chars (two 32bit subsets with ending comma)\00"
@str.32 = [81 x i8] c"truncating system cpuset to 51 chars (truncate to four and a half 32bit subsets)\00"
@str.33 = [46 x i8] c"first cpu cpuset converted back and forth, ok\00"
@str.34 = [45 x i8] c"last cpu cpuset converted back and forth, ok\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca %struct.TYPE_5__*
%4 = bitcast i32* %1 to i8*
%5 = bitcast i8** %2 to i8*
store i8* null, i8** %2
%6 = bitcast %struct.TYPE_5__** %3 to i8*
%7 = tail call i32 (...) @hwloc_bitmap_alloc()
%8 = tail call i32 @check_cpuset(i32 %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 @hwloc_bitmap_free(i32 %7)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str, i64 0, i64 0))
%11 = tail call i32 (...) @hwloc_bitmap_alloc_full()
%12 = tail call i32 @check_cpuset(i32 %11, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%13 = tail call i32 @hwloc_bitmap_free(i32 %11)
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.22, i64 0, i64 0))
%15 = tail call i32 (...) @hwloc_bitmap_alloc_full()
%16 = tail call i32 @hwloc_bitmap_clr(i32 %15, i32 173)
%17 = tail call i32 @hwloc_bitmap_clr_range(i32 %15, i32 60, i32 70)
%18 = tail call i32 @check_cpuset(i32 %15, i8* null)
%19 = tail call i32 @hwloc_bitmap_free(i32 %15)
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.23, i64 0, i64 0))
%21 = tail call i32 (...) @hwloc_bitmap_alloc()
%22 = tail call i32 @hwloc_bitmap_set(i32 %21, i32 2)
%23 = tail call i32 @hwloc_bitmap_set_range(i32 %21, i32 67, i32 70)
%24 = tail call i32 @check_cpuset(i32 %21, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
%25 = tail call i32 @hwloc_bitmap_free(i32 %21)
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.24, i64 0, i64 0))
%27 = call i32 @hwloc_topology_init(i32* %1)
%28 = load i32, i32* %1
%29 = call i32 @hwloc_topology_set_synthetic(i32 %28, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%30 = load i32, i32* %1
%31 = call i32 @hwloc_topology_load(i32 %30)
%32 = load i32, i32* %1
%33 = call i32 @hwloc_topology_get_depth(i32 %32)
%34 = load i32, i32* %1
%35 = call %struct.TYPE_5__* @hwloc_get_root_obj(i32 %34)
store %struct.TYPE_5__* %35, %struct.TYPE_5__** %3
%36 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %35, i64 0, i32 0
%37 = load i32, i32* %36
%38 = call i32 @hwloc_bitmap_asprintf(i8** %2, i32 %37)
%39 = load i8*, i8** %2
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i8* %39)
%41 = load i32, i32* %36
%42 = call i32 @check_cpuset(i32 %41, i8* null)
%43 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.25, i64 0, i64 0))
%44 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.26, i64 0, i64 0))
%45 = call i32 @hwloc_obj_cpuset_snprintf(i8* null, i32 0, i32 1, %struct.TYPE_5__** %3)
%46 = icmp eq i32 %45, %38
%47 = zext i1 %46 to i32
%48 = call i32 @assert(i32 %47)
%49 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.27, i64 0, i64 0))
%50 = load i8*, i8** %2
%51 = call i32 @memset(i8* %50, i8 signext 88, i32 1)
%52 = load i8*, i8** %2
%53 = getelementptr inbounds i8, i8* %52, i64 1
store i8 0, i8* %53
%54 = load i8*, i8** %2
%55 = call i32 @hwloc_obj_cpuset_snprintf(i8* %54, i32 0, i32 1, %struct.TYPE_5__** %3)
%56 = icmp eq i32 %55, %38
%57 = zext i1 %56 to i32
%58 = call i32 @assert(i32 %57)
%59 = load i8*, i8** %2
%60 = load i8, i8* %59
%61 = icmp eq i8 %60, 88
%62 = zext i1 %61 to i32
%63 = call i32 @assert(i32 %62)
%64 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.28, i64 0, i64 0))
%65 = load i8*, i8** %2
%66 = call i32 @memset(i8* %65, i8 signext 88, i32 2)
%67 = load i8*, i8** %2
%68 = getelementptr inbounds i8, i8* %67, i64 2
store i8 0, i8* %68
%69 = load i8*, i8** %2
%70 = call i32 @hwloc_obj_cpuset_snprintf(i8* %69, i32 1, i32 1, %struct.TYPE_5__** %3)
%71 = load i8*, i8** %2
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %71)
%73 = icmp eq i32 %70, %38
%74 = zext i1 %73 to i32
%75 = call i32 @assert(i32 %74)
%76 = load i8*, i8** %2
%77 = load i8, i8* %76
%78 = icmp eq i8 %77, 0
%79 = zext i1 %78 to i32
%80 = call i32 @assert(i32 %79)
%81 = load i8*, i8** %2
%82 = getelementptr inbounds i8, i8* %81, i64 1
%83 = load i8, i8* %82
%84 = icmp eq i8 %83, 88
%85 = zext i1 %84 to i32
%86 = call i32 @assert(i32 %85)
%87 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.29, i64 0, i64 0))
%88 = load i8*, i8** %2
%89 = call i32 @memset(i8* %88, i8 signext 88, i32 11)
%90 = load i8*, i8** %2
%91 = getelementptr inbounds i8, i8* %90, i64 11
store i8 0, i8* %91
%92 = call i32 @hwloc_obj_cpuset_snprintf(i8* %90, i32 10, i32 1, %struct.TYPE_5__** %3)
%93 = load i8*, i8** %2
%94 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %93)
%95 = icmp eq i32 %92, %38
%96 = zext i1 %95 to i32
%97 = call i32 @assert(i32 %96)
%98 = load i8*, i8** %2
%99 = getelementptr inbounds i8, i8* %98, i64 8
%100 = load i8, i8* %99
%101 = icmp eq i8 %100, 102
%102 = zext i1 %101 to i32
%103 = call i32 @assert(i32 %102)
%104 = load i8*, i8** %2
%105 = getelementptr inbounds i8, i8* %104, i64 9
%106 = load i8, i8* %105
%107 = icmp eq i8 %106, 0
%108 = zext i1 %107 to i32
%109 = call i32 @assert(i32 %108)
%110 = load i8*, i8** %2
%111 = getelementptr inbounds i8, i8* %110, i64 10
%112 = load i8, i8* %111
%113 = icmp eq i8 %112, 88
%114 = zext i1 %113 to i32
%115 = call i32 @assert(i32 %114)
%116 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.30, i64 0, i64 0))
%117 = load i8*, i8** %2
%118 = call i32 @memset(i8* %117, i8 signext 88, i32 12)
%119 = load i8*, i8** %2
%120 = getelementptr inbounds i8, i8* %119, i64 12
store i8 0, i8* %120
%121 = call i32 @hwloc_obj_cpuset_snprintf(i8* %119, i32 11, i32 1, %struct.TYPE_5__** %3)
%122 = load i8*, i8** %2
%123 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %122)
%124 = icmp eq i32 %121, %38
%125 = zext i1 %124 to i32
%126 = call i32 @assert(i32 %125)
%127 = load i8*, i8** %2
%128 = getelementptr inbounds i8, i8* %127, i64 9
%129 = load i8, i8* %128
%130 = icmp eq i8 %129, 102
%131 = zext i1 %130 to i32
%132 = call i32 @assert(i32 %131)
%133 = load i8*, i8** %2
%134 = getelementptr inbounds i8, i8* %133, i64 10
%135 = load i8, i8* %134
%136 = icmp eq i8 %135, 0
%137 = zext i1 %136 to i32
%138 = call i32 @assert(i32 %137)
%139 = load i8*, i8** %2
%140 = getelementptr inbounds i8, i8* %139, i64 11
%141 = load i8, i8* %140
%142 = icmp eq i8 %141, 88
%143 = zext i1 %142 to i32
%144 = call i32 @assert(i32 %143)
%145 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.31, i64 0, i64 0))
%146 = load i8*, i8** %2
%147 = call i32 @memset(i8* %146, i8 signext 88, i32 24)
%148 = load i8*, i8** %2
%149 = getelementptr inbounds i8, i8* %148, i64 24
store i8 0, i8* %149
%150 = call i32 @hwloc_obj_cpuset_snprintf(i8* %148, i32 23, i32 1, %struct.TYPE_5__** %3)
%151 = load i8*, i8** %2
%152 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %151)
%153 = icmp eq i32 %150, %38
%154 = zext i1 %153 to i32
%155 = call i32 @assert(i32 %154)
%156 = load i8*, i8** %2
%157 = getelementptr inbounds i8, i8* %156, i64 20
%158 = load i8, i8* %157
%159 = icmp eq i8 %158, 102
%160 = zext i1 %159 to i32
%161 = call i32 @assert(i32 %160)
%162 = load i8*, i8** %2
%163 = getelementptr inbounds i8, i8* %162, i64 21
%164 = load i8, i8* %163
%165 = icmp eq i8 %164, 44
%166 = zext i1 %165 to i32
%167 = call i32 @assert(i32 %166)
%168 = load i8*, i8** %2
%169 = getelementptr inbounds i8, i8* %168, i64 22
%170 = load i8, i8* %169
%171 = icmp eq i8 %170, 0
%172 = zext i1 %171 to i32
%173 = call i32 @assert(i32 %172)
%174 = load i8*, i8** %2
%175 = getelementptr inbounds i8, i8* %174, i64 23
%176 = load i8, i8* %175
%177 = icmp eq i8 %176, 88
%178 = zext i1 %177 to i32
%179 = call i32 @assert(i32 %178)
%180 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.32, i64 0, i64 0))
%181 = load i8*, i8** %2
%182 = call i32 @memset(i8* %181, i8 signext 88, i32 52)
%183 = load i8*, i8** %2
%184 = getelementptr inbounds i8, i8* %183, i64 52
store i8 0, i8* %184
%185 = call i32 @hwloc_obj_cpuset_snprintf(i8* %183, i32 51, i32 1, %struct.TYPE_5__** %3)
%186 = load i8*, i8** %2
%187 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %186)
%188 = icmp eq i32 %185, %38
%189 = zext i1 %188 to i32
%190 = call i32 @assert(i32 %189)
%191 = load i8*, i8** %2
%192 = getelementptr inbounds i8, i8* %191, i64 49
%193 = load i8, i8* %192
%194 = icmp eq i8 %193, 102
%195 = zext i1 %194 to i32
%196 = call i32 @assert(i32 %195)
%197 = load i8*, i8** %2
%198 = getelementptr inbounds i8, i8* %197, i64 50
%199 = load i8, i8* %198
%200 = icmp eq i8 %199, 0
%201 = zext i1 %200 to i32
%202 = call i32 @assert(i32 %201)
%203 = load i8*, i8** %2
%204 = getelementptr inbounds i8, i8* %203, i64 51
%205 = load i8, i8* %204
%206 = icmp eq i8 %205, 88
%207 = zext i1 %206 to i32
%208 = call i32 @assert(i32 %207)
%209 = load i32, i32* %1
%210 = add i32 %33, -1
%211 = call %struct.TYPE_5__* @hwloc_get_obj_by_depth(i32 %209, i32 %210, i64 0)
store %struct.TYPE_5__* %211, %struct.TYPE_5__** %3
%212 = load i8*, i8** %2
%213 = add nsw i32 %38, 1
%214 = call i32 @hwloc_obj_cpuset_snprintf(i8* %212, i32 %213, i32 1, %struct.TYPE_5__** %3)
%215 = load i8*, i8** %2
%216 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.18, i64 0, i64 0), i8* %215)
%217 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3
%218 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %217, i64 0, i32 0
%219 = load i32, i32* %218
%220 = call i32 @check_cpuset(i32 %219, i8* null)
%221 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.33, i64 0, i64 0))
%222 = load i32, i32* %1
%223 = call i64 @hwloc_get_nbobjs_by_depth(i32 %222, i32 %210)
%224 = add nsw i64 %223, -1
%225 = call %struct.TYPE_5__* @hwloc_get_obj_by_depth(i32 %222, i32 %210, i64 %224)
store %struct.TYPE_5__* %225, %struct.TYPE_5__** %3
%226 = load i8*, i8** %2
%227 = call i32 @hwloc_obj_cpuset_snprintf(i8* %226, i32 %213, i32 1, %struct.TYPE_5__** %3)
%228 = load i8*, i8** %2
%229 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.20, i64 0, i64 0), i8* %228)
%230 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3
%231 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %230, i64 0, i32 0
%232 = load i32, i32* %231
%233 = call i32 @check_cpuset(i32 %232, i8* null)
%234 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.34, i64 0, i64 0))
%235 = load i8*, i8** %2
%236 = call i32 @free(i8* %235)
%237 = load i32, i32* %1
%238 = call i32 @hwloc_topology_destroy(i32 %237)
ret i32 0
}