#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*/ printSumVector(int *, int *, int);
int /*<<< orphan*/ readVector(int *, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int size = -1;
  while (size != 0) {
    scanf("%d", &size);
    if (size != 0) {
      int vecOne[size];
      int vecTwo[size];
      readVector(vecOne, size);
      readVector(vecTwo, size);
      printSumVector(vecOne, vecTwo, size);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xffffffff,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     11e1 <main+0xb1>
lea    0xea9(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
je     11dc <main+0xac>
mov    -0x8(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x10(%rbp)
lea    0xf(,%rax,4),%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,-0x30(%rbp)
mov    %rdi,%rsp
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%esi
call   1050 <readVector@plt>
mov    -0x28(%rbp),%rdi
mov    -0x8(%rbp),%esi
call   1050 <readVector@plt>
mov    -0x30(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x8(%rbp),%edx
call   1030 <printSumVector@plt>
mov    -0x10(%rbp),%rax
mov    %rax,%rsp
jmp    1146 <main+0x16>
xor    %eax,%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
movl   $0xffffffff,-0x2c(%rbp)
lea    0xeb4(%rip),%r14
lea    -0x2c(%rbp),%r15
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <scanf@plt>
mov    -0x2c(%rbp),%eax
test   %rax,%rax
je     11bd <main+0x8d>
mov    %rsp,%r13
mov    %rsp,%r12
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
mov    -0x2c(%rbp),%esi
mov    %rsp,%rbx
lea    0xf(,%rsi,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    %r12,%rdi
call   1050 <readVector@plt>
mov    -0x2c(%rbp),%esi
mov    %rbx,%rdi
call   1050 <readVector@plt>
mov    -0x2c(%rbp),%edx
mov    %r12,%rdi
mov    %rbx,%rsi
call   1030 <printSumVector@plt>
mov    %r13,%rsp
cmpl   $0x0,-0x2c(%rbp)
jne    1150 <main+0x20>
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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