#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 */
scalar_t__ pow(double, double);
int /*<<< orphan*/ printf(char *, int, unsigned int);
int /*<<< orphan*/ scanf(char *, unsigned short *);
int main() {
  unsigned short V;
  unsigned int N[10];
  scanf("%hu", &V);
  for (int i = 0; i < 10; i++) {
    N[i] = ((int)V) * ((int)pow(2.0, (double)i));
    printf("N[%d] = %u\n", i, N[i]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xec2(%rip),%rdi
lea    -0x6(%rbp),%rsi
call   1040 <scanf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    11ac <main+0x7c>
movzwl -0x6(%rbp),%eax
mov    %eax,-0x38(%rbp)
cvtsi2sdl -0x34(%rbp),%xmm1
movsd  0xe8c(%rip),%xmm0
call   1050 <pow@plt>
mov    -0x38(%rbp),%ecx
imul   %eax,%ecx
movslq -0x34(%rbp),%rax
mov    %ecx,-0x30(%rbp,%rax,4)
mov    -0x34(%rbp),%esi
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%edx
lea    0xe73(%rip),%rdi
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1156 <main+0x26>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
lea    0xf0e(%rip),%rdi
lea    0x6(%rsp),%rsi
call   1040 <scanf@plt>
movzwl 0x6(%rsp),%ebp
movsd  0xeaf(%rip),%xmm0
xorps  %xmm1,%xmm1
call   1050 <pow@plt>
imul   %eax,%ebp
lea    0xee9(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    %ebp,%edx
call   1030 <printf@plt>
movzwl 0x6(%rsp),%ebp
movsd  0xe8c(%rip),%xmm1
movsd  0xe7c(%rip),%xmm0
call   1050 <pow@plt>
imul   %eax,%ebp
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %ebp,%edx
call   1030 <printf@plt>
movzwl 0x6(%rsp),%ebp
movsd  0xe58(%rip),%xmm0
movaps %xmm0,%xmm1
call   1050 <pow@plt>
imul   %eax,%ebp
mov    %rbx,%rdi
mov    $0x2,%esi
mov    %ebp,%edx
call   1030 <printf@plt>
movzwl 0x6(%rsp),%ebp
movsd  0xe41(%rip),%xmm1
movsd  0xe29(%rip),%xmm0
call   1050 <pow@plt>
imul   %eax,%ebp
mov    %rbx,%rdi
mov    $0x3,%esi
mov    %ebp,%edx
call   1030 <printf@plt>
movzwl 0x6(%rsp),%ebp
movsd  0xe1d(%rip),%xmm1
movsd  0xdfd(%rip),%xmm0
call   1050 <pow@plt>
imul   %eax,%ebp
mov    %rbx,%rdi
mov    $0x4,%esi
mov    %ebp,%edx
call   1030 <printf@plt>
movzwl 0x6(%rsp),%ebp
movsd  0xdf9(%rip),%xmm1
movsd  0xdd1(%rip),%xmm0
call   1050 <pow@plt>
imul   %eax,%ebp
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %ebp,%edx
call   1030 <printf@plt>
movzwl 0x6(%rsp),%ebp
movsd  0xdd5(%rip),%xmm1
movsd  0xda5(%rip),%xmm0
call   1050 <pow@plt>
imul   %eax,%ebp
mov    %rbx,%rdi
mov    $0x6,%esi
mov    %ebp,%edx
call   1030 <printf@plt>
movzwl 0x6(%rsp),%ebp
movsd  0xdb1(%rip),%xmm1
movsd  0xd79(%rip),%xmm0
call   1050 <pow@plt>
imul   %eax,%ebp
mov    %rbx,%rdi
mov    $0x7,%esi
mov    %ebp,%edx
call   1030 <printf@plt>
movzwl 0x6(%rsp),%ebp
movsd  0xd8d(%rip),%xmm1
movsd  0xd4d(%rip),%xmm0
call   1050 <pow@plt>
imul   %eax,%ebp
mov    %rbx,%rdi
mov    $0x8,%esi
mov    %ebp,%edx
call   1030 <printf@plt>
movzwl 0x6(%rsp),%ebp
movsd  0xd69(%rip),%xmm1
movsd  0xd21(%rip),%xmm0
call   1050 <pow@plt>
imul   %eax,%ebp
mov    %rbx,%rdi
mov    $0x9,%esi
mov    %ebp,%edx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%hu\00"
@.str.1 = [12 x i8] c"N[%d] = %u\0A\00"
define i32 @main() {
%1 = alloca i16
%2 = bitcast i16* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i16* %1)
%4 = load i16, i16* %1
%5 = zext i16 %4 to i32
%6 = call i64 @pow(double 2.000000e+00, double 0.000000e+00)
%7 = trunc i64 %6 to i32
%8 = mul nsw i32 %7, %5
%9 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 %8)
%10 = load i16, i16* %1
%11 = zext i16 %10 to i32
%12 = call i64 @pow(double 2.000000e+00, double 1.000000e+00)
%13 = trunc i64 %12 to i32
%14 = mul nsw i32 %13, %11
%15 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 1, i32 %14)
%16 = load i16, i16* %1
%17 = zext i16 %16 to i32
%18 = call i64 @pow(double 2.000000e+00, double 2.000000e+00)
%19 = trunc i64 %18 to i32
%20 = mul nsw i32 %19, %17
%21 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 2, i32 %20)
%22 = load i16, i16* %1
%23 = zext i16 %22 to i32
%24 = call i64 @pow(double 2.000000e+00, double 3.000000e+00)
%25 = trunc i64 %24 to i32
%26 = mul nsw i32 %25, %23
%27 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 3, i32 %26)
%28 = load i16, i16* %1
%29 = zext i16 %28 to i32
%30 = call i64 @pow(double 2.000000e+00, double 4.000000e+00)
%31 = trunc i64 %30 to i32
%32 = mul nsw i32 %31, %29
%33 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 4, i32 %32)
%34 = load i16, i16* %1
%35 = zext i16 %34 to i32
%36 = call i64 @pow(double 2.000000e+00, double 5.000000e+00)
%37 = trunc i64 %36 to i32
%38 = mul nsw i32 %37, %35
%39 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 5, i32 %38)
%40 = load i16, i16* %1
%41 = zext i16 %40 to i32
%42 = call i64 @pow(double 2.000000e+00, double 6.000000e+00)
%43 = trunc i64 %42 to i32
%44 = mul nsw i32 %43, %41
%45 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 6, i32 %44)
%46 = load i16, i16* %1
%47 = zext i16 %46 to i32
%48 = call i64 @pow(double 2.000000e+00, double 7.000000e+00)
%49 = trunc i64 %48 to i32
%50 = mul nsw i32 %49, %47
%51 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 7, i32 %50)
%52 = load i16, i16* %1
%53 = zext i16 %52 to i32
%54 = call i64 @pow(double 2.000000e+00, double 8.000000e+00)
%55 = trunc i64 %54 to i32
%56 = mul nsw i32 %55, %53
%57 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 8, i32 %56)
%58 = load i16, i16* %1
%59 = zext i16 %58 to i32
%60 = call i64 @pow(double 2.000000e+00, double 9.000000e+00)
%61 = trunc i64 %60 to i32
%62 = mul nsw i32 %61, %59
%63 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 9, i32 %62)
ret i32 0
}