#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*/ assert(int);
int /*<<< orphan*/ printf(char *);
int main(void) {
  int arr[(10)] = {0};
  {
    assert(((((0) >= 0 && (0) <= ((10))) ? (1) : (0))));
    printf("IS_BOUND(0, N)"
           " : Worked\n");
  };
  {
    assert(((((1) >= 0 && (1) <= ((10))) ? (1) : (0))));
    printf("IS_BOUND(1, N)"
           " : Worked\n");
  };
  {
    assert((((((10)) >= 0 && ((10)) <= ((10))) ? (1) : (0))));
    printf("IS_BOUND(N, N)"
           " : Worked\n");
  };
  {
    assert((((((10) + 1) >= 0 && ((10) + 1) <= ((10))) ? (1) : (0))));
    printf("IS_BOUND(N+1, N)"
           " : Worked\n");
  };
  {
    assert(((((-1) >= 0 && (-1) <= ((10))) ? (1) : (0))));
    printf("IS_BOUND(-1, N)"
           " : Worked\n");
  };
  {
    assert(((((-(10)) >= 0 && (-(10)) <= ((10))) ? (1) : (0))));
    printf("IS_BOUND(-N, N)"
           " : Worked\n");
  };
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1040 <memset@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
lea    0xea0(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1050 <assert@plt>
lea    0xea6(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <assert@plt>
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <assert@plt>
lea    0xeb4(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <assert@plt>
lea    0xebb(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
call   1040 <assert@plt>
lea    0xece(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
lea    0xed0(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
lea    0xed2(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <assert@plt>
lea    0xed7(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <assert@plt>
lea    0xede(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <assert@plt>
lea    0xee4(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [25 x i8] c"IS_BOUND(0, N) : Worked\0A\00"
@.str.1 = [25 x i8] c"IS_BOUND(1, N) : Worked\0A\00"
@.str.2 = [25 x i8] c"IS_BOUND(N, N) : Worked\0A\00"
@.str.3 = [27 x i8] c"IS_BOUND(N+1, N) : Worked\0A\00"
@.str.4 = [26 x i8] c"IS_BOUND(-1, N) : Worked\0A\00"
@.str.5 = [26 x i8] c"IS_BOUND(-N, N) : Worked\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
store i32 0, i32* %1
%3 = bitcast [10 x i32]* %2 to i8*
%4 = call i32 @assert(i32 1)
%5 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @assert(i32 1)
%7 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @assert(i32 1)
%9 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @assert(i32 0)
%11 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @assert(i32 0)
%13 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 @assert(i32 0)
%15 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [24 x i8] c"IS_BOUND(0, N) : Worked\00"
@str.6 = [24 x i8] c"IS_BOUND(1, N) : Worked\00"
@str.7 = [24 x i8] c"IS_BOUND(N, N) : Worked\00"
@str.8 = [26 x i8] c"IS_BOUND(N+1, N) : Worked\00"
@str.9 = [25 x i8] c"IS_BOUND(-1, N) : Worked\00"
@str.10 = [25 x i8] c"IS_BOUND(-N, N) : Worked\00"
define i32 @main() {
%1 = tail call i32 @assert(i32 1)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @assert(i32 1)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.6, i64 0, i64 0))
%5 = tail call i32 @assert(i32 1)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.7, i64 0, i64 0))
%7 = tail call i32 @assert(i32 0)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.8, i64 0, i64 0))
%9 = tail call i32 @assert(i32 0)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.9, i64 0, i64 0))
%11 = tail call i32 @assert(i32 0)
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.10, i64 0, i64 0))
ret i32 0
}