#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*/ mostrar_vector(char *, int *, int);
int /*<<< orphan*/ pedir_vector(char *, int *, int);
int main() {
  int a[4];
  int b[7];
  pedir_vector("a", a, 4);
  pedir_vector("b", b, 7);
  mostrar_vector("a", a, 4);
  mostrar_vector("b", b, 7);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x20(%rbp),%rsi
lea    0xec6(%rip),%rdi
mov    $0x4,%edx
call   1030 <pedir_vector@plt>
lea    -0x40(%rbp),%rsi
lea    0xeb3(%rip),%rdi
mov    $0x7,%edx
call   1030 <pedir_vector@plt>
lea    -0x20(%rbp),%rsi
lea    0xe9c(%rip),%rdi
mov    $0x4,%edx
call   1040 <mostrar_vector@plt>
lea    -0x40(%rbp),%rsi
lea    0xe89(%rip),%rdi
mov    $0x7,%edx
call   1040 <mostrar_vector@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x38,%rsp
lea    0xece(%rip),%r15
mov    %rsp,%r14
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0x4,%edx
call   1030 <pedir_vector@plt>
lea    0xeb6(%rip),%rbx
lea    0x10(%rsp),%r12
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x7,%edx
call   1030 <pedir_vector@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0x4,%edx
call   1040 <mostrar_vector@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x7,%edx
call   1040 <mostrar_vector@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [2 x i8] c"a\00"
@.str.1 = [2 x i8] c"b\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x i32]
%3 = alloca [7 x i32]
store i32 0, i32* %1
%4 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 0
%5 = call i32 @pedir_vector(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32* %4, i32 4)
%6 = getelementptr inbounds [7 x i32], [7 x i32]* %3, i64 0, i64 0
%7 = call i32 @pedir_vector(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* %6, i32 7)
%8 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 0
%9 = call i32 @mostrar_vector(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32* %8, i32 4)
%10 = getelementptr inbounds [7 x i32], [7 x i32]* %3, i64 0, i64 0
%11 = call i32 @mostrar_vector(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* %10, i32 7)
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"a\00"
@.str.1 = [2 x i8] c"b\00"
define i32 @main() {
%1 = alloca [4 x i32]
%2 = alloca [7 x i32]
%3 = bitcast [4 x i32]* %1 to i8*
%4 = bitcast [7 x i32]* %2 to i8*
%5 = getelementptr inbounds [4 x i32], [4 x i32]* %1, i64 0, i64 0
%6 = call i32 @pedir_vector(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32* %5, i32 4)
%7 = getelementptr inbounds [7 x i32], [7 x i32]* %2, i64 0, i64 0
%8 = call i32 @pedir_vector(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* %7, i32 7)
%9 = call i32 @mostrar_vector(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32* %5, i32 4)
%10 = call i32 @mostrar_vector(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* %7, i32 7)
ret i32 0
}