#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 cos(double);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int sin(double);
main() {
  double pi = 3.1415927, f, stp, x, y;
  int g;
  printf(";circ60.z - array of positions for clock face.\n");
  printf(";automatically generated (edits will be lost!)\n\n");
  stp = pi / 30;
  printf("\n\nhour60:\n");
  for (g = 0, f = -pi / 2.; g < 60; g++, f += stp) {
    x = 64. + 1.75 * cos(f) * 9.;
    y = 32. + sin(f) * 9.;
    printf("defb %02d,%02d\n", (int)(x + 0.5), (int)(y + 0.5));
  }
  printf("\n\nmin60:\n");
  for (g = 0, f = -pi / 2.; g < 60; g++, f += stp) {
    x = 64. + 1.75 * cos(f) * 15.;
    y = 32. + sin(f) * 15.;
    printf("defb %02d,%02d\n", (int)(x + 0.5), (int)(y + 0.5));
  }
  printf("\n\nsec60:\n");
  for (g = 0, f = -pi / 2.; g < 60; g++, f += stp) {
    x = 64. + 1.75 * cos(f) * 17.;
    y = 32. + sin(f) * 17.;
    printf("defb %02d,%02d\n", (int)(x + 0.5), (int)(y + 0.5));
  }
  printf("\n\nface12:\n");
  for (g = 0, f = -pi / 2.; g < 60; g += 5, f += stp * 5) {
    x = 64. + 1.75 * cos(f) * 20.;
    y = 32. + sin(f) * 20.;
    printf("defb %02d,%02d\n", (int)(x + 0.5), (int)(y + 0.5));
    x = 64. + 1.75 * cos(f) * 23.;
    y = 32. + sin(f) * 23.;
    printf("defb %02d,%02d\n", (int)(x + 0.5), (int)(y + 0.5));
  }
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xeb9(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
lea    0xf05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf27(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x10(%rbp),%xmm0
movsd  0xe83(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
lea    0xf34(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
movsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xe39(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
cmpl   $0x3c,-0x34(%rbp)
jge    1288 <main+0x148>
movsd  -0x18(%rbp),%xmm0
call   1050 <cos@plt>
movaps %xmm0,%xmm1
movsd  0xe49(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xe65(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe29(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1040 <sin@plt>
cvtsi2sd %eax,%xmm0
movsd  0xe3a(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xdf6(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xdd5(%rip),%xmm0
addsd  -0x28(%rbp),%xmm0
cvttsd2si %xmm0,%esi
movsd  0xdc4(%rip),%xmm0
addsd  -0x30(%rbp),%xmm0
cvttsd2si %xmm0,%edx
lea    0xe70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
movsd  -0x20(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    11d0 <main+0x90>
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
movsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xd3f(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
cmpl   $0x3c,-0x34(%rbp)
jge    1382 <main+0x242>
movsd  -0x18(%rbp),%xmm0
call   1050 <cos@plt>
movaps %xmm0,%xmm1
movsd  0xd4f(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xd63(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd2f(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1040 <sin@plt>
cvtsi2sd %eax,%xmm0
movsd  0xd38(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xcfc(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xcdb(%rip),%xmm0
addsd  -0x28(%rbp),%xmm0
cvttsd2si %xmm0,%esi
movsd  0xcca(%rip),%xmm0
addsd  -0x30(%rbp),%xmm0
cvttsd2si %xmm0,%edx
lea    0xd76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
movsd  -0x20(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    12ca <main+0x18a>
lea    0xd65(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
movsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xc45(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
cmpl   $0x3c,-0x34(%rbp)
jge    147c <main+0x33c>
movsd  -0x18(%rbp),%xmm0
call   1050 <cos@plt>
movaps %xmm0,%xmm1
movsd  0xc55(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xc61(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xc35(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1040 <sin@plt>
cvtsi2sd %eax,%xmm0
movsd  0xc36(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xc02(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xbe1(%rip),%xmm0
addsd  -0x28(%rbp),%xmm0
cvttsd2si %xmm0,%esi
movsd  0xbd0(%rip),%xmm0
addsd  -0x30(%rbp),%xmm0
cvttsd2si %xmm0,%edx
lea    0xc7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
movsd  -0x20(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    13c4 <main+0x284>
lea    0xc75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
movsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xb4b(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
cmpl   $0x3c,-0x34(%rbp)
jge    1617 <main+0x4d7>
movsd  -0x18(%rbp),%xmm0
call   1050 <cos@plt>
movaps %xmm0,%xmm1
movsd  0xb5b(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xb57(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xb3b(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1040 <sin@plt>
cvtsi2sd %eax,%xmm0
movsd  0xb2c(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xb08(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xae7(%rip),%xmm0
addsd  -0x28(%rbp),%xmm0
cvttsd2si %xmm0,%esi
movsd  0xad6(%rip),%xmm0
addsd  -0x30(%rbp),%xmm0
cvttsd2si %xmm0,%edx
lea    0xb82(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x18(%rbp),%xmm0
call   1050 <cos@plt>
movaps %xmm0,%xmm1
movsd  0xaca(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xaa6(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xaaa(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1040 <sin@plt>
cvtsi2sd %eax,%xmm0
movsd  0xa7b(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xa77(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xa56(%rip),%xmm0
addsd  -0x28(%rbp),%xmm0
cvttsd2si %xmm0,%esi
movsd  0xa45(%rip),%xmm0
addsd  -0x30(%rbp),%xmm0
cvttsd2si %xmm0,%edx
lea    0xaf1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x5,%eax
mov    %eax,-0x34(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  0xa43(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    14be <main+0x37e>
xor    %edi,%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x18,%rsp
lea    0xf13(%rip),%rdi
call   1030 <puts@plt>
lea    0xf36(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5a(%rip),%rdi
call   1030 <puts@plt>
movsd  0xe7e(%rip),%xmm0
mov    $0x3c,%ebp
lea    0xed2(%rip),%rbx
xchg   %ax,%ax
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
call   1060 <cos@plt>
movapd %xmm0,%xmm1
mulsd  0xe5b(%rip),%xmm1
movsd  0xe5b(%rip),%xmm0
mulsd  %xmm0,%xmm1
addsd  0xe57(%rip),%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
call   1050 <sin@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xe2f(%rip),%xmm0
movsd  0xe3f(%rip),%xmm1
movsd  0x10(%rsp),%xmm2
addsd  %xmm1,%xmm2
cvttsd2si %xmm2,%esi
addsd  0xe21(%rip),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xe11(%rip),%xmm0
add    $0xffffffff,%ebp
jne    1190 <main+0x40>
lea    0xeaa(%rip),%rdi
call   1030 <puts@plt>
movsd  0xdc4(%rip),%xmm0
mov    $0x3c,%ebp
lea    0xe18(%rip),%rbx
nopl   0x0(%rax,%rax,1)
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
call   1060 <cos@plt>
movapd %xmm0,%xmm1
mulsd  0xd9b(%rip),%xmm1
movsd  0xdc3(%rip),%xmm0
mulsd  %xmm0,%xmm1
addsd  0xd97(%rip),%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
call   1050 <sin@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xd97(%rip),%xmm0
movsd  0xd7f(%rip),%xmm1
movsd  0x10(%rsp),%xmm2
addsd  %xmm1,%xmm2
cvttsd2si %xmm2,%esi
addsd  0xd61(%rip),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xd51(%rip),%xmm0
add    $0xffffffff,%ebp
jne    1250 <main+0x100>
lea    0xdf3(%rip),%rdi
call   1030 <puts@plt>
movsd  0xd04(%rip),%xmm0
mov    $0x3c,%ebp
lea    0xd58(%rip),%rbx
nopl   0x0(%rax,%rax,1)
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
call   1060 <cos@plt>
movapd %xmm0,%xmm1
mulsd  0xcdb(%rip),%xmm1
movsd  0xd0b(%rip),%xmm0
mulsd  %xmm0,%xmm1
addsd  0xcd7(%rip),%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
call   1050 <sin@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xcdf(%rip),%xmm0
movsd  0xcbf(%rip),%xmm1
movsd  0x10(%rsp),%xmm2
addsd  %xmm1,%xmm2
cvttsd2si %xmm2,%esi
addsd  0xca1(%rip),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xc91(%rip),%xmm0
add    $0xffffffff,%ebp
jne    1310 <main+0x1c0>
lea    0xd3c(%rip),%rdi
call   1030 <puts@plt>
movsd  0xc44(%rip),%xmm0
mov    $0xfffffffb,%ebp
lea    0xc98(%rip),%rbx
nopl   0x0(%rax,%rax,1)
movsd  %xmm0,0x8(%rsp)
movsd  0x8(%rsp),%xmm0
call   1060 <cos@plt>
movapd %xmm0,%xmm1
movsd  0xc1b(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xc4f(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xc13(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
call   1050 <sin@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xc1f(%rip),%xmm0
movsd  0xbf7(%rip),%xmm2
movsd  0x10(%rsp),%xmm1
addsd  %xmm2,%xmm1
cvttsd2si %xmm1,%esi
movsd  0xbd9(%rip),%xmm1
addsd  %xmm1,%xmm0
addsd  %xmm2,%xmm0
cvttsd2si %xmm0,%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0x8(%rsp),%xmm0
call   1060 <cos@plt>
movapd %xmm0,%xmm1
mulsd  0xb94(%rip),%xmm1
movsd  0xbd4(%rip),%xmm0
mulsd  %xmm0,%xmm1
addsd  0xb90(%rip),%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
call   1050 <sin@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xba8(%rip),%xmm0
movsd  0xb78(%rip),%xmm1
movsd  0x10(%rsp),%xmm2
addsd  %xmm1,%xmm2
cvttsd2si %xmm2,%esi
addsd  0xb5a(%rip),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  0x8(%rsp),%xmm0
addsd  0xb72(%rip),%xmm0
add    $0x5,%ebp
cmp    $0x37,%ebp
jb     13d0 <main+0x280>
xor    %edi,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
@.str = [48 x i8] c";circ60.z - array of positions for clock face.\0A\00"
@.str.1 = [49 x i8] c";automatically generated (edits will be lost!)\0A\0A\00"
@.str.2 = [11 x i8] c"\0A\0Ahour60:\0A\00"
@.str.3 = [16 x i8] c"defb %02d,%02d\0A\00"
@.str.4 = [10 x i8] c"\0A\0Amin60:\0A\00"
@.str.5 = [10 x i8] c"\0A\0Asec60:\0A\00"
@.str.6 = [11 x i8] c"\0A\0Aface12:\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca i32
store i32 0, i32* %1
store double 0x400921FB5A7ED197, double* %2
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0))
%10 = load double, double* %2
%11 = fdiv double %10, 3.000000e+01
store double %11, double* %4
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %7
%13 = load double, double* %2
%14 = fneg double %13
%15 = fdiv double %14, 2.000000e+00
store double %15, double* %3
br label %16
16: ; preds = %35, %0
%17 = load i32, i32* %7
%18 = icmp slt i32 %17, 60
br i1 %18, label %19, label %41
19: ; preds = %16
%20 = load double, double* %3
%21 = call double @cos(double %20)
%22 = fmul double 1.750000e+00, %21
%23 = call double @llvm.fmuladd.f64(double %22, double 9.000000e+00, double 6.400000e+01)
store double %23, double* %5
%24 = load double, double* %3
%25 = call i32 @sin(double %24)
%26 = sitofp i32 %25 to double
%27 = call double @llvm.fmuladd.f64(double %26, double 9.000000e+00, double 3.200000e+01)
store double %27, double* %6
%28 = load double, double* %5
%29 = fadd double %28, 5.000000e-01
%30 = fptosi double %29 to i32
%31 = load double, double* %6
%32 = fadd double %31, 5.000000e-01
%33 = fptosi double %32 to i32
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %30, i32 %33)
br label %35
35: ; preds = %19
%36 = load i32, i32* %7
%37 = add nsw i32 %36, 1
store i32 %37, i32* %7
%38 = load double, double* %4
%39 = load double, double* %3
%40 = fadd double %39, %38
store double %40, double* %3
br label %16
41: ; preds = %16
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %7
%43 = load double, double* %2
%44 = fneg double %43
%45 = fdiv double %44, 2.000000e+00
store double %45, double* %3
br label %46
46: ; preds = %65, %41
%47 = load i32, i32* %7
%48 = icmp slt i32 %47, 60
br i1 %48, label %49, label %71
49: ; preds = %46
%50 = load double, double* %3
%51 = call double @cos(double %50)
%52 = fmul double 1.750000e+00, %51
%53 = call double @llvm.fmuladd.f64(double %52, double 1.500000e+01, double 6.400000e+01)
store double %53, double* %5
%54 = load double, double* %3
%55 = call i32 @sin(double %54)
%56 = sitofp i32 %55 to double
%57 = call double @llvm.fmuladd.f64(double %56, double 1.500000e+01, double 3.200000e+01)
store double %57, double* %6
%58 = load double, double* %5
%59 = fadd double %58, 5.000000e-01
%60 = fptosi double %59 to i32
%61 = load double, double* %6
%62 = fadd double %61, 5.000000e-01
%63 = fptosi double %62 to i32
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %60, i32 %63)
br label %65
65: ; preds = %49
%66 = load i32, i32* %7
%67 = add nsw i32 %66, 1
store i32 %67, i32* %7
%68 = load double, double* %4
%69 = load double, double* %3
%70 = fadd double %69, %68
store double %70, double* %3
br label %46
71: ; preds = %46
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %7
%73 = load double, double* %2
%74 = fneg double %73
%75 = fdiv double %74, 2.000000e+00
store double %75, double* %3
br label %76
76: ; preds = %95, %71
%77 = load i32, i32* %7
%78 = icmp slt i32 %77, 60
br i1 %78, label %79, label %101
79: ; preds = %76
%80 = load double, double* %3
%81 = call double @cos(double %80)
%82 = fmul double 1.750000e+00, %81
%83 = call double @llvm.fmuladd.f64(double %82, double 1.700000e+01, double 6.400000e+01)
store double %83, double* %5
%84 = load double, double* %3
%85 = call i32 @sin(double %84)
%86 = sitofp i32 %85 to double
%87 = call double @llvm.fmuladd.f64(double %86, double 1.700000e+01, double 3.200000e+01)
store double %87, double* %6
%88 = load double, double* %5
%89 = fadd double %88, 5.000000e-01
%90 = fptosi double %89 to i32
%91 = load double, double* %6
%92 = fadd double %91, 5.000000e-01
%93 = fptosi double %92 to i32
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %90, i32 %93)
br label %95
95: ; preds = %79
%96 = load i32, i32* %7
%97 = add nsw i32 %96, 1
store i32 %97, i32* %7
%98 = load double, double* %4
%99 = load double, double* %3
%100 = fadd double %99, %98
store double %100, double* %3
br label %76
101: ; preds = %76
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %7
%103 = load double, double* %2
%104 = fneg double %103
%105 = fdiv double %104, 2.000000e+00
store double %105, double* %3
br label %106
106: ; preds = %140, %101
%107 = load i32, i32* %7
%108 = icmp slt i32 %107, 60
br i1 %108, label %109, label %146
109: ; preds = %106
%110 = load double, double* %3
%111 = call double @cos(double %110)
%112 = fmul double 1.750000e+00, %111
%113 = call double @llvm.fmuladd.f64(double %112, double 2.000000e+01, double 6.400000e+01)
store double %113, double* %5
%114 = load double, double* %3
%115 = call i32 @sin(double %114)
%116 = sitofp i32 %115 to double
%117 = call double @llvm.fmuladd.f64(double %116, double 2.000000e+01, double 3.200000e+01)
store double %117, double* %6
%118 = load double, double* %5
%119 = fadd double %118, 5.000000e-01
%120 = fptosi double %119 to i32
%121 = load double, double* %6
%122 = fadd double %121, 5.000000e-01
%123 = fptosi double %122 to i32
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %120, i32 %123)
%125 = load double, double* %3
%126 = call double @cos(double %125)
%127 = fmul double 1.750000e+00, %126
%128 = call double @llvm.fmuladd.f64(double %127, double 2.300000e+01, double 6.400000e+01)
store double %128, double* %5
%129 = load double, double* %3
%130 = call i32 @sin(double %129)
%131 = sitofp i32 %130 to double
%132 = call double @llvm.fmuladd.f64(double %131, double 2.300000e+01, double 3.200000e+01)
store double %132, double* %6
%133 = load double, double* %5
%134 = fadd double %133, 5.000000e-01
%135 = fptosi double %134 to i32
%136 = load double, double* %6
%137 = fadd double %136, 5.000000e-01
%138 = fptosi double %137 to i32
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %135, i32 %138)
br label %140
140: ; preds = %109
%141 = load i32, i32* %7
%142 = add nsw i32 %141, 5
store i32 %142, i32* %7
%143 = load double, double* %4
%144 = load double, double* %3
%145 = call double @llvm.fmuladd.f64(double %143, double 5.000000e+00, double %144)
store double %145, double* %3
br label %106
146: ; preds = %106
%147 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str.3 = [16 x i8] c"defb %02d,%02d\0A\00"
@str = [47 x i8] c";circ60.z - array of positions for clock face.\00"
@str.7 = [48 x i8] c";automatically generated (edits will be lost!)\0A\00"
@str.8 = [10 x i8] c"\0A\0Ahour60:\00"
@str.9 = [9 x i8] c"\0A\0Amin60:\00"
@str.10 = [9 x i8] c"\0A\0Asec60:\00"
@str.11 = [10 x i8] c"\0A\0Aface12:\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.7, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.8, i64 0, i64 0))
br label %4
4: ; preds = %0, %4
%5 = phi i32 [ 0, %0 ], [ %18, %4 ]
%6 = phi double [ 0xBFF921FB5A7ED197, %0 ], [ %19, %4 ]
%7 = tail call double @cos(double %6)
%8 = fmul double %7, 1.750000e+00
%9 = tail call double @llvm.fmuladd.f64(double %8, double 9.000000e+00, double 6.400000e+01)
%10 = tail call i32 @sin(double %6)
%11 = sitofp i32 %10 to double
%12 = tail call double @llvm.fmuladd.f64(double %11, double 9.000000e+00, double 3.200000e+01)
%13 = fadd double %9, 5.000000e-01
%14 = fptosi double %13 to i32
%15 = fadd double %12, 5.000000e-01
%16 = fptosi double %15 to i32
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %14, i32 %16)
%18 = add nuw nsw i32 %5, 1
%19 = fadd double %6, 0x3FBACEE9FA20DF90
%20 = icmp eq i32 %18, 60
br i1 %20, label %21, label %4
21: ; preds = %4
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.9, i64 0, i64 0))
br label %23
23: ; preds = %21, %23
%24 = phi i32 [ 0, %21 ], [ %37, %23 ]
%25 = phi double [ 0xBFF921FB5A7ED197, %21 ], [ %38, %23 ]
%26 = tail call double @cos(double %25)
%27 = fmul double %26, 1.750000e+00
%28 = tail call double @llvm.fmuladd.f64(double %27, double 1.500000e+01, double 6.400000e+01)
%29 = tail call i32 @sin(double %25)
%30 = sitofp i32 %29 to double
%31 = tail call double @llvm.fmuladd.f64(double %30, double 1.500000e+01, double 3.200000e+01)
%32 = fadd double %28, 5.000000e-01
%33 = fptosi double %32 to i32
%34 = fadd double %31, 5.000000e-01
%35 = fptosi double %34 to i32
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %33, i32 %35)
%37 = add nuw nsw i32 %24, 1
%38 = fadd double %25, 0x3FBACEE9FA20DF90
%39 = icmp eq i32 %37, 60
br i1 %39, label %40, label %23
40: ; preds = %23
%41 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.10, i64 0, i64 0))
br label %42
42: ; preds = %40, %42
%43 = phi i32 [ 0, %40 ], [ %56, %42 ]
%44 = phi double [ 0xBFF921FB5A7ED197, %40 ], [ %57, %42 ]
%45 = tail call double @cos(double %44)
%46 = fmul double %45, 1.750000e+00
%47 = tail call double @llvm.fmuladd.f64(double %46, double 1.700000e+01, double 6.400000e+01)
%48 = tail call i32 @sin(double %44)
%49 = sitofp i32 %48 to double
%50 = tail call double @llvm.fmuladd.f64(double %49, double 1.700000e+01, double 3.200000e+01)
%51 = fadd double %47, 5.000000e-01
%52 = fptosi double %51 to i32
%53 = fadd double %50, 5.000000e-01
%54 = fptosi double %53 to i32
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %52, i32 %54)
%56 = add nuw nsw i32 %43, 1
%57 = fadd double %44, 0x3FBACEE9FA20DF90
%58 = icmp eq i32 %56, 60
br i1 %58, label %59, label %42
59: ; preds = %42
%60 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.11, i64 0, i64 0))
br label %61
61: ; preds = %59, %61
%62 = phi i32 [ 0, %59 ], [ %86, %61 ]
%63 = phi double [ 0xBFF921FB5A7ED197, %59 ], [ %87, %61 ]
%64 = tail call double @cos(double %63)
%65 = fmul double %64, 1.750000e+00
%66 = tail call double @llvm.fmuladd.f64(double %65, double 2.000000e+01, double 6.400000e+01)
%67 = tail call i32 @sin(double %63)
%68 = sitofp i32 %67 to double
%69 = tail call double @llvm.fmuladd.f64(double %68, double 2.000000e+01, double 3.200000e+01)
%70 = fadd double %66, 5.000000e-01
%71 = fptosi double %70 to i32
%72 = fadd double %69, 5.000000e-01
%73 = fptosi double %72 to i32
%74 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %71, i32 %73)
%75 = tail call double @cos(double %63)
%76 = fmul double %75, 1.750000e+00
%77 = tail call double @llvm.fmuladd.f64(double %76, double 2.300000e+01, double 6.400000e+01)
%78 = tail call i32 @sin(double %63)
%79 = sitofp i32 %78 to double
%80 = tail call double @llvm.fmuladd.f64(double %79, double 2.300000e+01, double 3.200000e+01)
%81 = fadd double %77, 5.000000e-01
%82 = fptosi double %81 to i32
%83 = fadd double %80, 5.000000e-01
%84 = fptosi double %83 to i32
%85 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %82, i32 %84)
%86 = add nuw nsw i32 %62, 5
%87 = fadd double %63, 0x3FE0C1523C548BBA
%88 = icmp ult i32 %62, 55
br i1 %88, label %61, label %89
89: ; preds = %61
%90 = tail call i32 @exit(i32 0)
unreachable
}