#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 */
double pow(int, float);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int x, y;
  printf("X \t");
  for (x = -1; x <= 9; x++) {
    for (y = 0; y <= 9; y++) {
      if (x == -1 && y > 0)
        printf("0.%d \t", y);
      else if (y == 0 && x >= 0)
        printf("%d.0 \t", x);
      if (x >= 0 && y > 0)
        printf("%.2f \t", pow(x, -((float)y / 10)));
    }
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0xffffffff,-0x8(%rbp)
cmpl   $0x9,-0x8(%rbp)
jg     122a <main+0x10a>
movl   $0x0,-0xc(%rbp)
cmpl   $0x9,-0xc(%rbp)
jg     120e <main+0xee>
cmpl   $0xffffffff,-0x8(%rbp)
jne    1189 <main+0x69>
cmpl   $0x0,-0xc(%rbp)
jle    1189 <main+0x69>
mov    -0xc(%rbp),%esi
lea    0xe8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11b3 <main+0x93>
cmpl   $0x0,-0xc(%rbp)
jne    11ae <main+0x8e>
cmpl   $0x0,-0x8(%rbp)
jl     11ae <main+0x8e>
mov    -0x8(%rbp),%esi
lea    0xe68(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11b3 <main+0x93>
cmpl   $0x0,-0x8(%rbp)
jl     11fb <main+0xdb>
cmpl   $0x0,-0xc(%rbp)
jle    11fb <main+0xdb>
mov    -0x8(%rbp),%edi
cvtsi2ssl -0xc(%rbp),%xmm0
movss  0xe29(%rip),%xmm1
divss  %xmm1,%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
call   1040 <pow@plt>
lea    0xe22(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    1200 <main+0xe0>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1155 <main+0x35>
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1144 <main+0x24>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xffffffff,%ebx
lea    0xeb6(%rip),%r14
lea    0xeb6(%rip),%r15
lea    0xeb6(%rip),%r12
jmp    1182 <main+0x52>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%ebx
cmp    $0xa,%ebx
je     11eb <main+0xbb>
xor    %ebp,%ebp
jmp    11a4 <main+0x74>
cs nopw 0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%ebp
cmp    $0xa,%ebp
je     1170 <main+0x40>
cmp    $0xffffffff,%ebx
jne    11ad <main+0x7d>
test   %ebp,%ebp
jne    1190 <main+0x60>
test   %ebp,%ebp
jne    11c1 <main+0x91>
test   %ebx,%ebx
js     11c1 <main+0x91>
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
test   %ebx,%ebx
js     119c <main+0x6c>
test   %ebp,%ebp
je     119c <main+0x6c>
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
divss  0xe28(%rip),%xmm0
mov    %ebx,%edi
call   1050 <pow@plt>
mov    %r12,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    119c <main+0x6c>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"X \09\00"
@.str.1 = [7 x i8] c"0.%d \09\00"
@.str.2 = [7 x i8] c"%d.0 \09\00"
@.str.3 = [7 x i8] c"%.2f \09\00"
@.str.4 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
store i32 -1, i32* %2
br label %5
5: ; preds = %51, %0
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 9
br i1 %7, label %8, label %54
8: ; preds = %5
store i32 0, i32* %3
br label %9
9: ; preds = %46, %8
%10 = load i32, i32* %3
%11 = icmp sle i32 %10, 9
br i1 %11, label %12, label %49
12: ; preds = %9
%13 = load i32, i32* %2
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %21
15: ; preds = %12
%16 = load i32, i32* %3
%17 = icmp sgt i32 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = load i32, i32* %3
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %19)
br label %31
21: ; preds = %15, %12
%22 = load i32, i32* %3
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %30
24: ; preds = %21
%25 = load i32, i32* %2
%26 = icmp sge i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = load i32, i32* %2
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %28)
br label %30
30: ; preds = %27, %24, %21
br label %31
31: ; preds = %30, %18
%32 = load i32, i32* %2
%33 = icmp sge i32 %32, 0
br i1 %33, label %34, label %45
34: ; preds = %31
%35 = load i32, i32* %3
%36 = icmp sgt i32 %35, 0
br i1 %36, label %37, label %45
37: ; preds = %34
%38 = load i32, i32* %2
%39 = load i32, i32* %3
%40 = sitofp i32 %39 to float
%41 = fdiv float %40, 1.000000e+01
%42 = fneg float %41
%43 = call double @pow(i32 %38, float %42)
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %43)
br label %45
45: ; preds = %37, %34, %31
br label %46
46: ; preds = %45
%47 = load i32, i32* %3
%48 = add nsw i32 %47, 1
store i32 %48, i32* %3
br label %9
49: ; preds = %9
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %51
51: ; preds = %49
%52 = load i32, i32* %2
%53 = add nsw i32 %52, 1
store i32 %53, i32* %2
br label %5
54: ; preds = %5
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"X \09\00"
@.str.1 = [7 x i8] c"0.%d \09\00"
@.str.2 = [7 x i8] c"%d.0 \09\00"
@.str.3 = [7 x i8] c"%.2f \09\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
br label %2
2: ; preds = %0, %27
%3 = phi i32 [ -1, %0 ], [ %29, %27 ]
%4 = icmp eq i32 %3, -1
%5 = icmp sgt i32 %3, -1
br label %6
6: ; preds = %2, %24
%7 = phi i32 [ 0, %2 ], [ %25, %24 ]
%8 = icmp ne i32 %7, 0
%9 = select i1 %4, i1 %8, i1 false
br i1 %9, label %10, label %12
10: ; preds = %6
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %7)
br label %24
12: ; preds = %6
%13 = icmp eq i32 %7, 0
%14 = select i1 %13, i1 %5, i1 false
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %3)
br label %17
17: ; preds = %12, %15
%18 = select i1 %5, i1 %8, i1 false
br i1 %18, label %19, label %24
19: ; preds = %17
%20 = sitofp i32 %7 to float
%21 = fdiv float %20, -1.000000e+01
%22 = tail call double @pow(i32 %3, float %21)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double %22)
br label %24
24: ; preds = %10, %17, %19
%25 = add nuw nsw i32 %7, 1
%26 = icmp eq i32 %25, 10
br i1 %26, label %27, label %6
27: ; preds = %24
%28 = tail call i32 @putchar(i32 10)
%29 = add nsw i32 %3, 1
%30 = icmp eq i32 %29, 10
br i1 %30, label %31, label %2
31: ; preds = %27
ret i32 0
}