#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*/ one_test(char *, int, char *, int);
int main(void) {
  one_test("aaaaaaaaaaaaaaaa", 0, "aaaaaaaa00aaaaaa", 0);
  one_test("0000000000000000", 0, "aaaaaaaa00aaaaaa", 0);
  one_test("aaaaaaaaaaaaaaaa", 0, "aaaaaaaaaaaaaaaa", 0);
  one_test("aaaaaaaaaaaaaaaa", 5, "aaaaaaaaaaaaaaaa", 0);
  one_test("aaaaaaaaaaaaaaaa", 0, "aaaaaaaaaaaaaaaa", 6);
  one_test("aaaaaaaaaaaaaaaa", 5, "aaaaaaaaaaaaaaaa", 6);
  one_test("aaaaaaaaaaaaaaaa", 5, "aaaaaaaaaaaaaaaa", 15);
  one_test("aaaaaaaaaaaaaaaa", 5, "aaaaaaaaaaaaaaaa", 16);
  one_test("aaaaaaaaaaaaaaaa", 5, "aaaaaaaaaaaaaaaa", 17);
  one_test("aaaaaaaaaaaaaaaa", 5, "aaaaaaaaaaaaaaaa", -6);
  one_test("aaaaaaaaaaaaaaaa", 5, "aaaaaaaaaaaaaaaa", -15);
  one_test("aaaaaaaaaaaaaaaa", 5, "aaaaaaaaaaaaaaaa", -16);
  one_test("aaaaaaaaaaaaaaaa", 5, "aaaaaaaaaaaaaaaa", -17);
  one_test("aaaaaaaaaaaaaaaa", 5, "aaaaaaaaaaaaaaaa", 6);
  one_test("aaaaaaaaaaaaaaaa", 15, "aaaaaaaaaaaaaaaa", 6);
  one_test("aaaaaaaaaaaaaaaa", 16, "aaaaaaaaaaaaaaaa", 6);
  one_test("aaaaaaaaaaaaaaaa", 17, "aaaaaaaaaaaaaaaa", 6);
  one_test("aaaaaaaaaaaaaaaa", -5, "aaaaaaaaaaaaaaaa", 6);
  one_test("aaaaaaaaaaaaaaaa", -15, "aaaaaaaaaaaaaaaa", 6);
  one_test("aaaaaaaaaaaaaaaa", -16, "aaaaaaaaaaaaaaaa", 6);
  one_test("aaaaaaaaaaaaaaaa", -17, "aaaaaaaaaaaaaaaa", 6);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
xor    %ecx,%ecx
lea    0xee2(%rip),%rdx
mov    %ecx,%esi
call   1030 <one_test@plt>
lea    0xee5(%rip),%rdi
xor    %ecx,%ecx
lea    0xecb(%rip),%rdx
mov    %ecx,%esi
call   1030 <one_test@plt>
lea    0xeac(%rip),%rdx
xor    %ecx,%ecx
mov    %rdx,%rdi
mov    %ecx,%esi
call   1030 <one_test@plt>
lea    0xe99(%rip),%rdx
mov    $0x5,%esi
xor    %ecx,%ecx
mov    %rdx,%rdi
call   1030 <one_test@plt>
lea    0xe83(%rip),%rdx
xor    %esi,%esi
mov    $0x6,%ecx
mov    %rdx,%rdi
call   1030 <one_test@plt>
lea    0xe6d(%rip),%rdx
mov    $0x5,%esi
mov    $0x6,%ecx
mov    %rdx,%rdi
call   1030 <one_test@plt>
lea    0xe54(%rip),%rdx
mov    $0x5,%esi
mov    $0xf,%ecx
mov    %rdx,%rdi
call   1030 <one_test@plt>
lea    0xe3b(%rip),%rdx
mov    $0x5,%esi
mov    $0x10,%ecx
mov    %rdx,%rdi
call   1030 <one_test@plt>
lea    0xe22(%rip),%rdx
mov    $0x5,%esi
mov    $0x11,%ecx
mov    %rdx,%rdi
call   1030 <one_test@plt>
lea    0xe09(%rip),%rdx
mov    $0x5,%esi
mov    $0xfffffffa,%ecx
mov    %rdx,%rdi
call   1030 <one_test@plt>
lea    0xdf0(%rip),%rdx
mov    $0x5,%esi
mov    $0xfffffff1,%ecx
mov    %rdx,%rdi
call   1030 <one_test@plt>
lea    0xdd7(%rip),%rdx
mov    $0x5,%esi
mov    $0xfffffff0,%ecx
mov    %rdx,%rdi
call   1030 <one_test@plt>
lea    0xdbe(%rip),%rdx
mov    $0x5,%esi
mov    $0xffffffef,%ecx
mov    %rdx,%rdi
call   1030 <one_test@plt>
lea    0xda5(%rip),%rdx
mov    $0x5,%esi
mov    $0x6,%ecx
mov    %rdx,%rdi
call   1030 <one_test@plt>
lea    0xd8c(%rip),%rdx
mov    $0xf,%esi
mov    $0x6,%ecx
mov    %rdx,%rdi
call   1030 <one_test@plt>
lea    0xd73(%rip),%rdx
mov    $0x10,%esi
mov    $0x6,%ecx
mov    %rdx,%rdi
call   1030 <one_test@plt>
lea    0xd5a(%rip),%rdx
mov    $0x11,%esi
mov    $0x6,%ecx
mov    %rdx,%rdi
call   1030 <one_test@plt>
lea    0xd41(%rip),%rdx
mov    $0xfffffffb,%esi
mov    $0x6,%ecx
mov    %rdx,%rdi
call   1030 <one_test@plt>
lea    0xd28(%rip),%rdx
mov    $0xfffffff1,%esi
mov    $0x6,%ecx
mov    %rdx,%rdi
call   1030 <one_test@plt>
lea    0xd0f(%rip),%rdx
mov    $0xfffffff0,%esi
mov    $0x6,%ecx
mov    %rdx,%rdi
call   1030 <one_test@plt>
lea    0xcf6(%rip),%rdx
mov    $0xffffffef,%esi
mov    $0x6,%ecx
mov    %rdx,%rdi
call   1030 <one_test@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xee5(%rip),%rbx
lea    0xeef(%rip),%r14
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r14,%rdx
xor    %ecx,%ecx
call   1030 <one_test@plt>
lea    0xeea(%rip),%rdi
xor    %esi,%esi
mov    %r14,%rdx
xor    %ecx,%ecx
call   1030 <one_test@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
xor    %ecx,%ecx
call   1030 <one_test@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %rbx,%rdx
xor    %ecx,%ecx
call   1030 <one_test@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
mov    $0x6,%ecx
call   1030 <one_test@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %rbx,%rdx
mov    $0x6,%ecx
call   1030 <one_test@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %rbx,%rdx
mov    $0xf,%ecx
call   1030 <one_test@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %rbx,%rdx
mov    $0x10,%ecx
call   1030 <one_test@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %rbx,%rdx
mov    $0x11,%ecx
call   1030 <one_test@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %rbx,%rdx
mov    $0xfffffffa,%ecx
call   1030 <one_test@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %rbx,%rdx
mov    $0xfffffff1,%ecx
call   1030 <one_test@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %rbx,%rdx
mov    $0xfffffff0,%ecx
call   1030 <one_test@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %rbx,%rdx
mov    $0xffffffef,%ecx
call   1030 <one_test@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %rbx,%rdx
mov    $0x6,%ecx
call   1030 <one_test@plt>
mov    %rbx,%rdi
mov    $0xf,%esi
mov    %rbx,%rdx
mov    $0x6,%ecx
call   1030 <one_test@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
mov    %rbx,%rdx
mov    $0x6,%ecx
call   1030 <one_test@plt>
mov    %rbx,%rdi
mov    $0x11,%esi
mov    %rbx,%rdx
mov    $0x6,%ecx
call   1030 <one_test@plt>
mov    %rbx,%rdi
mov    $0xfffffffb,%esi
mov    %rbx,%rdx
mov    $0x6,%ecx
call   1030 <one_test@plt>
mov    %rbx,%rdi
mov    $0xfffffff1,%esi
mov    %rbx,%rdx
mov    $0x6,%ecx
call   1030 <one_test@plt>
mov    %rbx,%rdi
mov    $0xfffffff0,%esi
mov    %rbx,%rdx
mov    $0x6,%ecx
call   1030 <one_test@plt>
mov    %rbx,%rdi
mov    $0xffffffef,%esi
mov    %rbx,%rdx
mov    $0x6,%ecx
call   1030 <one_test@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [17 x i8] c"aaaaaaaaaaaaaaaa\00"
@.str.1 = [17 x i8] c"aaaaaaaa00aaaaaa\00"
@.str.2 = [17 x i8] c"0000000000000000\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 0)
%3 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 0)
%4 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 0)
%5 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 0)
%6 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
%7 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
%8 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 15)
%9 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 16)
%10 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 17)
%11 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 -6)
%12 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 -15)
%13 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 -16)
%14 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 -17)
%15 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
%16 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 15, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
%17 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 16, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
%18 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 17, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
%19 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 -5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
%20 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 -15, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
%21 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 -16, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
%22 = call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 -17, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
ret i32 0
}

LLVM IR (-O2):
@.str = [17 x i8] c"aaaaaaaaaaaaaaaa\00"
@.str.1 = [17 x i8] c"aaaaaaaa00aaaaaa\00"
@.str.2 = [17 x i8] c"0000000000000000\00"
define i32 @main() {
%1 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 0)
%2 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 0)
%3 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 0)
%4 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 0)
%5 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
%6 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
%7 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 15)
%8 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 16)
%9 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 17)
%10 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 -6)
%11 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 -15)
%12 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 -16)
%13 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 -17)
%14 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
%15 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 15, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
%16 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 16, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
%17 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 17, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
%18 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 -5, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
%19 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 -15, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
%20 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 -16, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
%21 = tail call i32 @one_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 -17, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 6)
ret i32 0
}