; LLVM IR from tangjz/acm-icpc :: 51nod (1369)

; 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.Line = type { %struct.Point, %struct.Point }
%struct.Point = type { i32, i32 }
%struct.Event = type { %struct.Point, i32 }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@tot = external dso_local global i32, align 4
@a = external dso_local global [51 x %struct.Line], align 16
@que = external dso_local global [1001 x %struct.Event], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [64 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5solvev() #0

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %struct.Point, align 4
  %4 = alloca %struct.Point, align 4
  %5 = alloca %struct.Line, align 4
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.Line, align 4
  %11 = alloca %struct.Line, align 4
  %12 = alloca %struct.Point, align 4
  %13 = alloca %struct.Point, align 4
  %14 = alloca %struct.Point, align 4
  %15 = alloca %struct.Point, align 4
  %16 = alloca %struct.Point, align 4
  %17 = alloca %struct.Point, align 4
  %18 = alloca %struct.Event, align 4
  %19 = alloca %struct.Point, align 4
  %20 = alloca %struct.Event, align 4
  %21 = alloca %struct.Point, align 4
  %22 = alloca %struct.Event, align 4
  %23 = alloca %struct.Point, align 4
  %24 = alloca %struct.Event, align 4
  %25 = alloca %struct.Point, align 4
  store i32 0, ptr %1, align 4
  %26 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %27

27:                                               ; preds = %168, %0
  %28 = load i32, ptr @t, align 4, !tbaa !5
  %29 = add nsw i32 %28, -1
  store i32 %29, ptr @t, align 4, !tbaa !5
  %30 = icmp ne i32 %28, 0
  br i1 %30, label %31, label %173

31:                                               ; preds = %27
  %32 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %51, %31
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = load i32, ptr @n, align 4, !tbaa !5
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %38, label %37

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

38:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  call void @_ZN5Point4readEv(ptr noundef nonnull align 4 dereferenceable(8) %3)
  call void @_ZN5Point4readEv(ptr noundef nonnull align 4 dereferenceable(8) %4)
  %39 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4)
  %40 = xor i1 %39, true
  br i1 %40, label %41, label %42

41:                                               ; preds = %38
  br label %44

42:                                               ; preds = %38
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 119, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

43:                                               ; No predecessors!
  br label %44

44:                                               ; preds = %43, %41
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #8
  %45 = getelementptr inbounds %struct.Line, ptr %5, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %3, i64 8, i1 false), !tbaa.struct !9
  %46 = getelementptr inbounds %struct.Line, ptr %5, i32 0, i32 1
  %47 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %3)
  store i64 %47, ptr %46, align 4
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [51 x %struct.Line], ptr @a, i64 0, i64 %49
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %50, ptr align 4 %5, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %51

51:                                               ; preds = %44
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %2, align 4, !tbaa !5
  br label %33, !llvm.loop !11

54:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #8
  store i8 0, ptr %6, align 1, !tbaa !13
  store i32 0, ptr @tot, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %160, %54
  %56 = load i32, ptr %7, align 4, !tbaa !5
  %57 = load i32, ptr @n, align 4, !tbaa !5
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %59, label %63

59:                                               ; preds = %55
  %60 = load i8, ptr %6, align 1, !tbaa !13, !range !15, !noundef !16
  %61 = trunc i8 %60 to i1
  %62 = xor i1 %61, true
  br label %63

63:                                               ; preds = %59, %55
  %64 = phi i1 [ false, %55 ], [ %62, %59 ]
  br i1 %64, label %66, label %65

65:                                               ; preds = %63
  store i32 7, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %163

66:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %67 = load i32, ptr %7, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %9, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %155, %66
  %70 = load i32, ptr %9, align 4, !tbaa !5
  %71 = load i32, ptr @n, align 4, !tbaa !5
  %72 = icmp slt i32 %70, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %69
  store i32 10, ptr %8, align 4
  br label %158

74:                                               ; preds = %69
  %75 = load i32, ptr %7, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [51 x %struct.Line], ptr @a, i64 0, i64 %76
  %78 = load i32, ptr %9, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [51 x %struct.Line], ptr @a, i64 0, i64 %79
  %81 = call noundef zeroext i1 @_ZNK4Line8parallelERKS_(ptr noundef nonnull align 4 dereferenceable(16) %77, ptr noundef nonnull align 4 dereferenceable(16) %80)
  br i1 %81, label %82, label %83

82:                                               ; preds = %74
  br label %155

83:                                               ; preds = %74
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [51 x %struct.Line], ptr @a, i64 0, i64 %85
  %87 = load i32, ptr %9, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [51 x %struct.Line], ptr @a, i64 0, i64 %88
  %90 = call noundef zeroext i1 @_ZNK4Line9intersectERKS_(ptr noundef nonnull align 4 dereferenceable(16) %86, ptr noundef nonnull align 4 dereferenceable(16) %89)
  br i1 %90, label %91, label %92

91:                                               ; preds = %83
  store i8 1, ptr %6, align 1, !tbaa !13
  store i32 10, ptr %8, align 4
  br label %158

92:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  %93 = load i32, ptr %7, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [51 x %struct.Line], ptr @a, i64 0, i64 %94
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 16 %95, i64 16, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  %96 = load i32, ptr %9, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [51 x %struct.Line], ptr @a, i64 0, i64 %97
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 16 %98, i64 16, i1 false), !tbaa.struct !10
  %99 = getelementptr inbounds %struct.Line, ptr %10, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %100 = getelementptr inbounds %struct.Line, ptr %11, i32 0, i32 0
  %101 = getelementptr inbounds %struct.Line, ptr %11, i32 0, i32 1
  %102 = call i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %100, ptr noundef nonnull align 4 dereferenceable(8) %101)
  store i64 %102, ptr %12, align 4
  %103 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %99, ptr noundef nonnull align 4 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br i1 %103, label %104, label %105

104:                                              ; preds = %92
  call void @_ZN4Line7reverseEv(ptr noundef nonnull align 4 dereferenceable(16) %11)
  br label %105

105:                                              ; preds = %104, %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %106 = getelementptr inbounds %struct.Line, ptr %10, i32 0, i32 0
  %107 = getelementptr inbounds %struct.Line, ptr %10, i32 0, i32 1
  %108 = call i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %106, ptr noundef nonnull align 4 dereferenceable(8) %107)
  store i64 %108, ptr %13, align 4
  %109 = getelementptr inbounds %struct.Line, ptr %11, i32 0, i32 0
  %110 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %109)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br i1 %110, label %111, label %112

111:                                              ; preds = %105
  call void @_ZN4Line7reverseEv(ptr noundef nonnull align 4 dereferenceable(16) %10)
  br label %112

112:                                              ; preds = %111, %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %113 = getelementptr inbounds %struct.Line, ptr %10, i32 0, i32 0
  %114 = getelementptr inbounds %struct.Line, ptr %10, i32 0, i32 1
  %115 = call i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %113, ptr noundef nonnull align 4 dereferenceable(8) %114)
  store i64 %115, ptr %14, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %116 = getelementptr inbounds %struct.Line, ptr %11, i32 0, i32 0
  %117 = getelementptr inbounds %struct.Line, ptr %11, i32 0, i32 1
  %118 = call i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %116, ptr noundef nonnull align 4 dereferenceable(8) %117)
  store i64 %118, ptr %15, align 4
  %119 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br i1 %119, label %120, label %121

120:                                              ; preds = %112
  call void @_ZN4Line7reverseEv(ptr noundef nonnull align 4 dereferenceable(16) %10)
  call void @_ZN4Line7reverseEv(ptr noundef nonnull align 4 dereferenceable(16) %11)
  br label %121

121:                                              ; preds = %120, %112
  %122 = getelementptr inbounds %struct.Line, ptr %10, i32 0, i32 0
  %123 = getelementptr inbounds %struct.Line, ptr %11, i32 0, i32 0
  %124 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %122, ptr noundef nonnull align 4 dereferenceable(8) %123)
  br i1 %124, label %125, label %154

125:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %126 = getelementptr inbounds %struct.Line, ptr %10, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %126, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %127 = getelementptr inbounds %struct.Line, ptr %11, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %127, i64 8, i1 false), !tbaa.struct !9
  %128 = call noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %17)
  %129 = icmp slt i32 %128, 0
  br i1 %129, label %130, label %131

130:                                              ; preds = %125
  call void @_ZSt4swapI5PointENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %17) #8
  br label %131

131:                                              ; preds = %130, %125
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #8
  %132 = call i64 @_ZNK5Point6negateEv(ptr noundef nonnull align 4 dereferenceable(8) %17)
  store i64 %132, ptr %19, align 4
  %133 = load i64, ptr %19, align 4
  call void @_ZN5EventC2E5Pointi(ptr noundef nonnull align 4 dereferenceable(12) %18, i64 %133, i32 noundef 1)
  %134 = load i32, ptr @tot, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr @tot, align 4, !tbaa !5
  %136 = sext i32 %134 to i64
  %137 = getelementptr inbounds [1001 x %struct.Event], ptr @que, i64 0, i64 %136
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %137, ptr align 4 %18, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %16, i64 8, i1 false), !tbaa.struct !9
  %138 = load i64, ptr %21, align 4
  call void @_ZN5EventC2E5Pointi(ptr noundef nonnull align 4 dereferenceable(12) %20, i64 %138, i32 noundef -1)
  %139 = load i32, ptr @tot, align 4, !tbaa !5
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr @tot, align 4, !tbaa !5
  %141 = sext i32 %139 to i64
  %142 = getelementptr inbounds [1001 x %struct.Event], ptr @que, i64 0, i64 %141
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %142, ptr align 4 %20, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !9
  %143 = load i64, ptr %23, align 4
  call void @_ZN5EventC2E5Pointi(ptr noundef nonnull align 4 dereferenceable(12) %22, i64 %143, i32 noundef 1)
  %144 = load i32, ptr @tot, align 4, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr @tot, align 4, !tbaa !5
  %146 = sext i32 %144 to i64
  %147 = getelementptr inbounds [1001 x %struct.Event], ptr @que, i64 0, i64 %146
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %147, ptr align 4 %22, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #8
  %148 = call i64 @_ZNK5Point6negateEv(ptr noundef nonnull align 4 dereferenceable(8) %16)
  store i64 %148, ptr %25, align 4
  %149 = load i64, ptr %25, align 4
  call void @_ZN5EventC2E5Pointi(ptr noundef nonnull align 4 dereferenceable(12) %24, i64 %149, i32 noundef -1)
  %150 = load i32, ptr @tot, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr @tot, align 4, !tbaa !5
  %152 = sext i32 %150 to i64
  %153 = getelementptr inbounds [1001 x %struct.Event], ptr @que, i64 0, i64 %152
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %153, ptr align 4 %24, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %154

154:                                              ; preds = %131, %121
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  br label %155

155:                                              ; preds = %154, %82
  %156 = load i32, ptr %9, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %9, align 4, !tbaa !5
  br label %69, !llvm.loop !18

158:                                              ; preds = %91, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %159

159:                                              ; preds = %158
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %7, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %7, align 4, !tbaa !5
  br label %55, !llvm.loop !19

163:                                              ; preds = %65
  %164 = load i8, ptr %6, align 1, !tbaa !13, !range !15, !noundef !16
  %165 = trunc i8 %164 to i1
  br i1 %165, label %168, label %166

166:                                              ; preds = %163
  %167 = call noundef zeroext i1 @_Z5solvev()
  br label %168

168:                                              ; preds = %166, %163
  %169 = phi i1 [ true, %163 ], [ %167, %166 ]
  %170 = zext i1 %169 to i64
  %171 = select i1 %169, ptr @.str.3, ptr @.str.4
  %172 = call i32 @puts(ptr noundef %171)
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #8
  br label %27, !llvm.loop !20

173:                                              ; preds = %27
  ret i32 0
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Point4readEv(ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Line8parallelERKS_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4Line9intersectERKS_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Line7reverseEv(ptr noundef nonnull align 4 dereferenceable(16)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapI5PointENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK5Point6negateEv(ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5EventC2E5Pointi(ptr noundef nonnull align 4 dereferenceable(12), i64, i32 noundef) unnamed_addr #0 align 2

declare i32 @puts(ptr noundef) #5

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { "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 = { noreturn 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 #7 = { inlinehint 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 #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 4, !5, i64 4, i64 4, !5}
!10 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


; 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.Line = type { %struct.Point, %struct.Point }
%struct.Point = type { i32, i32 }
%struct.Event = type { %struct.Point, i32 }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@tot = external dso_local local_unnamed_addr global i32, align 4
@a = external dso_local global [51 x %struct.Line], align 16
@que = external dso_local local_unnamed_addr global [1001 x %struct.Event], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [64 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5solvev() local_unnamed_addr #0

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 {
  %1 = alloca %struct.Point, align 8
  %2 = alloca %struct.Point, align 4
  %3 = alloca %struct.Line, align 4
  %4 = alloca %struct.Line, align 4
  %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.Event, align 4
  %12 = alloca %struct.Event, align 4
  %13 = alloca %struct.Event, align 4
  %14 = alloca %struct.Event, align 4
  %15 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %16 = load i32, ptr @t, align 4, !tbaa !5
  %17 = add nsw i32 %16, -1
  store i32 %17, ptr @t, align 4, !tbaa !5
  %.not37 = icmp eq i32 %16, 0
  br i1 %.not37, label %._crit_edge40, label %.lr.ph39

.lr.ph39:                                         ; preds = %0
  %18 = getelementptr inbounds i8, ptr %4, i64 8
  %19 = getelementptr inbounds i8, ptr %3, i64 8
  br label %20

20:                                               ; preds = %.lr.ph39, %89
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %22 = load i32, ptr @n, align 4, !tbaa !5
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %20
  store i32 0, ptr @tot, align 4, !tbaa !5
  br label %.critedge

._crit_edge:                                      ; preds = %27
  store i32 0, ptr @tot, align 4, !tbaa !5
  %24 = icmp slt i32 %31, 1
  br i1 %24, label %.critedge, label %.lr.ph35

.lr.ph:                                           ; preds = %20, %27
  %indvars.iv = phi i64 [ %indvars.iv.next, %27 ], [ 0, %20 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  call void @_ZN5Point4readEv(ptr noundef nonnull align 4 dereferenceable(8) %1)
  call void @_ZN5Point4readEv(ptr noundef nonnull align 4 dereferenceable(8) %2)
  %25 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %2)
  br i1 %25, label %26, label %27

26:                                               ; preds = %.lr.ph
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 119, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

27:                                               ; preds = %.lr.ph
  %28 = load i64, ptr %1, align 8
  %29 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(8) %1)
  %30 = getelementptr inbounds [51 x %struct.Line], ptr @a, i64 0, i64 %indvars.iv
  store i64 %28, ptr %30, align 16
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %30, i64 8
  store i64 %29, ptr %.sroa.4.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %31 = load i32, ptr @n, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = icmp slt i64 %indvars.iv.next, %32
  br i1 %33, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.lr.ph35:                                         ; preds = %._crit_edge, %._crit_edge29
  %34 = phi i32 [ %85, %._crit_edge29 ], [ %31, %._crit_edge ]
  %indvars.iv47 = phi i64 [ %indvars.iv.next48, %._crit_edge29 ], [ 0, %._crit_edge ]
  %indvars.iv42 = phi i64 [ %indvars.iv.next43, %._crit_edge29 ], [ 1, %._crit_edge ]
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %35 = sext i32 %34 to i64
  %36 = icmp slt i64 %indvars.iv.next48, %35
  br i1 %36, label %.lr.ph28, label %.critedge

.lr.ph28:                                         ; preds = %.lr.ph35
  %37 = getelementptr inbounds [51 x %struct.Line], ptr @a, i64 0, i64 %indvars.iv47
  br label %38

38:                                               ; preds = %.lr.ph28, %84
  %indvars.iv44 = phi i64 [ %indvars.iv42, %.lr.ph28 ], [ %indvars.iv.next45, %84 ]
  %39 = getelementptr inbounds [51 x %struct.Line], ptr @a, i64 0, i64 %indvars.iv44
  %40 = call noundef zeroext i1 @_ZNK4Line8parallelERKS_(ptr noundef nonnull align 4 dereferenceable(16) %37, ptr noundef nonnull align 4 dereferenceable(16) %39)
  br i1 %40, label %84, label %41

41:                                               ; preds = %38
  %42 = call noundef zeroext i1 @_ZNK4Line9intersectERKS_(ptr noundef nonnull align 4 dereferenceable(16) %37, ptr noundef nonnull align 4 dereferenceable(16) %39)
  br i1 %42, label %.thread, label %43

43:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 16 dereferenceable(16) %37, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(16) %39, i64 16, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %44 = call i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %18)
  store i64 %44, ptr %5, align 8
  %45 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  call void @_ZN4Line7reverseEv(ptr noundef nonnull align 4 dereferenceable(16) %4)
  br label %47

47:                                               ; preds = %46, %43
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %48 = call i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %19)
  store i64 %48, ptr %6, align 8
  %49 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br i1 %49, label %50, label %51

50:                                               ; preds = %47
  call void @_ZN4Line7reverseEv(ptr noundef nonnull align 4 dereferenceable(16) %3)
  br label %51

51:                                               ; preds = %50, %47
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %52 = call i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %19)
  store i64 %52, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %53 = call i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %18)
  store i64 %53, ptr %8, align 8
  %54 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br i1 %54, label %55, label %56

55:                                               ; preds = %51
  call void @_ZN4Line7reverseEv(ptr noundef nonnull align 4 dereferenceable(16) %3)
  call void @_ZN4Line7reverseEv(ptr noundef nonnull align 4 dereferenceable(16) %4)
  br label %56

56:                                               ; preds = %55, %51
  %57 = call noundef zeroext i1 @_ZNK5PointeqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4)
  br i1 %57, label %58, label %83

58:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %59 = load i64, ptr %19, align 4
  store i64 %59, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %60 = load i64, ptr %18, align 4
  store i64 %60, ptr %10, align 8
  %61 = call noundef i32 @_ZNK5Point3detERKS_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %10)
  %62 = icmp slt i32 %61, 0
  br i1 %62, label %63, label %64

63:                                               ; preds = %58
  call void @_ZSt4swapI5PointENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %10) #8
  br label %64

64:                                               ; preds = %63, %58
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #8
  %65 = call i64 @_ZNK5Point6negateEv(ptr noundef nonnull align 4 dereferenceable(8) %10)
  call void @_ZN5EventC2E5Pointi(ptr noundef nonnull align 4 dereferenceable(12) %11, i64 %65, i32 noundef 1)
  %66 = load i32, ptr @tot, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr @tot, align 4, !tbaa !5
  %68 = sext i32 %66 to i64
  %69 = getelementptr inbounds [1001 x %struct.Event], ptr @que, i64 0, i64 %68
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %69, ptr noundef nonnull align 4 dereferenceable(12) %11, i64 12, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #8
  %.sroa.02.0.copyload = load i64, ptr %9, align 8
  call void @_ZN5EventC2E5Pointi(ptr noundef nonnull align 4 dereferenceable(12) %12, i64 %.sroa.02.0.copyload, i32 noundef -1)
  %70 = load i32, ptr @tot, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr @tot, align 4, !tbaa !5
  %72 = sext i32 %70 to i64
  %73 = getelementptr inbounds [1001 x %struct.Event], ptr @que, i64 0, i64 %72
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %73, ptr noundef nonnull align 4 dereferenceable(12) %12, i64 12, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #8
  %.sroa.01.0.copyload = load i64, ptr %10, align 8
  call void @_ZN5EventC2E5Pointi(ptr noundef nonnull align 4 dereferenceable(12) %13, i64 %.sroa.01.0.copyload, i32 noundef 1)
  %74 = load i32, ptr @tot, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr @tot, align 4, !tbaa !5
  %76 = sext i32 %74 to i64
  %77 = getelementptr inbounds [1001 x %struct.Event], ptr @que, i64 0, i64 %76
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %77, ptr noundef nonnull align 4 dereferenceable(12) %13, i64 12, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #8
  %78 = call i64 @_ZNK5Point6negateEv(ptr noundef nonnull align 4 dereferenceable(8) %9)
  call void @_ZN5EventC2E5Pointi(ptr noundef nonnull align 4 dereferenceable(12) %14, i64 %78, i32 noundef -1)
  %79 = load i32, ptr @tot, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr @tot, align 4, !tbaa !5
  %81 = sext i32 %79 to i64
  %82 = getelementptr inbounds [1001 x %struct.Event], ptr @que, i64 0, i64 %81
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %82, ptr noundef nonnull align 4 dereferenceable(12) %14, i64 12, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %83

83:                                               ; preds = %64, %56
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #8
  br label %84

84:                                               ; preds = %38, %83
  %indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
  %85 = load i32, ptr @n, align 4, !tbaa !5
  %86 = trunc nuw i64 %indvars.iv.next45 to i32
  %87 = icmp sgt i32 %85, %86
  br i1 %87, label %38, label %._crit_edge29, !llvm.loop !13

._crit_edge29:                                    ; preds = %84
  %.pre50 = sext i32 %85 to i64
  %.not66 = icmp slt i64 %indvars.iv.next48, %.pre50
  %indvars.iv.next43 = add nuw nsw i64 %indvars.iv42, 1
  br i1 %.not66, label %.lr.ph35, label %.critedge, !llvm.loop !14

.critedge:                                        ; preds = %._crit_edge29, %.lr.ph35, %._crit_edge.thread, %._crit_edge
  %88 = call noundef zeroext i1 @_Z5solvev()
  br i1 %88, label %.thread, label %89

.thread:                                          ; preds = %41, %.critedge
  br label %89

89:                                               ; preds = %.critedge, %.thread
  %90 = phi ptr [ @.str.3, %.thread ], [ @.str.4, %.critedge ]
  %91 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %90)
  %92 = load i32, ptr @t, align 4, !tbaa !5
  %93 = add nsw i32 %92, -1
  store i32 %93, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %92, 0
  br i1 %.not, label %._crit_edge40, label %20, !llvm.loop !15

._crit_edge40:                                    ; preds = %89, %0
  ret i32 0
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Point4readEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Line8parallelERKS_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4Line9intersectERKS_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Line7reverseEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapI5PointENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK5Point6negateEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5EventC2E5Pointi(ptr noundef nonnull align 4 dereferenceable(12), i64, i32 noundef) unnamed_addr #0 align 2

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { 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 #6 = { noreturn 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 #7 = { inlinehint 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 #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5}
!12 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


; Effective O3 passes: ADCEPass,AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass