#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*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char);
int rand();
int /*<<< orphan*/ stdin;
main() {
  int ar[100];
  int i;
  int rage = 19;
  int *pRage = &rage;
  for (i = 0; i <= 99; i++) {
    ar[i] = rand() % 100;
  }
  char *cr[80] = {"Limex", "Tango", "Dex"};
  printf("%c", *cr[0]);
  fgets(*cr, 81, stdin);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x430,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x13,-0x1a8(%rbp)
lea    -0x1a8(%rbp),%rax
mov    %rax,-0x1b0(%rbp)
movl   $0x0,-0x1a4(%rbp)
cmpl   $0x63,-0x1a4(%rbp)
jg     11b2 <main+0x72>
mov    $0x0,%al
call   1060 <rand@plt>
mov    $0x64,%ecx
cltd
idiv   %ecx
movslq -0x1a4(%rbp),%rax
mov    %edx,-0x1a0(%rbp,%rax,4)
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    1174 <main+0x34>
lea    -0x430(%rbp),%rdi
xor    %esi,%esi
mov    $0x280,%edx
call   1040 <memset@plt>
lea    0xe34(%rip),%rax
mov    %rax,-0x430(%rbp)
lea    0xe2c(%rip),%rax
mov    %rax,-0x428(%rbp)
lea    0xe24(%rip),%rax
mov    %rax,-0x420(%rbp)
mov    -0x430(%rbp),%rax
lea    0xe13(%rip),%rdi
movsbl (%rax),%esi
call   1030 <printf@plt>
mov    -0x430(%rbp),%rdi
mov    0x2dd5(%rip),%rax
mov    (%rax),%edx
mov    $0x51,%esi
call   1050 <fgets@plt>
xor    %eax,%eax
add    $0x430,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x64,%ebx
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1050 <rand@plt>
add    $0xffffffff,%ebx
jne    1140 <main+0x10>
lea    0xeb3(%rip),%rdi
mov    $0x4c,%esi
call   1030 <printf@plt>
mov    0x2e84(%rip),%rax
mov    (%rax),%edx
lea    0xe93(%rip),%rdi
mov    $0x51,%esi
call   1040 <fgets@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"Limex\00"
@.str.1 = [6 x i8] c"Tango\00"
@.str.2 = [4 x i8] c"Dex\00"
@.str.3 = [3 x i8] c"%c\00"
@stdin = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32*
%6 = alloca [80 x i8*]
store i32 0, i32* %1
store i32 19, i32* %4
store i32* %4, i32** %5
store i32 0, i32* %3
br label %7
7: ; preds = %16, %0
%8 = load i32, i32* %3
%9 = icmp sle i32 %8, 99
br i1 %9, label %10, label %19
10: ; preds = %7
%11 = call i32 (...) @rand()
%12 = srem i32 %11, 100
%13 = load i32, i32* %3
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %14
store i32 %12, i32* %15
br label %16
16: ; preds = %10
%17 = load i32, i32* %3
%18 = add nsw i32 %17, 1
store i32 %18, i32* %3
br label %7
19: ; preds = %7
%20 = bitcast [80 x i8*]* %6 to i8*
%21 = bitcast i8* %20 to <{ i8*, i8*, i8*, [77 x i8*] }>*
%22 = getelementptr inbounds <{ i8*, i8*, i8*, [77 x i8*] }>, <{ i8*, i8*, i8*, [77 x i8*] }>* %21, i32 0, i32 0
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8** %22
%23 = getelementptr inbounds <{ i8*, i8*, i8*, [77 x i8*] }>, <{ i8*, i8*, i8*, [77 x i8*] }>* %21, i32 0, i32 1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i32 0, i32 0), i8** %23
%24 = getelementptr inbounds <{ i8*, i8*, i8*, [77 x i8*] }>, <{ i8*, i8*, i8*, [77 x i8*] }>* %21, i32 0, i32 2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8** %24
%25 = getelementptr inbounds [80 x i8*], [80 x i8*]* %6, i64 0, i64 0
%26 = load i8*, i8** %25
%27 = load i8, i8* %26
%28 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8 signext %27)
%29 = getelementptr inbounds [80 x i8*], [80 x i8*]* %6, i64 0, i64 0
%30 = load i8*, i8** %29
%31 = load i32, i32* @stdin
%32 = call i32 @fgets(i8* %30, i32 81, i32 %31)
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"Limex\00"
@.str.3 = [3 x i8] c"%c\00"
@stdin = global i32 0
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %4, %1 ]
%3 = tail call i32 (...) @rand()
%4 = add nuw nsw i32 %2, 1
%5 = icmp eq i32 %4, 100
br i1 %5, label %6, label %1
6: ; preds = %1
%7 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8 signext 76)
%8 = load i32, i32* @stdin
%9 = tail call i32 @fgets(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 81, i32 %8)
ret i32 0
}