#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*/ memcpy(char *, char const *const, int);
char const *_whitespace(int in_length) {
  static char const *const WHITESPACE =
      "                                                                        "
      "                            "
      "                                                                        "
      "                            "
      "                                                                        "
      "                            "
      "                                                                        "
      "                            "
      "                                                                        "
      "                            ";
  assert(in_length >= 0);
  assert(in_length < 500);
  static char r[500 + 1];
  memcpy(r, WHITESPACE, in_length);
  r[in_length] = 0;
  return r;
}


x86 assembly (clang, -O0):
<_whitespace>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x1f4,-0x4(%rbp)
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x4(%rbp),%edx
lea    0x2ee6(%rip),%rdi
lea    0xe9f(%rip),%rsi
call   1040 <memcpy@plt>
movslq -0x4(%rbp),%rcx
lea    0x2ecf(%rip),%rax
movb   $0x0,(%rax,%rcx,1)
lea    0x2ec4(%rip),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_whitespace>:
push   %r14
push   %rbx
push   %rax
mov    %edi,%ebx
not    %edi
shr    $0x1f,%edi
call   1030 <assert@plt>
xor    %edi,%edi
cmp    $0x1f4,%ebx
setl   %dil
call   1030 <assert@plt>
lea    0x2ef8(%rip),%r14
lea    0xeb1(%rip),%rsi
mov    %r14,%rdi
mov    %ebx,%edx
call   1040 <memcpy@plt>
movslq %ebx,%rax
movb   $0x0,(%rax,%r14,1)
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@_whitespace.WHITESPACE = internal constant i8* getelementptr inbounds ([501 x i8], [501 x i8]* @.str, i32 0, i32 0)
@.str = [501 x i8] c" \00"
@_whitespace.r = internal global [501 x i8] zeroinitializer
define i8* @_whitespace(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sge i32 %3, 0
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 %5)
%7 = load i32, i32* %2
%8 = icmp slt i32 %7, 500
%9 = zext i1 %8 to i32
%10 = call i32 @assert(i32 %9)
%11 = load i32, i32* %2
%12 = call i32 @memcpy(i8* getelementptr inbounds ([501 x i8], [501 x i8]* @_whitespace.r, i64 0, i64 0), i8* getelementptr inbounds ([501 x i8], [501 x i8]* @.str, i32 0, i32 0), i32 %11)
%13 = load i32, i32* %2
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [501 x i8], [501 x i8]* @_whitespace.r, i64 0, i64 %14
store i8 0, i8* %15
ret i8* getelementptr inbounds ([501 x i8], [501 x i8]* @_whitespace.r, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [501 x i8] c" \00"
@_whitespace.r = internal global [501 x i8] zeroinitializer
define i8* @_whitespace(i32 %0) {
%2 = xor i32 %0, -1
%3 = lshr i32 %2, 31
%4 = tail call i32 @assert(i32 %3)
%5 = icmp slt i32 %0, 500
%6 = zext i1 %5 to i32
%7 = tail call i32 @assert(i32 %6)
%8 = tail call i32 @memcpy(i8* getelementptr inbounds ([501 x i8], [501 x i8]* @_whitespace.r, i64 0, i64 0), i8* getelementptr inbounds ([501 x i8], [501 x i8]* @.str, i64 0, i64 0), i32 %0)
%9 = sext i32 %0 to i64
%10 = getelementptr inbounds [501 x i8], [501 x i8]* @_whitespace.r, i64 0, i64 %9
store i8 0, i8* %10
ret i8* getelementptr inbounds ([501 x i8], [501 x i8]* @_whitespace.r, i64 0, i64 0)
}