; LLVM IR from tangjz/acm-icpc :: Summer_Training/2016-07-19/upsolved (K - tetrahedron - tjz)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Point = type { i64, i64, i64 }

@A = external dso_local global %struct.Point, align 8
@B = external dso_local global %struct.Point, align 8
@C = external dso_local global %struct.Point, align 8
@D = external dso_local global %struct.Point, align 8
@perm = external dso_local global [4 x i32], align 16
@mat = external dso_local global [4 x [4 x i64]], align 16
@alpha = external dso_local global x86_fp80, align 16
@a = external dso_local global x86_fp80, align 16
@b = external dso_local global x86_fp80, align 16
@c = external dso_local global x86_fp80, align 16
@d = external dso_local global x86_fp80, align 16
@s = external dso_local global x86_fp80, align 16
@r = external dso_local global double, align 8
@px = external dso_local global double, align 8
@py = external dso_local global double, align 8
@pz = external dso_local global double, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %struct.Point, align 8
  %8 = alloca %struct.Point, align 8
  %9 = alloca %struct.Point, align 8
  %10 = alloca %struct.Point, align 8
  %11 = alloca %struct.Point, align 8
  %12 = alloca %struct.Point, align 8
  %13 = alloca %struct.Point, align 8
  %14 = alloca %struct.Point, align 8
  %15 = alloca %struct.Point, align 8
  %16 = alloca %struct.Point, align 8
  %17 = alloca %struct.Point, align 8
  %18 = alloca %struct.Point, align 8
  store i32 0, ptr %1, align 4
  br label %19

19:                                               ; preds = %117, %115, %0
  %20 = call noundef zeroext i1 @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(24) @A)
  br i1 %20, label %21, label %27

21:                                               ; preds = %19
  %22 = call noundef zeroext i1 @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(24) @B)
  br i1 %22, label %23, label %27

23:                                               ; preds = %21
  %24 = call noundef zeroext i1 @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(24) @C)
  br i1 %24, label %25, label %27

25:                                               ; preds = %23
  %26 = call noundef zeroext i1 @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(24) @D)
  br label %27

27:                                               ; preds = %25, %23, %21, %19
  %28 = phi i1 [ false, %23 ], [ false, %21 ], [ false, %19 ], [ %26, %25 ]
  br i1 %28, label %29, label %195

29:                                               ; preds = %27
  %30 = load i64, ptr @A, align 8, !tbaa !5
  store i64 %30, ptr @mat, align 16, !tbaa !10
  %31 = load i64, ptr getelementptr inbounds (%struct.Point, ptr @A, i32 0, i32 1), align 8, !tbaa !11
  store i64 %31, ptr getelementptr inbounds ([4 x i64], ptr @mat, i64 0, i64 1), align 8, !tbaa !10
  %32 = load i64, ptr getelementptr inbounds (%struct.Point, ptr @A, i32 0, i32 2), align 8, !tbaa !12
  store i64 %32, ptr getelementptr inbounds ([4 x i64], ptr @mat, i64 0, i64 2), align 16, !tbaa !10
  store i64 1, ptr getelementptr inbounds ([4 x i64], ptr @mat, i64 0, i64 3), align 8, !tbaa !10
  %33 = load i64, ptr @B, align 8, !tbaa !5
  store i64 %33, ptr getelementptr inbounds ([4 x [4 x i64]], ptr @mat, i64 0, i64 1), align 16, !tbaa !10
  %34 = load i64, ptr getelementptr inbounds (%struct.Point, ptr @B, i32 0, i32 1), align 8, !tbaa !11
  store i64 %34, ptr getelementptr inbounds ([4 x i64], ptr getelementptr inbounds ([4 x [4 x i64]], ptr @mat, i64 0, i64 1), i64 0, i64 1), align 8, !tbaa !10
  %35 = load i64, ptr getelementptr inbounds (%struct.Point, ptr @B, i32 0, i32 2), align 8, !tbaa !12
  store i64 %35, ptr getelementptr inbounds ([4 x i64], ptr getelementptr inbounds ([4 x [4 x i64]], ptr @mat, i64 0, i64 1), i64 0, i64 2), align 16, !tbaa !10
  store i64 1, ptr getelementptr inbounds ([4 x i64], ptr getelementptr inbounds ([4 x [4 x i64]], ptr @mat, i64 0, i64 1), i64 0, i64 3), align 8, !tbaa !10
  %36 = load i64, ptr @C, align 8, !tbaa !5
  store i64 %36, ptr getelementptr inbounds ([4 x [4 x i64]], ptr @mat, i64 0, i64 2), align 16, !tbaa !10
  %37 = load i64, ptr getelementptr inbounds (%struct.Point, ptr @C, i32 0, i32 1), align 8, !tbaa !11
  store i64 %37, ptr getelementptr inbounds ([4 x i64], ptr getelementptr inbounds ([4 x [4 x i64]], ptr @mat, i64 0, i64 2), i64 0, i64 1), align 8, !tbaa !10
  %38 = load i64, ptr getelementptr inbounds (%struct.Point, ptr @C, i32 0, i32 2), align 8, !tbaa !12
  store i64 %38, ptr getelementptr inbounds ([4 x i64], ptr getelementptr inbounds ([4 x [4 x i64]], ptr @mat, i64 0, i64 2), i64 0, i64 2), align 16, !tbaa !10
  store i64 1, ptr getelementptr inbounds ([4 x i64], ptr getelementptr inbounds ([4 x [4 x i64]], ptr @mat, i64 0, i64 2), i64 0, i64 3), align 8, !tbaa !10
  %39 = load i64, ptr @D, align 8, !tbaa !5
  store i64 %39, ptr getelementptr inbounds ([4 x [4 x i64]], ptr @mat, i64 0, i64 3), align 16, !tbaa !10
  %40 = load i64, ptr getelementptr inbounds (%struct.Point, ptr @D, i32 0, i32 1), align 8, !tbaa !11
  store i64 %40, ptr getelementptr inbounds ([4 x i64], ptr getelementptr inbounds ([4 x [4 x i64]], ptr @mat, i64 0, i64 3), i64 0, i64 1), align 8, !tbaa !10
  %41 = load i64, ptr getelementptr inbounds (%struct.Point, ptr @D, i32 0, i32 2), align 8, !tbaa !12
  store i64 %41, ptr getelementptr inbounds ([4 x i64], ptr getelementptr inbounds ([4 x [4 x i64]], ptr @mat, i64 0, i64 3), i64 0, i64 2), align 16, !tbaa !10
  store i64 1, ptr getelementptr inbounds ([4 x i64], ptr getelementptr inbounds ([4 x [4 x i64]], ptr @mat, i64 0, i64 3), i64 0, i64 3), align 8, !tbaa !10
  store x86_fp80 0xK00000000000000000000, ptr @alpha, align 16, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 0, ptr %2, align 4, !tbaa !15
  br label %42

42:                                               ; preds = %51, %29
  %43 = load i32, ptr %2, align 4, !tbaa !15
  %44 = icmp slt i32 %43, 4
  br i1 %44, label %46, label %45

45:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %54

46:                                               ; preds = %42
  %47 = load i32, ptr %2, align 4, !tbaa !15
  %48 = load i32, ptr %2, align 4, !tbaa !15
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [4 x i32], ptr @perm, i64 0, i64 %49
  store i32 %47, ptr %50, align 4, !tbaa !15
  br label %51

51:                                               ; preds = %46
  %52 = load i32, ptr %2, align 4, !tbaa !15
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %2, align 4, !tbaa !15
  br label %42, !llvm.loop !17

54:                                               ; preds = %45
  br label %55

55:                                               ; preds = %104, %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  store i64 1, ptr %3, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !15
  br label %56

56:                                               ; preds = %96, %55
  %57 = load i32, ptr %4, align 4, !tbaa !15
  %58 = icmp slt i32 %57, 4
  br i1 %58, label %60, label %59

59:                                               ; preds = %56
  store i32 9, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %99

60:                                               ; preds = %56
  %61 = load i32, ptr %4, align 4, !tbaa !15
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [4 x [4 x i64]], ptr @mat, i64 0, i64 %62
  %64 = load i32, ptr %4, align 4, !tbaa !15
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [4 x i32], ptr @perm, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !15
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [4 x i64], ptr %63, i64 0, i64 %68
  %70 = load i64, ptr %69, align 8, !tbaa !10
  %71 = load i64, ptr %3, align 8, !tbaa !10
  %72 = mul nsw i64 %71, %70
  store i64 %72, ptr %3, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !15
  br label %73

73:                                               ; preds = %92, %60
  %74 = load i32, ptr %6, align 4, !tbaa !15
  %75 = load i32, ptr %4, align 4, !tbaa !15
  %76 = icmp slt i32 %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %73
  store i32 12, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %95

78:                                               ; preds = %73
  %79 = load i32, ptr %6, align 4, !tbaa !15
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [4 x i32], ptr @perm, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !15
  %83 = load i32, ptr %4, align 4, !tbaa !15
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [4 x i32], ptr @perm, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !15
  %87 = icmp sgt i32 %82, %86
  br i1 %87, label %88, label %91

88:                                               ; preds = %78
  %89 = load i64, ptr %3, align 8, !tbaa !10
  %90 = sub nsw i64 0, %89
  store i64 %90, ptr %3, align 8, !tbaa !10
  br label %91

91:                                               ; preds = %88, %78
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %6, align 4, !tbaa !15
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %6, align 4, !tbaa !15
  br label %73, !llvm.loop !19

95:                                               ; preds = %77
  br label %96

96:                                               ; preds = %95
  %97 = load i32, ptr %4, align 4, !tbaa !15
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %4, align 4, !tbaa !15
  br label %56, !llvm.loop !20

99:                                               ; preds = %59
  %100 = load i64, ptr %3, align 8, !tbaa !10
  %101 = sitofp i64 %100 to x86_fp80
  %102 = load x86_fp80, ptr @alpha, align 16, !tbaa !13
  %103 = fadd x86_fp80 %102, %101
  store x86_fp80 %103, ptr @alpha, align 16, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %104

104:                                              ; preds = %99
  %105 = call noundef zeroext i1 @_ZSt16next_permutationIPiEbT_S1_(ptr noundef @perm, ptr noundef getelementptr inbounds (i32, ptr @perm, i64 4))
  br i1 %105, label %55, label %106, !llvm.loop !21

106:                                              ; preds = %104
  %107 = load x86_fp80, ptr @alpha, align 16, !tbaa !13
  %108 = fcmp olt x86_fp80 %107, 0xK00000000000000000000
  br i1 %108, label %109, label %112

109:                                              ; preds = %106
  %110 = load x86_fp80, ptr @alpha, align 16, !tbaa !13
  %111 = fneg x86_fp80 %110
  store x86_fp80 %111, ptr @alpha, align 16, !tbaa !13
  br label %112

112:                                              ; preds = %109, %106
  %113 = load x86_fp80, ptr @alpha, align 16, !tbaa !13
  %114 = fcmp olt x86_fp80 %113, 0xK3FE4ABCC77118461D000
  br i1 %114, label %115, label %117

115:                                              ; preds = %112
  %116 = call i32 @puts(ptr noundef @.str)
  br label %19, !llvm.loop !22

117:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #7
  call void @_ZNK5PointmiERKS_(ptr dead_on_unwind writable sret(%struct.Point) align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) @C, ptr noundef nonnull align 8 dereferenceable(24) @B)
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #7
  call void @_ZNK5PointmiERKS_(ptr dead_on_unwind writable sret(%struct.Point) align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) @D, ptr noundef nonnull align 8 dereferenceable(24) @B)
  call void @_ZNK5Point3detERKS_(ptr dead_on_unwind writable sret(%struct.Point) align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9)
  %118 = call noundef x86_fp80 @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  store x86_fp80 %118, ptr @a, align 16, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #7
  call void @_ZNK5PointmiERKS_(ptr dead_on_unwind writable sret(%struct.Point) align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) @C, ptr noundef nonnull align 8 dereferenceable(24) @A)
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #7
  call void @_ZNK5PointmiERKS_(ptr dead_on_unwind writable sret(%struct.Point) align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) @D, ptr noundef nonnull align 8 dereferenceable(24) @A)
  call void @_ZNK5Point3detERKS_(ptr dead_on_unwind writable sret(%struct.Point) align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %12)
  %119 = call noundef x86_fp80 @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  store x86_fp80 %119, ptr @b, align 16, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
  call void @_ZNK5PointmiERKS_(ptr dead_on_unwind writable sret(%struct.Point) align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) @B, ptr noundef nonnull align 8 dereferenceable(24) @A)
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #7
  call void @_ZNK5PointmiERKS_(ptr dead_on_unwind writable sret(%struct.Point) align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) @D, ptr noundef nonnull align 8 dereferenceable(24) @A)
  call void @_ZNK5Point3detERKS_(ptr dead_on_unwind writable sret(%struct.Point) align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %15)
  %120 = call noundef x86_fp80 @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
  store x86_fp80 %120, ptr @c, align 16, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #7
  call void @_ZNK5PointmiERKS_(ptr dead_on_unwind writable sret(%struct.Point) align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) @B, ptr noundef nonnull align 8 dereferenceable(24) @A)
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #7
  call void @_ZNK5PointmiERKS_(ptr dead_on_unwind writable sret(%struct.Point) align 8 %18, ptr noundef nonnull align 8 dereferenceable(24) @C, ptr noundef nonnull align 8 dereferenceable(24) @A)
  call void @_ZNK5Point3detERKS_(ptr dead_on_unwind writable sret(%struct.Point) align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %18)
  %121 = call noundef x86_fp80 @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(24) %16)
  store x86_fp80 %121, ptr @d, align 16, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  %122 = load x86_fp80, ptr @a, align 16, !tbaa !13
  %123 = load x86_fp80, ptr @b, align 16, !tbaa !13
  %124 = fadd x86_fp80 %122, %123
  %125 = load x86_fp80, ptr @c, align 16, !tbaa !13
  %126 = fadd x86_fp80 %124, %125
  %127 = load x86_fp80, ptr @d, align 16, !tbaa !13
  %128 = fadd x86_fp80 %126, %127
  store x86_fp80 %128, ptr @s, align 16, !tbaa !13
  %129 = load x86_fp80, ptr @alpha, align 16, !tbaa !13
  %130 = load x86_fp80, ptr @s, align 16, !tbaa !13
  %131 = fdiv x86_fp80 %129, %130
  %132 = fptrunc x86_fp80 %131 to double
  store double %132, ptr @r, align 8, !tbaa !23
  %133 = load x86_fp80, ptr @a, align 16, !tbaa !13
  %134 = load i64, ptr @A, align 8, !tbaa !5
  %135 = sitofp i64 %134 to x86_fp80
  %136 = load x86_fp80, ptr @b, align 16, !tbaa !13
  %137 = load i64, ptr @B, align 8, !tbaa !5
  %138 = sitofp i64 %137 to x86_fp80
  %139 = fmul x86_fp80 %136, %138
  %140 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %133, x86_fp80 %135, x86_fp80 %139)
  %141 = load x86_fp80, ptr @c, align 16, !tbaa !13
  %142 = load i64, ptr @C, align 8, !tbaa !5
  %143 = sitofp i64 %142 to x86_fp80
  %144 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %141, x86_fp80 %143, x86_fp80 %140)
  %145 = load x86_fp80, ptr @d, align 16, !tbaa !13
  %146 = load i64, ptr @D, align 8, !tbaa !5
  %147 = sitofp i64 %146 to x86_fp80
  %148 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %145, x86_fp80 %147, x86_fp80 %144)
  %149 = load x86_fp80, ptr @s, align 16, !tbaa !13
  %150 = fdiv x86_fp80 %148, %149
  %151 = fptrunc x86_fp80 %150 to double
  store double %151, ptr @px, align 8, !tbaa !23
  %152 = load x86_fp80, ptr @a, align 16, !tbaa !13
  %153 = load i64, ptr getelementptr inbounds (%struct.Point, ptr @A, i32 0, i32 1), align 8, !tbaa !11
  %154 = sitofp i64 %153 to x86_fp80
  %155 = load x86_fp80, ptr @b, align 16, !tbaa !13
  %156 = load i64, ptr getelementptr inbounds (%struct.Point, ptr @B, i32 0, i32 1), align 8, !tbaa !11
  %157 = sitofp i64 %156 to x86_fp80
  %158 = fmul x86_fp80 %155, %157
  %159 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %152, x86_fp80 %154, x86_fp80 %158)
  %160 = load x86_fp80, ptr @c, align 16, !tbaa !13
  %161 = load i64, ptr getelementptr inbounds (%struct.Point, ptr @C, i32 0, i32 1), align 8, !tbaa !11
  %162 = sitofp i64 %161 to x86_fp80
  %163 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %160, x86_fp80 %162, x86_fp80 %159)
  %164 = load x86_fp80, ptr @d, align 16, !tbaa !13
  %165 = load i64, ptr getelementptr inbounds (%struct.Point, ptr @D, i32 0, i32 1), align 8, !tbaa !11
  %166 = sitofp i64 %165 to x86_fp80
  %167 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %164, x86_fp80 %166, x86_fp80 %163)
  %168 = load x86_fp80, ptr @s, align 16, !tbaa !13
  %169 = fdiv x86_fp80 %167, %168
  %170 = fptrunc x86_fp80 %169 to double
  store double %170, ptr @py, align 8, !tbaa !23
  %171 = load x86_fp80, ptr @a, align 16, !tbaa !13
  %172 = load i64, ptr getelementptr inbounds (%struct.Point, ptr @A, i32 0, i32 2), align 8, !tbaa !12
  %173 = sitofp i64 %172 to x86_fp80
  %174 = load x86_fp80, ptr @b, align 16, !tbaa !13
  %175 = load i64, ptr getelementptr inbounds (%struct.Point, ptr @B, i32 0, i32 2), align 8, !tbaa !12
  %176 = sitofp i64 %175 to x86_fp80
  %177 = fmul x86_fp80 %174, %176
  %178 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %171, x86_fp80 %173, x86_fp80 %177)
  %179 = load x86_fp80, ptr @c, align 16, !tbaa !13
  %180 = load i64, ptr getelementptr inbounds (%struct.Point, ptr @C, i32 0, i32 2), align 8, !tbaa !12
  %181 = sitofp i64 %180 to x86_fp80
  %182 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %179, x86_fp80 %181, x86_fp80 %178)
  %183 = load x86_fp80, ptr @d, align 16, !tbaa !13
  %184 = load i64, ptr getelementptr inbounds (%struct.Point, ptr @D, i32 0, i32 2), align 8, !tbaa !12
  %185 = sitofp i64 %184 to x86_fp80
  %186 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %183, x86_fp80 %185, x86_fp80 %182)
  %187 = load x86_fp80, ptr @s, align 16, !tbaa !13
  %188 = fdiv x86_fp80 %186, %187
  %189 = fptrunc x86_fp80 %188 to double
  store double %189, ptr @pz, align 8, !tbaa !23
  %190 = load double, ptr @px, align 8, !tbaa !23
  %191 = load double, ptr @py, align 8, !tbaa !23
  %192 = load double, ptr @pz, align 8, !tbaa !23
  %193 = load double, ptr @r, align 8, !tbaa !23
  %194 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %190, double noundef %191, double noundef %192, double noundef %193)
  br label %19, !llvm.loop !22

195:                                              ; preds = %27
  ret i32 0
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSt16next_permutationIPiEbT_S1_(ptr noundef, ptr noundef) #3

declare i32 @puts(ptr noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK5PointmiERKS_(ptr dead_on_unwind noalias writable sret(%struct.Point) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK5Point3detERKS_(ptr dead_on_unwind noalias writable sret(%struct.Point) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #6

declare i32 @printf(ptr noundef, ...) #4

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS5Point", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"long long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!6, !7, i64 16}
!13 = !{!14, !14, i64 0}
!14 = !{!"long double", !8, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = !{!24, !24, i64 0}
!24 = !{!"double", !8, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Point = type { i64, i64, i64 }

@A = external dso_local global %struct.Point, align 8
@B = external dso_local global %struct.Point, align 8
@C = external dso_local global %struct.Point, align 8
@D = external dso_local global %struct.Point, align 8
@perm = external dso_local global [4 x i32], align 16
@mat = external dso_local local_unnamed_addr global [4 x [4 x i64]], align 16
@alpha = external dso_local local_unnamed_addr global x86_fp80, align 16
@a = external dso_local local_unnamed_addr global x86_fp80, align 16
@b = external dso_local local_unnamed_addr global x86_fp80, align 16
@c = external dso_local local_unnamed_addr global x86_fp80, align 16
@d = external dso_local local_unnamed_addr global x86_fp80, align 16
@s = external dso_local local_unnamed_addr global x86_fp80, align 16
@r = external dso_local local_unnamed_addr global double, align 8
@px = external dso_local local_unnamed_addr global double, align 8
@py = external dso_local local_unnamed_addr global double, align 8
@pz = external dso_local local_unnamed_addr global double, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %struct.Point, align 8
  %2 = alloca %struct.Point, align 8
  %3 = alloca %struct.Point, align 8
  %4 = alloca %struct.Point, align 8
  %5 = alloca %struct.Point, align 8
  %6 = alloca %struct.Point, align 8
  %7 = alloca %struct.Point, align 8
  %8 = alloca %struct.Point, align 8
  %9 = alloca %struct.Point, align 8
  %10 = alloca %struct.Point, align 8
  %11 = alloca %struct.Point, align 8
  %12 = alloca %struct.Point, align 8
  %13 = tail call noundef zeroext i1 @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(24) @A)
  br i1 %13, label %.lr.ph26, label %.critedge

.lr.ph26:                                         ; preds = %0, %.backedge
  %14 = call noundef zeroext i1 @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(24) @B)
  br i1 %14, label %15, label %.critedge

15:                                               ; preds = %.lr.ph26
  %16 = call noundef zeroext i1 @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(24) @C)
  br i1 %16, label %17, label %.critedge

17:                                               ; preds = %15
  %18 = call noundef zeroext i1 @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(24) @D)
  br i1 %18, label %.preheader.preheader, label %.critedge

.preheader.preheader:                             ; preds = %17
  %19 = load <2 x i64>, ptr @A, align 8, !tbaa !5
  store <2 x i64> %19, ptr @mat, align 16, !tbaa !5
  %20 = load i64, ptr getelementptr inbounds (i8, ptr @A, i64 16), align 8, !tbaa !9
  store i64 %20, ptr getelementptr inbounds (i8, ptr @mat, i64 16), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @mat, i64 24), align 8, !tbaa !5
  %21 = load <2 x i64>, ptr @B, align 8, !tbaa !5
  store <2 x i64> %21, ptr getelementptr inbounds (i8, ptr @mat, i64 32), align 16, !tbaa !5
  %22 = load i64, ptr getelementptr inbounds (i8, ptr @B, i64 16), align 8, !tbaa !9
  store i64 %22, ptr getelementptr inbounds (i8, ptr @mat, i64 48), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @mat, i64 56), align 8, !tbaa !5
  %23 = load <2 x i64>, ptr @C, align 8, !tbaa !5
  store <2 x i64> %23, ptr getelementptr inbounds (i8, ptr @mat, i64 64), align 16, !tbaa !5
  %24 = load i64, ptr getelementptr inbounds (i8, ptr @C, i64 16), align 8, !tbaa !9
  store i64 %24, ptr getelementptr inbounds (i8, ptr @mat, i64 80), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @mat, i64 88), align 8, !tbaa !5
  %25 = load <2 x i64>, ptr @D, align 8, !tbaa !5
  store <2 x i64> %25, ptr getelementptr inbounds (i8, ptr @mat, i64 96), align 16, !tbaa !5
  %26 = load i64, ptr getelementptr inbounds (i8, ptr @D, i64 16), align 8, !tbaa !9
  store i64 %26, ptr getelementptr inbounds (i8, ptr @mat, i64 112), align 16, !tbaa !5
  store i64 1, ptr getelementptr inbounds (i8, ptr @mat, i64 120), align 8, !tbaa !5
  store x86_fp80 0xK00000000000000000000, ptr @alpha, align 16, !tbaa !11
  store <4 x i32> <i32 0, i32 1, i32 2, i32 3>, ptr @perm, align 16, !tbaa !13
  br label %._crit_edge.3

._crit_edge.3:                                    ; preds = %.preheader.preheader, %._crit_edge.3
  %27 = load i32, ptr @perm, align 16, !tbaa !13
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [4 x [4 x i64]], ptr @mat, i64 0, i64 0, i64 %28
  %30 = load i64, ptr %29, align 8, !tbaa !5
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @perm, i64 4), align 4, !tbaa !13
  %32 = load i32, ptr getelementptr inbounds (i8, ptr @perm, i64 8), align 8, !tbaa !13
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @perm, i64 12), align 4, !tbaa !13
  %34 = icmp sgt i32 %32, %33
  %35 = icmp sgt i32 %31, %33
  %36 = icmp sgt i32 %27, %33
  %37 = sext i32 %33 to i64
  %38 = getelementptr inbounds [4 x [4 x i64]], ptr @mat, i64 0, i64 3, i64 %37
  %39 = load i64, ptr %38, align 8, !tbaa !5
  %40 = icmp sgt i32 %31, %32
  %41 = icmp sgt i32 %27, %32
  %42 = sext i32 %32 to i64
  %43 = getelementptr inbounds [4 x [4 x i64]], ptr @mat, i64 0, i64 2, i64 %42
  %44 = load i64, ptr %43, align 8, !tbaa !5
  %45 = icmp sgt i32 %27, %31
  %46 = sext i32 %31 to i64
  %47 = getelementptr inbounds [4 x [4 x i64]], ptr @mat, i64 0, i64 1, i64 %46
  %48 = load i64, ptr %47, align 8, !tbaa !5
  %49 = mul nsw i64 %48, %30
  %50 = sub nsw i64 0, %49
  %spec.select.1 = select i1 %45, i64 %50, i64 %49
  %51 = mul nsw i64 %44, %spec.select.1
  %52 = sub nsw i64 0, %51
  %spec.select.2 = select i1 %41, i64 %52, i64 %51
  %53 = sub nsw i64 0, %spec.select.2
  %spec.select.2.1 = select i1 %40, i64 %53, i64 %spec.select.2
  %54 = mul nsw i64 %39, %spec.select.2.1
  %55 = sub nsw i64 0, %54
  %spec.select.3 = select i1 %36, i64 %55, i64 %54
  %56 = sub nsw i64 0, %spec.select.3
  %spec.select.3.1 = select i1 %35, i64 %56, i64 %spec.select.3
  %57 = sub nsw i64 0, %spec.select.3.1
  %spec.select.3.2 = select i1 %34, i64 %57, i64 %spec.select.3.1
  %58 = sitofp i64 %spec.select.3.2 to x86_fp80
  %59 = load x86_fp80, ptr @alpha, align 16, !tbaa !11
  %60 = fadd x86_fp80 %59, %58
  store x86_fp80 %60, ptr @alpha, align 16, !tbaa !11
  %61 = call noundef zeroext i1 @_ZSt16next_permutationIPiEbT_S1_(ptr noundef nonnull @perm, ptr noundef nonnull getelementptr inbounds (i8, ptr @perm, i64 16))
  br i1 %61, label %._crit_edge.3, label %62, !llvm.loop !15

62:                                               ; preds = %._crit_edge.3
  %63 = load x86_fp80, ptr @alpha, align 16, !tbaa !11
  %64 = fcmp olt x86_fp80 %63, 0xK00000000000000000000
  br i1 %64, label %65, label %67

65:                                               ; preds = %62
  %66 = fneg x86_fp80 %63
  store x86_fp80 %66, ptr @alpha, align 16, !tbaa !11
  br label %67

67:                                               ; preds = %65, %62
  %68 = phi x86_fp80 [ %66, %65 ], [ %63, %62 ]
  %69 = fcmp olt x86_fp80 %68, 0xK3FE4ABCC77118461D000
  br i1 %69, label %70, label %73

70:                                               ; preds = %67
  %71 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str)
  br label %.backedge

.backedge:                                        ; preds = %70, %73
  %72 = call noundef zeroext i1 @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(24) @A)
  br i1 %72, label %.lr.ph26, label %.critedge, !llvm.loop !17

73:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #7
  call void @_ZNK5PointmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Point) align 8 %2, ptr noundef nonnull align 8 dereferenceable(24) @C, ptr noundef nonnull align 8 dereferenceable(24) @B)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  call void @_ZNK5PointmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Point) align 8 %3, ptr noundef nonnull align 8 dereferenceable(24) @D, ptr noundef nonnull align 8 dereferenceable(24) @B)
  call void @_ZNK5Point3detERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Point) align 8 %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3)
  %74 = call noundef x86_fp80 @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  store x86_fp80 %74, ptr @a, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  call void @_ZNK5PointmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Point) align 8 %5, ptr noundef nonnull align 8 dereferenceable(24) @C, ptr noundef nonnull align 8 dereferenceable(24) @A)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  call void @_ZNK5PointmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Point) align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) @D, ptr noundef nonnull align 8 dereferenceable(24) @A)
  call void @_ZNK5Point3detERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Point) align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
  %75 = call noundef x86_fp80 @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(24) %4)
  store x86_fp80 %75, ptr @b, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @_ZNK5PointmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Point) align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) @B, ptr noundef nonnull align 8 dereferenceable(24) @A)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #7
  call void @_ZNK5PointmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Point) align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) @D, ptr noundef nonnull align 8 dereferenceable(24) @A)
  call void @_ZNK5Point3detERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Point) align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9)
  %76 = call noundef x86_fp80 @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  store x86_fp80 %76, ptr @c, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @_ZNK5PointmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Point) align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) @B, ptr noundef nonnull align 8 dereferenceable(24) @A)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #7
  call void @_ZNK5PointmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Point) align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) @C, ptr noundef nonnull align 8 dereferenceable(24) @A)
  call void @_ZNK5Point3detERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Point) align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %12)
  %77 = call noundef x86_fp80 @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  store x86_fp80 %77, ptr @d, align 16, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  %78 = load x86_fp80, ptr @a, align 16, !tbaa !11
  %79 = load x86_fp80, ptr @b, align 16, !tbaa !11
  %80 = fadd x86_fp80 %78, %79
  %81 = load x86_fp80, ptr @c, align 16, !tbaa !11
  %82 = fadd x86_fp80 %80, %81
  %83 = fadd x86_fp80 %77, %82
  store x86_fp80 %83, ptr @s, align 16, !tbaa !11
  %84 = load x86_fp80, ptr @alpha, align 16, !tbaa !11
  %85 = fdiv x86_fp80 %84, %83
  %86 = fptrunc x86_fp80 %85 to double
  store double %86, ptr @r, align 8, !tbaa !18
  %87 = load i64, ptr @A, align 8, !tbaa !20
  %88 = sitofp i64 %87 to x86_fp80
  %89 = load i64, ptr @B, align 8, !tbaa !20
  %90 = sitofp i64 %89 to x86_fp80
  %91 = fmul x86_fp80 %79, %90
  %92 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %78, x86_fp80 %88, x86_fp80 %91)
  %93 = load i64, ptr @C, align 8, !tbaa !20
  %94 = sitofp i64 %93 to x86_fp80
  %95 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %81, x86_fp80 %94, x86_fp80 %92)
  %96 = load i64, ptr @D, align 8, !tbaa !20
  %97 = sitofp i64 %96 to x86_fp80
  %98 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %77, x86_fp80 %97, x86_fp80 %95)
  %99 = fdiv x86_fp80 %98, %83
  %100 = fptrunc x86_fp80 %99 to double
  store double %100, ptr @px, align 8, !tbaa !18
  %101 = load i64, ptr getelementptr inbounds (i8, ptr @A, i64 8), align 8, !tbaa !21
  %102 = sitofp i64 %101 to x86_fp80
  %103 = load i64, ptr getelementptr inbounds (i8, ptr @B, i64 8), align 8, !tbaa !21
  %104 = sitofp i64 %103 to x86_fp80
  %105 = fmul x86_fp80 %79, %104
  %106 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %78, x86_fp80 %102, x86_fp80 %105)
  %107 = load i64, ptr getelementptr inbounds (i8, ptr @C, i64 8), align 8, !tbaa !21
  %108 = sitofp i64 %107 to x86_fp80
  %109 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %81, x86_fp80 %108, x86_fp80 %106)
  %110 = load i64, ptr getelementptr inbounds (i8, ptr @D, i64 8), align 8, !tbaa !21
  %111 = sitofp i64 %110 to x86_fp80
  %112 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %77, x86_fp80 %111, x86_fp80 %109)
  %113 = fdiv x86_fp80 %112, %83
  %114 = fptrunc x86_fp80 %113 to double
  store double %114, ptr @py, align 8, !tbaa !18
  %115 = load i64, ptr getelementptr inbounds (i8, ptr @A, i64 16), align 8, !tbaa !9
  %116 = sitofp i64 %115 to x86_fp80
  %117 = load i64, ptr getelementptr inbounds (i8, ptr @B, i64 16), align 8, !tbaa !9
  %118 = sitofp i64 %117 to x86_fp80
  %119 = fmul x86_fp80 %79, %118
  %120 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %78, x86_fp80 %116, x86_fp80 %119)
  %121 = load i64, ptr getelementptr inbounds (i8, ptr @C, i64 16), align 8, !tbaa !9
  %122 = sitofp i64 %121 to x86_fp80
  %123 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %81, x86_fp80 %122, x86_fp80 %120)
  %124 = load i64, ptr getelementptr inbounds (i8, ptr @D, i64 16), align 8, !tbaa !9
  %125 = sitofp i64 %124 to x86_fp80
  %126 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %77, x86_fp80 %125, x86_fp80 %123)
  %127 = fdiv x86_fp80 %126, %83
  %128 = fptrunc x86_fp80 %127 to double
  store double %128, ptr @pz, align 8, !tbaa !18
  %129 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %100, double noundef %114, double noundef %128, double noundef %86)
  br label %.backedge

.critedge:                                        ; preds = %17, %.backedge, %.lr.ph26, %15, %0
  ret i32 0
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSt16next_permutationIPiEbT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK5PointmiERKS_(ptr dead_on_unwind noalias writable sret(%struct.Point) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK5Point3detERKS_(ptr dead_on_unwind noalias writable sret(%struct.Point) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZNK5Point4modeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #6

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"_ZTS5Point", !6, i64 0, !6, i64 8, !6, i64 16}
!11 = !{!12, !12, i64 0}
!12 = !{!"long double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = !{!10, !6, i64 0}
!21 = !{!10, !6, i64 8}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass