#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 *, double);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int m, n, i;
  double result = 1.0;
  scanf("%d%d", &m, &n);
  for (i = 1; i <= n; i++) {
    result = result * m;
  }
  printf("%.f\n", result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xec9(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
lea    0xec5(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
movl   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     1184 <main+0x64>
movsd  -0x18(%rbp),%xmm0
cvtsi2sdl -0x8(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1157 <main+0x37>
movsd  -0x18(%rbp),%xmm0
lea    0xe7d(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee0(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
mov    (%rsp),%ecx
test   %ecx,%ecx
jle    1159 <main+0x39>
cvtsi2sdl 0x4(%rsp),%xmm1
lea    -0x1(%rcx),%edx
mov    %ecx,%eax
and    $0x7,%eax
cmp    $0x7,%edx
jae    1163 <main+0x43>
movsd  0xea9(%rip),%xmm0
jmp    1195 <main+0x75>
movsd  0xe9f(%rip),%xmm0
jmp    11a9 <main+0x89>
and    $0xfffffff8,%ecx
movsd  0xe92(%rip),%xmm0
xchg   %ax,%ax
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
add    $0xfffffff8,%ecx
jne    1170 <main+0x50>
test   %eax,%eax
je     11a9 <main+0x89>
nopl   0x0(%rax)
mulsd  %xmm1,%xmm0
add    $0xffffffff,%eax
jne    11a0 <main+0x80>
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [5 x i8] c"%.f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca double
store i32 0, i32* %1
store double 1.000000e+00, double* %5
%6 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3)
store i32 1, i32* %4
br label %7
7: ; preds = %16, %0
%8 = load i32, i32* %4
%9 = load i32, i32* %3
%10 = icmp sle i32 %8, %9
br i1 %10, label %11, label %19
11: ; preds = %7
%12 = load double, double* %5
%13 = load i32, i32* %2
%14 = sitofp i32 %13 to double
%15 = fmul double %12, %14
store double %15, double* %5
br label %16
16: ; preds = %11
%17 = load i32, i32* %4
%18 = add nsw i32 %17, 1
store i32 %18, i32* %4
br label %7
19: ; preds = %7
%20 = load double, double* %5
%21 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double %20)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [5 x i8] c"%.f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %2
%7 = icmp slt i32 %6, 1
br i1 %7, label %39, label %8
8: ; preds = %0
%9 = load i32, i32* %1
%10 = sitofp i32 %9 to double
%11 = add i32 %6, -1
%12 = and i32 %6, 7
%13 = icmp ult i32 %11, 7
br i1 %13, label %29, label %14
14: ; preds = %8
%15 = and i32 %6, -8
br label %16
16: ; preds = %16, %14
%17 = phi double [ 1.000000e+00, %14 ], [ %26, %16 ]
%18 = phi i32 [ 0, %14 ], [ %27, %16 ]
%19 = fmul double %17, %10
%20 = fmul double %19, %10
%21 = fmul double %20, %10
%22 = fmul double %21, %10
%23 = fmul double %22, %10
%24 = fmul double %23, %10
%25 = fmul double %24, %10
%26 = fmul double %25, %10
%27 = add i32 %18, 8
%28 = icmp eq i32 %27, %15
br i1 %28, label %29, label %16
29: ; preds = %16, %8
%30 = phi double [ undef, %8 ], [ %26, %16 ]
%31 = phi double [ 1.000000e+00, %8 ], [ %26, %16 ]
%32 = icmp eq i32 %12, 0
br i1 %32, label %39, label %33
33: ; preds = %29, %33
%34 = phi double [ %36, %33 ], [ %31, %29 ]
%35 = phi i32 [ %37, %33 ], [ 0, %29 ]
%36 = fmul double %34, %10
%37 = add i32 %35, 1
%38 = icmp eq i32 %37, %12
br i1 %38, label %39, label %33
39: ; preds = %29, %33, %0
%40 = phi double [ 1.000000e+00, %0 ], [ %30, %29 ], [ %36, %33 ]
%41 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double %40)
ret i32 0
}