#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, int, ...);
int test_array_get();
int test_array_set();
int test_array_set_backwards();
int test_array_set_high_num();
int test_array_set_overwrites_old_values();
int test_cannot_get_outside_bounds();
int test_cannot_set_bigger_elements();
int test_cannot_set_outside_bounds();
int test_dict_get();
int test_dict_lots_of_set();
int test_dict_set();
int test_empty_array_does_not_blow_up();
int main(int argc, char *argv[]) {
  (void)argc;
  (void)argv;
  int test_return_val = 0;
  int tests_failed = 0;
  int tests_run = 0;
  ;
  test_return_val = test_cannot_set_bigger_elements();
  if (!test_return_val) {
    tests_failed++;
    printf("%c[%dmFailed%c[%dm: %s\n", 0x1B, 31, 0x1B, 0,
           "test_cannot_set_bigger_elements");
  } else {
    tests_run++;
    printf("%c[%dmPassed%c[%dm: %s\n", 0x1B, 32, 0x1B, 0,
           "test_cannot_set_bigger_elements");
  };
  test_return_val = test_cannot_set_outside_bounds();
  if (!test_return_val) {
    tests_failed++;
    printf("%c[%dmFailed%c[%dm: %s\n", 0x1B, 31, 0x1B, 0,
           "test_cannot_set_outside_bounds");
  } else {
    tests_run++;
    printf("%c[%dmPassed%c[%dm: %s\n", 0x1B, 32, 0x1B, 0,
           "test_cannot_set_outside_bounds");
  };
  test_return_val = test_cannot_get_outside_bounds();
  if (!test_return_val) {
    tests_failed++;
    printf("%c[%dmFailed%c[%dm: %s\n", 0x1B, 31, 0x1B, 0,
           "test_cannot_get_outside_bounds");
  } else {
    tests_run++;
    printf("%c[%dmPassed%c[%dm: %s\n", 0x1B, 32, 0x1B, 0,
           "test_cannot_get_outside_bounds");
  };
  test_return_val = test_empty_array_does_not_blow_up();
  if (!test_return_val) {
    tests_failed++;
    printf("%c[%dmFailed%c[%dm: %s\n", 0x1B, 31, 0x1B, 0,
           "test_empty_array_does_not_blow_up");
  } else {
    tests_run++;
    printf("%c[%dmPassed%c[%dm: %s\n", 0x1B, 32, 0x1B, 0,
           "test_empty_array_does_not_blow_up");
  };
  test_return_val = test_array_set();
  if (!test_return_val) {
    tests_failed++;
    printf("%c[%dmFailed%c[%dm: %s\n", 0x1B, 31, 0x1B, 0, "test_array_set");
  } else {
    tests_run++;
    printf("%c[%dmPassed%c[%dm: %s\n", 0x1B, 32, 0x1B, 0, "test_array_set");
  };
  test_return_val = test_array_set_backwards();
  if (!test_return_val) {
    tests_failed++;
    printf("%c[%dmFailed%c[%dm: %s\n", 0x1B, 31, 0x1B, 0,
           "test_array_set_backwards");
  } else {
    tests_run++;
    printf("%c[%dmPassed%c[%dm: %s\n", 0x1B, 32, 0x1B, 0,
           "test_array_set_backwards");
  };
  test_return_val = test_array_set_overwrites_old_values();
  if (!test_return_val) {
    tests_failed++;
    printf("%c[%dmFailed%c[%dm: %s\n", 0x1B, 31, 0x1B, 0,
           "test_array_set_overwrites_old_values");
  } else {
    tests_run++;
    printf("%c[%dmPassed%c[%dm: %s\n", 0x1B, 32, 0x1B, 0,
           "test_array_set_overwrites_old_values");
  };
  test_return_val = test_array_set_high_num();
  if (!test_return_val) {
    tests_failed++;
    printf("%c[%dmFailed%c[%dm: %s\n", 0x1B, 31, 0x1B, 0,
           "test_array_set_high_num");
  } else {
    tests_run++;
    printf("%c[%dmPassed%c[%dm: %s\n", 0x1B, 32, 0x1B, 0,
           "test_array_set_high_num");
  };
  test_return_val = test_array_get();
  if (!test_return_val) {
    tests_failed++;
    printf("%c[%dmFailed%c[%dm: %s\n", 0x1B, 31, 0x1B, 0, "test_array_get");
  } else {
    tests_run++;
    printf("%c[%dmPassed%c[%dm: %s\n", 0x1B, 32, 0x1B, 0, "test_array_get");
  };
  test_return_val = test_dict_set();
  if (!test_return_val) {
    tests_failed++;
    printf("%c[%dmFailed%c[%dm: %s\n", 0x1B, 31, 0x1B, 0, "test_dict_set");
  } else {
    tests_run++;
    printf("%c[%dmPassed%c[%dm: %s\n", 0x1B, 32, 0x1B, 0, "test_dict_set");
  };
  test_return_val = test_dict_get();
  if (!test_return_val) {
    tests_failed++;
    printf("%c[%dmFailed%c[%dm: %s\n", 0x1B, 31, 0x1B, 0, "test_dict_get");
  } else {
    tests_run++;
    printf("%c[%dmPassed%c[%dm: %s\n", 0x1B, 32, 0x1B, 0, "test_dict_get");
  };
  test_return_val = test_dict_lots_of_set();
  if (!test_return_val) {
    tests_failed++;
    printf("%c[%dmFailed%c[%dm: %s\n", 0x1B, 31, 0x1B, 0,
           "test_dict_lots_of_set");
  } else {
    tests_run++;
    printf("%c[%dmPassed%c[%dm: %s\n", 0x1B, 32, 0x1B, 0,
           "test_dict_lots_of_set");
  };
  printf("\n-----\nTests passed: (%i/%i)\n", tests_run,
         tests_run + tests_failed);
  ;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    $0x0,%al
call   10f0 <test_cannot_set_bigger_elements@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    1241 <main+0x71>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
lea    0xde1(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x1f,%edx
xor    %r8d,%r8d
lea    0xde5(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    126e <main+0x9e>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
lea    0xde7(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x20,%edx
xor    %r8d,%r8d
lea    0xdb3(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1030 <test_cannot_set_outside_bounds@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    12b4 <main+0xe4>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
lea    0xd6e(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x1f,%edx
xor    %r8d,%r8d
lea    0xdaa(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    12e1 <main+0x111>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
lea    0xd74(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x20,%edx
xor    %r8d,%r8d
lea    0xd78(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1090 <test_cannot_get_outside_bounds@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    1327 <main+0x157>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
lea    0xcfb(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x1f,%edx
xor    %r8d,%r8d
lea    0xd56(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    1354 <main+0x184>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
lea    0xd01(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x20,%edx
xor    %r8d,%r8d
lea    0xd24(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   10e0 <test_empty_array_does_not_blow_up@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    139a <main+0x1ca>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
lea    0xc88(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x1f,%edx
xor    %r8d,%r8d
lea    0xd02(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    13c7 <main+0x1f7>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
lea    0xc8e(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x20,%edx
xor    %r8d,%r8d
lea    0xcd0(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   10b0 <test_array_set@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    140d <main+0x23d>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
lea    0xc15(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x1f,%edx
xor    %r8d,%r8d
lea    0xcb1(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    143a <main+0x26a>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
lea    0xc1b(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x20,%edx
xor    %r8d,%r8d
lea    0xc7f(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1050 <test_array_set_backwards@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    1480 <main+0x2b0>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
lea    0xba2(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x1f,%edx
xor    %r8d,%r8d
lea    0xc4d(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    14ad <main+0x2dd>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
lea    0xba8(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x20,%edx
xor    %r8d,%r8d
lea    0xc1b(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1080 <test_array_set_overwrites_old_values@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    14f3 <main+0x323>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
lea    0xb2f(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x1f,%edx
xor    %r8d,%r8d
lea    0xbf3(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    1520 <main+0x350>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
lea    0xb35(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x20,%edx
xor    %r8d,%r8d
lea    0xbc1(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1040 <test_array_set_high_num@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    1566 <main+0x396>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
lea    0xabc(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x1f,%edx
xor    %r8d,%r8d
lea    0xba5(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    1593 <main+0x3c3>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
lea    0xac2(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x20,%edx
xor    %r8d,%r8d
lea    0xb73(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   10c0 <test_array_get@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    15d9 <main+0x409>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
lea    0xa49(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x1f,%edx
xor    %r8d,%r8d
lea    0xb4a(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    1606 <main+0x436>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
lea    0xa4f(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x20,%edx
xor    %r8d,%r8d
lea    0xb18(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   10a0 <test_dict_set@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    164c <main+0x47c>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
lea    0x9d6(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x1f,%edx
xor    %r8d,%r8d
lea    0xae6(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    1679 <main+0x4a9>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
lea    0x9dc(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x20,%edx
xor    %r8d,%r8d
lea    0xab4(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1060 <test_dict_get@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    16bf <main+0x4ef>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
lea    0x963(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x1f,%edx
xor    %r8d,%r8d
lea    0xa81(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    16ec <main+0x51c>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
lea    0x969(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x20,%edx
xor    %r8d,%r8d
lea    0xa4f(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   10d0 <test_dict_lots_of_set@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    1732 <main+0x562>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
lea    0x8f0(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x1f,%edx
xor    %r8d,%r8d
lea    0xa1c(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    175f <main+0x58f>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
lea    0x8f6(%rip),%rdi
mov    $0x1b,%ecx
mov    $0x20,%edx
xor    %r8d,%r8d
lea    0x9ea(%rip),%r9
mov    %ecx,%esi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x1c(%rbp),%esi
mov    -0x1c(%rbp),%edx
add    -0x18(%rbp),%edx
lea    0x9e7(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %ebx,%ebx
xor    %eax,%eax
call   10f0 <test_cannot_set_bigger_elements@plt>
test   %eax,%eax
je     120e <main+0x3e>
lea    0xe51(%rip),%rdi
lea    0xe2a(%rip),%r9
mov    $0x1b,%esi
mov    $0x20,%edx
mov    $0x1b,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x1,%ebp
jmp    123c <main+0x6c>
lea    0xdeb(%rip),%rdi
lea    0xdfc(%rip),%r9
xor    %ebp,%ebp
mov    $0x1b,%esi
mov    $0x1f,%edx
mov    $0x1b,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x1,%ebx
xor    %eax,%eax
call   1030 <test_cannot_set_outside_bounds@plt>
test   %eax,%eax
je     1264 <main+0x94>
add    $0x1,%ebp
lea    0xde7(%rip),%rdi
lea    0xdf8(%rip),%r9
mov    $0x1b,%esi
mov    $0x20,%edx
jmp    127f <main+0xaf>
add    $0x1,%ebx
lea    0xd92(%rip),%rdi
lea    0xddb(%rip),%r9
mov    $0x1b,%esi
mov    $0x1f,%edx
mov    $0x1b,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
call   1090 <test_cannot_get_outside_bounds@plt>
test   %eax,%eax
je     12b6 <main+0xe6>
add    $0x1,%ebp
lea    0xd95(%rip),%rdi
lea    0xdc5(%rip),%r9
mov    $0x1b,%esi
mov    $0x20,%edx
jmp    12d1 <main+0x101>
add    $0x1,%ebx
lea    0xd40(%rip),%rdi
lea    0xda8(%rip),%r9
mov    $0x1b,%esi
mov    $0x1f,%edx
mov    $0x1b,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
call   10e0 <test_empty_array_does_not_blow_up@plt>
test   %eax,%eax
je     1308 <main+0x138>
add    $0x1,%ebp
lea    0xd43(%rip),%rdi
lea    0xd92(%rip),%r9
mov    $0x1b,%esi
mov    $0x20,%edx
jmp    1323 <main+0x153>
add    $0x1,%ebx
lea    0xcee(%rip),%rdi
lea    0xd75(%rip),%r9
mov    $0x1b,%esi
mov    $0x1f,%edx
mov    $0x1b,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
call   10b0 <test_array_set@plt>
test   %eax,%eax
je     135a <main+0x18a>
add    $0x1,%ebp
lea    0xcf1(%rip),%rdi
lea    0xd62(%rip),%r9
mov    $0x1b,%esi
mov    $0x20,%edx
jmp    1375 <main+0x1a5>
add    $0x1,%ebx
lea    0xc9c(%rip),%rdi
lea    0xd45(%rip),%r9
mov    $0x1b,%esi
mov    $0x1f,%edx
mov    $0x1b,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
call   1050 <test_array_set_backwards@plt>
test   %eax,%eax
je     13ac <main+0x1dc>
add    $0x1,%ebp
lea    0xc9f(%rip),%rdi
lea    0xd1f(%rip),%r9
mov    $0x1b,%esi
mov    $0x20,%edx
jmp    13c7 <main+0x1f7>
add    $0x1,%ebx
lea    0xc4a(%rip),%rdi
lea    0xd02(%rip),%r9
mov    $0x1b,%esi
mov    $0x1f,%edx
mov    $0x1b,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
call   1080 <test_array_set_overwrites_old_values@plt>
test   %eax,%eax
je     13fe <main+0x22e>
add    $0x1,%ebp
lea    0xc4d(%rip),%rdi
lea    0xce6(%rip),%r9
mov    $0x1b,%esi
mov    $0x20,%edx
jmp    1419 <main+0x249>
add    $0x1,%ebx
lea    0xbf8(%rip),%rdi
lea    0xcc9(%rip),%r9
mov    $0x1b,%esi
mov    $0x1f,%edx
mov    $0x1b,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
call   1040 <test_array_set_high_num@plt>
test   %eax,%eax
je     1450 <main+0x280>
add    $0x1,%ebp
lea    0xbfb(%rip),%rdi
lea    0xcb9(%rip),%r9
mov    $0x1b,%esi
mov    $0x20,%edx
jmp    146b <main+0x29b>
add    $0x1,%ebx
lea    0xba6(%rip),%rdi
lea    0xc9c(%rip),%r9
mov    $0x1b,%esi
mov    $0x1f,%edx
mov    $0x1b,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
call   10c0 <test_array_get@plt>
test   %eax,%eax
je     14a2 <main+0x2d2>
add    $0x1,%ebp
lea    0xba9(%rip),%rdi
lea    0xc7f(%rip),%r9
mov    $0x1b,%esi
mov    $0x20,%edx
jmp    14bd <main+0x2ed>
add    $0x1,%ebx
lea    0xb54(%rip),%rdi
lea    0xc62(%rip),%r9
mov    $0x1b,%esi
mov    $0x1f,%edx
mov    $0x1b,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
call   10a0 <test_dict_set@plt>
test   %eax,%eax
je     14f4 <main+0x324>
add    $0x1,%ebp
lea    0xb57(%rip),%rdi
lea    0xc3c(%rip),%r9
mov    $0x1b,%esi
mov    $0x20,%edx
jmp    150f <main+0x33f>
add    $0x1,%ebx
lea    0xb02(%rip),%rdi
lea    0xc1f(%rip),%r9
mov    $0x1b,%esi
mov    $0x1f,%edx
mov    $0x1b,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
call   1060 <test_dict_get@plt>
test   %eax,%eax
je     1546 <main+0x376>
add    $0x1,%ebp
lea    0xb05(%rip),%rdi
lea    0xbf8(%rip),%r9
mov    $0x1b,%esi
mov    $0x20,%edx
jmp    1561 <main+0x391>
add    $0x1,%ebx
lea    0xab0(%rip),%rdi
lea    0xbdb(%rip),%r9
mov    $0x1b,%esi
mov    $0x1f,%edx
mov    $0x1b,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
call   10d0 <test_dict_lots_of_set@plt>
test   %eax,%eax
je     1598 <main+0x3c8>
add    $0x1,%ebp
lea    0xab3(%rip),%rdi
lea    0xbb4(%rip),%r9
mov    $0x1b,%esi
mov    $0x20,%edx
jmp    15b3 <main+0x3e3>
add    $0x1,%ebx
lea    0xa5e(%rip),%rdi
lea    0xb97(%rip),%r9
mov    $0x1b,%esi
mov    $0x1f,%edx
mov    $0x1b,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1070 <printf@plt>
add    %ebp,%ebx
lea    0xb8b(%rip),%rdi
mov    %ebp,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [24 x i8] c"%c[%dmFailed%c[%dm: %s\0A\00"
@.str.1 = [32 x i8] c"test_cannot_set_bigger_elements\00"
@.str.2 = [24 x i8] c"%c[%dmPassed%c[%dm: %s\0A\00"
@.str.3 = [31 x i8] c"test_cannot_set_outside_bounds\00"
@.str.4 = [31 x i8] c"test_cannot_get_outside_bounds\00"
@.str.5 = [34 x i8] c"test_empty_array_does_not_blow_up\00"
@.str.6 = [15 x i8] c"test_array_set\00"
@.str.7 = [25 x i8] c"test_array_set_backwards\00"
@.str.8 = [37 x i8] c"test_array_set_overwrites_old_values\00"
@.str.9 = [24 x i8] c"test_array_set_high_num\00"
@.str.10 = [15 x i8] c"test_array_get\00"
@.str.11 = [14 x i8] c"test_dict_set\00"
@.str.12 = [14 x i8] c"test_dict_get\00"
@.str.13 = [22 x i8] c"test_dict_lots_of_set\00"
@.str.14 = [30 x i8] c"\0A-----\0ATests passed: (%i/%i)\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = load i32, i32* %4
%10 = load i8**, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
%11 = call i32 (...) @test_cannot_set_bigger_elements()
store i32 %11, i32* %6
%12 = load i32, i32* %6
%13 = icmp ne i32 %12, 0
br i1 %13, label %18, label %14
14: ; preds = %2
%15 = load i32, i32* %7
%16 = add nsw i32 %15, 1
store i32 %16, i32* %7
%17 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
br label %22
18: ; preds = %2
%19 = load i32, i32* %8
%20 = add nsw i32 %19, 1
store i32 %20, i32* %8
%21 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
br label %22
22: ; preds = %18, %14
%23 = call i32 (...) @test_cannot_set_outside_bounds()
store i32 %23, i32* %6
%24 = load i32, i32* %6
%25 = icmp ne i32 %24, 0
br i1 %25, label %30, label %26
26: ; preds = %22
%27 = load i32, i32* %7
%28 = add nsw i32 %27, 1
store i32 %28, i32* %7
%29 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
br label %34
30: ; preds = %22
%31 = load i32, i32* %8
%32 = add nsw i32 %31, 1
store i32 %32, i32* %8
%33 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
br label %34
34: ; preds = %30, %26
%35 = call i32 (...) @test_cannot_get_outside_bounds()
store i32 %35, i32* %6
%36 = load i32, i32* %6
%37 = icmp ne i32 %36, 0
br i1 %37, label %42, label %38
38: ; preds = %34
%39 = load i32, i32* %7
%40 = add nsw i32 %39, 1
store i32 %40, i32* %7
%41 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
br label %46
42: ; preds = %34
%43 = load i32, i32* %8
%44 = add nsw i32 %43, 1
store i32 %44, i32* %8
%45 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
br label %46
46: ; preds = %42, %38
%47 = call i32 (...) @test_empty_array_does_not_blow_up()
store i32 %47, i32* %6
%48 = load i32, i32* %6
%49 = icmp ne i32 %48, 0
br i1 %49, label %54, label %50
50: ; preds = %46
%51 = load i32, i32* %7
%52 = add nsw i32 %51, 1
store i32 %52, i32* %7
%53 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
br label %58
54: ; preds = %46
%55 = load i32, i32* %8
%56 = add nsw i32 %55, 1
store i32 %56, i32* %8
%57 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
br label %58
58: ; preds = %54, %50
%59 = call i32 (...) @test_array_set()
store i32 %59, i32* %6
%60 = load i32, i32* %6
%61 = icmp ne i32 %60, 0
br i1 %61, label %66, label %62
62: ; preds = %58
%63 = load i32, i32* %7
%64 = add nsw i32 %63, 1
store i32 %64, i32* %7
%65 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
br label %70
66: ; preds = %58
%67 = load i32, i32* %8
%68 = add nsw i32 %67, 1
store i32 %68, i32* %8
%69 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
br label %70
70: ; preds = %66, %62
%71 = call i32 (...) @test_array_set_backwards()
store i32 %71, i32* %6
%72 = load i32, i32* %6
%73 = icmp ne i32 %72, 0
br i1 %73, label %78, label %74
74: ; preds = %70
%75 = load i32, i32* %7
%76 = add nsw i32 %75, 1
store i32 %76, i32* %7
%77 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
br label %82
78: ; preds = %70
%79 = load i32, i32* %8
%80 = add nsw i32 %79, 1
store i32 %80, i32* %8
%81 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
br label %82
82: ; preds = %78, %74
%83 = call i32 (...) @test_array_set_overwrites_old_values()
store i32 %83, i32* %6
%84 = load i32, i32* %6
%85 = icmp ne i32 %84, 0
br i1 %85, label %90, label %86
86: ; preds = %82
%87 = load i32, i32* %7
%88 = add nsw i32 %87, 1
store i32 %88, i32* %7
%89 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0))
br label %94
90: ; preds = %82
%91 = load i32, i32* %8
%92 = add nsw i32 %91, 1
store i32 %92, i32* %8
%93 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0))
br label %94
94: ; preds = %90, %86
%95 = call i32 (...) @test_array_set_high_num()
store i32 %95, i32* %6
%96 = load i32, i32* %6
%97 = icmp ne i32 %96, 0
br i1 %97, label %102, label %98
98: ; preds = %94
%99 = load i32, i32* %7
%100 = add nsw i32 %99, 1
store i32 %100, i32* %7
%101 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
br label %106
102: ; preds = %94
%103 = load i32, i32* %8
%104 = add nsw i32 %103, 1
store i32 %104, i32* %8
%105 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
br label %106
106: ; preds = %102, %98
%107 = call i32 (...) @test_array_get()
store i32 %107, i32* %6
%108 = load i32, i32* %6
%109 = icmp ne i32 %108, 0
br i1 %109, label %114, label %110
110: ; preds = %106
%111 = load i32, i32* %7
%112 = add nsw i32 %111, 1
store i32 %112, i32* %7
%113 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0))
br label %118
114: ; preds = %106
%115 = load i32, i32* %8
%116 = add nsw i32 %115, 1
store i32 %116, i32* %8
%117 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0))
br label %118
118: ; preds = %114, %110
%119 = call i32 (...) @test_dict_set()
store i32 %119, i32* %6
%120 = load i32, i32* %6
%121 = icmp ne i32 %120, 0
br i1 %121, label %126, label %122
122: ; preds = %118
%123 = load i32, i32* %7
%124 = add nsw i32 %123, 1
store i32 %124, i32* %7
%125 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0))
br label %130
126: ; preds = %118
%127 = load i32, i32* %8
%128 = add nsw i32 %127, 1
store i32 %128, i32* %8
%129 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0))
br label %130
130: ; preds = %126, %122
%131 = call i32 (...) @test_dict_get()
store i32 %131, i32* %6
%132 = load i32, i32* %6
%133 = icmp ne i32 %132, 0
br i1 %133, label %138, label %134
134: ; preds = %130
%135 = load i32, i32* %7
%136 = add nsw i32 %135, 1
store i32 %136, i32* %7
%137 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0))
br label %142
138: ; preds = %130
%139 = load i32, i32* %8
%140 = add nsw i32 %139, 1
store i32 %140, i32* %8
%141 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0))
br label %142
142: ; preds = %138, %134
%143 = call i32 (...) @test_dict_lots_of_set()
store i32 %143, i32* %6
%144 = load i32, i32* %6
%145 = icmp ne i32 %144, 0
br i1 %145, label %150, label %146
146: ; preds = %142
%147 = load i32, i32* %7
%148 = add nsw i32 %147, 1
store i32 %148, i32* %7
%149 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0))
br label %154
150: ; preds = %142
%151 = load i32, i32* %8
%152 = add nsw i32 %151, 1
store i32 %152, i32* %8
%153 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0))
br label %154
154: ; preds = %150, %146
%155 = load i32, i32* %8
%156 = load i32, i32* %8
%157 = load i32, i32* %7
%158 = add nsw i32 %156, %157
%159 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i32 %155, i32 %158)
ret i32 0
}

LLVM IR (-O2):
@.str = [24 x i8] c"%c[%dmFailed%c[%dm: %s\0A\00"
@.str.1 = [32 x i8] c"test_cannot_set_bigger_elements\00"
@.str.2 = [24 x i8] c"%c[%dmPassed%c[%dm: %s\0A\00"
@.str.3 = [31 x i8] c"test_cannot_set_outside_bounds\00"
@.str.4 = [31 x i8] c"test_cannot_get_outside_bounds\00"
@.str.5 = [34 x i8] c"test_empty_array_does_not_blow_up\00"
@.str.6 = [15 x i8] c"test_array_set\00"
@.str.7 = [25 x i8] c"test_array_set_backwards\00"
@.str.8 = [37 x i8] c"test_array_set_overwrites_old_values\00"
@.str.9 = [24 x i8] c"test_array_set_high_num\00"
@.str.10 = [15 x i8] c"test_array_get\00"
@.str.11 = [14 x i8] c"test_dict_set\00"
@.str.12 = [14 x i8] c"test_dict_get\00"
@.str.13 = [22 x i8] c"test_dict_lots_of_set\00"
@.str.14 = [30 x i8] c"\0A-----\0ATests passed: (%i/%i)\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @test_cannot_set_bigger_elements()
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
br label %9
7: ; preds = %2
%8 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
br label %9
9: ; preds = %7, %5
%10 = phi i32 [ 0, %7 ], [ 1, %5 ]
%11 = phi i32 [ 1, %7 ], [ 0, %5 ]
%12 = tail call i32 (...) @test_cannot_set_outside_bounds()
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %9
%15 = add nuw nsw i32 %10, 1
%16 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
br label %20
17: ; preds = %9
%18 = add nuw nsw i32 %11, 1
%19 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
br label %20
20: ; preds = %17, %14
%21 = phi i32 [ %10, %17 ], [ %15, %14 ]
%22 = phi i32 [ %18, %17 ], [ %11, %14 ]
%23 = tail call i32 (...) @test_cannot_get_outside_bounds()
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %20
%26 = add nuw nsw i32 %21, 1
%27 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
br label %31
28: ; preds = %20
%29 = add nuw nsw i32 %22, 1
%30 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
br label %31
31: ; preds = %28, %25
%32 = phi i32 [ %21, %28 ], [ %26, %25 ]
%33 = phi i32 [ %29, %28 ], [ %22, %25 ]
%34 = tail call i32 (...) @test_empty_array_does_not_blow_up()
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %31
%37 = add nuw nsw i32 %32, 1
%38 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
br label %42
39: ; preds = %31
%40 = add nuw nsw i32 %33, 1
%41 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
br label %42
42: ; preds = %39, %36
%43 = phi i32 [ %32, %39 ], [ %37, %36 ]
%44 = phi i32 [ %40, %39 ], [ %33, %36 ]
%45 = tail call i32 (...) @test_array_set()
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %50
47: ; preds = %42
%48 = add nuw nsw i32 %43, 1
%49 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
br label %53
50: ; preds = %42
%51 = add nuw nsw i32 %44, 1
%52 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
br label %53
53: ; preds = %50, %47
%54 = phi i32 [ %43, %50 ], [ %48, %47 ]
%55 = phi i32 [ %51, %50 ], [ %44, %47 ]
%56 = tail call i32 (...) @test_array_set_backwards()
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %53
%59 = add nuw nsw i32 %54, 1
%60 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
br label %64
61: ; preds = %53
%62 = add nuw nsw i32 %55, 1
%63 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
br label %64
64: ; preds = %61, %58
%65 = phi i32 [ %54, %61 ], [ %59, %58 ]
%66 = phi i32 [ %62, %61 ], [ %55, %58 ]
%67 = tail call i32 (...) @test_array_set_overwrites_old_values()
%68 = icmp eq i32 %67, 0
br i1 %68, label %69, label %72
69: ; preds = %64
%70 = add nuw nsw i32 %65, 1
%71 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0))
br label %75
72: ; preds = %64
%73 = add nuw nsw i32 %66, 1
%74 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0))
br label %75
75: ; preds = %72, %69
%76 = phi i32 [ %65, %72 ], [ %70, %69 ]
%77 = phi i32 [ %73, %72 ], [ %66, %69 ]
%78 = tail call i32 (...) @test_array_set_high_num()
%79 = icmp eq i32 %78, 0
br i1 %79, label %80, label %83
80: ; preds = %75
%81 = add nuw nsw i32 %76, 1
%82 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
br label %86
83: ; preds = %75
%84 = add nuw nsw i32 %77, 1
%85 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
br label %86
86: ; preds = %83, %80
%87 = phi i32 [ %76, %83 ], [ %81, %80 ]
%88 = phi i32 [ %84, %83 ], [ %77, %80 ]
%89 = tail call i32 (...) @test_array_get()
%90 = icmp eq i32 %89, 0
br i1 %90, label %91, label %94
91: ; preds = %86
%92 = add nuw nsw i32 %87, 1
%93 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0))
br label %97
94: ; preds = %86
%95 = add nuw nsw i32 %88, 1
%96 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0))
br label %97
97: ; preds = %94, %91
%98 = phi i32 [ %87, %94 ], [ %92, %91 ]
%99 = phi i32 [ %95, %94 ], [ %88, %91 ]
%100 = tail call i32 (...) @test_dict_set()
%101 = icmp eq i32 %100, 0
br i1 %101, label %102, label %105
102: ; preds = %97
%103 = add nuw nsw i32 %98, 1
%104 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0))
br label %108
105: ; preds = %97
%106 = add nuw nsw i32 %99, 1
%107 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0))
br label %108
108: ; preds = %105, %102
%109 = phi i32 [ %98, %105 ], [ %103, %102 ]
%110 = phi i32 [ %106, %105 ], [ %99, %102 ]
%111 = tail call i32 (...) @test_dict_get()
%112 = icmp eq i32 %111, 0
br i1 %112, label %113, label %116
113: ; preds = %108
%114 = add nuw nsw i32 %109, 1
%115 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0))
br label %119
116: ; preds = %108
%117 = add nuw nsw i32 %110, 1
%118 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0))
br label %119
119: ; preds = %116, %113
%120 = phi i32 [ %109, %116 ], [ %114, %113 ]
%121 = phi i32 [ %117, %116 ], [ %110, %113 ]
%122 = tail call i32 (...) @test_dict_lots_of_set()
%123 = icmp eq i32 %122, 0
br i1 %123, label %124, label %127
124: ; preds = %119
%125 = add nuw nsw i32 %120, 1
%126 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 27, i32 31, i32 27, i32 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0))
br label %130
127: ; preds = %119
%128 = add nuw nsw i32 %121, 1
%129 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 27, i32 32, i32 27, i32 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0))
br label %130
130: ; preds = %127, %124
%131 = phi i32 [ %120, %127 ], [ %125, %124 ]
%132 = phi i32 [ %128, %127 ], [ %121, %124 ]
%133 = add nuw nsw i32 %132, %131
%134 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i32 %132, i32 %133)
ret i32 0
}