      PROGRAM Colon
      IMPLICIT NONE
      integer,parameter :: p = 8
      real(p),parameter :: pip=3.1415926535897932384626433832795028
      real(p) :: pi = acos(-1d0)
      real(p) :: a,b,h,m
      real(p) :: angleA,angleB,angleSub
      real(p) :: xa,ya,xb,yb
      
    !  print*,pip
    !  print*,pi
      
      read*,a,b,h,m
    !  h = h + m/60d0
      
    !  angleA = h/12d0*2*pi
    !  angleB = m/60d0*2*pi
      
      angleA = (h+m/60)/12*2*pi
      angleB = m/60d0*2*pi
      
      
      xa = a*sin(angleA)
      ya = a*cos(angleA)
      xb = b*sin(angleB)
      yb = b*cos(angleB)
      
      print*, sqrt( (xa-xb)**2 + (ya-yb)**2 )
      
      
      
      END PROGRAM
; ModuleID = 'FIRModule'
source_filename = "FIRModule"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"

@_QQcl.3ecaa6cd43bb6eb84b8ec3e3d8cee051 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_1393/source.f\00"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.3ecaa6cd43bb6eb84b8ec3e3d8cee051, i32 13)
  %6 = call i1 @_FortranAioInputReal64(ptr %5, ptr nonnull %1)
  %7 = call i1 @_FortranAioInputReal64(ptr %5, ptr nonnull %2)
  %8 = call i1 @_FortranAioInputReal64(ptr %5, ptr nonnull %3)
  %9 = call i1 @_FortranAioInputReal64(ptr %5, ptr nonnull %4)
  %10 = call i32 @_FortranAioEndIoStatement(ptr %5)
  %11 = load double, ptr %3, align 8, !tbaa !3
  %12 = load double, ptr %4, align 8, !tbaa !3
  %13 = fdiv contract double %12, 6.000000e+01
  %14 = fadd contract double %11, %13
  %15 = fdiv contract double %14, 1.200000e+01
  %16 = fmul contract double %15, 2.000000e+00
  %17 = fmul contract double %16, 0x400921FB54442D18
  %18 = fmul contract double %13, 2.000000e+00
  %19 = fmul contract double %18, 0x400921FB54442D18
  %20 = load double, ptr %1, align 8, !tbaa !3
  %21 = call contract double @llvm.sin.f64(double %17)
  %22 = fmul contract double %20, %21
  %23 = call contract double @llvm.cos.f64(double %17)
  %24 = fmul contract double %20, %23
  %25 = load double, ptr %2, align 8, !tbaa !3
  %26 = call contract double @llvm.sin.f64(double %19)
  %27 = fmul contract double %25, %26
  %28 = call contract double @llvm.cos.f64(double %19)
  %29 = fmul contract double %25, %28
  %30 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.3ecaa6cd43bb6eb84b8ec3e3d8cee051, i32 28)
  %31 = fsub contract double %22, %27
  %32 = fmul double %31, %31
  %33 = fsub contract double %24, %29
  %34 = fmul double %33, %33
  %35 = fadd contract double %32, %34
  %36 = call contract double @llvm.sqrt.f64(double %35)
  %37 = call i1 @_FortranAioOutputReal64(ptr %30, double %36)
  %38 = call i32 @_FortranAioEndIoStatement(ptr %30)
  ret void
}

declare ptr @_FortranAioBeginExternalListInput(i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioInputReal64(ptr, ptr) local_unnamed_addr

declare i32 @_FortranAioEndIoStatement(ptr) local_unnamed_addr

declare ptr @_FortranAioBeginExternalListOutput(i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioOutputReal64(ptr, double) local_unnamed_addr

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.sin.f64(double) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.cos.f64(double) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.sqrt.f64(double) #0

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!llvm.module.flags = !{!0, !1, !2}

!0 = !{i32 2, !"Debug Info Version", i32 3}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{!4, !4, i64 0}
!4 = !{!"any data access", !5, i64 0}
!5 = !{!"any access", !6, i64 0}
!6 = !{!"Flang Type TBAA Root"}
