#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ free(float *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, ...);
scalar_t__ malloc(int);
float pow(float, float);
int main() {
  int i = 0;
  int n = 0;
  FILE *finp = fopen("inp.txt", "r");
  FILE *fout = fopen("out.txt", "w");
  float *a = NULL;
  float *b = NULL;
  float c = 0.;
  fscanf(finp, "%d", &n);
  fprintf(fout, "%d\n", n);
  a = (float *)malloc(n * sizeof(float));
  b = (float *)malloc(n * sizeof(float));
  for (i = 0; i < n; ++i) {
    fscanf(finp, "%f", &(a[i]));
  }
  for (i = 0; i < n; ++i) {
    fscanf(finp, "%f", &(b[i]));
  }
  fclose(finp);
  for (i = 0; i < n; ++i) {
    c = pow(a[i], b[i]);
    fprintf(fout, "%f ", c);
  }
  fprintf(fout, "\n");
  fclose(fout);
  free(a);
  a = NULL;
  free(b);
  b = NULL;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
lea    0xe6c(%rip),%rdi
lea    0xe6d(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
lea    0xe5f(%rip),%rdi
lea    0xe60(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x34(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe36(%rip),%rsi
lea    -0xc(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x20(%rbp),%rdi
mov    -0xc(%rbp),%edx
lea    0xe20(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movslq -0xc(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x28(%rbp)
movslq -0xc(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1266 <main+0xf6>
mov    -0x18(%rbp),%rdi
mov    -0x28(%rbp),%rdx
movslq -0x8(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
lea    0xdca(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    122b <main+0xbb>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12a8 <main+0x138>
mov    -0x18(%rbp),%rdi
mov    -0x30(%rbp),%rdx
movslq -0x8(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
lea    0xd88(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    126d <main+0xfd>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1311 <main+0x1a1>
mov    -0x28(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x8(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm1
call   1090 <pow@plt>
movss  %xmm0,-0x34(%rbp)
mov    -0x20(%rbp),%rdi
movss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd22(%rip),%rsi
mov    $0x1,%al
call   1060 <fprintf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12b8 <main+0x148>
mov    -0x20(%rbp),%rdi
lea    0xcfd(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x28(%rbp)
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x30(%rbp)
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
movl   $0x0,0xc(%rsp)
lea    0xe63(%rip),%rdi
lea    0xe64(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%r15
lea    0xe57(%rip),%rdi
lea    0xe58(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%r14
lea    0xe4b(%rip),%rsi
lea    0xc(%rsp),%rdx
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    0xc(%rsp),%edx
lea    0xe34(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0xc(%rsp),%edi
shl    $0x2,%edi
call   1080 <malloc@plt>
mov    %rax,0x10(%rsp)
mov    0xc(%rsp),%edi
shl    $0x2,%edi
call   1080 <malloc@plt>
mov    %rax,%r12
cmpl   $0x0,0xc(%rsp)
jle    1292 <main+0x112>
mov    %r14,%rbx
lea    0xdfd(%rip),%r13
mov    0x10(%rsp),%rbp
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
add    $0x1,%r14
movslq 0xc(%rsp),%rax
add    $0x4,%rbp
cmp    %rax,%r14
jl     1230 <main+0xb0>
test   %eax,%eax
mov    %rbx,%r14
jle    1292 <main+0x112>
lea    0xdbb(%rip),%r13
mov    %r12,%rbp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
add    $0x1,%rbx
movslq 0xc(%rsp),%rax
add    $0x4,%rbp
cmp    %rax,%rbx
jl     1270 <main+0xf0>
mov    %r15,%rdi
call   1040 <fclose@plt>
cmpl   $0x0,0xc(%rsp)
mov    0x10(%rsp),%rbx
jle    12df <main+0x15f>
xor    %ebp,%ebp
lea    0xd6f(%rip),%r15
nop
movss  (%rbx,%rbp,4),%xmm0
movss  (%r12,%rbp,4),%xmm1
call   10a0 <pow@plt>
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
add    $0x1,%rbp
movslq 0xc(%rsp),%rax
cmp    %rax,%rbp
jl     12b0 <main+0x130>
mov    $0xa,%edi
mov    %r14,%rsi
call   1060 <fputc@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"inp.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [8 x i8] c"out.txt\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [4 x i8] c"%d\0A\00"
@.str.6 = [3 x i8] c"%f\00"
@.str.7 = [4 x i8] c"%f \00"
@.str.8 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca float*
%7 = alloca float*
%8 = alloca float
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
%9 = call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %9, i32** %4
%10 = call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %10, i32** %5
store float* null, float** %6
store float* null, float** %7
store float 0.000000e+00, float* %8
%11 = load i32*, i32** %4
%12 = call i32 (i32*, i8*, ...) @fscanf(i32* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%13 = load i32*, i32** %5
%14 = load i32, i32* %3
%15 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %14)
%16 = load i32, i32* %3
%17 = sext i32 %16 to i64
%18 = mul i64 %17, 4
%19 = trunc i64 %18 to i32
%20 = call i64 @malloc(i32 %19)
%21 = inttoptr i64 %20 to float*
store float* %21, float** %6
%22 = load i32, i32* %3
%23 = sext i32 %22 to i64
%24 = mul i64 %23, 4
%25 = trunc i64 %24 to i32
%26 = call i64 @malloc(i32 %25)
%27 = inttoptr i64 %26 to float*
store float* %27, float** %7
store i32 0, i32* %2
br label %28
28: ; preds = %39, %0
%29 = load i32, i32* %2
%30 = load i32, i32* %3
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %42
32: ; preds = %28
%33 = load i32*, i32** %4
%34 = load float*, float** %6
%35 = load i32, i32* %2
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds float, float* %34, i64 %36
%38 = call i32 (i32*, i8*, ...) @fscanf(i32* %33, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), float* %37)
br label %39
39: ; preds = %32
%40 = load i32, i32* %2
%41 = add nsw i32 %40, 1
store i32 %41, i32* %2
br label %28
42: ; preds = %28
store i32 0, i32* %2
br label %43
43: ; preds = %54, %42
%44 = load i32, i32* %2
%45 = load i32, i32* %3
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %57
47: ; preds = %43
%48 = load i32*, i32** %4
%49 = load float*, float** %7
%50 = load i32, i32* %2
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds float, float* %49, i64 %51
%53 = call i32 (i32*, i8*, ...) @fscanf(i32* %48, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), float* %52)
br label %54
54: ; preds = %47
%55 = load i32, i32* %2
%56 = add nsw i32 %55, 1
store i32 %56, i32* %2
br label %43
57: ; preds = %43
%58 = load i32*, i32** %4
%59 = call i32 @fclose(i32* %58)
store i32 0, i32* %2
br label %60
60: ; preds = %80, %57
%61 = load i32, i32* %2
%62 = load i32, i32* %3
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %83
64: ; preds = %60
%65 = load float*, float** %6
%66 = load i32, i32* %2
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds float, float* %65, i64 %67
%69 = load float, float* %68
%70 = load float*, float** %7
%71 = load i32, i32* %2
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds float, float* %70, i64 %72
%74 = load float, float* %73
%75 = call float @pow(float %69, float %74)
store float %75, float* %8
%76 = load i32*, i32** %5
%77 = load float, float* %8
%78 = fpext float %77 to double
%79 = call i32 (i32*, i8*, ...) @fprintf(i32* %76, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), double %78)
br label %80
80: ; preds = %64
%81 = load i32, i32* %2
%82 = add nsw i32 %81, 1
store i32 %82, i32* %2
br label %60
83: ; preds = %60
%84 = load i32*, i32** %5
%85 = call i32 (i32*, i8*, ...) @fprintf(i32* %84, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%86 = load i32*, i32** %5
%87 = call i32 @fclose(i32* %86)
%88 = load float*, float** %6
%89 = call i32 @free(float* %88)
store float* null, float** %6
%90 = load float*, float** %7
%91 = call i32 @free(float* %90)
store float* null, float** %7
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"inp.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [8 x i8] c"out.txt\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [4 x i8] c"%d\0A\00"
@.str.6 = [3 x i8] c"%f\00"
@.str.7 = [4 x i8] c"%f \00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%3 = tail call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i32*, i8*, ...) @fscanf(i32* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%6 = load i32, i32* %1
%7 = call i32 (i32*, i8*, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %6)
%8 = load i32, i32* %1
%9 = shl i32 %8, 2
%10 = call i64 @malloc(i32 %9)
%11 = inttoptr i64 %10 to float*
%12 = load i32, i32* %1
%13 = shl i32 %12, 2
%14 = call i64 @malloc(i32 %13)
%15 = inttoptr i64 %14 to float*
%16 = load i32, i32* %1
%17 = icmp sgt i32 %16, 0
br i1 %17, label %20, label %36
18: ; preds = %20
%19 = icmp sgt i32 %25, 0
br i1 %19, label %28, label %36
20: ; preds = %0, %20
%21 = phi i64 [ %24, %20 ], [ 0, %0 ]
%22 = getelementptr inbounds float, float* %11, i64 %21
%23 = call i32 (i32*, i8*, ...) @fscanf(i32* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), float* %22)
%24 = add nuw nsw i64 %21, 1
%25 = load i32, i32* %1
%26 = sext i32 %25 to i64
%27 = icmp slt i64 %24, %26
br i1 %27, label %20, label %18
28: ; preds = %18, %28
%29 = phi i64 [ %32, %28 ], [ 0, %18 ]
%30 = getelementptr inbounds float, float* %15, i64 %29
%31 = call i32 (i32*, i8*, ...) @fscanf(i32* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), float* %30)
%32 = add nuw nsw i64 %29, 1
%33 = load i32, i32* %1
%34 = sext i32 %33 to i64
%35 = icmp slt i64 %32, %34
br i1 %35, label %28, label %36
36: ; preds = %28, %0, %18
%37 = call i32 @fclose(i32* %3)
%38 = load i32, i32* %1
%39 = icmp sgt i32 %38, 0
br i1 %39, label %40, label %53
40: ; preds = %36, %40
%41 = phi i64 [ %49, %40 ], [ 0, %36 ]
%42 = getelementptr inbounds float, float* %11, i64 %41
%43 = load float, float* %42
%44 = getelementptr inbounds float, float* %15, i64 %41
%45 = load float, float* %44
%46 = call float @pow(float %43, float %45)
%47 = fpext float %46 to double
%48 = call i32 (i32*, i8*, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), double %47)
%49 = add nuw nsw i64 %41, 1
%50 = load i32, i32* %1
%51 = sext i32 %50 to i64
%52 = icmp slt i64 %49, %51
br i1 %52, label %40, label %53
53: ; preds = %40, %36
%54 = call i32 @fputc(i32 10, i32* %4)
%55 = call i32 @fclose(i32* %4)
%56 = call i32 @free(float* %11)
%57 = call i32 @free(float* %15)
ret i32 0
}