program main
implicit None
	integer::x1,y1,x2,y2,x3,y3,x4,y4
	complex::p1,p2,p3,p4,j
	
	read *,x1,y1,x2,y2
	p1 = cmplx(x1,y1)
	p2 = cmplx(x2,y2)
	
	j = (0,-1)
	p3 = p2 + (p1 - p2)*j
	
	j = (0,1)
	p4 = p1 + (p2 - p1)*j
	
	x3 = int(real(p3))
	y3 = int(aimag(p3))
	x4 = int(real(p4))
	y4 = int(aimag(p4))
	
	print 101,x3,y3,x4,y4
	
101 format(i0,1x,i0,1x,i0,1x,i0)
end program main
; 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.703a1e28cb941ce0de232860de69f5cc = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_5584/source.f\00"
@_QQcl.2869302C31782C69302C31782C69302C31782C693029 = linkonce constant [22 x i8] c"(i0,1x,i0,1x,i0,1x,i0)"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.703a1e28cb941ce0de232860de69f5cc, i32 6)
  %6 = call i1 @_FortranAioInputInteger(ptr %5, ptr nonnull %1, i32 4)
  %7 = call i1 @_FortranAioInputInteger(ptr %5, ptr nonnull %3, i32 4)
  %8 = call i1 @_FortranAioInputInteger(ptr %5, ptr nonnull %2, i32 4)
  %9 = call i1 @_FortranAioInputInteger(ptr %5, ptr nonnull %4, i32 4)
  %10 = call i32 @_FortranAioEndIoStatement(ptr %5)
  %11 = load i32, ptr %1, align 4, !tbaa !3
  %12 = sitofp i32 %11 to float
  %13 = load i32, ptr %3, align 4, !tbaa !3
  %14 = sitofp i32 %13 to float
  %15 = load i32, ptr %2, align 4, !tbaa !3
  %16 = sitofp i32 %15 to float
  %17 = load i32, ptr %4, align 4, !tbaa !3
  %18 = sitofp i32 %17 to float
  %19 = fsub float %12, %16
  %20 = fsub float %14, %18
  %21 = fmul float %19, 0.000000e+00
  %22 = fmul float %20, 0.000000e+00
  %23 = fsub float %22, %19
  %24 = fadd float %21, %20
  %25 = fadd float %24, %16
  %26 = fadd float %23, %18
  %27 = fsub float %16, %12
  %28 = fsub float %18, %14
  %29 = fmul float %27, 0.000000e+00
  %30 = fmul float %28, 0.000000e+00
  %31 = fadd float %27, %30
  %32 = fsub float %29, %28
  %33 = fadd float %32, %12
  %34 = fadd float %31, %14
  %35 = fptosi float %25 to i32
  %36 = fptosi float %26 to i32
  %37 = fptosi float %33 to i32
  %38 = fptosi float %34 to i32
  %39 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.2869302C31782C69302C31782C69302C31782C693029, i64 22, ptr null, i32 -1, ptr nonnull @_QQcl.703a1e28cb941ce0de232860de69f5cc, i32 21)
  %40 = call i1 @_FortranAioOutputInteger32(ptr %39, i32 %35)
  %41 = call i1 @_FortranAioOutputInteger32(ptr %39, i32 %36)
  %42 = call i1 @_FortranAioOutputInteger32(ptr %39, i32 %37)
  %43 = call i1 @_FortranAioOutputInteger32(ptr %39, i32 %38)
  %44 = call i32 @_FortranAioEndIoStatement(ptr %39)
  ret void
}

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

declare i1 @_FortranAioInputInteger(ptr, ptr, i32) local_unnamed_addr

declare i32 @_FortranAioEndIoStatement(ptr) local_unnamed_addr

declare ptr @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioOutputInteger32(ptr, i32) local_unnamed_addr

!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"}
