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

/* Forward declarations */

/* Type definitions */
typedef char uint8_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ run_test(char *, int, char *, int, float);
int main() {
  uint8_t byte, byte1, byte2;
  printf("--- test 1 ---\n");
  run_test(NULL, 0, NULL, 0, 0x00);
  run_test(NULL, 0, NULL, 0, 0xff);
  printf("--- test 2 ---\n");
  byte1 = 10;
  byte2 = 20;
  run_test(&byte1, 1, &byte2, 1, 0x00);
  run_test(&byte1, 1, &byte1, 1, 0x00);
  run_test(&byte2, 1, &byte1, 1, 0x00);
  run_test(&byte1, 1, &byte2, 1, 0xFF);
  run_test(&byte1, 1, &byte1, 1, 0xFF);
  run_test(&byte2, 1, &byte1, 1, 0xFF);
  printf("--- test 3 ---\n");
  byte = 10;
  run_test(NULL, 0, &byte, 1, 10);
  run_test(NULL, 0, &byte, 1, 9);
  run_test(NULL, 0, &byte, 1, 11);
  run_test(&byte, 1, NULL, 0, 10);
  run_test(&byte, 1, NULL, 0, 9);
  run_test(&byte, 1, NULL, 0, 11);
  printf("--- test 4 ---\n");
  byte = 10;
  run_test(&byte, 1, NULL, 0, 0xFF);
  byte = 0xFF;
  run_test(&byte, 1, NULL, 0, 0xFF);
  printf("--- test 5 ---\n");
  uint8_t buf1[4] = "yyyy";
  run_test(buf1, 4, NULL, 0, 'y');
  run_test(buf1, 4, NULL, 0, 'x');
  run_test(buf1, 4, NULL, 0, 'z');
  {
    printf("--- test 6 ---\n");
    uint8_t x[5] = "pqrst";
    uint8_t y[5] = "abcde";
    uint8_t z[5] = "abcde";
    run_test(x, 5, y, 5, 'a');
    run_test(y, 5, x, 5, 'a');
    run_test(y, 5, z, 5, 'q');
  }
  {
    printf("--- test 7 ---\n");
    uint8_t x[5] = "abcdd";
    uint8_t y[5] = "abcde";
    uint8_t z[5] = "abcdf";
    run_test(x, 5, y, 5, 'a');
    run_test(z, 5, z, 5, 'a');
  }
  {
    printf("--- test 8 ---\n");
    uint8_t x[5] = "abcde";
    uint8_t y[7] = "abcdeff";
    run_test(x, 5, y, 7, 0);
    run_test(y, 7, x, 5, 0);
    run_test(x, 5, y, 7, 'f');
    run_test(y, 7, x, 5, 'f');
  }
  {
    printf("--- test 9 ---\n");
    uint8_t x[5] = "abcab";
    uint8_t y[7] = "abcdeff";
    run_test(x, 5, y, 7, 0);
    run_test(y, 7, x, 5, 0);
    run_test(x, 5, y, 7, 'f');
    run_test(y, 7, x, 5, 'f');
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xef6(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
mov    %eax,%edx
xor    %ecx,%ecx
xorps  %xmm0,%xmm0
mov    %rdx,%rdi
mov    %ecx,%esi
call   1040 <run_test@plt>
xor    %eax,%eax
mov    %eax,%edx
xor    %ecx,%ecx
movss  0xebc(%rip),%xmm0
mov    %rdx,%rdi
mov    %ecx,%esi
call   1040 <run_test@plt>
lea    0xecf(%rip),%rdi
call   1030 <printf@plt>
movb   $0xa,-0x6(%rbp)
movb   $0x14,-0x7(%rbp)
lea    -0x6(%rbp),%rdi
mov    $0x1,%ecx
lea    -0x7(%rbp),%rdx
xorps  %xmm0,%xmm0
mov    %ecx,%esi
call   1040 <run_test@plt>
lea    -0x6(%rbp),%rdx
mov    $0x1,%ecx
xorps  %xmm0,%xmm0
mov    %rdx,%rdi
mov    %ecx,%esi
call   1040 <run_test@plt>
lea    -0x7(%rbp),%rdi
mov    $0x1,%ecx
lea    -0x6(%rbp),%rdx
xorps  %xmm0,%xmm0
mov    %ecx,%esi
call   1040 <run_test@plt>
lea    -0x6(%rbp),%rdi
mov    $0x1,%ecx
lea    -0x7(%rbp),%rdx
movss  0xe45(%rip),%xmm0
mov    %ecx,%esi
call   1040 <run_test@plt>
lea    -0x6(%rbp),%rdx
mov    $0x1,%ecx
movss  0xe2d(%rip),%xmm0
mov    %rdx,%rdi
mov    %ecx,%esi
call   1040 <run_test@plt>
lea    -0x7(%rbp),%rdi
mov    $0x1,%ecx
lea    -0x6(%rbp),%rdx
movss  0xe0e(%rip),%xmm0
mov    %ecx,%esi
call   1040 <run_test@plt>
lea    0xe34(%rip),%rdi
call   1030 <printf@plt>
movb   $0xa,-0x5(%rbp)
xor    %eax,%eax
mov    %eax,%edi
xor    %esi,%esi
lea    -0x5(%rbp),%rdx
mov    $0x1,%ecx
movss  0xdec(%rip),%xmm0
call   1040 <run_test@plt>
xor    %eax,%eax
mov    %eax,%edi
xor    %esi,%esi
lea    -0x5(%rbp),%rdx
mov    $0x1,%ecx
movss  0xdcc(%rip),%xmm0
call   1040 <run_test@plt>
xor    %eax,%eax
mov    %eax,%edi
xor    %esi,%esi
lea    -0x5(%rbp),%rdx
mov    $0x1,%ecx
movss  0xdac(%rip),%xmm0
call   1040 <run_test@plt>
lea    -0x5(%rbp),%rdi
mov    $0x1,%esi
xor    %eax,%eax
mov    %eax,%edx
xor    %ecx,%ecx
movss  0xd98(%rip),%xmm0
call   1040 <run_test@plt>
lea    -0x5(%rbp),%rdi
mov    $0x1,%esi
xor    %eax,%eax
mov    %eax,%edx
xor    %ecx,%ecx
movss  0xd78(%rip),%xmm0
call   1040 <run_test@plt>
lea    -0x5(%rbp),%rdi
mov    $0x1,%esi
xor    %eax,%eax
mov    %eax,%edx
xor    %ecx,%ecx
movss  0xd58(%rip),%xmm0
call   1040 <run_test@plt>
lea    0xd8c(%rip),%rdi
call   1030 <printf@plt>
movb   $0xa,-0x5(%rbp)
lea    -0x5(%rbp),%rdi
mov    $0x1,%esi
xor    %eax,%eax
mov    %eax,%edx
xor    %ecx,%ecx
movss  0xd28(%rip),%xmm0
call   1040 <run_test@plt>
movb   $0xff,-0x5(%rbp)
lea    -0x5(%rbp),%rdi
mov    $0x1,%esi
xor    %eax,%eax
mov    %eax,%edx
xor    %ecx,%ecx
movss  0xd08(%rip),%xmm0
call   1040 <run_test@plt>
lea    0xd50(%rip),%rdi
call   1030 <printf@plt>
mov    0xd01(%rip),%eax
mov    %eax,-0xb(%rbp)
lea    -0xb(%rbp),%rdi
mov    $0x4,%esi
xor    %eax,%eax
mov    %eax,%edx
xor    %ecx,%ecx
movss  0xcd3(%rip),%xmm0
call   1040 <run_test@plt>
lea    -0xb(%rbp),%rdi
mov    $0x4,%esi
xor    %eax,%eax
mov    %eax,%edx
xor    %ecx,%ecx
movss  0xcb3(%rip),%xmm0
call   1040 <run_test@plt>
lea    -0xb(%rbp),%rdi
mov    $0x4,%esi
xor    %eax,%eax
mov    %eax,%edx
xor    %ecx,%ecx
movss  0xc93(%rip),%xmm0
call   1040 <run_test@plt>
lea    0xcf7(%rip),%rdi
call   1030 <printf@plt>
mov    0xd2c(%rip),%eax
mov    %eax,-0x10(%rbp)
mov    0xd27(%rip),%al
mov    %al,-0xc(%rbp)
mov    0xd1f(%rip),%eax
mov    %eax,-0x15(%rbp)
mov    0xd1a(%rip),%al
mov    %al,-0x11(%rbp)
mov    0xd12(%rip),%eax
mov    %eax,-0x1a(%rbp)
mov    0xd0d(%rip),%al
mov    %al,-0x16(%rbp)
lea    -0x10(%rbp),%rdi
lea    -0x15(%rbp),%rdx
mov    $0x5,%ecx
movss  0xc2f(%rip),%xmm0
mov    %ecx,%esi
call   1040 <run_test@plt>
lea    -0x15(%rbp),%rdi
lea    -0x10(%rbp),%rdx
mov    $0x5,%ecx
movss  0xc13(%rip),%xmm0
mov    %ecx,%esi
call   1040 <run_test@plt>
lea    -0x15(%rbp),%rdi
lea    -0x1a(%rbp),%rdx
mov    $0x5,%ecx
movss  0xbfb(%rip),%xmm0
mov    %ecx,%esi
call   1040 <run_test@plt>
lea    0xc71(%rip),%rdi
call   1030 <printf@plt>
mov    0xca5(%rip),%eax
mov    %eax,-0x1f(%rbp)
mov    0xca0(%rip),%al
mov    %al,-0x1b(%rbp)
mov    0xc98(%rip),%eax
mov    %eax,-0x24(%rbp)
mov    0xc93(%rip),%al
mov    %al,-0x20(%rbp)
mov    0xc8b(%rip),%eax
mov    %eax,-0x29(%rbp)
mov    0xc86(%rip),%al
mov    %al,-0x25(%rbp)
lea    -0x1f(%rbp),%rdi
lea    -0x24(%rbp),%rdx
mov    $0x5,%ecx
movss  0xb99(%rip),%xmm0
mov    %ecx,%esi
call   1040 <run_test@plt>
lea    -0x29(%rbp),%rdi
lea    -0x29(%rbp),%rdx
mov    $0x5,%ecx
movss  0xb7d(%rip),%xmm0
mov    %ecx,%esi
call   1040 <run_test@plt>
lea    0xc07(%rip),%rdi
call   1030 <printf@plt>
mov    0xc3a(%rip),%eax
mov    %eax,-0x2e(%rbp)
mov    0xc35(%rip),%al
mov    %al,-0x2a(%rbp)
mov    0xc2d(%rip),%eax
mov    %eax,-0x35(%rbp)
mov    0xc27(%rip),%ax
mov    %ax,-0x31(%rbp)
mov    0xc1f(%rip),%al
mov    %al,-0x2f(%rbp)
lea    -0x2e(%rbp),%rdi
lea    -0x35(%rbp),%rdx
mov    $0x5,%esi
mov    $0x7,%ecx
xorps  %xmm0,%xmm0
call   1040 <run_test@plt>
lea    -0x35(%rbp),%rdi
lea    -0x2e(%rbp),%rdx
mov    $0x7,%esi
mov    $0x5,%ecx
xorps  %xmm0,%xmm0
call   1040 <run_test@plt>
lea    -0x2e(%rbp),%rdi
lea    -0x35(%rbp),%rdx
mov    $0x5,%esi
mov    $0x7,%ecx
movss  0xae9(%rip),%xmm0
call   1040 <run_test@plt>
lea    -0x35(%rbp),%rdi
lea    -0x2e(%rbp),%rdx
mov    $0x7,%esi
mov    $0x5,%ecx
movss  0xaca(%rip),%xmm0
call   1040 <run_test@plt>
lea    0xb6a(%rip),%rdi
call   1030 <printf@plt>
mov    0xb99(%rip),%eax
mov    %eax,-0x3a(%rbp)
mov    0xb94(%rip),%al
mov    %al,-0x36(%rbp)
mov    0xb8c(%rip),%eax
mov    %eax,-0x41(%rbp)
mov    0xb86(%rip),%ax
mov    %ax,-0x3d(%rbp)
mov    0xb7e(%rip),%al
mov    %al,-0x3b(%rbp)
lea    -0x3a(%rbp),%rdi
lea    -0x41(%rbp),%rdx
mov    $0x5,%esi
mov    $0x7,%ecx
xorps  %xmm0,%xmm0
call   1040 <run_test@plt>
lea    -0x41(%rbp),%rdi
lea    -0x3a(%rbp),%rdx
mov    $0x7,%esi
mov    $0x5,%ecx
xorps  %xmm0,%xmm0
call   1040 <run_test@plt>
lea    -0x3a(%rbp),%rdi
lea    -0x41(%rbp),%rdx
mov    $0x5,%esi
mov    $0x7,%ecx
movss  0xa3c(%rip),%xmm0
call   1040 <run_test@plt>
lea    -0x41(%rbp),%rdi
lea    -0x3a(%rbp),%rdx
mov    $0x7,%esi
mov    $0x5,%ecx
movss  0xa1d(%rip),%xmm0
call   1040 <run_test@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x28,%rsp
lea    0xf1a(%rip),%rdi
call   1030 <puts@plt>
xorps  %xmm0,%xmm0
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1040 <run_test@plt>
movss  0xeb5(%rip),%xmm0
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1040 <run_test@plt>
lea    0xef8(%rip),%rdi
call   1030 <puts@plt>
movb   $0xa,0x13(%rsp)
movb   $0x14,0x12(%rsp)
lea    0x13(%rsp),%rbx
lea    0x12(%rsp),%r14
xorps  %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %r14,%rdx
mov    $0x1,%ecx
call   1040 <run_test@plt>
xorps  %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %rbx,%rdx
mov    $0x1,%ecx
call   1040 <run_test@plt>
xorps  %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%esi
mov    %rbx,%rdx
mov    $0x1,%ecx
call   1040 <run_test@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %r14,%rdx
mov    $0x1,%ecx
movss  0xe28(%rip),%xmm0
call   1040 <run_test@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %rbx,%rdx
mov    $0x1,%ecx
movss  0xe0b(%rip),%xmm0
call   1040 <run_test@plt>
mov    %r14,%rdi
mov    $0x1,%esi
mov    %rbx,%rdx
mov    $0x1,%ecx
movss  0xdee(%rip),%xmm0
call   1040 <run_test@plt>
lea    0xe48(%rip),%rdi
call   1030 <puts@plt>
movb   $0xa,0xb(%rsp)
lea    0xb(%rsp),%rbx
movss  0xdcf(%rip),%xmm0
xor    %edi,%edi
xor    %esi,%esi
mov    %rbx,%rdx
mov    $0x1,%ecx
call   1040 <run_test@plt>
movss  0xdba(%rip),%xmm0
xor    %edi,%edi
xor    %esi,%esi
mov    %rbx,%rdx
mov    $0x1,%ecx
call   1040 <run_test@plt>
movss  0xda5(%rip),%xmm0
xor    %edi,%edi
xor    %esi,%esi
mov    %rbx,%rdx
mov    $0x1,%ecx
call   1040 <run_test@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
movss  0xd78(%rip),%xmm0
call   1040 <run_test@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
movss  0xd63(%rip),%xmm0
call   1040 <run_test@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
movss  0xd4e(%rip),%xmm0
call   1040 <run_test@plt>
lea    0xdab(%rip),%rdi
call   1030 <puts@plt>
movb   $0xa,0xb(%rsp)
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
movss  0xd18(%rip),%xmm0
call   1040 <run_test@plt>
movb   $0xff,0xb(%rsp)
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
movss  0xcfa(%rip),%xmm0
call   1040 <run_test@plt>
lea    0xd72(%rip),%rdi
call   1030 <puts@plt>
movl   $0x79797979,0x24(%rsp)
79
lea    0x24(%rsp),%rbx
movss  0xce4(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1040 <run_test@plt>
movss  0xccf(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1040 <run_test@plt>
movss  0xcba(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1040 <run_test@plt>
lea    0xd1d(%rip),%rdi
call   1030 <puts@plt>
movb   $0x74,0x18(%rsp)
movl   $0x73727170,0x14(%rsp)
73
movb   $0x65,0x10(%rsp)
movl   $0x64636261,0xc(%rsp)
64
movb   $0x65,0x20(%rsp)
movl   $0x64636261,0x1c(%rsp)
64
lea    0x14(%rsp),%r14
lea    0xc(%rsp),%rbx
movss  0xc68(%rip),%xmm0
mov    %r14,%rdi
mov    $0x5,%esi
mov    %rbx,%rdx
mov    $0x5,%ecx
call   1040 <run_test@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %r14,%rdx
mov    $0x5,%ecx
movss  0xc3b(%rip),%xmm0
call   1040 <run_test@plt>
lea    0x1c(%rsp),%rdx
movss  0xc2d(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x5,%ecx
call   1040 <run_test@plt>
lea    0xc96(%rip),%rdi
call   1030 <puts@plt>
movb   $0x64,0x18(%rsp)
movl   $0x64636261,0x14(%rsp)
64
movb   $0x65,0x10(%rsp)
movl   $0x64636261,0xc(%rsp)
64
movb   $0x66,0x20(%rsp)
movl   $0x64636261,0x1c(%rsp)
64
lea    0x14(%rsp),%rdi
lea    0xc(%rsp),%rdx
mov    $0x5,%esi
mov    $0x5,%ecx
movss  0xbc8(%rip),%xmm0
call   1040 <run_test@plt>
lea    0x1c(%rsp),%rdi
mov    $0x5,%esi
mov    %rdi,%rdx
mov    $0x5,%ecx
movss  0xba9(%rip),%xmm0
call   1040 <run_test@plt>
lea    0xc32(%rip),%rdi
call   1030 <puts@plt>
movb   $0x65,0x10(%rsp)
movl   $0x64636261,0xc(%rsp)
64
movl   $0x66666564,0x17(%rsp)
66
movl   $0x64636261,0x14(%rsp)
64
lea    0xc(%rsp),%r14
lea    0x14(%rsp),%rbx
xorps  %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x5,%esi
mov    %rbx,%rdx
mov    $0x7,%ecx
call   1040 <run_test@plt>
xorps  %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x7,%esi
mov    %r14,%rdx
mov    $0x5,%ecx
call   1040 <run_test@plt>
movss  0xb41(%rip),%xmm0
mov    %r14,%rdi
mov    $0x5,%esi
mov    %rbx,%rdx
mov    $0x7,%ecx
call   1040 <run_test@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
mov    %r14,%rdx
mov    $0x5,%ecx
movss  0xb14(%rip),%xmm0
call   1040 <run_test@plt>
lea    0xba4(%rip),%rdi
call   1030 <puts@plt>
movb   $0x62,0x10(%rsp)
movl   $0x61636261,0xc(%rsp)
61
movl   $0x66666564,0x17(%rsp)
66
movl   $0x64636261,0x14(%rsp)
64
lea    0xc(%rsp),%r14
lea    0x14(%rsp),%rbx
xorps  %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x5,%esi
mov    %rbx,%rdx
mov    $0x7,%ecx
call   1040 <run_test@plt>
xorps  %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x7,%esi
mov    %r14,%rdx
mov    $0x5,%ecx
call   1040 <run_test@plt>
mov    %r14,%rdi
mov    $0x5,%esi
mov    %rbx,%rdx
mov    $0x7,%ecx
movss  0xa94(%rip),%xmm0
call   1040 <run_test@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
mov    %r14,%rdx
mov    $0x5,%ecx
movss  0xa77(%rip),%xmm0
call   1040 <run_test@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [16 x i8] c"--- test 1 ---\0A\00"
@.str.1 = [16 x i8] c"--- test 2 ---\0A\00"
@.str.2 = [16 x i8] c"--- test 3 ---\0A\00"
@.str.3 = [16 x i8] c"--- test 4 ---\0A\00"
@.str.4 = [16 x i8] c"--- test 5 ---\0A\00"
@__const.main.buf1 = [4 x i8] c"yyyy"
@.str.5 = [16 x i8] c"--- test 6 ---\0A\00"
@__const.main.x = [5 x i8] c"pqrst"
@__const.main.y = [5 x i8] c"abcde"
@__const.main.z = [5 x i8] c"abcde"
@.str.6 = [16 x i8] c"--- test 7 ---\0A\00"
@__const.main.x.7 = [5 x i8] c"abcdd"
@__const.main.y.8 = [5 x i8] c"abcde"
@__const.main.z.9 = [5 x i8] c"abcdf"
@.str.10 = [16 x i8] c"--- test 8 ---\0A\00"
@__const.main.x.11 = [5 x i8] c"abcde"
@__const.main.y.12 = [7 x i8] c"abcdeff"
@.str.13 = [16 x i8] c"--- test 9 ---\0A\00"
@__const.main.x.14 = [5 x i8] c"abcab"
@__const.main.y.15 = [7 x i8] c"abcdeff"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
%5 = alloca [4 x i8]
%6 = alloca [5 x i8]
%7 = alloca [5 x i8]
%8 = alloca [5 x i8]
%9 = alloca [5 x i8]
%10 = alloca [5 x i8]
%11 = alloca [5 x i8]
%12 = alloca [5 x i8]
%13 = alloca [7 x i8]
%14 = alloca [5 x i8]
%15 = alloca [7 x i8]
store i32 0, i32* %1
%16 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%17 = call i32 @run_test(i8* null, i32 0, i8* null, i32 0, float 0.000000e+00)
%18 = call i32 @run_test(i8* null, i32 0, i8* null, i32 0, float 2.550000e+02)
%19 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
store i8 10, i8* %3
store i8 20, i8* %4
%20 = call i32 @run_test(i8* %3, i32 1, i8* %4, i32 1, float 0.000000e+00)
%21 = call i32 @run_test(i8* %3, i32 1, i8* %3, i32 1, float 0.000000e+00)
%22 = call i32 @run_test(i8* %4, i32 1, i8* %3, i32 1, float 0.000000e+00)
%23 = call i32 @run_test(i8* %3, i32 1, i8* %4, i32 1, float 2.550000e+02)
%24 = call i32 @run_test(i8* %3, i32 1, i8* %3, i32 1, float 2.550000e+02)
%25 = call i32 @run_test(i8* %4, i32 1, i8* %3, i32 1, float 2.550000e+02)
%26 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
store i8 10, i8* %2
%27 = call i32 @run_test(i8* null, i32 0, i8* %2, i32 1, float 1.000000e+01)
%28 = call i32 @run_test(i8* null, i32 0, i8* %2, i32 1, float 9.000000e+00)
%29 = call i32 @run_test(i8* null, i32 0, i8* %2, i32 1, float 1.100000e+01)
%30 = call i32 @run_test(i8* %2, i32 1, i8* null, i32 0, float 1.000000e+01)
%31 = call i32 @run_test(i8* %2, i32 1, i8* null, i32 0, float 9.000000e+00)
%32 = call i32 @run_test(i8* %2, i32 1, i8* null, i32 0, float 1.100000e+01)
%33 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
store i8 10, i8* %2
%34 = call i32 @run_test(i8* %2, i32 1, i8* null, i32 0, float 2.550000e+02)
store i8 -1, i8* %2
%35 = call i32 @run_test(i8* %2, i32 1, i8* null, i32 0, float 2.550000e+02)
%36 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%37 = bitcast [4 x i8]* %5 to i8*
%38 = getelementptr inbounds [4 x i8], [4 x i8]* %5, i64 0, i64 0
%39 = call i32 @run_test(i8* %38, i32 4, i8* null, i32 0, float 1.210000e+02)
%40 = getelementptr inbounds [4 x i8], [4 x i8]* %5, i64 0, i64 0
%41 = call i32 @run_test(i8* %40, i32 4, i8* null, i32 0, float 1.200000e+02)
%42 = getelementptr inbounds [4 x i8], [4 x i8]* %5, i64 0, i64 0
%43 = call i32 @run_test(i8* %42, i32 4, i8* null, i32 0, float 1.220000e+02)
%44 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%45 = bitcast [5 x i8]* %6 to i8*
%46 = bitcast [5 x i8]* %7 to i8*
%47 = bitcast [5 x i8]* %8 to i8*
%48 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%49 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 0
%50 = call i32 @run_test(i8* %48, i32 5, i8* %49, i32 5, float 9.700000e+01)
%51 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 0
%52 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%53 = call i32 @run_test(i8* %51, i32 5, i8* %52, i32 5, float 9.700000e+01)
%54 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 0
%55 = getelementptr inbounds [5 x i8], [5 x i8]* %8, i64 0, i64 0
%56 = call i32 @run_test(i8* %54, i32 5, i8* %55, i32 5, float 1.130000e+02)
%57 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
%58 = bitcast [5 x i8]* %9 to i8*
%59 = bitcast [5 x i8]* %10 to i8*
%60 = bitcast [5 x i8]* %11 to i8*
%61 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%62 = getelementptr inbounds [5 x i8], [5 x i8]* %10, i64 0, i64 0
%63 = call i32 @run_test(i8* %61, i32 5, i8* %62, i32 5, float 9.700000e+01)
%64 = getelementptr inbounds [5 x i8], [5 x i8]* %11, i64 0, i64 0
%65 = getelementptr inbounds [5 x i8], [5 x i8]* %11, i64 0, i64 0
%66 = call i32 @run_test(i8* %64, i32 5, i8* %65, i32 5, float 9.700000e+01)
%67 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0))
%68 = bitcast [5 x i8]* %12 to i8*
%69 = bitcast [7 x i8]* %13 to i8*
%70 = getelementptr inbounds [5 x i8], [5 x i8]* %12, i64 0, i64 0
%71 = getelementptr inbounds [7 x i8], [7 x i8]* %13, i64 0, i64 0
%72 = call i32 @run_test(i8* %70, i32 5, i8* %71, i32 7, float 0.000000e+00)
%73 = getelementptr inbounds [7 x i8], [7 x i8]* %13, i64 0, i64 0
%74 = getelementptr inbounds [5 x i8], [5 x i8]* %12, i64 0, i64 0
%75 = call i32 @run_test(i8* %73, i32 7, i8* %74, i32 5, float 0.000000e+00)
%76 = getelementptr inbounds [5 x i8], [5 x i8]* %12, i64 0, i64 0
%77 = getelementptr inbounds [7 x i8], [7 x i8]* %13, i64 0, i64 0
%78 = call i32 @run_test(i8* %76, i32 5, i8* %77, i32 7, float 1.020000e+02)
%79 = getelementptr inbounds [7 x i8], [7 x i8]* %13, i64 0, i64 0
%80 = getelementptr inbounds [5 x i8], [5 x i8]* %12, i64 0, i64 0
%81 = call i32 @run_test(i8* %79, i32 7, i8* %80, i32 5, float 1.020000e+02)
%82 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0))
%83 = bitcast [5 x i8]* %14 to i8*
%84 = bitcast [7 x i8]* %15 to i8*
%85 = getelementptr inbounds [5 x i8], [5 x i8]* %14, i64 0, i64 0
%86 = getelementptr inbounds [7 x i8], [7 x i8]* %15, i64 0, i64 0
%87 = call i32 @run_test(i8* %85, i32 5, i8* %86, i32 7, float 0.000000e+00)
%88 = getelementptr inbounds [7 x i8], [7 x i8]* %15, i64 0, i64 0
%89 = getelementptr inbounds [5 x i8], [5 x i8]* %14, i64 0, i64 0
%90 = call i32 @run_test(i8* %88, i32 7, i8* %89, i32 5, float 0.000000e+00)
%91 = getelementptr inbounds [5 x i8], [5 x i8]* %14, i64 0, i64 0
%92 = getelementptr inbounds [7 x i8], [7 x i8]* %15, i64 0, i64 0
%93 = call i32 @run_test(i8* %91, i32 5, i8* %92, i32 7, float 1.020000e+02)
%94 = getelementptr inbounds [7 x i8], [7 x i8]* %15, i64 0, i64 0
%95 = getelementptr inbounds [5 x i8], [5 x i8]* %14, i64 0, i64 0
%96 = call i32 @run_test(i8* %94, i32 7, i8* %95, i32 5, float 1.020000e+02)
ret i32 0
}

LLVM IR (-O2):
@__const.main.x = [5 x i8] c"pqrst"
@__const.main.x.7 = [5 x i8] c"abcdd"
@__const.main.z.9 = [5 x i8] c"abcdf"
@__const.main.x.11 = [5 x i8] c"abcde"
@__const.main.x.14 = [5 x i8] c"abcab"
@__const.main.y.15 = [7 x i8] c"abcdeff"
@str = [15 x i8] c"--- test 1 ---\00"
@str.16 = [15 x i8] c"--- test 2 ---\00"
@str.17 = [15 x i8] c"--- test 3 ---\00"
@str.18 = [15 x i8] c"--- test 4 ---\00"
@str.19 = [15 x i8] c"--- test 5 ---\00"
@str.20 = [15 x i8] c"--- test 6 ---\00"
@str.21 = [15 x i8] c"--- test 7 ---\00"
@str.22 = [15 x i8] c"--- test 8 ---\00"
@str.23 = [15 x i8] c"--- test 9 ---\00"
define i32 @main() {
%1 = alloca i8
%2 = alloca i8
%3 = alloca i8
%4 = alloca i32
%5 = alloca [5 x i8]
%6 = alloca [5 x i8]
%7 = alloca [5 x i8]
%8 = alloca [5 x i8]
%9 = alloca [5 x i8]
%10 = alloca [5 x i8]
%11 = alloca [5 x i8]
%12 = alloca [7 x i8]
%13 = alloca [5 x i8]
%14 = alloca [7 x i8]
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%16 = tail call i32 @run_test(i8* null, i32 0, i8* null, i32 0, float 0.000000e+00)
%17 = tail call i32 @run_test(i8* null, i32 0, i8* null, i32 0, float 2.550000e+02)
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.16, i64 0, i64 0))
store i8 10, i8* %2
store i8 20, i8* %3
%19 = call i32 @run_test(i8* %2, i32 1, i8* %3, i32 1, float 0.000000e+00)
%20 = call i32 @run_test(i8* %2, i32 1, i8* %2, i32 1, float 0.000000e+00)
%21 = call i32 @run_test(i8* %3, i32 1, i8* %2, i32 1, float 0.000000e+00)
%22 = call i32 @run_test(i8* %2, i32 1, i8* %3, i32 1, float 2.550000e+02)
%23 = call i32 @run_test(i8* %2, i32 1, i8* %2, i32 1, float 2.550000e+02)
%24 = call i32 @run_test(i8* %3, i32 1, i8* %2, i32 1, float 2.550000e+02)
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.17, i64 0, i64 0))
store i8 10, i8* %1
%26 = call i32 @run_test(i8* null, i32 0, i8* %1, i32 1, float 1.000000e+01)
%27 = call i32 @run_test(i8* null, i32 0, i8* %1, i32 1, float 9.000000e+00)
%28 = call i32 @run_test(i8* null, i32 0, i8* %1, i32 1, float 1.100000e+01)
%29 = call i32 @run_test(i8* %1, i32 1, i8* null, i32 0, float 1.000000e+01)
%30 = call i32 @run_test(i8* %1, i32 1, i8* null, i32 0, float 9.000000e+00)
%31 = call i32 @run_test(i8* %1, i32 1, i8* null, i32 0, float 1.100000e+01)
%32 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.18, i64 0, i64 0))
store i8 10, i8* %1
%33 = call i32 @run_test(i8* %1, i32 1, i8* null, i32 0, float 2.550000e+02)
store i8 -1, i8* %1
%34 = call i32 @run_test(i8* %1, i32 1, i8* null, i32 0, float 2.550000e+02)
%35 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.19, i64 0, i64 0))
%36 = bitcast i32* %4 to i8*
store i32 2038004089, i32* %4
%37 = call i32 @run_test(i8* %36, i32 4, i8* null, i32 0, float 1.210000e+02)
%38 = call i32 @run_test(i8* %36, i32 4, i8* null, i32 0, float 1.200000e+02)
%39 = call i32 @run_test(i8* %36, i32 4, i8* null, i32 0, float 1.220000e+02)
%40 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.20, i64 0, i64 0))
%41 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 0
%42 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%43 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 0
%44 = call i32 @run_test(i8* %41, i32 5, i8* %42, i32 5, float 9.700000e+01)
%45 = call i32 @run_test(i8* %42, i32 5, i8* %41, i32 5, float 9.700000e+01)
%46 = call i32 @run_test(i8* %42, i32 5, i8* %43, i32 5, float 1.130000e+02)
%47 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.21, i64 0, i64 0))
%48 = getelementptr inbounds [5 x i8], [5 x i8]* %8, i64 0, i64 0
%49 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%50 = getelementptr inbounds [5 x i8], [5 x i8]* %10, i64 0, i64 0
%51 = call i32 @run_test(i8* %48, i32 5, i8* %49, i32 5, float 9.700000e+01)
%52 = call i32 @run_test(i8* %50, i32 5, i8* %50, i32 5, float 9.700000e+01)
%53 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.22, i64 0, i64 0))
%54 = getelementptr inbounds [5 x i8], [5 x i8]* %11, i64 0, i64 0
%55 = getelementptr inbounds [7 x i8], [7 x i8]* %12, i64 0, i64 0
%56 = call i32 @run_test(i8* %54, i32 5, i8* %55, i32 7, float 0.000000e+00)
%57 = call i32 @run_test(i8* %55, i32 7, i8* %54, i32 5, float 0.000000e+00)
%58 = call i32 @run_test(i8* %54, i32 5, i8* %55, i32 7, float 1.020000e+02)
%59 = call i32 @run_test(i8* %55, i32 7, i8* %54, i32 5, float 1.020000e+02)
%60 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.23, i64 0, i64 0))
%61 = getelementptr inbounds [5 x i8], [5 x i8]* %13, i64 0, i64 0
%62 = getelementptr inbounds [7 x i8], [7 x i8]* %14, i64 0, i64 0
%63 = call i32 @run_test(i8* %61, i32 5, i8* %62, i32 7, float 0.000000e+00)
%64 = call i32 @run_test(i8* %62, i32 7, i8* %61, i32 5, float 0.000000e+00)
%65 = call i32 @run_test(i8* %61, i32 5, i8* %62, i32 7, float 1.020000e+02)
%66 = call i32 @run_test(i8* %62, i32 7, i8* %61, i32 5, float 1.020000e+02)
ret i32 0
}