#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 EXIT_SUCCESS;
int /*<<< orphan*/ calculate(int *, int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ stdin;
int main(void) {
  int n, array[200] = {0};
  printf("½Ð¼Æ¤J20~50ªº¼Æ¦r¡G");
  fflush(stdin);
  scanf("%d", &n);
  if (n < 20)
    printf("¿é¤J¿ù»~!!!\7\7\7");
  else
    calculate(array, n);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x330,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x330(%rbp),%rdi
xor    %esi,%esi
mov    $0x320,%edx
call   1050 <memset@plt>
lea    0xe84(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e60(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
lea    0xe89(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1070 <scanf@plt>
cmpl   $0x14,-0x8(%rbp)
jge    11ba <main+0x6a>
lea    0xe72(%rip),%rdi
call   1030 <printf@plt>
jmp    11c9 <main+0x79>
lea    -0x330(%rbp),%rdi
mov    -0x8(%rbp),%esi
call   1040 <calculate@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%eax
add    $0x330,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x338,%rsp
lea    0x10(%rsp),%rdi
mov    $0x320,%edx
xor    %esi,%esi
call   1050 <memset@plt>
lea    0xe91(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e6d(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
lea    0xe96(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1070 <scanf@plt>
mov    0xc(%rsp),%esi
cmp    $0x13,%esi
jg     11aa <main+0x5a>
lea    0xe7f(%rip),%rdi
call   1030 <printf@plt>
jmp    11b4 <main+0x64>
lea    0x10(%rsp),%rdi
call   1040 <calculate@plt>
mov    0x2e1d(%rip),%rax
mov    (%rax),%eax
add    $0x338,%rsp
ret

LLVM IR (-O0):
@.str = [31 x i8] c"\C2\BD\C3\90\C2\BC\C3\86\C2\A4J20~50\C2\AA\C2\BA\C2\BC\C3\86\C2\A6r\C2\A1G\00"
@stdin = global i32 0
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [21 x i8] c"\C2\BF\C3\A9\C2\A4J\C2\BF\C3\B9\C2\BB~!!!\07\07\07\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [200 x i32]
store i32 0, i32* %1
%4 = bitcast [200 x i32]* %3 to i8*
%5 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* @stdin
%7 = call i32 @fflush(i32 %6)
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%9 = load i32, i32* %2
%10 = icmp slt i32 %9, 20
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %17
13: ; preds = %0
%14 = getelementptr inbounds [200 x i32], [200 x i32]* %3, i64 0, i64 0
%15 = load i32, i32* %2
%16 = call i32 @calculate(i32* %14, i32 %15)
br label %17
17: ; preds = %13, %11
%18 = load i32, i32* @EXIT_SUCCESS
ret i32 %18
}

LLVM IR (-O2):
@.str = [31 x i8] c"\C2\BD\C3\90\C2\BC\C3\86\C2\A4J20~50\C2\AA\C2\BA\C2\BC\C3\86\C2\A6r\C2\A1G\00"
@stdin = global i32 0
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [21 x i8] c"\C2\BF\C3\A9\C2\A4J\C2\BF\C3\B9\C2\BB~!!!\07\07\07\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca [200 x i32]
%3 = bitcast i32* %1 to i8*
%4 = bitcast [200 x i32]* %2 to i8*
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* @stdin
%7 = tail call i32 @fflush(i32 %6)
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%9 = load i32, i32* %1
%10 = icmp slt i32 %9, 20
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %16
13: ; preds = %0
%14 = getelementptr inbounds [200 x i32], [200 x i32]* %2, i64 0, i64 0
%15 = call i32 @calculate(i32* %14, i32 %9)
br label %16
16: ; preds = %13, %11
%17 = load i32, i32* @EXIT_SUCCESS
ret i32 %17
}