#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 abs(int);
int /*<<< orphan*/ printf(char *, float);
main() {
  int i;
  float si1[6] = {127 * 60 + 20, 127 * 60 + 18, 127 * 60 + 17,
                  127 * 60 + 18, 127 * 60 + 18, 127 * 60 + 17};
  float si1_[6] = {247 * 60 + 8, 247 * 60 + 7, 247 * 60 + 9,
                   247 * 60 + 8, 247 * 60 + 9, 247 * 60 + 9};
  float si2[6] = {307 * 60 + 10, 307 * 60 + 7,  307 * 60 + 9,
                  307 * 60 + 13, 307 * 60 + 12, 307 * 60 + 14};
  float si2_[6] = {67 * 60 + 13, 67 * 60 + 15, 67 * 60 + 13,
                   67 * 60 + 14, 67 * 60 + 14, 67 * 60 + 14};
  float si_ave = 0, fin[6] = {0};
  for (i = 0; i < 6; i++) {
    si_ave += (abs(si1[i] - si1_[i]) + abs(360 * 60 - si2[i] + si2_[i])) / 2;
    fin[i] = (abs(si1[i] - si1_[i]) + abs(360 * 60 - si2[i] + si2_[i])) / 2;
    fin[i] /= 60;
  }
  si_ave /= 360;
  printf("ggg%f\n", si_ave);
  for (i = 0; i < 6; i++)
    printf("%f\n", fin[i]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xec7(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xec4(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xec1(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xec6(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xec3(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xec0(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xec5(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xec2(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0xebf(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xec4(%rip),%rax
mov    %rax,-0x80(%rbp)
mov    0xec1(%rip),%rax
mov    %rax,-0x78(%rbp)
mov    0xebe(%rip),%rax
mov    %rax,-0x70(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x84(%rbp)
ff
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1050 <memset@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x6,-0x8(%rbp)
jge    12fe <main+0x1ce>
movslq -0x8(%rbp),%rax
movss  -0x20(%rbp,%rax,4),%xmm0
movslq -0x8(%rbp),%rax
subss  -0x40(%rbp,%rax,4),%xmm0
cvttss2si %xmm0,%edi
call   1030 <abs@plt>
mov    %eax,-0xa8(%rbp)
movslq -0x8(%rbp),%rax
movss  0xde4(%rip),%xmm0
subss  -0x60(%rbp,%rax,4),%xmm0
movslq -0x8(%rbp),%rax
addss  -0x80(%rbp,%rax,4),%xmm0
cvttss2si %xmm0,%edi
call   1030 <abs@plt>
mov    %eax,%ecx
mov    -0xa8(%rbp),%eax
add    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cvtsi2ss %eax,%xmm0
addss  -0x84(%rbp),%xmm0
ff
movss  %xmm0,-0x84(%rbp)
ff
movslq -0x8(%rbp),%rax
movss  -0x20(%rbp,%rax,4),%xmm0
movslq -0x8(%rbp),%rax
subss  -0x40(%rbp,%rax,4),%xmm0
cvttss2si %xmm0,%edi
call   1030 <abs@plt>
mov    %eax,-0xa4(%rbp)
movslq -0x8(%rbp),%rax
movss  0xd76(%rip),%xmm0
subss  -0x60(%rbp,%rax,4),%xmm0
movslq -0x8(%rbp),%rax
addss  -0x80(%rbp,%rax,4),%xmm0
cvttss2si %xmm0,%edi
call   1030 <abs@plt>
mov    %eax,%ecx
mov    -0xa4(%rbp),%eax
add    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cvtsi2ss %eax,%xmm0
movslq -0x8(%rbp),%rax
movss  %xmm0,-0xa0(%rbp,%rax,4)
ff ff
movslq -0x8(%rbp),%rax
movss  -0xa0(%rbp,%rax,4),%xmm0
ff ff
movss  0xd21(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0xa0(%rbp,%rax,4)
ff ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11eb <main+0xbb>
movss  -0x84(%rbp),%xmm0
ff
movss  0xcf2(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x84(%rbp)
ff
movss  -0x84(%rbp),%xmm0
ff
lea    0xd5f(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x6,-0x8(%rbp)
jge    1366 <main+0x236>
movslq -0x8(%rbp),%rax
movss  -0xa0(%rbp,%rax,4),%xmm0
ff ff
lea    0xd38(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1335 <main+0x205>
mov    -0x4(%rbp),%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xef8(%rip),%rdi
movss  0xee0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xee7(%rip),%rbx
movss  0xed0(%rip),%xmm0
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xec4(%rip),%xmm0
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
movss  0xeb1(%rip),%xmm0
call   1030 <printf@plt>
mov    %rbx,%rdi
movss  0xe9d(%rip),%xmm0
call   1030 <printf@plt>
movss  0xe98(%rip),%xmm0
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
movss  0xe85(%rip),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.si1 = [6 x float] [float 7.640000e+03, float 7.638000e+03, float 7.637000e+03, float 7.638000e+03, float 7.638000e+03, float 7.637000e+03]
@__const.main.si1_ = [6 x float] [float 1.482800e+04, float 1.482700e+04, float 1.482900e+04, float 1.482800e+04, float 1.482900e+04, float 1.482900e+04]
@__const.main.si2 = [6 x float] [float 1.843000e+04, float 1.842700e+04, float 1.842900e+04, float 1.843300e+04, float 1.843200e+04, float 1.843400e+04]
@__const.main.si2_ = [6 x float] [float 4.033000e+03, float 4.035000e+03, float 4.033000e+03, float 4.034000e+03, float 4.034000e+03, float 4.034000e+03]
@.str = [7 x i8] c"ggg%f\0A\00"
@.str.1 = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [6 x float]
%4 = alloca [6 x float]
%5 = alloca [6 x float]
%6 = alloca [6 x float]
%7 = alloca float
%8 = alloca [6 x float]
store i32 0, i32* %1
%9 = bitcast [6 x float]* %3 to i8*
%10 = bitcast [6 x float]* %4 to i8*
%11 = bitcast [6 x float]* %5 to i8*
%12 = bitcast [6 x float]* %6 to i8*
store float 0.000000e+00, float* %7
%13 = bitcast [6 x float]* %8 to i8*
store i32 0, i32* %2
br label %14
14: ; preds = %80, %0
%15 = load i32, i32* %2
%16 = icmp slt i32 %15, 6
br i1 %16, label %17, label %83
17: ; preds = %14
%18 = load i32, i32* %2
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [6 x float], [6 x float]* %3, i64 0, i64 %19
%21 = load float, float* %20
%22 = load i32, i32* %2
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [6 x float], [6 x float]* %4, i64 0, i64 %23
%25 = load float, float* %24
%26 = fsub float %21, %25
%27 = fptosi float %26 to i32
%28 = call i32 @abs(i32 %27)
%29 = load i32, i32* %2
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [6 x float], [6 x float]* %5, i64 0, i64 %30
%32 = load float, float* %31
%33 = fsub float 2.160000e+04, %32
%34 = load i32, i32* %2
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [6 x float], [6 x float]* %6, i64 0, i64 %35
%37 = load float, float* %36
%38 = fadd float %33, %37
%39 = fptosi float %38 to i32
%40 = call i32 @abs(i32 %39)
%41 = add nsw i32 %28, %40
%42 = sdiv i32 %41, 2
%43 = sitofp i32 %42 to float
%44 = load float, float* %7
%45 = fadd float %44, %43
store float %45, float* %7
%46 = load i32, i32* %2
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [6 x float], [6 x float]* %3, i64 0, i64 %47
%49 = load float, float* %48
%50 = load i32, i32* %2
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [6 x float], [6 x float]* %4, i64 0, i64 %51
%53 = load float, float* %52
%54 = fsub float %49, %53
%55 = fptosi float %54 to i32
%56 = call i32 @abs(i32 %55)
%57 = load i32, i32* %2
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [6 x float], [6 x float]* %5, i64 0, i64 %58
%60 = load float, float* %59
%61 = fsub float 2.160000e+04, %60
%62 = load i32, i32* %2
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [6 x float], [6 x float]* %6, i64 0, i64 %63
%65 = load float, float* %64
%66 = fadd float %61, %65
%67 = fptosi float %66 to i32
%68 = call i32 @abs(i32 %67)
%69 = add nsw i32 %56, %68
%70 = sdiv i32 %69, 2
%71 = sitofp i32 %70 to float
%72 = load i32, i32* %2
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [6 x float], [6 x float]* %8, i64 0, i64 %73
store float %71, float* %74
%75 = load i32, i32* %2
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [6 x float], [6 x float]* %8, i64 0, i64 %76
%78 = load float, float* %77
%79 = fdiv float %78, 6.000000e+01
store float %79, float* %77
br label %80
80: ; preds = %17
%81 = load i32, i32* %2
%82 = add nsw i32 %81, 1
store i32 %82, i32* %2
br label %14
83: ; preds = %14
%84 = load float, float* %7
%85 = fdiv float %84, 3.600000e+02
store float %85, float* %7
%86 = load float, float* %7
%87 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), float %86)
store i32 0, i32* %2
br label %88
88: ; preds = %97, %83
%89 = load i32, i32* %2
%90 = icmp slt i32 %89, 6
br i1 %90, label %91, label %100
91: ; preds = %88
%92 = load i32, i32* %2
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [6 x float], [6 x float]* %8, i64 0, i64 %93
%95 = load float, float* %94
%96 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float %95)
br label %97
97: ; preds = %91
%98 = load i32, i32* %2
%99 = add nsw i32 %98, 1
store i32 %99, i32* %2
br label %88
100: ; preds = %88
%101 = load i32, i32* %1
ret i32 %101
}

LLVM IR (-O2):
@.str = [7 x i8] c"ggg%f\0A\00"
@.str.1 = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), float 0x405DFC16C0000000)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float 0x405DFAAAA0000000)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float 0x405DFDDDE0000000)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float 0x405DFDDDE0000000)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float 0x405DFAAAA0000000)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float 0x405DFBBBC0000000)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float 0x405DFBBBC0000000)
ret i32 0
}