#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*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int inteiros[199], i;
  for (i = 199; i >= 0; i--)
    scanf("%d", &inteiros[i]);
  for (i = 0; i < 199; i++)
    printf("%d ", inteiros[i]);
  printf("%d\n", inteiros[199]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x330,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xc7,-0x324(%rbp)
cmpl   $0x0,-0x324(%rbp)
jl     117e <main+0x5e>
movslq -0x324(%rbp),%rax
lea    -0x320(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe9b(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x324(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x324(%rbp)
jmp    113c <main+0x1c>
movl   $0x0,-0x324(%rbp)
cmpl   $0xc7,-0x324(%rbp)
jge    11c6 <main+0xa6>
movslq -0x324(%rbp),%rax
mov    -0x320(%rbp,%rax,4),%esi
lea    0xe56(%rip),%rdi
call   1030 <printf@plt>
mov    -0x324(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x324(%rbp)
jmp    1188 <main+0x68>
mov    -0x4(%rbp),%esi
lea    0xe37(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x330,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x328,%rsp
mov    $0x31c,%ebx
lea    0xeca(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
lea    (%rsp,%rbx,1),%rsi
mov    %r14,%rdi
call   1040 <scanf@plt>
add    $0xfffffffffffffffc,%rbx
cmp    $0xfffffffffffffffc,%rbx
jne    1140 <main+0x20>
xor    %ebx,%ebx
lea    0xea4(%rip),%r14
nop
mov    (%rsp,%rbx,4),%esi
mov    %r14,%rdi
call   1030 <printf@plt>
add    $0x1,%rbx
cmp    $0xc7,%rbx
jne    1160 <main+0x40>
mov    0x31c(%rsp),%esi
lea    0xe81(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x328,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%d \00"
@.str.2 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [199 x i32]
%3 = alloca i32
store i32 0, i32* %1
store i32 199, i32* %3
br label %4
4: ; preds = %12, %0
%5 = load i32, i32* %3
%6 = icmp sge i32 %5, 0
br i1 %6, label %7, label %15
7: ; preds = %4
%8 = load i32, i32* %3
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [199 x i32], [199 x i32]* %2, i64 0, i64 %9
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %10)
br label %12
12: ; preds = %7
%13 = load i32, i32* %3
%14 = add nsw i32 %13, -1
store i32 %14, i32* %3
br label %4
15: ; preds = %4
store i32 0, i32* %3
br label %16
16: ; preds = %25, %15
%17 = load i32, i32* %3
%18 = icmp slt i32 %17, 199
br i1 %18, label %19, label %28
19: ; preds = %16
%20 = load i32, i32* %3
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [199 x i32], [199 x i32]* %2, i64 0, i64 %21
%23 = load i32, i32* %22
%24 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %23)
br label %25
25: ; preds = %19
%26 = load i32, i32* %3
%27 = add nsw i32 %26, 1
store i32 %27, i32* %3
br label %16
28: ; preds = %16
%29 = getelementptr inbounds [199 x i32], [199 x i32]* %2, i64 0, i64 199
%30 = load i32, i32* %29
%31 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %30)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%d \00"
@.str.2 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca [199 x i32]
%2 = bitcast [199 x i32]* %1 to i8*
br label %3
3: ; preds = %0, %3
%4 = phi i64 [ 199, %0 ], [ %7, %3 ]
%5 = getelementptr inbounds [199 x i32], [199 x i32]* %1, i64 0, i64 %4
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %5)
%7 = add nsw i64 %4, -1
%8 = icmp eq i64 %4, 0
br i1 %8, label %9, label %3
9: ; preds = %3, %9
%10 = phi i64 [ %14, %9 ], [ 0, %3 ]
%11 = getelementptr inbounds [199 x i32], [199 x i32]* %1, i64 0, i64 %10
%12 = load i32, i32* %11
%13 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %12)
%14 = add nuw nsw i64 %10, 1
%15 = icmp eq i64 %14, 199
br i1 %15, label %16, label %9
16: ; preds = %9
%17 = getelementptr inbounds [199 x i32], [199 x i32]* %1, i64 0, i64 199
%18 = load i32, i32* %17
%19 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %18)
ret i32 0
}