#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 */
typedef scalar_t__ time;

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ putchar(char);
int rand();
int /*<<< orphan*/ srand(int);
int main(int argc, char **argv) {
  int i, j, len;
  char c;
  if (argv[1])
    len = atoi(argv[1]);
  else
    len = 10;
  srand((int)(time)(NULL));
  for (i = 0; i < len; i++) {
    c = rand() % (0x80 - 0x0E) + 0x0E;
    switch (c) {
    case 0x3C:
    case 0x5F:
    case 0x13:
    case 0x14:
    case 0x15:
    case 0x16:
    case 0x17:
    case 0x18:
    case 0x19:
    case 0x1A:
    case 0x1B:
    case 0x1C:
    case 0x1D:
    case 0x1E:
    case 0x1F:
    case 0x00:
      i--;
      break;
    default:
      putchar(c);
    }
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x8(%rax)
je     118a <main+0x3a>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <atoi@plt>
mov    %eax,-0x1c(%rbp)
jmp    1191 <main+0x41>
movl   $0xa,-0x1c(%rbp)
xor    %edi,%edi
call   1050 <srand@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1227 <main+0xd7>
xor    %eax,%eax
call   1070 <rand@plt>
movslq %eax,%rcx
imul   $0xffffffff8fb823ef,%rcx,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
shr    $0x6,%ecx
add    %edx,%ecx
imul   $0x72,%ecx,%ecx
sub    %ecx,%eax
add    $0xe,%al
mov    %al,-0x1d(%rbp)
movsbl -0x1d(%rbp),%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x5f,%eax
ja     120b <main+0xbb>
mov    -0x28(%rbp),%rax
lea    0xe0c(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
jmp    1214 <main+0xc4>
movsbl -0x1d(%rbp),%edi
call   1030 <putchar@plt>
jmp    1219 <main+0xc9>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    119f <main+0x4f>
lea    0xf52(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    0x8(%rsi),%rdi
test   %rdi,%rdi
je     1171 <main+0x31>
call   1050 <atoi@plt>
mov    %eax,%ebx
xor    %edi,%edi
call   1040 <srand@plt>
test   %ebx,%ebx
jg     117d <main+0x3d>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
xor    %edi,%edi
call   1040 <srand@plt>
mov    $0xa,%ebx
xor    %ebp,%ebp
nop
xor    %eax,%eax
call   1060 <rand@plt>
cltq
imul   $0xffffffff8fb823ef,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
shr    $0x6,%ecx
add    %edx,%ecx
imul   $0x72,%ecx,%ecx
sub    %ecx,%eax
add    $0xe,%al
movsbl %al,%edi
lea    -0x13(%rdi),%eax
cmp    $0xd,%eax
jae    11c0 <main+0x80>
add    $0xffffffff,%ebp
add    $0x1,%ebp
cmp    %ebx,%ebp
jl     1180 <main+0x40>
jmp    115e <main+0x1e>
xchg   %ax,%ax
test   %edi,%edi
je     11b2 <main+0x72>
cmp    $0x5f,%edi
je     11b2 <main+0x72>
cmp    $0x3c,%edi
je     11b2 <main+0x72>
call   1030 <putchar@plt>
jmp    11b5 <main+0x75>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i8**, i8*** %5
%11 = getelementptr inbounds i8*, i8** %10, i64 1
%12 = load i8*, i8** %11
%13 = icmp ne i8* %12, null
br i1 %13, label %14, label %19
14: ; preds = %2
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 1
%17 = load i8*, i8** %16
%18 = call i32 @atoi(i8* %17)
store i32 %18, i32* %8
br label %20
19: ; preds = %2
store i32 10, i32* %8
br label %20
20: ; preds = %19, %14
%21 = call i32 @srand(i32 0)
store i32 0, i32* %6
br label %22
22: ; preds = %40, %20
%23 = load i32, i32* %6
%24 = load i32, i32* %8
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %43
26: ; preds = %22
%27 = call i32 (...) @rand()
%28 = srem i32 %27, 114
%29 = add nsw i32 %28, 14
%30 = trunc i32 %29 to i8
store i8 %30, i8* %9
%31 = load i8, i8* %9
%32 = sext i8 %31 to i32
switch i32 %32, label %36 [
i32 60, label %33
i32 95, label %33
i32 19, label %33
i32 20, label %33
i32 21, label %33
i32 22, label %33
i32 23, label %33
i32 24, label %33
i32 25, label %33
i32 26, label %33
i32 27, label %33
i32 28, label %33
i32 29, label %33
i32 30, label %33
i32 31, label %33
i32 0, label %33
]
33: ; preds = %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26, %26
%34 = load i32, i32* %6
%35 = add nsw i32 %34, -1
store i32 %35, i32* %6
br label %39
36: ; preds = %26
%37 = load i8, i8* %9
%38 = call i32 @putchar(i8 signext %37)
br label %39
39: ; preds = %36, %33
br label %40
40: ; preds = %39
%41 = load i32, i32* %6
%42 = add nsw i32 %41, 1
store i32 %42, i32* %6
br label %22
43: ; preds = %22
%44 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%45 = load i32, i32* %3
ret i32 %45
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = icmp eq i8* %4, null
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call i32 @srand(i32 0)
br label %12
8: ; preds = %2
%9 = tail call i32 @atoi(i8* %4)
%10 = tail call i32 @srand(i32 0)
%11 = icmp sgt i32 %9, 0
br i1 %11, label %12, label %29
12: ; preds = %6, %8
%13 = phi i32 [ 10, %6 ], [ %9, %8 ]
br label %14
14: ; preds = %12, %25
%15 = phi i32 [ %27, %25 ], [ 0, %12 ]
%16 = tail call i32 (...) @rand()
%17 = srem i32 %16, 114
%18 = trunc i32 %17 to i8
%19 = add nsw i8 %18, 14
%20 = sext i8 %19 to i32
switch i32 %20, label %23 [
i32 60, label %21
i32 95, label %21
i32 19, label %21
i32 20, label %21
i32 21, label %21
i32 22, label %21
i32 23, label %21
i32 24, label %21
i32 25, label %21
i32 26, label %21
i32 27, label %21
i32 28, label %21
i32 29, label %21
i32 30, label %21
i32 31, label %21
i32 0, label %21
]
21: ; preds = %14, %14, %14, %14, %14, %14, %14, %14, %14, %14, %14, %14, %14, %14, %14, %14
%22 = add nsw i32 %15, -1
br label %25
23: ; preds = %14
%24 = tail call i32 @putchar(i8 signext %19)
br label %25
25: ; preds = %21, %23
%26 = phi i32 [ %15, %23 ], [ %22, %21 ]
%27 = add nsw i32 %26, 1
%28 = icmp slt i32 %27, %13
br i1 %28, label %14, label %29
29: ; preds = %25, %8
%30 = tail call i32 bitcast (i32 (i8)* @putchar to i32 (i32)*)(i32 10)
ret i32 0
}