#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 /*<<< orphan*/ scanf(char *, int *, int *, int *, int *, int *, int *);
int main() {
  int tablica[6];
  printf("Podaj 6 licz calkowitych: \n");
  scanf("%d %d %d %d %d %d", &tablica[0], &tablica[1], &tablica[2], &tablica[3],
        &tablica[4], &tablica[5]);
  printf("%d %d %d %d %d %d\n", tablica[0], tablica[1], tablica[2], tablica[3],
         tablica[4], tablica[5]);
  printf("%d %d %d %d %d %d\n", tablica[5], tablica[4], tablica[3], tablica[2],
         tablica[1], tablica[0]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x20(%rbp),%rsi
lea    -0x20(%rbp),%rdx
add    $0x4,%rdx
lea    -0x20(%rbp),%rcx
add    $0x8,%rcx
lea    -0x20(%rbp),%r8
add    $0xc,%r8
lea    -0x20(%rbp),%r9
add    $0x10,%r9
lea    -0x20(%rbp),%rax
add    $0x14,%rax
lea    0xeb3(%rip),%rdi
mov    %rax,(%rsp)
call   1040 <scanf@plt>
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    -0x10(%rbp),%r9d
mov    -0xc(%rbp),%eax
lea    0xea1(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
mov    -0x20(%rbp),%eax
lea    0xe7c(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x30,%rsp
lea    0xee9(%rip),%rdi
call   1030 <puts@plt>
lea    0x14(%rsp),%rdx
lea    0x18(%rsp),%rcx
lea    0x1c(%rsp),%r8
lea    0x20(%rsp),%r9
lea    0x24(%rsp),%rax
mov    %rax,(%rsp)
lea    0xe9b(%rip),%rdi
lea    0x10(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x10(%rsp),%esi
mov    0x14(%rsp),%edx
mov    0x18(%rsp),%ecx
mov    0x1c(%rsp),%r8d
mov    0x20(%rsp),%r9d
mov    0x24(%rsp),%eax
mov    %eax,(%rsp)
lea    0xe7f(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x24(%rsp),%esi
mov    0x20(%rsp),%edx
mov    0x1c(%rsp),%ecx
mov    0x18(%rsp),%r8d
mov    0x10(%rsp),%eax
mov    0x14(%rsp),%r9d
mov    %eax,(%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [28 x i8] c"Podaj 6 licz calkowitych: \0A\00"
@.str.1 = [18 x i8] c"%d %d %d %d %d %d\00"
@.str.2 = [19 x i8] c"%d %d %d %d %d %d\0A\00"
define i32 @main() {
%1 = alloca [6 x i32]
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%3 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 0
%4 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 1
%5 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 2
%6 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 3
%7 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 4
%8 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 5
%9 = call i32 @scanf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i32* %8)
%10 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 0
%11 = load i32, i32* %10
%12 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 1
%13 = load i32, i32* %12
%14 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 2
%15 = load i32, i32* %14
%16 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 3
%17 = load i32, i32* %16
%18 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 4
%19 = load i32, i32* %18
%20 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 5
%21 = load i32, i32* %20
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 %11, i32 %13, i32 %15, i32 %17, i32 %19, i32 %21)
%23 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 5
%24 = load i32, i32* %23
%25 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 4
%26 = load i32, i32* %25
%27 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 3
%28 = load i32, i32* %27
%29 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 2
%30 = load i32, i32* %29
%31 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 1
%32 = load i32, i32* %31
%33 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 0
%34 = load i32, i32* %33
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 %24, i32 %26, i32 %28, i32 %30, i32 %32, i32 %34)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [18 x i8] c"%d %d %d %d %d %d\00"
@.str.2 = [19 x i8] c"%d %d %d %d %d %d\0A\00"
@str = [27 x i8] c"Podaj 6 licz calkowitych: \00"
define i32 @main() {
%1 = alloca [6 x i32]
%2 = bitcast [6 x i32]* %1 to i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str, i64 0, i64 0))
%4 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 0
%5 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 1
%6 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 2
%7 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 3
%8 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 4
%9 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 5
%10 = call i32 @scanf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32* %4, i32* %5, i32* %6, i32* %7, i32* %8, i32* %9)
%11 = load i32, i32* %4
%12 = load i32, i32* %5
%13 = load i32, i32* %6
%14 = load i32, i32* %7
%15 = load i32, i32* %8
%16 = load i32, i32* %9
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 %11, i32 %12, i32 %13, i32 %14, i32 %15, i32 %16)
%18 = load i32, i32* %9
%19 = load i32, i32* %8
%20 = load i32, i32* %7
%21 = load i32, i32* %6
%22 = load i32, i32* %5
%23 = load i32, i32* %4
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 %18, i32 %19, i32 %20, i32 %21, i32 %22, i32 %23)
ret i32 0
}