#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 ceil(int);
double floor(int);
int /*<<< orphan*/ free(int *);
int log10(double);
int *malloc(int);
double pow(double, int);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int *result_x = malloc(55 * sizeof(int));
  int *result_y = malloc(55 * sizeof(int));
  int maiorY = 330, menorY = 60, maiorX = 330, menorX = 60, rangeY, rangeX,
      tick = 10;
  if (menorY == maiorY) {
    menorY -= 10;
    maiorY += 10;
  }
  if (menorX == maiorX) {
    menorX -= 10;
    maiorX += 10;
  }
  rangeY = maiorY - menorY;
  rangeX = maiorX - menorY;
  if (tick < 2) {
    tick = 2;
  } else if (tick > 2) {
    tick -= 2;
  }
  double tempStepX = rangeX / tick, tempStepY = rangeY / tick;
  double mag_x = floor(log10(tempStepX)), mag_y = floor(log10(tempStepY));
  double mag_x_pow = pow(mag_x, 10), mag_y_pow = pow(mag_y, 10);
  double magMsd_x = tempStepX / (mag_x_pow + 0.5),
         magMsd_y = tempStepY / (mag_y_pow + 0.5);
  double stepSize_x = magMsd_x * mag_x_pow, stepSize_y = magMsd_y * mag_y_pow;
  double lb_y = stepSize_y * floor(menorY / stepSize_y);
  double ub_y = stepSize_y * ceil((maiorY / stepSize_y));
  double lb_x = stepSize_x * floor(menorX / stepSize_x);
  double ub_x = stepSize_x * ceil((maiorX / stepSize_x));
  int val_x = lb_x, val_y = lb_y;
  int loop = 0;
  while (1 && loop < 55) {
    printf("%d %d %0.2lf\n", loop, val_x, stepSize_x);
    result_x[loop] = val_x;
    val_x += stepSize_x;
    loop++;
    if (val_x > ub_x) {
      break;
    }
  }
  int loop_y = 0;
  while (1 && loop_y < 55) {
    int desprezo = val_y;
    result_y[loop_y] = desprezo;
    val_y += stepSize_y;
    loop_y++;
    if (val_y > ub_y) {
      break;
    }
  }
  printf("x: ");
  for (int aux = 0; aux < loop; aux++) {
    printf(":%d: %d ", aux, result_x[aux]);
  }
  printf("\n");
  printf("y: ");
  for (int aux = 0; aux < loop_y; aux++) {
    printf("%d ", result_y[aux]);
  }
  free(result_x);
  free(result_y);
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0xdc,%edi
call   1060 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    $0xdc,%edi
call   1060 <malloc@plt>
mov    %rax,-0x18(%rbp)
movl   $0x14a,-0x1c(%rbp)
movl   $0x3c,-0x20(%rbp)
movl   $0x14a,-0x24(%rbp)
movl   $0x3c,-0x28(%rbp)
movl   $0xa,-0x34(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jne    11df <main+0x6f>
mov    -0x20(%rbp),%eax
sub    $0xa,%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jne    11fd <main+0x8d>
mov    -0x28(%rbp),%eax
sub    $0xa,%eax
mov    %eax,-0x28(%rbp)
mov    -0x24(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x24(%rbp)
mov    -0x1c(%rbp),%eax
sub    -0x20(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x24(%rbp),%eax
sub    -0x20(%rbp),%eax
mov    %eax,-0x30(%rbp)
cmpl   $0x2,-0x34(%rbp)
jge    1225 <main+0xb5>
movl   $0x2,-0x34(%rbp)
jmp    123d <main+0xcd>
cmpl   $0x2,-0x34(%rbp)
jle    1238 <main+0xc8>
mov    -0x34(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x34(%rbp)
jmp    123d <main+0xcd>
mov    -0x30(%rbp),%eax
cltd
idivl  -0x34(%rbp)
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x2c(%rbp),%eax
cltd
idivl  -0x34(%rbp)
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1080 <log10@plt>
mov    %eax,%edi
call   1090 <floor@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1080 <log10@plt>
mov    %eax,%edi
call   1090 <floor@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x50(%rbp),%xmm0
mov    $0xa,%edi
call   1070 <pow@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  -0x58(%rbp),%xmm0
mov    $0xa,%edi
call   1070 <pow@plt>
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  0xd42(%rip),%xmm1
addsd  -0x60(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  0xd27(%rip),%xmm1
addsd  -0x68(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x70(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x78(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0xe8(%rbp)
ff
cvtsi2sdl -0x20(%rbp),%xmm0
divsd  -0x88(%rbp),%xmm0
ff
cvttsd2si %xmm0,%edi
call   1090 <floor@plt>
movaps %xmm0,%xmm1
movsd  -0xe8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0xe0(%rbp)
ff
cvtsi2sdl -0x1c(%rbp),%xmm0
divsd  -0x88(%rbp),%xmm0
ff
cvttsd2si %xmm0,%edi
call   1040 <ceil@plt>
movaps %xmm0,%xmm1
movsd  -0xe0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
cvtsi2sdl -0x28(%rbp),%xmm0
divsd  -0x80(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1090 <floor@plt>
movaps %xmm0,%xmm1
movsd  -0xd8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
cvtsi2sdl -0x24(%rbp),%xmm0
divsd  -0x80(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1040 <ceil@plt>
movaps %xmm0,%xmm1
movsd  -0xd0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
cvttsd2si -0xa0(%rbp),%eax
ff
mov    %eax,-0xac(%rbp)
cvttsd2si -0x90(%rbp),%eax
ff
mov    %eax,-0xb0(%rbp)
movl   $0x0,-0xb4(%rbp)
cmpl   $0x37,-0xb4(%rbp)
jge    14a0 <main+0x330>
mov    -0xb4(%rbp),%esi
mov    -0xac(%rbp),%edx
movsd  -0x80(%rbp),%xmm0
lea    0xbcd(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0xac(%rbp),%edx
mov    -0x10(%rbp),%rax
movslq -0xb4(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
movsd  -0x80(%rbp),%xmm1
cvtsi2sdl -0xac(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0xac(%rbp)
mov    -0xb4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
cvtsi2sdl -0xac(%rbp),%xmm0
ff
ucomisd -0xa8(%rbp),%xmm0
ff
jbe    149b <main+0x32b>
jmp    14a0 <main+0x330>
jmp    1416 <main+0x2a6>
movl   $0x0,-0xb8(%rbp)
cmpl   $0x37,-0xb8(%rbp)
jge    1524 <main+0x3b4>
mov    -0xb0(%rbp),%eax
mov    %eax,-0xbc(%rbp)
mov    -0xbc(%rbp),%edx
mov    -0x18(%rbp),%rax
movslq -0xb8(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
movsd  -0x88(%rbp),%xmm1
ff
cvtsi2sdl -0xb0(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0xb0(%rbp)
mov    -0xb8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb8(%rbp)
cvtsi2sdl -0xb0(%rbp),%xmm0
ff
ucomisd -0x98(%rbp),%xmm0
ff
jbe    151f <main+0x3af>
jmp    1524 <main+0x3b4>
jmp    14aa <main+0x33a>
lea    0xaeb(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0xc0(%rbp)
mov    -0xc0(%rbp),%eax
cmp    -0xb4(%rbp),%eax
jge    1584 <main+0x414>
mov    -0xc0(%rbp),%esi
mov    -0x10(%rbp),%rax
movslq -0xc0(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
lea    0xab1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xc0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc0(%rbp)
jmp    153c <main+0x3cc>
lea    0xa89(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xa8a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0xc4(%rbp)
mov    -0xc4(%rbp),%eax
cmp    -0xb8(%rbp),%eax
jge    15ec <main+0x47c>
mov    -0x18(%rbp),%rax
movslq -0xc4(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xa4e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    15aa <main+0x43a>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
lea    0xa0f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    $0xdc,%edi
call   1070 <malloc@plt>
mov    %rax,%r15
mov    $0xdc,%edi
call   1070 <malloc@plt>
mov    %rax,%r14
movsd  0xe50(%rip),%xmm0
call   1090 <log10@plt>
mov    %eax,%edi
call   10a0 <floor@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0xe36(%rip),%xmm0
call   1090 <log10@plt>
mov    %eax,%edi
call   10a0 <floor@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
mov    $0xa,%edi
call   1080 <pow@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mov    $0xa,%edi
call   1080 <pow@plt>
movsd  0xdfe(%rip),%xmm1
movsd  0x8(%rsp),%xmm5
movapd %xmm5,%xmm2
addsd  %xmm1,%xmm2
movsd  0xde0(%rip),%xmm3
movapd %xmm3,%xmm4
divsd  %xmm2,%xmm4
addsd  %xmm0,%xmm1
divsd  %xmm1,%xmm3
mulsd  %xmm5,%xmm4
movsd  %xmm4,0x8(%rsp)
mulsd  %xmm0,%xmm3
movsd  %xmm3,0x18(%rsp)
movsd  0xdc4(%rip),%xmm0
divsd  %xmm3,%xmm0
cvttsd2si %xmm0,%edi
call   10a0 <floor@plt>
movsd  %xmm0,0x28(%rsp)
movsd  0xdb1(%rip),%xmm0
divsd  0x18(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1050 <ceil@plt>
movsd  %xmm0,0x30(%rsp)
movsd  0xd8c(%rip),%xmm0
divsd  0x8(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   10a0 <floor@plt>
movsd  0x8(%rsp),%xmm2
mulsd  %xmm2,%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0xd6d(%rip),%xmm1
divsd  %xmm2,%xmm1
cvttsd2si %xmm1,%edi
call   1050 <ceil@plt>
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
cvttsd2si 0x20(%rsp),%ebp
xor    %r13d,%r13d
lea    0xd4c(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r13,%rbx
mov    %r12,%rdi
mov    %ebx,%esi
mov    %ebp,%edx
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    %ebp,(%r15,%r13,4)
add    $0x1,%r13
cmp    $0x35,%rbx
ja     1326 <main+0x1a6>
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
addsd  0x8(%rsp),%xmm0
cvttsd2si %xmm0,%ebp
cvttpd2dq %xmm0,%xmm0
cvtdq2pd %xmm0,%xmm0
ucomisd 0x10(%rsp),%xmm0
jbe    12e0 <main+0x160>
movsd  0x18(%rsp),%xmm2
movsd  0x28(%rsp),%xmm0
mulsd  %xmm2,%xmm0
movsd  0x30(%rsp),%xmm3
mulsd  %xmm2,%xmm3
cvttsd2si %xmm0,%eax
mov    $0x1,%ebx
nopl   0x0(%rax)
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    %eax,-0x4(%r14,%rbx,4)
addsd  %xmm2,%xmm0
cvttpd2dq %xmm0,%xmm1
cvtdq2pd %xmm1,%xmm1
ucomisd %xmm3,%xmm1
ja     13a8 <main+0x228>
cmp    $0x37,%rbx
je     13a3 <main+0x223>
cvttsd2si %xmm0,%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
addsd  %xmm2,%xmm0
cvttsd2si %xmm0,%eax
cvttpd2dq %xmm0,%xmm0
cvtdq2pd %xmm0,%xmm0
mov    %ecx,(%r14,%rbx,4)
add    $0x2,%rbx
ucomisd %xmm3,%xmm0
jbe    1350 <main+0x1d0>
add    $0xffffffffffffffff,%rbx
jmp    13a8 <main+0x228>
mov    $0x37,%ebx
lea    0xc7f(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xc75(%rip),%r12
xor    %ebp,%ebp
nop
mov    (%r15,%rbp,4),%edx
mov    %r12,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%r13
jne    13c0 <main+0x240>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xc51(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
test   %ebx,%ebx
jle    1417 <main+0x297>
mov    %ebx,%ebp
lea    0xc39(%rip),%r12
xor    %ebx,%ebx
mov    (%r14,%rbx,4),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1400 <main+0x280>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [14 x i8] c"%d %d %0.2lf\0A\00"
@.str.1 = [4 x i8] c"x: \00"
@.str.2 = [9 x i8] c":%d: %d \00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [4 x i8] c"y: \00"
@.str.5 = [4 x i8] c"%d \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32
store i32 0, i32* %1
%32 = call i32* @malloc(i32 220)
store i32* %32, i32** %2
%33 = call i32* @malloc(i32 220)
store i32* %33, i32** %3
store i32 330, i32* %4
store i32 60, i32* %5
store i32 330, i32* %6
store i32 60, i32* %7
store i32 10, i32* %10
%34 = load i32, i32* %5
%35 = load i32, i32* %4
%36 = icmp eq i32 %34, %35
br i1 %36, label %37, label %42
37: ; preds = %0
%38 = load i32, i32* %5
%39 = sub nsw i32 %38, 10
store i32 %39, i32* %5
%40 = load i32, i32* %4
%41 = add nsw i32 %40, 10
store i32 %41, i32* %4
br label %42
42: ; preds = %37, %0
%43 = load i32, i32* %7
%44 = load i32, i32* %6
%45 = icmp eq i32 %43, %44
br i1 %45, label %46, label %51
46: ; preds = %42
%47 = load i32, i32* %7
%48 = sub nsw i32 %47, 10
store i32 %48, i32* %7
%49 = load i32, i32* %6
%50 = add nsw i32 %49, 10
store i32 %50, i32* %6
br label %51
51: ; preds = %46, %42
%52 = load i32, i32* %4
%53 = load i32, i32* %5
%54 = sub nsw i32 %52, %53
store i32 %54, i32* %8
%55 = load i32, i32* %6
%56 = load i32, i32* %5
%57 = sub nsw i32 %55, %56
store i32 %57, i32* %9
%58 = load i32, i32* %10
%59 = icmp slt i32 %58, 2
br i1 %59, label %60, label %61
60: ; preds = %51
store i32 2, i32* %10
br label %68
61: ; preds = %51
%62 = load i32, i32* %10
%63 = icmp sgt i32 %62, 2
br i1 %63, label %64, label %67
64: ; preds = %61
%65 = load i32, i32* %10
%66 = sub nsw i32 %65, 2
store i32 %66, i32* %10
br label %67
67: ; preds = %64, %61
br label %68
68: ; preds = %67, %60
%69 = load i32, i32* %9
%70 = load i32, i32* %10
%71 = sdiv i32 %69, %70
%72 = sitofp i32 %71 to double
store double %72, double* %11
%73 = load i32, i32* %8
%74 = load i32, i32* %10
%75 = sdiv i32 %73, %74
%76 = sitofp i32 %75 to double
store double %76, double* %12
%77 = load double, double* %11
%78 = call i32 @log10(double %77)
%79 = call double @floor(i32 %78)
store double %79, double* %13
%80 = load double, double* %12
%81 = call i32 @log10(double %80)
%82 = call double @floor(i32 %81)
store double %82, double* %14
%83 = load double, double* %13
%84 = call double @pow(double %83, i32 10)
store double %84, double* %15
%85 = load double, double* %14
%86 = call double @pow(double %85, i32 10)
store double %86, double* %16
%87 = load double, double* %11
%88 = load double, double* %15
%89 = fadd double %88, 5.000000e-01
%90 = fdiv double %87, %89
store double %90, double* %17
%91 = load double, double* %12
%92 = load double, double* %16
%93 = fadd double %92, 5.000000e-01
%94 = fdiv double %91, %93
store double %94, double* %18
%95 = load double, double* %17
%96 = load double, double* %15
%97 = fmul double %95, %96
store double %97, double* %19
%98 = load double, double* %18
%99 = load double, double* %16
%100 = fmul double %98, %99
store double %100, double* %20
%101 = load double, double* %20
%102 = load i32, i32* %5
%103 = sitofp i32 %102 to double
%104 = load double, double* %20
%105 = fdiv double %103, %104
%106 = fptosi double %105 to i32
%107 = call double @floor(i32 %106)
%108 = fmul double %101, %107
store double %108, double* %21
%109 = load double, double* %20
%110 = load i32, i32* %4
%111 = sitofp i32 %110 to double
%112 = load double, double* %20
%113 = fdiv double %111, %112
%114 = fptosi double %113 to i32
%115 = call double @ceil(i32 %114)
%116 = fmul double %109, %115
store double %116, double* %22
%117 = load double, double* %19
%118 = load i32, i32* %7
%119 = sitofp i32 %118 to double
%120 = load double, double* %19
%121 = fdiv double %119, %120
%122 = fptosi double %121 to i32
%123 = call double @floor(i32 %122)
%124 = fmul double %117, %123
store double %124, double* %23
%125 = load double, double* %19
%126 = load i32, i32* %6
%127 = sitofp i32 %126 to double
%128 = load double, double* %19
%129 = fdiv double %127, %128
%130 = fptosi double %129 to i32
%131 = call double @ceil(i32 %130)
%132 = fmul double %125, %131
store double %132, double* %24
%133 = load double, double* %23
%134 = fptosi double %133 to i32
store i32 %134, i32* %25
%135 = load double, double* %21
%136 = fptosi double %135 to i32
store i32 %136, i32* %26
store i32 0, i32* %27
br label %137
137: ; preds = %162, %68
%138 = load i32, i32* %27
%139 = icmp slt i32 %138, 55
br i1 %139, label %140, label %163
140: ; preds = %137
%141 = load i32, i32* %27
%142 = load i32, i32* %25
%143 = load double, double* %19
%144 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %141, i32 %142, double %143)
%145 = load i32, i32* %25
%146 = load i32*, i32** %2
%147 = load i32, i32* %27
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds i32, i32* %146, i64 %148
store i32 %145, i32* %149
%150 = load double, double* %19
%151 = load i32, i32* %25
%152 = sitofp i32 %151 to double
%153 = fadd double %152, %150
%154 = fptosi double %153 to i32
store i32 %154, i32* %25
%155 = load i32, i32* %27
%156 = add nsw i32 %155, 1
store i32 %156, i32* %27
%157 = load i32, i32* %25
%158 = sitofp i32 %157 to double
%159 = load double, double* %24
%160 = fcmp ogt double %158, %159
br i1 %160, label %161, label %162
161: ; preds = %140
br label %163
162: ; preds = %140
br label %137
163: ; preds = %161, %137
store i32 0, i32* %28
br label %164
164: ; preds = %186, %163
%165 = load i32, i32* %28
%166 = icmp slt i32 %165, 55
br i1 %166, label %167, label %187
167: ; preds = %164
%168 = load i32, i32* %26
store i32 %168, i32* %29
%169 = load i32, i32* %29
%170 = load i32*, i32** %3
%171 = load i32, i32* %28
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds i32, i32* %170, i64 %172
store i32 %169, i32* %173
%174 = load double, double* %20
%175 = load i32, i32* %26
%176 = sitofp i32 %175 to double
%177 = fadd double %176, %174
%178 = fptosi double %177 to i32
store i32 %178, i32* %26
%179 = load i32, i32* %28
%180 = add nsw i32 %179, 1
store i32 %180, i32* %28
%181 = load i32, i32* %26
%182 = sitofp i32 %181 to double
%183 = load double, double* %22
%184 = fcmp ogt double %182, %183
br i1 %184, label %185, label %186
185: ; preds = %167
br label %187
186: ; preds = %167
br label %164
187: ; preds = %185, %164
%188 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %30
br label %189
189: ; preds = %201, %187
%190 = load i32, i32* %30
%191 = load i32, i32* %27
%192 = icmp slt i32 %190, %191
br i1 %192, label %193, label %204
193: ; preds = %189
%194 = load i32, i32* %30
%195 = load i32*, i32** %2
%196 = load i32, i32* %30
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds i32, i32* %195, i64 %197
%199 = load i32, i32* %198
%200 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 %194, i32 %199)
br label %201
201: ; preds = %193
%202 = load i32, i32* %30
%203 = add nsw i32 %202, 1
store i32 %203, i32* %30
br label %189
204: ; preds = %189
%205 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%206 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %31
br label %207
207: ; preds = %218, %204
%208 = load i32, i32* %31
%209 = load i32, i32* %28
%210 = icmp slt i32 %208, %209
br i1 %210, label %211, label %221
211: ; preds = %207
%212 = load i32*, i32** %3
%213 = load i32, i32* %31
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds i32, i32* %212, i64 %214
%216 = load i32, i32* %215
%217 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %216)
br label %218
218: ; preds = %211
%219 = load i32, i32* %31
%220 = add nsw i32 %219, 1
store i32 %220, i32* %31
br label %207
221: ; preds = %207
%222 = load i32*, i32** %2
%223 = call i32 @free(i32* %222)
%224 = load i32*, i32** %3
%225 = call i32 @free(i32* %224)
%226 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i8] c"%d %d %0.2lf\0A\00"
@.str.1 = [4 x i8] c"x: \00"
@.str.2 = [9 x i8] c":%d: %d \00"
@.str.4 = [4 x i8] c"y: \00"
@.str.5 = [4 x i8] c"%d \00"
define i32 @main() {
%1 = tail call i32* @malloc(i32 220)
%2 = tail call i32* @malloc(i32 220)
%3 = tail call i32 @log10(double 3.300000e+01)
%4 = tail call double @floor(i32 %3)
%5 = tail call i32 @log10(double 3.300000e+01)
%6 = tail call double @floor(i32 %5)
%7 = tail call double @pow(double %4, i32 10)
%8 = tail call double @pow(double %6, i32 10)
%9 = fadd double %7, 5.000000e-01
%10 = fdiv double 3.300000e+01, %9
%11 = fadd double %8, 5.000000e-01
%12 = fdiv double 3.300000e+01, %11
%13 = fmul double %7, %10
%14 = fmul double %8, %12
%15 = fdiv double 6.000000e+01, %14
%16 = fptosi double %15 to i32
%17 = tail call double @floor(i32 %16)
%18 = fdiv double 3.300000e+02, %14
%19 = fptosi double %18 to i32
%20 = tail call double @ceil(i32 %19)
%21 = fdiv double 6.000000e+01, %13
%22 = fptosi double %21 to i32
%23 = tail call double @floor(i32 %22)
%24 = fmul double %13, %23
%25 = fdiv double 3.300000e+02, %13
%26 = fptosi double %25 to i32
%27 = tail call double @ceil(i32 %26)
%28 = fmul double %13, %27
%29 = fptosi double %24 to i32
br label %30
30: ; preds = %0, %30
%31 = phi i64 [ 0, %0 ], [ %39, %30 ]
%32 = phi i32 [ %29, %0 ], [ %38, %30 ]
%33 = trunc i64 %31 to i32
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %33, i32 %32, double %13)
%35 = getelementptr inbounds i32, i32* %1, i64 %31
store i32 %32, i32* %35
%36 = sitofp i32 %32 to double
%37 = fadd double %13, %36
%38 = fptosi double %37 to i32
%39 = add nuw nsw i64 %31, 1
%40 = sitofp i32 %38 to double
%41 = fcmp uge double %28, %40
%42 = icmp ult i64 %31, 54
%43 = and i1 %42, %41
br i1 %43, label %30, label %44
44: ; preds = %30
%45 = fmul double %17, %14
%46 = fmul double %20, %14
%47 = fptosi double %45 to i32
br label %48
48: ; preds = %60, %44
%49 = phi i64 [ 0, %44 ], [ %65, %60 ]
%50 = phi i32 [ %47, %44 ], [ %64, %60 ]
%51 = getelementptr inbounds i32, i32* %2, i64 %49
store i32 %50, i32* %51
%52 = sitofp i32 %50 to double
%53 = fadd double %14, %52
%54 = fptosi double %53 to i32
%55 = or i64 %49, 1
%56 = sitofp i32 %54 to double
%57 = fcmp olt double %46, %56
br i1 %57, label %68, label %58
58: ; preds = %48
%59 = icmp eq i64 %55, 55
br i1 %59, label %71, label %60
60: ; preds = %58
%61 = getelementptr inbounds i32, i32* %2, i64 %55
store i32 %54, i32* %61
%62 = sitofp i32 %54 to double
%63 = fadd double %14, %62
%64 = fptosi double %63 to i32
%65 = add nuw nsw i64 %49, 2
%66 = sitofp i32 %64 to double
%67 = fcmp olt double %46, %66
br i1 %67, label %68, label %48
68: ; preds = %60, %48
%69 = phi i64 [ %55, %48 ], [ %65, %60 ]
%70 = trunc i64 %69 to i32
br label %71
71: ; preds = %58, %68
%72 = phi i32 [ %70, %68 ], [ 55, %58 ]
%73 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%74 = add nuw i64 %31, 1
%75 = and i64 %74, 4294967295
br label %82
76: ; preds = %82
%77 = tail call i32 @putchar(i32 10)
%78 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%79 = icmp sgt i32 %72, 0
br i1 %79, label %80, label %90
80: ; preds = %76
%81 = zext i32 %72 to i64
br label %94
82: ; preds = %71, %82
%83 = phi i64 [ 0, %71 ], [ %88, %82 ]
%84 = getelementptr inbounds i32, i32* %1, i64 %83
%85 = load i32, i32* %84
%86 = trunc i64 %83 to i32
%87 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 %86, i32 %85)
%88 = add nuw nsw i64 %83, 1
%89 = icmp eq i64 %88, %75
br i1 %89, label %76, label %82
90: ; preds = %94, %76
%91 = tail call i32 @free(i32* %1)
%92 = tail call i32 @free(i32* %2)
%93 = tail call i32 @putchar(i32 10)
ret i32 0
94: ; preds = %80, %94
%95 = phi i64 [ 0, %80 ], [ %99, %94 ]
%96 = getelementptr inbounds i32, i32* %2, i64 %95
%97 = load i32, i32* %96
%98 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %97)
%99 = add nuw nsw i64 %95, 1
%100 = icmp eq i64 %99, %81
br i1 %100, label %90, label %94
}