#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);
  hwloc_bitmap_asprintf(&string, set);
  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),%esi
lea    -0x18(%rbp),%rdi
call   10a0 <hwloc_bitmap_asprintf@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    0xd12(%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    0xd0e(%rip),%rsi
call   1180 <check_cpuset@plt>
mov    -0x2c(%rbp),%edi
call   1060 <hwloc_bitmap_free@plt>
lea    0xd11(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
lea    -0x8(%rbp),%rdi
call   1080 <hwloc_topology_init@plt>
mov    -0x8(%rbp),%edi
lea    0xd2b(%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    0xcf4(%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    0xcec(%rip),%rdi
mov    $0x0,%al
call   10e0 <printf@plt>
lea    0xd0a(%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    0xcfb(%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    0xcc7(%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    0xcb6(%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    0xc6e(%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    0xc1f(%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    0xc0b(%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    0xb6f(%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    0xb97(%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    0xabf(%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    0xb1b(%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    0x9f7(%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    0xa8b(%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    0xa86(%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    0xa58(%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    0xa52(%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>
lea    0x8(%rsp),%rbp
mov    %rbp,%rdi
mov    %ebx,%esi
call   10b0 <hwloc_bitmap_asprintf@plt>
mov    %ebx,%edi
xor    %esi,%esi
call   1190 <check_cpuset@plt>
mov    %ebx,%edi
call   1060 <hwloc_bitmap_free@plt>
lea    0xd7e(%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    0xcb5(%rip),%rsi
mov    %ebx,%edi
call   1190 <check_cpuset@plt>
mov    %ebx,%edi
call   1060 <hwloc_bitmap_free@plt>
lea    0xd6c(%rip),%rdi
call   1090 <puts@plt>
lea    0x14(%rsp),%rdi
call   1080 <hwloc_topology_init@plt>
mov    0x14(%rsp),%edi
lea    0xc9d(%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
mov    %rbp,%rdi
call   10b0 <hwloc_bitmap_asprintf@plt>
mov    %eax,%ebp
mov    0x8(%rsp),%rsi
lea    0xc64(%rip),%rdi
xor    %eax,%eax
call   10f0 <printf@plt>
mov    (%rbx),%edi
xor    %esi,%esi
call   1190 <check_cpuset@plt>
lea    0xd2b(%rip),%rdi
call   1090 <puts@plt>
lea    0xd4a(%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    0xd43(%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    0xd1b(%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    0xb83(%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    0xcc1(%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    0xc78(%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    0xc1e(%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    0xbc0(%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    0x8ab(%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    0xb2d(%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    0x861(%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    0xaf9(%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 @hwloc_bitmap_asprintf(i8** %4, i32 %26)
%28 = load i32, i32* %8
%29 = call i32 @check_cpuset(i32 %28, i8* null)
%30 = load i32, i32* %8
%31 = call i32 @hwloc_bitmap_free(i32 %30)
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.4, i64 0, i64 0))
%33 = call i32 (...) @hwloc_bitmap_alloc()
store i32 %33, i32* %8
%34 = load i32, i32* %8
%35 = call i32 @hwloc_bitmap_set(i32 %34, i32 2)
%36 = load i32, i32* %8
%37 = call i32 @hwloc_bitmap_set_range(i32 %36, i32 67, i32 70)
%38 = load i32, i32* %8
%39 = call i32 @check_cpuset(i32 %38, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
%40 = load i32, i32* %8
%41 = call i32 @hwloc_bitmap_free(i32 %40)
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%43 = call i32 @hwloc_topology_init(i32* %2)
%44 = load i32, i32* %2
%45 = call i32 @hwloc_topology_set_synthetic(i32 %44, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%46 = load i32, i32* %2
%47 = call i32 @hwloc_topology_load(i32 %46)
%48 = load i32, i32* %2
%49 = call i32 @hwloc_topology_get_depth(i32 %48)
store i32 %49, i32* %3
%50 = load i32, i32* %2
%51 = call %struct.TYPE_5__* @hwloc_get_root_obj(i32 %50)
store %struct.TYPE_5__* %51, %struct.TYPE_5__** %7
%52 = load %struct.TYPE_5__*, %struct.TYPE_5__** %7
%53 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %52, i32 0, i32 0
%54 = load i32, i32* %53
%55 = call i32 @hwloc_bitmap_asprintf(i8** %4, i32 %54)
store i32 %55, i32* %5
%56 = load i8*, i8** %4
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i8* %56)
%58 = load %struct.TYPE_5__*, %struct.TYPE_5__** %7
%59 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %58, i32 0, i32 0
%60 = load i32, i32* %59
%61 = call i32 @check_cpuset(i32 %60, i8* null)
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.9, i64 0, i64 0))
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
%64 = call i32 @hwloc_obj_cpuset_snprintf(i8* null, i32 0, i32 1, %struct.TYPE_5__** %7)
store i32 %64, i32* %6
%65 = load i32, i32* %6
%66 = load i32, i32* %5
%67 = icmp eq i32 %65, %66
%68 = zext i1 %67 to i32
%69 = call i32 @assert(i32 %68)
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.11, i64 0, i64 0))
%71 = load i8*, i8** %4
%72 = call i32 @memset(i8* %71, i8 signext 88, i32 1)
%73 = load i8*, i8** %4
%74 = getelementptr inbounds i8, i8* %73, i64 1
store i8 0, i8* %74
%75 = load i8*, i8** %4
%76 = call i32 @hwloc_obj_cpuset_snprintf(i8* %75, i32 0, i32 1, %struct.TYPE_5__** %7)
store i32 %76, i32* %6
%77 = load i32, i32* %6
%78 = load i32, i32* %5
%79 = icmp eq i32 %77, %78
%80 = zext i1 %79 to i32
%81 = call i32 @assert(i32 %80)
%82 = load i8*, i8** %4
%83 = getelementptr inbounds i8, i8* %82, i64 0
%84 = load i8, i8* %83
%85 = sext i8 %84 to i32
%86 = icmp eq i32 %85, 88
%87 = zext i1 %86 to i32
%88 = call i32 @assert(i32 %87)
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.12, i64 0, i64 0))
%90 = load i8*, i8** %4
%91 = call i32 @memset(i8* %90, i8 signext 88, i32 2)
%92 = load i8*, i8** %4
%93 = getelementptr inbounds i8, i8* %92, i64 2
store i8 0, i8* %93
%94 = load i8*, i8** %4
%95 = call i32 @hwloc_obj_cpuset_snprintf(i8* %94, i32 1, i32 1, %struct.TYPE_5__** %7)
store i32 %95, i32* %6
%96 = load i8*, i8** %4
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %96)
%98 = load i32, i32* %6
%99 = load i32, i32* %5
%100 = icmp eq i32 %98, %99
%101 = zext i1 %100 to i32
%102 = call i32 @assert(i32 %101)
%103 = load i8*, i8** %4
%104 = getelementptr inbounds i8, i8* %103, i64 0
%105 = load i8, i8* %104
%106 = sext i8 %105 to i32
%107 = icmp eq i32 %106, 0
%108 = zext i1 %107 to i32
%109 = call i32 @assert(i32 %108)
%110 = load i8*, i8** %4
%111 = getelementptr inbounds i8, i8* %110, i64 1
%112 = load i8, i8* %111
%113 = sext i8 %112 to i32
%114 = icmp eq i32 %113, 88
%115 = zext i1 %114 to i32
%116 = call i32 @assert(i32 %115)
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.14, i64 0, i64 0))
%118 = load i8*, i8** %4
%119 = call i32 @memset(i8* %118, i8 signext 88, i32 11)
%120 = load i8*, i8** %4
%121 = getelementptr inbounds i8, i8* %120, i64 11
store i8 0, i8* %121
%122 = load i8*, i8** %4
%123 = call i32 @hwloc_obj_cpuset_snprintf(i8* %122, i32 10, i32 1, %struct.TYPE_5__** %7)
store i32 %123, i32* %6
%124 = load i8*, i8** %4
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %124)
%126 = load i32, i32* %6
%127 = load i32, i32* %5
%128 = icmp eq i32 %126, %127
%129 = zext i1 %128 to i32
%130 = call i32 @assert(i32 %129)
%131 = load i8*, i8** %4
%132 = getelementptr inbounds i8, i8* %131, i64 8
%133 = load i8, i8* %132
%134 = sext i8 %133 to i32
%135 = icmp eq i32 %134, 102
%136 = zext i1 %135 to i32
%137 = call i32 @assert(i32 %136)
%138 = load i8*, i8** %4
%139 = getelementptr inbounds i8, i8* %138, i64 9
%140 = load i8, i8* %139
%141 = sext i8 %140 to i32
%142 = icmp eq i32 %141, 0
%143 = zext i1 %142 to i32
%144 = call i32 @assert(i32 %143)
%145 = load i8*, i8** %4
%146 = getelementptr inbounds i8, i8* %145, i64 10
%147 = load i8, i8* %146
%148 = sext i8 %147 to i32
%149 = icmp eq i32 %148, 88
%150 = zext i1 %149 to i32
%151 = call i32 @assert(i32 %150)
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.15, i64 0, i64 0))
%153 = load i8*, i8** %4
%154 = call i32 @memset(i8* %153, i8 signext 88, i32 12)
%155 = load i8*, i8** %4
%156 = getelementptr inbounds i8, i8* %155, i64 12
store i8 0, i8* %156
%157 = load i8*, i8** %4
%158 = call i32 @hwloc_obj_cpuset_snprintf(i8* %157, i32 11, i32 1, %struct.TYPE_5__** %7)
store i32 %158, i32* %6
%159 = load i8*, i8** %4
%160 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %159)
%161 = load i32, i32* %6
%162 = load i32, i32* %5
%163 = icmp eq i32 %161, %162
%164 = zext i1 %163 to i32
%165 = call i32 @assert(i32 %164)
%166 = load i8*, i8** %4
%167 = getelementptr inbounds i8, i8* %166, i64 9
%168 = load i8, i8* %167
%169 = sext i8 %168 to i32
%170 = icmp eq i32 %169, 102
%171 = zext i1 %170 to i32
%172 = call i32 @assert(i32 %171)
%173 = load i8*, i8** %4
%174 = getelementptr inbounds i8, i8* %173, i64 10
%175 = load i8, i8* %174
%176 = sext i8 %175 to i32
%177 = icmp eq i32 %176, 0
%178 = zext i1 %177 to i32
%179 = call i32 @assert(i32 %178)
%180 = load i8*, i8** %4
%181 = getelementptr inbounds i8, i8* %180, i64 11
%182 = load i8, i8* %181
%183 = sext i8 %182 to i32
%184 = icmp eq i32 %183, 88
%185 = zext i1 %184 to i32
%186 = call i32 @assert(i32 %185)
%187 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.16, i64 0, i64 0))
%188 = load i8*, i8** %4
%189 = call i32 @memset(i8* %188, i8 signext 88, i32 24)
%190 = load i8*, i8** %4
%191 = getelementptr inbounds i8, i8* %190, i64 24
store i8 0, i8* %191
%192 = load i8*, i8** %4
%193 = call i32 @hwloc_obj_cpuset_snprintf(i8* %192, i32 23, i32 1, %struct.TYPE_5__** %7)
store i32 %193, i32* %6
%194 = load i8*, i8** %4
%195 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %194)
%196 = load i32, i32* %6
%197 = load i32, i32* %5
%198 = icmp eq i32 %196, %197
%199 = zext i1 %198 to i32
%200 = call i32 @assert(i32 %199)
%201 = load i8*, i8** %4
%202 = getelementptr inbounds i8, i8* %201, i64 20
%203 = load i8, i8* %202
%204 = sext i8 %203 to i32
%205 = icmp eq i32 %204, 102
%206 = zext i1 %205 to i32
%207 = call i32 @assert(i32 %206)
%208 = load i8*, i8** %4
%209 = getelementptr inbounds i8, i8* %208, i64 21
%210 = load i8, i8* %209
%211 = sext i8 %210 to i32
%212 = icmp eq i32 %211, 44
%213 = zext i1 %212 to i32
%214 = call i32 @assert(i32 %213)
%215 = load i8*, i8** %4
%216 = getelementptr inbounds i8, i8* %215, i64 22
%217 = load i8, i8* %216
%218 = sext i8 %217 to i32
%219 = icmp eq i32 %218, 0
%220 = zext i1 %219 to i32
%221 = call i32 @assert(i32 %220)
%222 = load i8*, i8** %4
%223 = getelementptr inbounds i8, i8* %222, i64 23
%224 = load i8, i8* %223
%225 = sext i8 %224 to i32
%226 = icmp eq i32 %225, 88
%227 = zext i1 %226 to i32
%228 = call i32 @assert(i32 %227)
%229 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.17, i64 0, i64 0))
%230 = load i8*, i8** %4
%231 = call i32 @memset(i8* %230, i8 signext 88, i32 52)
%232 = load i8*, i8** %4
%233 = getelementptr inbounds i8, i8* %232, i64 52
store i8 0, i8* %233
%234 = load i8*, i8** %4
%235 = call i32 @hwloc_obj_cpuset_snprintf(i8* %234, i32 51, i32 1, %struct.TYPE_5__** %7)
store i32 %235, i32* %6
%236 = load i8*, i8** %4
%237 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %236)
%238 = load i32, i32* %6
%239 = load i32, i32* %5
%240 = icmp eq i32 %238, %239
%241 = zext i1 %240 to i32
%242 = call i32 @assert(i32 %241)
%243 = load i8*, i8** %4
%244 = getelementptr inbounds i8, i8* %243, i64 49
%245 = load i8, i8* %244
%246 = sext i8 %245 to i32
%247 = icmp eq i32 %246, 102
%248 = zext i1 %247 to i32
%249 = call i32 @assert(i32 %248)
%250 = load i8*, i8** %4
%251 = getelementptr inbounds i8, i8* %250, i64 50
%252 = load i8, i8* %251
%253 = sext i8 %252 to i32
%254 = icmp eq i32 %253, 0
%255 = zext i1 %254 to i32
%256 = call i32 @assert(i32 %255)
%257 = load i8*, i8** %4
%258 = getelementptr inbounds i8, i8* %257, i64 51
%259 = load i8, i8* %258
%260 = sext i8 %259 to i32
%261 = icmp eq i32 %260, 88
%262 = zext i1 %261 to i32
%263 = call i32 @assert(i32 %262)
%264 = load i32, i32* %2
%265 = load i32, i32* %3
%266 = sub i32 %265, 1
%267 = call %struct.TYPE_5__* @hwloc_get_obj_by_depth(i32 %264, i32 %266, i64 0)
store %struct.TYPE_5__* %267, %struct.TYPE_5__** %7
%268 = load i8*, i8** %4
%269 = load i32, i32* %5
%270 = add nsw i32 %269, 1
%271 = call i32 @hwloc_obj_cpuset_snprintf(i8* %268, i32 %270, i32 1, %struct.TYPE_5__** %7)
%272 = load i8*, i8** %4
%273 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.18, i64 0, i64 0), i8* %272)
%274 = load %struct.TYPE_5__*, %struct.TYPE_5__** %7
%275 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %274, i32 0, i32 0
%276 = load i32, i32* %275
%277 = call i32 @check_cpuset(i32 %276, i8* null)
%278 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.19, i64 0, i64 0))
%279 = load i32, i32* %2
%280 = load i32, i32* %3
%281 = sub i32 %280, 1
%282 = load i32, i32* %2
%283 = load i32, i32* %3
%284 = sub i32 %283, 1
%285 = call i64 @hwloc_get_nbobjs_by_depth(i32 %282, i32 %284)
%286 = sub nsw i64 %285, 1
%287 = call %struct.TYPE_5__* @hwloc_get_obj_by_depth(i32 %279, i32 %281, i64 %286)
store %struct.TYPE_5__* %287, %struct.TYPE_5__** %7
%288 = load i8*, i8** %4
%289 = load i32, i32* %5
%290 = add nsw i32 %289, 1
%291 = call i32 @hwloc_obj_cpuset_snprintf(i8* %288, i32 %290, i32 1, %struct.TYPE_5__** %7)
%292 = load i8*, i8** %4
%293 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.20, i64 0, i64 0), i8* %292)
%294 = load %struct.TYPE_5__*, %struct.TYPE_5__** %7
%295 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %294, i32 0, i32 0
%296 = load i32, i32* %295
%297 = call i32 @check_cpuset(i32 %296, i8* null)
%298 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.21, i64 0, i64 0))
%299 = load i8*, i8** %4
%300 = call i32 @free(i8* %299)
%301 = load i32, i32* %2
%302 = call i32 @hwloc_topology_destroy(i32 %301)
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 = call i32 @hwloc_bitmap_asprintf(i8** %2, i32 %15)
%19 = call i32 @check_cpuset(i32 %15, i8* null)
%20 = call i32 @hwloc_bitmap_free(i32 %15)
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.23, i64 0, i64 0))
%22 = call i32 (...) @hwloc_bitmap_alloc()
%23 = call i32 @hwloc_bitmap_set(i32 %22, i32 2)
%24 = call i32 @hwloc_bitmap_set_range(i32 %22, i32 67, i32 70)
%25 = call i32 @check_cpuset(i32 %22, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
%26 = call i32 @hwloc_bitmap_free(i32 %22)
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.24, i64 0, i64 0))
%28 = call i32 @hwloc_topology_init(i32* %1)
%29 = load i32, i32* %1
%30 = call i32 @hwloc_topology_set_synthetic(i32 %29, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%31 = load i32, i32* %1
%32 = call i32 @hwloc_topology_load(i32 %31)
%33 = load i32, i32* %1
%34 = call i32 @hwloc_topology_get_depth(i32 %33)
%35 = load i32, i32* %1
%36 = call %struct.TYPE_5__* @hwloc_get_root_obj(i32 %35)
store %struct.TYPE_5__* %36, %struct.TYPE_5__** %3
%37 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %36, i64 0, i32 0
%38 = load i32, i32* %37
%39 = call i32 @hwloc_bitmap_asprintf(i8** %2, i32 %38)
%40 = load i8*, i8** %2
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i8* %40)
%42 = load i32, i32* %37
%43 = call i32 @check_cpuset(i32 %42, i8* null)
%44 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.25, i64 0, i64 0))
%45 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.26, i64 0, i64 0))
%46 = call i32 @hwloc_obj_cpuset_snprintf(i8* null, i32 0, i32 1, %struct.TYPE_5__** %3)
%47 = icmp eq i32 %46, %39
%48 = zext i1 %47 to i32
%49 = call i32 @assert(i32 %48)
%50 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.27, i64 0, i64 0))
%51 = load i8*, i8** %2
%52 = call i32 @memset(i8* %51, i8 signext 88, i32 1)
%53 = load i8*, i8** %2
%54 = getelementptr inbounds i8, i8* %53, i64 1
store i8 0, i8* %54
%55 = load i8*, i8** %2
%56 = call i32 @hwloc_obj_cpuset_snprintf(i8* %55, i32 0, i32 1, %struct.TYPE_5__** %3)
%57 = icmp eq i32 %56, %39
%58 = zext i1 %57 to i32
%59 = call i32 @assert(i32 %58)
%60 = load i8*, i8** %2
%61 = load i8, i8* %60
%62 = icmp eq i8 %61, 88
%63 = zext i1 %62 to i32
%64 = call i32 @assert(i32 %63)
%65 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.28, i64 0, i64 0))
%66 = load i8*, i8** %2
%67 = call i32 @memset(i8* %66, i8 signext 88, i32 2)
%68 = load i8*, i8** %2
%69 = getelementptr inbounds i8, i8* %68, i64 2
store i8 0, i8* %69
%70 = load i8*, i8** %2
%71 = call i32 @hwloc_obj_cpuset_snprintf(i8* %70, i32 1, i32 1, %struct.TYPE_5__** %3)
%72 = load i8*, i8** %2
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %72)
%74 = icmp eq i32 %71, %39
%75 = zext i1 %74 to i32
%76 = call i32 @assert(i32 %75)
%77 = load i8*, i8** %2
%78 = load i8, i8* %77
%79 = icmp eq i8 %78, 0
%80 = zext i1 %79 to i32
%81 = call i32 @assert(i32 %80)
%82 = load i8*, i8** %2
%83 = getelementptr inbounds i8, i8* %82, i64 1
%84 = load i8, i8* %83
%85 = icmp eq i8 %84, 88
%86 = zext i1 %85 to i32
%87 = call i32 @assert(i32 %86)
%88 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.29, i64 0, i64 0))
%89 = load i8*, i8** %2
%90 = call i32 @memset(i8* %89, i8 signext 88, i32 11)
%91 = load i8*, i8** %2
%92 = getelementptr inbounds i8, i8* %91, i64 11
store i8 0, i8* %92
%93 = call i32 @hwloc_obj_cpuset_snprintf(i8* %91, i32 10, i32 1, %struct.TYPE_5__** %3)
%94 = load i8*, i8** %2
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %94)
%96 = icmp eq i32 %93, %39
%97 = zext i1 %96 to i32
%98 = call i32 @assert(i32 %97)
%99 = load i8*, i8** %2
%100 = getelementptr inbounds i8, i8* %99, i64 8
%101 = load i8, i8* %100
%102 = icmp eq i8 %101, 102
%103 = zext i1 %102 to i32
%104 = call i32 @assert(i32 %103)
%105 = load i8*, i8** %2
%106 = getelementptr inbounds i8, i8* %105, i64 9
%107 = load i8, i8* %106
%108 = icmp eq i8 %107, 0
%109 = zext i1 %108 to i32
%110 = call i32 @assert(i32 %109)
%111 = load i8*, i8** %2
%112 = getelementptr inbounds i8, i8* %111, i64 10
%113 = load i8, i8* %112
%114 = icmp eq i8 %113, 88
%115 = zext i1 %114 to i32
%116 = call i32 @assert(i32 %115)
%117 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.30, i64 0, i64 0))
%118 = load i8*, i8** %2
%119 = call i32 @memset(i8* %118, i8 signext 88, i32 12)
%120 = load i8*, i8** %2
%121 = getelementptr inbounds i8, i8* %120, i64 12
store i8 0, i8* %121
%122 = call i32 @hwloc_obj_cpuset_snprintf(i8* %120, i32 11, i32 1, %struct.TYPE_5__** %3)
%123 = load i8*, i8** %2
%124 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %123)
%125 = icmp eq i32 %122, %39
%126 = zext i1 %125 to i32
%127 = call i32 @assert(i32 %126)
%128 = load i8*, i8** %2
%129 = getelementptr inbounds i8, i8* %128, i64 9
%130 = load i8, i8* %129
%131 = icmp eq i8 %130, 102
%132 = zext i1 %131 to i32
%133 = call i32 @assert(i32 %132)
%134 = load i8*, i8** %2
%135 = getelementptr inbounds i8, i8* %134, i64 10
%136 = load i8, i8* %135
%137 = icmp eq i8 %136, 0
%138 = zext i1 %137 to i32
%139 = call i32 @assert(i32 %138)
%140 = load i8*, i8** %2
%141 = getelementptr inbounds i8, i8* %140, i64 11
%142 = load i8, i8* %141
%143 = icmp eq i8 %142, 88
%144 = zext i1 %143 to i32
%145 = call i32 @assert(i32 %144)
%146 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.31, i64 0, i64 0))
%147 = load i8*, i8** %2
%148 = call i32 @memset(i8* %147, i8 signext 88, i32 24)
%149 = load i8*, i8** %2
%150 = getelementptr inbounds i8, i8* %149, i64 24
store i8 0, i8* %150
%151 = call i32 @hwloc_obj_cpuset_snprintf(i8* %149, i32 23, i32 1, %struct.TYPE_5__** %3)
%152 = load i8*, i8** %2
%153 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %152)
%154 = icmp eq i32 %151, %39
%155 = zext i1 %154 to i32
%156 = call i32 @assert(i32 %155)
%157 = load i8*, i8** %2
%158 = getelementptr inbounds i8, i8* %157, i64 20
%159 = load i8, i8* %158
%160 = icmp eq i8 %159, 102
%161 = zext i1 %160 to i32
%162 = call i32 @assert(i32 %161)
%163 = load i8*, i8** %2
%164 = getelementptr inbounds i8, i8* %163, i64 21
%165 = load i8, i8* %164
%166 = icmp eq i8 %165, 44
%167 = zext i1 %166 to i32
%168 = call i32 @assert(i32 %167)
%169 = load i8*, i8** %2
%170 = getelementptr inbounds i8, i8* %169, i64 22
%171 = load i8, i8* %170
%172 = icmp eq i8 %171, 0
%173 = zext i1 %172 to i32
%174 = call i32 @assert(i32 %173)
%175 = load i8*, i8** %2
%176 = getelementptr inbounds i8, i8* %175, i64 23
%177 = load i8, i8* %176
%178 = icmp eq i8 %177, 88
%179 = zext i1 %178 to i32
%180 = call i32 @assert(i32 %179)
%181 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @str.32, i64 0, i64 0))
%182 = load i8*, i8** %2
%183 = call i32 @memset(i8* %182, i8 signext 88, i32 52)
%184 = load i8*, i8** %2
%185 = getelementptr inbounds i8, i8* %184, i64 52
store i8 0, i8* %185
%186 = call i32 @hwloc_obj_cpuset_snprintf(i8* %184, i32 51, i32 1, %struct.TYPE_5__** %3)
%187 = load i8*, i8** %2
%188 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %187)
%189 = icmp eq i32 %186, %39
%190 = zext i1 %189 to i32
%191 = call i32 @assert(i32 %190)
%192 = load i8*, i8** %2
%193 = getelementptr inbounds i8, i8* %192, i64 49
%194 = load i8, i8* %193
%195 = icmp eq i8 %194, 102
%196 = zext i1 %195 to i32
%197 = call i32 @assert(i32 %196)
%198 = load i8*, i8** %2
%199 = getelementptr inbounds i8, i8* %198, i64 50
%200 = load i8, i8* %199
%201 = icmp eq i8 %200, 0
%202 = zext i1 %201 to i32
%203 = call i32 @assert(i32 %202)
%204 = load i8*, i8** %2
%205 = getelementptr inbounds i8, i8* %204, i64 51
%206 = load i8, i8* %205
%207 = icmp eq i8 %206, 88
%208 = zext i1 %207 to i32
%209 = call i32 @assert(i32 %208)
%210 = load i32, i32* %1
%211 = add i32 %34, -1
%212 = call %struct.TYPE_5__* @hwloc_get_obj_by_depth(i32 %210, i32 %211, i64 0)
store %struct.TYPE_5__* %212, %struct.TYPE_5__** %3
%213 = load i8*, i8** %2
%214 = add nsw i32 %39, 1
%215 = call i32 @hwloc_obj_cpuset_snprintf(i8* %213, i32 %214, i32 1, %struct.TYPE_5__** %3)
%216 = load i8*, i8** %2
%217 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.18, i64 0, i64 0), i8* %216)
%218 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3
%219 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %218, i64 0, i32 0
%220 = load i32, i32* %219
%221 = call i32 @check_cpuset(i32 %220, i8* null)
%222 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.33, i64 0, i64 0))
%223 = load i32, i32* %1
%224 = call i64 @hwloc_get_nbobjs_by_depth(i32 %223, i32 %211)
%225 = add nsw i64 %224, -1
%226 = call %struct.TYPE_5__* @hwloc_get_obj_by_depth(i32 %223, i32 %211, i64 %225)
store %struct.TYPE_5__* %226, %struct.TYPE_5__** %3
%227 = load i8*, i8** %2
%228 = call i32 @hwloc_obj_cpuset_snprintf(i8* %227, i32 %214, i32 1, %struct.TYPE_5__** %3)
%229 = load i8*, i8** %2
%230 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.20, i64 0, i64 0), i8* %229)
%231 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3
%232 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %231, i64 0, i32 0
%233 = load i32, i32* %232
%234 = call i32 @check_cpuset(i32 %233, i8* null)
%235 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.34, i64 0, i64 0))
%236 = load i8*, i8** %2
%237 = call i32 @free(i8* %236)
%238 = load i32, i32* %1
%239 = call i32 @hwloc_topology_destroy(i32 %238)
ret i32 0
}