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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int test_allocate_zero();
int test_allocated_clear();
int test_cba_alloc();
int test_cba_assign();
int test_cba_clear();
int test_cba_clear_all();
int test_cba_set();
int test_cba_set_all();
int test_cba_toggle();
int test_cba_toggle_all();
int test_clear_all_empty();
int test_negative_indices();
int test_out_of_bounds();
int test_set_all_empty();
int test_set_all_then_clear_all();
int test_set_even_then_toggle_all();
int test_set_then_clear();
int main(void) {
  int passed, failed;
  passed = failed = 0;
  do {
    int r;
    printf("%-40s", "test_cba_alloc");
    r = test_cba_alloc();
    if (r) {
      passed++;
    } else {
      failed++;
    }
  } while (0);
  do {
    int r;
    printf("%-40s", "test_allocate_zero");
    r = test_allocate_zero();
    if (r) {
      passed++;
    } else {
      failed++;
    }
  } while (0);
  do {
    int r;
    printf("%-40s", "test_allocated_clear");
    r = test_allocated_clear();
    if (r) {
      passed++;
    } else {
      failed++;
    }
  } while (0);
  do {
    int r;
    printf("%-40s", "test_negative_indices");
    r = test_negative_indices();
    if (r) {
      passed++;
    } else {
      failed++;
    }
  } while (0);
  do {
    int r;
    printf("%-40s", "test_out_of_bounds");
    r = test_out_of_bounds();
    if (r) {
      passed++;
    } else {
      failed++;
    }
  } while (0);
  do {
    int r;
    printf("%-40s", "test_cba_set");
    r = test_cba_set();
    if (r) {
      passed++;
    } else {
      failed++;
    }
  } while (0);
  do {
    int r;
    printf("%-40s", "test_cba_set_all");
    r = test_cba_set_all();
    if (r) {
      passed++;
    } else {
      failed++;
    }
  } while (0);
  do {
    int r;
    printf("%-40s", "test_set_all_empty");
    r = test_set_all_empty();
    if (r) {
      passed++;
    } else {
      failed++;
    }
  } while (0);
  do {
    int r;
    printf("%-40s", "test_cba_clear");
    r = test_cba_clear();
    if (r) {
      passed++;
    } else {
      failed++;
    }
  } while (0);
  do {
    int r;
    printf("%-40s", "test_cba_clear_all");
    r = test_cba_clear_all();
    if (r) {
      passed++;
    } else {
      failed++;
    }
  } while (0);
  do {
    int r;
    printf("%-40s", "test_clear_all_empty");
    r = test_clear_all_empty();
    if (r) {
      passed++;
    } else {
      failed++;
    }
  } while (0);
  do {
    int r;
    printf("%-40s", "test_set_then_clear");
    r = test_set_then_clear();
    if (r) {
      passed++;
    } else {
      failed++;
    }
  } while (0);
  do {
    int r;
    printf("%-40s", "test_set_all_then_clear_all");
    r = test_set_all_then_clear_all();
    if (r) {
      passed++;
    } else {
      failed++;
    }
  } while (0);
  do {
    int r;
    printf("%-40s", "test_cba_toggle");
    r = test_cba_toggle();
    if (r) {
      passed++;
    } else {
      failed++;
    }
  } while (0);
  do {
    int r;
    printf("%-40s", "test_cba_toggle_all");
    r = test_cba_toggle_all();
    if (r) {
      passed++;
    } else {
      failed++;
    }
  } while (0);
  do {
    int r;
    printf("%-40s", "test_set_even_then_toggle_all");
    r = test_set_even_then_toggle_all();
    if (r) {
      passed++;
    } else {
      failed++;
    }
  } while (0);
  do {
    int r;
    printf("%-40s", "test_cba_assign");
    r = test_cba_assign();
    if (r) {
      passed++;
    } else {
      failed++;
    }
  } while (0);
  printf("%d tests, %d passed, %d failed\n", failed + passed, passed, failed);
  return (failed ? 1 : 0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x8(%rbp)
lea    0xdbc(%rip),%rdi
lea    0xdbb(%rip),%rsi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   10e0 <test_cba_alloc@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
je     1274 <main+0x54>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    127d <main+0x5d>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1282 <main+0x62>
jmp    1287 <main+0x67>
lea    0xd72(%rip),%rdi
lea    0xd80(%rip),%rsi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   1050 <test_allocate_zero@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     12be <main+0x9e>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12c7 <main+0xa7>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12cc <main+0xac>
jmp    12d1 <main+0xb1>
lea    0xd28(%rip),%rdi
lea    0xd49(%rip),%rsi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   1080 <test_allocated_clear@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     1308 <main+0xe8>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1311 <main+0xf1>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1316 <main+0xf6>
jmp    131b <main+0xfb>
lea    0xcde(%rip),%rdi
lea    0xd14(%rip),%rsi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   1030 <test_negative_indices@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     1352 <main+0x132>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    135b <main+0x13b>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1360 <main+0x140>
jmp    1365 <main+0x145>
lea    0xc94(%rip),%rdi
lea    0xce0(%rip),%rsi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   10f0 <test_out_of_bounds@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
je     139c <main+0x17c>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    13a5 <main+0x185>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    13aa <main+0x18a>
jmp    13af <main+0x18f>
lea    0xc4a(%rip),%rdi
lea    0xca9(%rip),%rsi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   1110 <test_cba_set@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     13e6 <main+0x1c6>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    13ef <main+0x1cf>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    13f4 <main+0x1d4>
jmp    13f9 <main+0x1d9>
lea    0xc00(%rip),%rdi
lea    0xc6c(%rip),%rsi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   10d0 <test_cba_set_all@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x0,-0x28(%rbp)
je     1430 <main+0x210>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1439 <main+0x219>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    143e <main+0x21e>
jmp    1443 <main+0x223>
lea    0xbb6(%rip),%rdi
lea    0xc33(%rip),%rsi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   10c0 <test_set_all_empty@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     147a <main+0x25a>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1483 <main+0x263>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1488 <main+0x268>
jmp    148d <main+0x26d>
lea    0xb6c(%rip),%rdi
lea    0xbfc(%rip),%rsi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   10b0 <test_cba_clear@plt>
mov    %eax,-0x30(%rbp)
cmpl   $0x0,-0x30(%rbp)
je     14c4 <main+0x2a4>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    14cd <main+0x2ad>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    14d2 <main+0x2b2>
jmp    14d7 <main+0x2b7>
lea    0xb22(%rip),%rdi
lea    0xbc1(%rip),%rsi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   1060 <test_cba_clear_all@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
je     150e <main+0x2ee>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1517 <main+0x2f7>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    151c <main+0x2fc>
jmp    1521 <main+0x301>
lea    0xad8(%rip),%rdi
lea    0xb8a(%rip),%rsi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   1070 <test_clear_all_empty@plt>
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x38(%rbp)
je     1558 <main+0x338>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1561 <main+0x341>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1566 <main+0x346>
jmp    156b <main+0x34b>
lea    0xa8e(%rip),%rdi
lea    0xb55(%rip),%rsi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   1120 <test_set_then_clear@plt>
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
je     15a2 <main+0x382>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    15ab <main+0x38b>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    15b0 <main+0x390>
jmp    15b5 <main+0x395>
lea    0xa44(%rip),%rdi
lea    0xb1f(%rip),%rsi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   10a0 <test_set_all_then_clear_all@plt>
mov    %eax,-0x40(%rbp)
cmpl   $0x0,-0x40(%rbp)
je     15ec <main+0x3cc>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    15f5 <main+0x3d5>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    15fa <main+0x3da>
jmp    15ff <main+0x3df>
lea    0x9fa(%rip),%rdi
lea    0xaf1(%rip),%rsi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   1130 <test_cba_toggle@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0x0,-0x44(%rbp)
je     1636 <main+0x416>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    163f <main+0x41f>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1644 <main+0x424>
jmp    1649 <main+0x429>
lea    0x9b0(%rip),%rdi
lea    0xab7(%rip),%rsi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   1040 <test_cba_toggle_all@plt>
mov    %eax,-0x48(%rbp)
cmpl   $0x0,-0x48(%rbp)
je     1680 <main+0x460>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1689 <main+0x469>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    168e <main+0x46e>
jmp    1693 <main+0x473>
lea    0x966(%rip),%rdi
lea    0xa81(%rip),%rsi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   1100 <test_set_even_then_toggle_all@plt>
mov    %eax,-0x4c(%rbp)
cmpl   $0x0,-0x4c(%rbp)
je     16ca <main+0x4aa>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    16d3 <main+0x4b3>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    16d8 <main+0x4b8>
jmp    16dd <main+0x4bd>
lea    0x91c(%rip),%rdi
lea    0xa55(%rip),%rsi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   1140 <test_cba_assign@plt>
mov    %eax,-0x50(%rbp)
cmpl   $0x0,-0x50(%rbp)
je     1714 <main+0x4f4>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    171d <main+0x4fd>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1722 <main+0x502>
mov    -0xc(%rbp),%esi
add    -0x8(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xa1b(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0xc(%rbp),%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xdce(%rip),%r14
lea    0xdcd(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   10e0 <test_cba_alloc@plt>
xor    %r15d,%r15d
xor    %ebp,%ebp
test   %eax,%eax
setne  %r15b
sete   %bpl
lea    0xdb5(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   1050 <test_allocate_zero@plt>
mov    $0x2,%ebx
sub    %ebp,%ebx
lea    0x1(%rbp),%r12d
test   %eax,%eax
cmovne %ebp,%r12d
cmove  %r15d,%ebx
lea    0xd9b(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   1080 <test_allocated_clear@plt>
xor    %r15d,%r15d
xor    %ebp,%ebp
test   %eax,%eax
setne  %r15b
sete   %bpl
add    %r12d,%ebp
add    %ebx,%r15d
lea    0xd83(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   1030 <test_negative_indices@plt>
xor    %r12d,%r12d
xor    %ebx,%ebx
test   %eax,%eax
setne  %r12b
sete   %bl
add    %ebp,%ebx
add    %r15d,%r12d
lea    0xd6e(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   10f0 <test_out_of_bounds@plt>
xor    %r15d,%r15d
xor    %ebp,%ebp
test   %eax,%eax
setne  %r15b
sete   %bpl
add    %ebx,%ebp
add    %r12d,%r15d
lea    0xd55(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   1110 <test_cba_set@plt>
xor    %r12d,%r12d
xor    %ebx,%ebx
test   %eax,%eax
setne  %r12b
sete   %bl
add    %ebp,%ebx
add    %r15d,%r12d
lea    0xd37(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   10d0 <test_cba_set_all@plt>
xor    %r15d,%r15d
xor    %ebp,%ebp
test   %eax,%eax
setne  %r15b
sete   %bpl
add    %ebx,%ebp
add    %r12d,%r15d
lea    0xd1c(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   10c0 <test_set_all_empty@plt>
xor    %r12d,%r12d
xor    %ebx,%ebx
test   %eax,%eax
setne  %r12b
sete   %bl
add    %ebp,%ebx
add    %r15d,%r12d
lea    0xd04(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   10b0 <test_cba_clear@plt>
xor    %r15d,%r15d
xor    %ebp,%ebp
test   %eax,%eax
setne  %r15b
sete   %bpl
add    %ebx,%ebp
add    %r12d,%r15d
lea    0xce7(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   1060 <test_cba_clear_all@plt>
xor    %r12d,%r12d
xor    %ebx,%ebx
test   %eax,%eax
setne  %r12b
sete   %bl
add    %ebp,%ebx
add    %r15d,%r12d
lea    0xccf(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   1070 <test_clear_all_empty@plt>
xor    %r15d,%r15d
xor    %ebp,%ebp
test   %eax,%eax
setne  %r15b
sete   %bpl
add    %ebx,%ebp
add    %r12d,%r15d
lea    0xcb8(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   1120 <test_set_then_clear@plt>
xor    %r12d,%r12d
xor    %ebx,%ebx
test   %eax,%eax
setne  %r12b
sete   %bl
add    %ebp,%ebx
add    %r15d,%r12d
lea    0xca1(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   10a0 <test_set_all_then_clear_all@plt>
xor    %r15d,%r15d
xor    %ebp,%ebp
test   %eax,%eax
setne  %r15b
sete   %bpl
add    %ebx,%ebp
add    %r12d,%r15d
lea    0xc91(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   1130 <test_cba_toggle@plt>
xor    %r12d,%r12d
xor    %ebx,%ebx
test   %eax,%eax
setne  %r12b
sete   %bl
add    %ebp,%ebx
add    %r15d,%r12d
lea    0xc76(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   1040 <test_cba_toggle_all@plt>
xor    %r13d,%r13d
xor    %ebp,%ebp
test   %eax,%eax
setne  %r13b
sete   %bpl
add    %ebx,%ebp
add    %r12d,%r13d
lea    0xc5e(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   1100 <test_set_even_then_toggle_all@plt>
xor    %r15d,%r15d
xor    %r12d,%r12d
test   %eax,%eax
setne  %r15b
sete   %r12b
add    %ebp,%r12d
add    %r13d,%r15d
lea    0xc4e(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   1140 <test_cba_assign@plt>
xor    %edx,%edx
xor    %ebx,%ebx
test   %eax,%eax
setne  %dl
sete   %bl
add    %r12d,%ebx
add    %r15d,%edx
lea    (%rbx,%rdx,1),%esi
lea    0xc31(%rip),%rdi
mov    %ebx,%ecx
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
test   %ebx,%ebx
setne  %al
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [6 x i8] c"%-40s\00"
@.str.1 = [15 x i8] c"test_cba_alloc\00"
@.str.2 = [19 x i8] c"test_allocate_zero\00"
@.str.3 = [21 x i8] c"test_allocated_clear\00"
@.str.4 = [22 x i8] c"test_negative_indices\00"
@.str.5 = [19 x i8] c"test_out_of_bounds\00"
@.str.6 = [13 x i8] c"test_cba_set\00"
@.str.7 = [17 x i8] c"test_cba_set_all\00"
@.str.8 = [19 x i8] c"test_set_all_empty\00"
@.str.9 = [15 x i8] c"test_cba_clear\00"
@.str.10 = [19 x i8] c"test_cba_clear_all\00"
@.str.11 = [21 x i8] c"test_clear_all_empty\00"
@.str.12 = [20 x i8] c"test_set_then_clear\00"
@.str.13 = [28 x i8] c"test_set_all_then_clear_all\00"
@.str.14 = [16 x i8] c"test_cba_toggle\00"
@.str.15 = [20 x i8] c"test_cba_toggle_all\00"
@.str.16 = [30 x i8] c"test_set_even_then_toggle_all\00"
@.str.17 = [16 x i8] c"test_cba_assign\00"
@.str.18 = [32 x i8] c"%d tests, %d passed, %d failed\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (...) @test_cba_alloc()
%3 = icmp eq i32 %2, 0
%4 = zext i1 %3 to i32
%5 = xor i1 %3, true
%6 = zext i1 %5 to i32
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i32 (...) @test_allocate_zero()
%9 = icmp eq i32 %8, 0
%10 = select i1 %3, i32 1, i32 2
%11 = select i1 %3, i32 2, i32 1
%12 = select i1 %9, i32 %11, i32 %4
%13 = select i1 %9, i32 %6, i32 %10
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%15 = tail call i32 (...) @test_allocated_clear()
%16 = icmp eq i32 %15, 0
%17 = zext i1 %16 to i32
%18 = add nuw nsw i32 %12, %17
%19 = xor i1 %16, true
%20 = zext i1 %19 to i32
%21 = add nuw nsw i32 %13, %20
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
%23 = tail call i32 (...) @test_negative_indices()
%24 = icmp eq i32 %23, 0
%25 = zext i1 %24 to i32
%26 = add nuw nsw i32 %18, %25
%27 = xor i1 %24, true
%28 = zext i1 %27 to i32
%29 = add nuw nsw i32 %21, %28
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%31 = tail call i32 (...) @test_out_of_bounds()
%32 = icmp eq i32 %31, 0
%33 = zext i1 %32 to i32
%34 = add nuw nsw i32 %26, %33
%35 = xor i1 %32, true
%36 = zext i1 %35 to i32
%37 = add nuw nsw i32 %29, %36
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%39 = tail call i32 (...) @test_cba_set()
%40 = icmp eq i32 %39, 0
%41 = zext i1 %40 to i32
%42 = add nuw nsw i32 %34, %41
%43 = xor i1 %40, true
%44 = zext i1 %43 to i32
%45 = add nuw nsw i32 %37, %44
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0))
%47 = tail call i32 (...) @test_cba_set_all()
%48 = icmp eq i32 %47, 0
%49 = zext i1 %48 to i32
%50 = add nuw nsw i32 %42, %49
%51 = xor i1 %48, true
%52 = zext i1 %51 to i32
%53 = add nuw nsw i32 %45, %52
%54 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
%55 = tail call i32 (...) @test_set_all_empty()
%56 = icmp eq i32 %55, 0
%57 = zext i1 %56 to i32
%58 = add nuw nsw i32 %50, %57
%59 = xor i1 %56, true
%60 = zext i1 %59 to i32
%61 = add nuw nsw i32 %53, %60
%62 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%63 = tail call i32 (...) @test_cba_clear()
%64 = icmp eq i32 %63, 0
%65 = zext i1 %64 to i32
%66 = add nuw nsw i32 %58, %65
%67 = xor i1 %64, true
%68 = zext i1 %67 to i32
%69 = add nuw nsw i32 %61, %68
%70 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
%71 = tail call i32 (...) @test_cba_clear_all()
%72 = icmp eq i32 %71, 0
%73 = zext i1 %72 to i32
%74 = add nuw nsw i32 %66, %73
%75 = xor i1 %72, true
%76 = zext i1 %75 to i32
%77 = add nuw nsw i32 %69, %76
%78 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0))
%79 = tail call i32 (...) @test_clear_all_empty()
%80 = icmp eq i32 %79, 0
%81 = zext i1 %80 to i32
%82 = add nuw nsw i32 %74, %81
%83 = xor i1 %80, true
%84 = zext i1 %83 to i32
%85 = add nuw nsw i32 %77, %84
%86 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0))
%87 = tail call i32 (...) @test_set_then_clear()
%88 = icmp eq i32 %87, 0
%89 = zext i1 %88 to i32
%90 = add nuw nsw i32 %82, %89
%91 = xor i1 %88, true
%92 = zext i1 %91 to i32
%93 = add nuw nsw i32 %85, %92
%94 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0))
%95 = tail call i32 (...) @test_set_all_then_clear_all()
%96 = icmp eq i32 %95, 0
%97 = zext i1 %96 to i32
%98 = add nuw nsw i32 %90, %97
%99 = xor i1 %96, true
%100 = zext i1 %99 to i32
%101 = add nuw nsw i32 %93, %100
%102 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0))
%103 = tail call i32 (...) @test_cba_toggle()
%104 = icmp eq i32 %103, 0
%105 = zext i1 %104 to i32
%106 = add nuw nsw i32 %98, %105
%107 = xor i1 %104, true
%108 = zext i1 %107 to i32
%109 = add nuw nsw i32 %101, %108
%110 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0))
%111 = tail call i32 (...) @test_cba_toggle_all()
%112 = icmp eq i32 %111, 0
%113 = zext i1 %112 to i32
%114 = add nuw nsw i32 %106, %113
%115 = xor i1 %112, true
%116 = zext i1 %115 to i32
%117 = add nuw nsw i32 %109, %116
%118 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.16, i64 0, i64 0))
%119 = tail call i32 (...) @test_set_even_then_toggle_all()
%120 = icmp eq i32 %119, 0
%121 = zext i1 %120 to i32
%122 = add nuw nsw i32 %114, %121
%123 = xor i1 %120, true
%124 = zext i1 %123 to i32
%125 = add nuw nsw i32 %117, %124
%126 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0))
%127 = tail call i32 (...) @test_cba_assign()
%128 = icmp eq i32 %127, 0
%129 = zext i1 %128 to i32
%130 = add nuw nsw i32 %122, %129
%131 = xor i1 %128, true
%132 = zext i1 %131 to i32
%133 = add nuw nsw i32 %125, %132
%134 = add nuw nsw i32 %130, %133
%135 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.18, i64 0, i64 0), i32 %134, i32 %133, i32 %130)
%136 = icmp ne i32 %130, 0
%137 = zext i1 %136 to i32
ret i32 %137
}