#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*/ test(char *, int);
int main() {
  test("\x01", 2);
  test("\x02", 2);
  test("\x04", 2);
  test("\x08", 2);
  test("\x10", 2);
  test("\x20", 2);
  test("\x40", 2);
  test("\x80", 2);
  test("\x00\x01", 3);
  test("\x00\x02", 3);
  test("\x00\x04", 3);
  test("\x00\x08", 3);
  test("\x00\x10", 3);
  test("\x00\x20", 3);
  test("\x00\x40", 3);
  test("\x00\x80", 3);
  test("\x01\x00", 3);
  test("\x02\x00", 3);
  test("\x04\x00", 3);
  test("\x08\x00", 3);
  test("\x10\x00", 3);
  test("\x20\x00", 3);
  test("\x40\x00", 3);
  test("\x80\x00", 3);
  test("\x10\x20\x00", 3);
  test("\x10\x20\x0f", 3);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x2,%esi
call   1030 <test@plt>
lea    0xecb(%rip),%rdi
mov    $0x2,%esi
call   1030 <test@plt>
lea    0xebc(%rip),%rdi
mov    $0x2,%esi
call   1030 <test@plt>
lea    0xead(%rip),%rdi
mov    $0x2,%esi
call   1030 <test@plt>
lea    0xe9e(%rip),%rdi
mov    $0x2,%esi
call   1030 <test@plt>
lea    0xe8f(%rip),%rdi
mov    $0x2,%esi
call   1030 <test@plt>
lea    0xe80(%rip),%rdi
mov    $0x2,%esi
call   1030 <test@plt>
lea    0xe71(%rip),%rdi
mov    $0x2,%esi
call   1030 <test@plt>
lea    0xe66(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xe58(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xe4a(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xe3c(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xe2e(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xe20(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xe12(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xe04(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xdf6(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xde8(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xdda(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xdcc(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xdbe(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xdb0(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xda2(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xd94(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xd86(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xd41(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x2,%esi
call   1030 <test@plt>
lea    0xed9(%rip),%rdi
mov    $0x2,%esi
call   1030 <test@plt>
lea    0xeca(%rip),%rdi
mov    $0x2,%esi
call   1030 <test@plt>
lea    0xebb(%rip),%rdi
mov    $0x2,%esi
call   1030 <test@plt>
lea    0xeac(%rip),%rdi
mov    $0x2,%esi
call   1030 <test@plt>
lea    0xe9d(%rip),%rdi
mov    $0x2,%esi
call   1030 <test@plt>
lea    0xe8e(%rip),%rdi
mov    $0x2,%esi
call   1030 <test@plt>
lea    0xe7f(%rip),%rdi
mov    $0x2,%esi
call   1030 <test@plt>
lea    0xe74(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xe66(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xe58(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xe4a(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xe3c(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xe2e(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xe20(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xe12(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xe04(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xdf6(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xde8(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xdda(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xdcc(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xdbe(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xdb0(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xda2(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xd94(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
lea    0xd4f(%rip),%rdi
mov    $0x3,%esi
call   1030 <test@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\01\00"
@.str.1 = [2 x i8] c"\02\00"
@.str.2 = [2 x i8] c"\04\00"
@.str.3 = [2 x i8] c"\08\00"
@.str.4 = [2 x i8] c"\10\00"
@.str.5 = [2 x i8] c" \00"
@.str.6 = [2 x i8] c"@\00"
@.str.7 = [2 x i8] c"\80\00"
@.str.8 = [3 x i8] c"\00\01\00"
@.str.9 = [3 x i8] c"\00\02\00"
@.str.10 = [3 x i8] c"\00\04\00"
@.str.11 = [3 x i8] c"\00\08\00"
@.str.12 = [3 x i8] c"\00\10\00"
@.str.13 = [3 x i8] c"\00 \00"
@.str.14 = [3 x i8] c"\00@\00"
@.str.15 = [3 x i8] c"\00\80\00"
@.str.16 = [3 x i8] c"\01\00\00"
@.str.17 = [3 x i8] c"\02\00\00"
@.str.18 = [3 x i8] c"\04\00\00"
@.str.19 = [3 x i8] c"\08\00\00"
@.str.20 = [3 x i8] c"\10\00\00"
@.str.21 = [3 x i8] c" \00\00"
@.str.22 = [3 x i8] c"@\00\00"
@.str.23 = [3 x i8] c"\80\00\00"
@.str.24 = [4 x i8] c"\10 \00\00"
@.str.25 = [4 x i8] c"\10 \0F\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 2)
%3 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 2)
%4 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 2)
%5 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 2)
%6 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 2)
%7 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 2)
%8 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i32 2)
%9 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32 2)
%10 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 3)
%11 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 3)
%12 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 3)
%13 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32 3)
%14 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32 3)
%15 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i32 3)
%16 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i32 3)
%17 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i32 3)
%18 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i32 3)
%19 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i32 3)
%20 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i32 3)
%21 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0), i32 3)
%22 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0), i32 3)
%23 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i64 0, i64 0), i32 3)
%24 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0), i32 3)
%25 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i64 0, i64 0), i32 3)
%26 = call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0), i32 3)
%27 = call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i64 0, i64 0), i32 3)
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"\01\00"
@.str.1 = [2 x i8] c"\02\00"
@.str.2 = [2 x i8] c"\04\00"
@.str.3 = [2 x i8] c"\08\00"
@.str.4 = [2 x i8] c"\10\00"
@.str.5 = [2 x i8] c" \00"
@.str.6 = [2 x i8] c"@\00"
@.str.7 = [2 x i8] c"\80\00"
@.str.8 = [3 x i8] c"\00\01\00"
@.str.9 = [3 x i8] c"\00\02\00"
@.str.10 = [3 x i8] c"\00\04\00"
@.str.11 = [3 x i8] c"\00\08\00"
@.str.12 = [3 x i8] c"\00\10\00"
@.str.13 = [3 x i8] c"\00 \00"
@.str.14 = [3 x i8] c"\00@\00"
@.str.15 = [3 x i8] c"\00\80\00"
@.str.16 = [3 x i8] c"\01\00\00"
@.str.17 = [3 x i8] c"\02\00\00"
@.str.18 = [3 x i8] c"\04\00\00"
@.str.19 = [3 x i8] c"\08\00\00"
@.str.20 = [3 x i8] c"\10\00\00"
@.str.21 = [3 x i8] c" \00\00"
@.str.22 = [3 x i8] c"@\00\00"
@.str.23 = [3 x i8] c"\80\00\00"
@.str.24 = [4 x i8] c"\10 \00\00"
@.str.25 = [4 x i8] c"\10 \0F\00"
define i32 @main() {
%1 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 2)
%2 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 2)
%3 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 2)
%4 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 2)
%5 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 2)
%6 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 2)
%7 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i32 2)
%8 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32 2)
%9 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 3)
%10 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 3)
%11 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 3)
%12 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32 3)
%13 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32 3)
%14 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i32 3)
%15 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i32 3)
%16 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i32 3)
%17 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i32 3)
%18 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i32 3)
%19 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i32 3)
%20 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0), i32 3)
%21 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0), i32 3)
%22 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i64 0, i64 0), i32 3)
%23 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0), i32 3)
%24 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i64 0, i64 0), i32 3)
%25 = tail call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0), i32 3)
%26 = tail call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i64 0, i64 0), i32 3)
ret i32 0
}