#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*/ coss(float);
int /*<<< orphan*/ coss2(float);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ seno(float);
int /*<<< orphan*/ seno2(float);
int /*<<< orphan*/ system(char *);
main() {
  float i = -180;
  for (i = -180; i <= 180; i += +15) {
    printf("Angulo %f\n", i);
    coss(i);
    coss2(i);
    seno(i);
    seno2(i);
    printf("-------- \n");
    printf(" \n");
  }
  system("PAUSE");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xe89(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xe7c(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xe73(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jb     120d <main+0xad>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe61(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x8(%rbp),%xmm0
call   1080 <coss@plt>
movss  -0x8(%rbp),%xmm0
call   1070 <coss2@plt>
movss  -0x8(%rbp),%xmm0
call   1060 <seno@plt>
movss  -0x8(%rbp),%xmm0
call   1030 <seno2@plt>
lea    0xe36(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe30(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movss  0xe0a(%rip),%xmm0
addss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    1189 <main+0x29>
lea    0xe0e(%rip),%rdi
call   1040 <system@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    $0xffffff3d,%ebp
lea    0xe7d(%rip),%r14
lea    0xe87(%rip),%r15
lea    0xe88(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0xf,%ebp
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
movss  %xmm0,0x4(%rsp)
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x4(%rsp),%xmm0
call   1090 <coss@plt>
movss  0x4(%rsp),%xmm0
call   1080 <coss2@plt>
movss  0x4(%rsp),%xmm0
call   1070 <seno@plt>
movss  0x4(%rsp),%xmm0
call   1040 <seno2@plt>
mov    %r15,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
cmp    $0xa6,%ebp
jl     11a0 <main+0x30>
lea    0xe02(%rip),%rdi
call   1050 <system@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"Angulo %f\0A\00"
@.str.1 = [11 x i8] c"-------- \0A\00"
@.str.2 = [3 x i8] c" \0A\00"
@.str.3 = [6 x i8] c"PAUSE\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
store i32 0, i32* %1
store float -1.800000e+02, float* %2
store float -1.800000e+02, float* %2
br label %3
3: ; preds = %20, %0
%4 = load float, float* %2
%5 = fcmp ole float %4, 1.800000e+02
br i1 %5, label %6, label %23
6: ; preds = %3
%7 = load float, float* %2
%8 = fpext float %7 to double
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), double %8)
%10 = load float, float* %2
%11 = call i32 @coss(float %10)
%12 = load float, float* %2
%13 = call i32 @coss2(float %12)
%14 = load float, float* %2
%15 = call i32 @seno(float %14)
%16 = load float, float* %2
%17 = call i32 @seno2(float %16)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %20
20: ; preds = %6
%21 = load float, float* %2
%22 = fadd float %21, 1.500000e+01
store float %22, float* %2
br label %3
23: ; preds = %3
%24 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"Angulo %f\0A\00"
@.str.3 = [6 x i8] c"PAUSE\00"
@str = [10 x i8] c"-------- \00"
@str.4 = [2 x i8] c" \00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ -180, %0 ], [ %12, %1 ]
%3 = sitofp i32 %2 to float
%4 = fpext float %3 to double
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), double %4)
%6 = tail call i32 @coss(float %3)
%7 = tail call i32 @coss2(float %3)
%8 = tail call i32 @seno(float %3)
%9 = tail call i32 @seno2(float %3)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.4, i64 0, i64 0))
%12 = add nsw i32 %2, 15
%13 = icmp sgt i32 %2, 165
br i1 %13, label %14, label %1
14: ; preds = %1
%15 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}