#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*/ check_bytes(char *, char *, int, char *);
int main() {
  check_bytes("4294967297", "\1\0\0\0\1", 5, "01 00000001");
  check_bytes("4294967296", "\0\0\0\0\1", 5, "01 00000000");
  check_bytes("4294967295", "\xFF\xFF\xFF\xFF", 4, "FFFFFFFF");
  check_bytes("16777217", "\1\0\0\1", 4, "01000001");
  check_bytes("16777216", "\0\0\0\1", 4, "01000000");
  check_bytes("16777215", "\xFF\xFF\xFF", 3, "FFFFFF");
  check_bytes("256", "\0\1", 2, "0100");
  check_bytes("255", "\xFF", 1, "FF");
  check_bytes("254", "\xFE", 1, "FE");
  check_bytes("253", "\xFD", 1, "FD");
  check_bytes("3", "\3", 1, "03");
  check_bytes("2", "\2", 1, "02");
  check_bytes("1", "\1", 1, "01");
  check_bytes("0", "\0", 1, "00");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xf7d(%rip),%rsi
mov    $0x5,%edx
lea    0xedd(%rip),%rcx
call   1030 <check_bytes@plt>
lea    0xedd(%rip),%rdi
lea    0xf64(%rip),%rsi
mov    $0x5,%edx
lea    0xed5(%rip),%rcx
call   1030 <check_bytes@plt>
lea    0xed5(%rip),%rdi
lea    0xed9(%rip),%rsi
mov    $0x4,%edx
lea    0xed2(%rip),%rcx
call   1030 <check_bytes@plt>
lea    0xecf(%rip),%rdi
lea    0xf2c(%rip),%rsi
mov    $0x4,%edx
lea    0xec5(%rip),%rcx
call   1030 <check_bytes@plt>
lea    0xec2(%rip),%rdi
lea    0xf12(%rip),%rsi
mov    $0x4,%edx
lea    0xeb8(%rip),%rcx
call   1030 <check_bytes@plt>
lea    0xeb5(%rip),%rdi
lea    0xe7d(%rip),%rsi
mov    $0x3,%edx
lea    0xe77(%rip),%rcx
call   1030 <check_bytes@plt>
lea    0xe9f(%rip),%rdi
lea    0xed9(%rip),%rsi
mov    $0x2,%edx
lea    0xe90(%rip),%rcx
call   1030 <check_bytes@plt>
lea    0xe89(%rip),%rdi
lea    0xe41(%rip),%rsi
mov    $0x1,%edx
lea    0xe3d(%rip),%rcx
call   1030 <check_bytes@plt>
lea    0xe6e(%rip),%rdi
lea    0xe6b(%rip),%rsi
mov    $0x1,%edx
lea    0xe61(%rip),%rcx
call   1030 <check_bytes@plt>
lea    0xe58(%rip),%rdi
lea    0xe55(%rip),%rsi
mov    $0x1,%edx
lea    0xe4b(%rip),%rcx
call   1030 <check_bytes@plt>
lea    0xe45(%rip),%rdi
lea    0xe3b(%rip),%rsi
mov    $0x1,%edx
lea    0xe31(%rip),%rcx
call   1030 <check_bytes@plt>
lea    0xe2b(%rip),%rdi
lea    0xe21(%rip),%rsi
mov    $0x1,%edx
lea    0xe17(%rip),%rcx
call   1030 <check_bytes@plt>
lea    0xd86(%rip),%rdi
lea    0xe07(%rip),%rsi
mov    $0x1,%edx
lea    0xd72(%rip),%rcx
call   1030 <check_bytes@plt>
lea    0xd7e(%rip),%rdi
lea    0xe03(%rip),%rsi
mov    $0x1,%edx
lea    0xd6a(%rip),%rcx
call   1030 <check_bytes@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
lea    0xf80(%rip),%rsi
lea    0xee5(%rip),%rcx
mov    $0x5,%edx
call   1030 <check_bytes@plt>
lea    0xee0(%rip),%rdi
lea    0xf67(%rip),%rsi
lea    0xedd(%rip),%rcx
mov    $0x5,%edx
call   1030 <check_bytes@plt>
lea    0xed8(%rip),%rdi
lea    0xedc(%rip),%rsi
lea    0xeda(%rip),%rcx
mov    $0x4,%edx
call   1030 <check_bytes@plt>
lea    0xed2(%rip),%rdi
lea    0xf2f(%rip),%rsi
lea    0xecd(%rip),%rcx
mov    $0x4,%edx
call   1030 <check_bytes@plt>
lea    0xec5(%rip),%rdi
lea    0xf15(%rip),%rsi
lea    0xec0(%rip),%rcx
mov    $0x4,%edx
call   1030 <check_bytes@plt>
lea    0xeb8(%rip),%rdi
lea    0xe80(%rip),%rsi
lea    0xe7f(%rip),%rcx
mov    $0x3,%edx
call   1030 <check_bytes@plt>
lea    0xea2(%rip),%rdi
lea    0xedc(%rip),%rsi
lea    0xe98(%rip),%rcx
mov    $0x2,%edx
call   1030 <check_bytes@plt>
lea    0xe8c(%rip),%rdi
lea    0xe44(%rip),%rsi
lea    0xe45(%rip),%rcx
mov    $0x1,%edx
call   1030 <check_bytes@plt>
lea    0xe71(%rip),%rdi
lea    0xe6e(%rip),%rsi
lea    0xe69(%rip),%rcx
mov    $0x1,%edx
call   1030 <check_bytes@plt>
lea    0xe5b(%rip),%rdi
lea    0xe58(%rip),%rsi
lea    0xe53(%rip),%rcx
mov    $0x1,%edx
call   1030 <check_bytes@plt>
lea    0xe48(%rip),%rdi
lea    0xe3e(%rip),%rsi
lea    0xe39(%rip),%rcx
mov    $0x1,%edx
call   1030 <check_bytes@plt>
lea    0xe2e(%rip),%rdi
lea    0xe24(%rip),%rsi
lea    0xe1f(%rip),%rcx
mov    $0x1,%edx
call   1030 <check_bytes@plt>
lea    0xd89(%rip),%rdi
lea    0xe0a(%rip),%rsi
lea    0xd7a(%rip),%rcx
mov    $0x1,%edx
call   1030 <check_bytes@plt>
lea    0xd81(%rip),%rdi
lea    0xe06(%rip),%rsi
lea    0xd72(%rip),%rcx
mov    $0x1,%edx
call   1030 <check_bytes@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [11 x i8] c"4294967297\00"
@.str.1 = [6 x i8] c"\01\00\00\00\01\00"
@.str.2 = [12 x i8] c"01 00000001\00"
@.str.3 = [11 x i8] c"4294967296\00"
@.str.4 = [6 x i8] c"\00\00\00\00\01\00"
@.str.5 = [12 x i8] c"01 00000000\00"
@.str.6 = [11 x i8] c"4294967295\00"
@.str.7 = [5 x i8] c"\FF\FF\FF\FF\00"
@.str.8 = [9 x i8] c"FFFFFFFF\00"
@.str.9 = [9 x i8] c"16777217\00"
@.str.10 = [5 x i8] c"\01\00\00\01\00"
@.str.11 = [9 x i8] c"01000001\00"
@.str.12 = [9 x i8] c"16777216\00"
@.str.13 = [5 x i8] c"\00\00\00\01\00"
@.str.14 = [9 x i8] c"01000000\00"
@.str.15 = [9 x i8] c"16777215\00"
@.str.16 = [4 x i8] c"\FF\FF\FF\00"
@.str.17 = [7 x i8] c"FFFFFF\00"
@.str.18 = [4 x i8] c"256\00"
@.str.19 = [3 x i8] c"\00\01\00"
@.str.20 = [5 x i8] c"0100\00"
@.str.21 = [4 x i8] c"255\00"
@.str.22 = [2 x i8] c"\FF\00"
@.str.23 = [3 x i8] c"FF\00"
@.str.24 = [4 x i8] c"254\00"
@.str.25 = [2 x i8] c"\FE\00"
@.str.26 = [3 x i8] c"FE\00"
@.str.27 = [4 x i8] c"253\00"
@.str.28 = [2 x i8] c"\FD\00"
@.str.29 = [3 x i8] c"FD\00"
@.str.30 = [2 x i8] c"3\00"
@.str.31 = [2 x i8] c"\03\00"
@.str.32 = [3 x i8] c"03\00"
@.str.33 = [2 x i8] c"2\00"
@.str.34 = [2 x i8] c"\02\00"
@.str.35 = [3 x i8] c"02\00"
@.str.36 = [2 x i8] c"1\00"
@.str.37 = [2 x i8] c"\01\00"
@.str.38 = [3 x i8] c"01\00"
@.str.39 = [2 x i8] c"0\00"
@.str.40 = [2 x i8] zeroinitializer
@.str.41 = [3 x i8] c"00\00"
define i32 @main() {
%1 = call i32 @check_bytes(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%2 = call i32 @check_bytes(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%3 = call i32 @check_bytes(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%4 = call i32 @check_bytes(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%5 = call i32 @check_bytes(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0))
%6 = call i32 @check_bytes(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i32 3, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0))
%7 = call i32 @check_bytes(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0), i32 2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0))
%8 = call i32 @check_bytes(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i64 0, i64 0))
%9 = call i32 @check_bytes(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.26, i64 0, i64 0))
%10 = call i32 @check_bytes(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.28, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.29, i64 0, i64 0))
%11 = call i32 @check_bytes(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.30, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.31, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.32, i64 0, i64 0))
%12 = call i32 @check_bytes(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.33, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.34, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.35, i64 0, i64 0))
%13 = call i32 @check_bytes(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.36, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.37, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.38, i64 0, i64 0))
%14 = call i32 @check_bytes(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.39, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.40, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.41, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"4294967297\00"
@.str.1 = [6 x i8] c"\01\00\00\00\01\00"
@.str.2 = [12 x i8] c"01 00000001\00"
@.str.3 = [11 x i8] c"4294967296\00"
@.str.4 = [6 x i8] c"\00\00\00\00\01\00"
@.str.5 = [12 x i8] c"01 00000000\00"
@.str.6 = [11 x i8] c"4294967295\00"
@.str.7 = [5 x i8] c"\FF\FF\FF\FF\00"
@.str.8 = [9 x i8] c"FFFFFFFF\00"
@.str.9 = [9 x i8] c"16777217\00"
@.str.10 = [5 x i8] c"\01\00\00\01\00"
@.str.11 = [9 x i8] c"01000001\00"
@.str.12 = [9 x i8] c"16777216\00"
@.str.13 = [5 x i8] c"\00\00\00\01\00"
@.str.14 = [9 x i8] c"01000000\00"
@.str.15 = [9 x i8] c"16777215\00"
@.str.16 = [4 x i8] c"\FF\FF\FF\00"
@.str.17 = [7 x i8] c"FFFFFF\00"
@.str.18 = [4 x i8] c"256\00"
@.str.19 = [3 x i8] c"\00\01\00"
@.str.20 = [5 x i8] c"0100\00"
@.str.21 = [4 x i8] c"255\00"
@.str.22 = [2 x i8] c"\FF\00"
@.str.23 = [3 x i8] c"FF\00"
@.str.24 = [4 x i8] c"254\00"
@.str.25 = [2 x i8] c"\FE\00"
@.str.26 = [3 x i8] c"FE\00"
@.str.27 = [4 x i8] c"253\00"
@.str.28 = [2 x i8] c"\FD\00"
@.str.29 = [3 x i8] c"FD\00"
@.str.30 = [2 x i8] c"3\00"
@.str.31 = [2 x i8] c"\03\00"
@.str.32 = [3 x i8] c"03\00"
@.str.33 = [2 x i8] c"2\00"
@.str.34 = [2 x i8] c"\02\00"
@.str.35 = [3 x i8] c"02\00"
@.str.36 = [2 x i8] c"1\00"
@.str.37 = [2 x i8] c"\01\00"
@.str.38 = [3 x i8] c"01\00"
@.str.39 = [2 x i8] c"0\00"
@.str.40 = [2 x i8] zeroinitializer
@.str.41 = [3 x i8] c"00\00"
define i32 @main() {
%1 = tail call i32 @check_bytes(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%2 = tail call i32 @check_bytes(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%3 = tail call i32 @check_bytes(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%4 = tail call i32 @check_bytes(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%5 = tail call i32 @check_bytes(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0))
%6 = tail call i32 @check_bytes(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i32 3, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0))
%7 = tail call i32 @check_bytes(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0), i32 2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0))
%8 = tail call i32 @check_bytes(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i64 0, i64 0))
%9 = tail call i32 @check_bytes(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.26, i64 0, i64 0))
%10 = tail call i32 @check_bytes(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.28, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.29, i64 0, i64 0))
%11 = tail call i32 @check_bytes(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.30, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.31, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.32, i64 0, i64 0))
%12 = tail call i32 @check_bytes(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.33, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.34, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.35, i64 0, i64 0))
%13 = tail call i32 @check_bytes(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.36, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.37, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.38, i64 0, i64 0))
%14 = tail call i32 @check_bytes(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.39, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.40, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.41, i64 0, i64 0))
ret i32 0
}