; LLVM IR from robotics-upo/Heuristic_path_planners :: include/voro++-0.4.6/src/cell.ll (ZN4voro16voronoicell_base13draw_pov_meshEdddP8_IO_FILE)

; 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"

%"class.voro::voronoicell_base" = type { ptr, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, double, double, double, double }

@.str.11 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [27 x i8], align 1

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4voro16voronoicell_base8cycle_upEii(ptr noundef nonnull align 8 dereferenceable(160), i32 noundef, i32 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4voro16voronoicell_base11reset_edgesEv(ptr noundef nonnull align 8 dereferenceable(160)) #2 align 2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

declare i32 @fputs(ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4voro16voronoicell_base13draw_pov_meshEdddP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(160) %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef %4) #5 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store double %1, ptr %7, align 8, !tbaa !9
  store double %2, ptr %8, align 8, !tbaa !9
  store double %3, ptr %9, align 8, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  %18 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %19 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %18, i32 0, i32 9
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  store ptr %20, ptr %17, align 8, !tbaa !5
  %21 = load ptr, ptr %10, align 8, !tbaa !5
  %22 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %18, i32 0, i32 5
  %23 = load i32, ptr %22, align 8, !tbaa !14
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef @.str.11, i32 noundef %23) #6
  store i32 0, ptr %11, align 4, !tbaa !15
  br label %25

25:                                               ; preds = %47, %5
  %26 = load i32, ptr %11, align 4, !tbaa !15
  %27 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %18, i32 0, i32 5
  %28 = load i32, ptr %27, align 8, !tbaa !14
  %29 = icmp slt i32 %26, %28
  br i1 %29, label %30, label %52

30:                                               ; preds = %25
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = load double, ptr %7, align 8, !tbaa !9
  %33 = load ptr, ptr %17, align 8, !tbaa !5
  %34 = load double, ptr %33, align 8, !tbaa !9
  %35 = call double @llvm.fmuladd.f64(double %34, double 5.000000e-01, double %32)
  %36 = load double, ptr %8, align 8, !tbaa !9
  %37 = load ptr, ptr %17, align 8, !tbaa !5
  %38 = getelementptr inbounds double, ptr %37, i64 1
  %39 = load double, ptr %38, align 8, !tbaa !9
  %40 = call double @llvm.fmuladd.f64(double %39, double 5.000000e-01, double %36)
  %41 = load double, ptr %9, align 8, !tbaa !9
  %42 = load ptr, ptr %17, align 8, !tbaa !5
  %43 = getelementptr inbounds double, ptr %42, i64 2
  %44 = load double, ptr %43, align 8, !tbaa !9
  %45 = call double @llvm.fmuladd.f64(double %44, double 5.000000e-01, double %41)
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.12, double noundef %35, double noundef %40, double noundef %45) #6
  br label %47

47:                                               ; preds = %30
  %48 = load i32, ptr %11, align 4, !tbaa !15
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %11, align 4, !tbaa !15
  %50 = load ptr, ptr %17, align 8, !tbaa !5
  %51 = getelementptr inbounds double, ptr %50, i64 3
  store ptr %51, ptr %17, align 8, !tbaa !5
  br label %25, !llvm.loop !16

52:                                               ; preds = %25
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %18, i32 0, i32 5
  %55 = load i32, ptr %54, align 8, !tbaa !14
  %56 = sub nsw i32 %55, 2
  %57 = shl i32 %56, 1
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str.13, i32 noundef %57) #6
  store i32 1, ptr %11, align 4, !tbaa !15
  br label %59

59:                                               ; preds = %197, %52
  %60 = load i32, ptr %11, align 4, !tbaa !15
  %61 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %18, i32 0, i32 5
  %62 = load i32, ptr %61, align 8, !tbaa !14
  %63 = icmp slt i32 %60, %62
  br i1 %63, label %64, label %200

64:                                               ; preds = %59
  store i32 0, ptr %12, align 4, !tbaa !15
  br label %65

65:                                               ; preds = %193, %64
  %66 = load i32, ptr %12, align 4, !tbaa !15
  %67 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %18, i32 0, i32 8
  %68 = load ptr, ptr %67, align 8, !tbaa !18
  %69 = load i32, ptr %11, align 4, !tbaa !15
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds i32, ptr %68, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !15
  %73 = icmp slt i32 %66, %72
  br i1 %73, label %74, label %196

74:                                               ; preds = %65
  %75 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %18, i32 0, i32 7
  %76 = load ptr, ptr %75, align 8, !tbaa !19
  %77 = load i32, ptr %11, align 4, !tbaa !15
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds ptr, ptr %76, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = load i32, ptr %12, align 4, !tbaa !15
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds i32, ptr %80, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !15
  store i32 %84, ptr %13, align 4, !tbaa !15
  %85 = load i32, ptr %13, align 4, !tbaa !15
  %86 = icmp sge i32 %85, 0
  br i1 %86, label %87, label %192

87:                                               ; preds = %74
  %88 = load i32, ptr %13, align 4, !tbaa !15
  %89 = sub nsw i32 -1, %88
  %90 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %18, i32 0, i32 7
  %91 = load ptr, ptr %90, align 8, !tbaa !19
  %92 = load i32, ptr %11, align 4, !tbaa !15
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds ptr, ptr %91, i64 %93
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  %96 = load i32, ptr %12, align 4, !tbaa !15
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds i32, ptr %95, i64 %97
  store i32 %89, ptr %98, align 4, !tbaa !15
  %99 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %18, i32 0, i32 7
  %100 = load ptr, ptr %99, align 8, !tbaa !19
  %101 = load i32, ptr %11, align 4, !tbaa !15
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds ptr, ptr %100, i64 %102
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  %105 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %18, i32 0, i32 8
  %106 = load ptr, ptr %105, align 8, !tbaa !18
  %107 = load i32, ptr %11, align 4, !tbaa !15
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds i32, ptr %106, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !15
  %111 = load i32, ptr %12, align 4, !tbaa !15
  %112 = add nsw i32 %110, %111
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds i32, ptr %104, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !15
  %116 = load i32, ptr %13, align 4, !tbaa !15
  %117 = call noundef i32 @_ZN4voro16voronoicell_base8cycle_upEii(ptr noundef nonnull align 8 dereferenceable(160) %18, i32 noundef %115, i32 noundef %116)
  store i32 %117, ptr %14, align 4, !tbaa !15
  %118 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %18, i32 0, i32 7
  %119 = load ptr, ptr %118, align 8, !tbaa !19
  %120 = load i32, ptr %13, align 4, !tbaa !15
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds ptr, ptr %119, i64 %121
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  %124 = load i32, ptr %14, align 4, !tbaa !15
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds i32, ptr %123, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !15
  store i32 %127, ptr %15, align 4, !tbaa !15
  %128 = load i32, ptr %15, align 4, !tbaa !15
  %129 = sub nsw i32 -1, %128
  %130 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %18, i32 0, i32 7
  %131 = load ptr, ptr %130, align 8, !tbaa !19
  %132 = load i32, ptr %13, align 4, !tbaa !15
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds ptr, ptr %131, i64 %133
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  %136 = load i32, ptr %14, align 4, !tbaa !15
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds i32, ptr %135, i64 %137
  store i32 %129, ptr %138, align 4, !tbaa !15
  br label %139

139:                                              ; preds = %143, %87
  %140 = load i32, ptr %15, align 4, !tbaa !15
  %141 = load i32, ptr %11, align 4, !tbaa !15
  %142 = icmp ne i32 %140, %141
  br i1 %142, label %143, label %191

143:                                              ; preds = %139
  %144 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %18, i32 0, i32 7
  %145 = load ptr, ptr %144, align 8, !tbaa !19
  %146 = load i32, ptr %13, align 4, !tbaa !15
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds ptr, ptr %145, i64 %147
  %149 = load ptr, ptr %148, align 8, !tbaa !5
  %150 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %18, i32 0, i32 8
  %151 = load ptr, ptr %150, align 8, !tbaa !18
  %152 = load i32, ptr %13, align 4, !tbaa !15
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds i32, ptr %151, i64 %153
  %155 = load i32, ptr %154, align 4, !tbaa !15
  %156 = load i32, ptr %14, align 4, !tbaa !15
  %157 = add nsw i32 %155, %156
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds i32, ptr %149, i64 %158
  %160 = load i32, ptr %159, align 4, !tbaa !15
  %161 = load i32, ptr %15, align 4, !tbaa !15
  %162 = call noundef i32 @_ZN4voro16voronoicell_base8cycle_upEii(ptr noundef nonnull align 8 dereferenceable(160) %18, i32 noundef %160, i32 noundef %161)
  store i32 %162, ptr %16, align 4, !tbaa !15
  %163 = load ptr, ptr %10, align 8, !tbaa !5
  %164 = load i32, ptr %11, align 4, !tbaa !15
  %165 = load i32, ptr %13, align 4, !tbaa !15
  %166 = load i32, ptr %15, align 4, !tbaa !15
  %167 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %163, ptr noundef @.str.14, i32 noundef %164, i32 noundef %165, i32 noundef %166) #6
  %168 = load i32, ptr %15, align 4, !tbaa !15
  store i32 %168, ptr %13, align 4, !tbaa !15
  %169 = load i32, ptr %16, align 4, !tbaa !15
  store i32 %169, ptr %14, align 4, !tbaa !15
  %170 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %18, i32 0, i32 7
  %171 = load ptr, ptr %170, align 8, !tbaa !19
  %172 = load i32, ptr %13, align 4, !tbaa !15
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds ptr, ptr %171, i64 %173
  %175 = load ptr, ptr %174, align 8, !tbaa !5
  %176 = load i32, ptr %14, align 4, !tbaa !15
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds i32, ptr %175, i64 %177
  %179 = load i32, ptr %178, align 4, !tbaa !15
  store i32 %179, ptr %15, align 4, !tbaa !15
  %180 = load i32, ptr %15, align 4, !tbaa !15
  %181 = sub nsw i32 -1, %180
  %182 = getelementptr inbounds %"class.voro::voronoicell_base", ptr %18, i32 0, i32 7
  %183 = load ptr, ptr %182, align 8, !tbaa !19
  %184 = load i32, ptr %13, align 4, !tbaa !15
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds ptr, ptr %183, i64 %185
  %187 = load ptr, ptr %186, align 8, !tbaa !5
  %188 = load i32, ptr %14, align 4, !tbaa !15
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds i32, ptr %187, i64 %189
  store i32 %181, ptr %190, align 4, !tbaa !15
  br label %139, !llvm.loop !20

191:                                              ; preds = %139
  br label %192

192:                                              ; preds = %191, %74
  br label %193

193:                                              ; preds = %192
  %194 = load i32, ptr %12, align 4, !tbaa !15
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %12, align 4, !tbaa !15
  br label %65, !llvm.loop !21

196:                                              ; preds = %65
  br label %197

197:                                              ; preds = %196
  %198 = load i32, ptr %11, align 4, !tbaa !15
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %11, align 4, !tbaa !15
  br label %59, !llvm.loop !22

200:                                              ; preds = %59
  %201 = load ptr, ptr %10, align 8, !tbaa !5
  %202 = call i32 @fputs(ptr noundef @.str.15, ptr noundef %201)
  call void @_ZN4voro16voronoicell_base11reset_edgesEv(ptr noundef nonnull align 8 dereferenceable(160) %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { 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 #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 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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !6, i64 48}
!12 = !{!"_ZTSN4voro16voronoicell_baseE", !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !13, i64 112, !13, i64 116, !6, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 24}
!15 = !{!13, !13, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!12, !6, i64 40}
!19 = !{!12, !6, i64 32}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}


; 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"

@.str.11 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [27 x i8], align 1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4voro16voronoicell_base8cycle_upEii(ptr noundef nonnull align 8 dereferenceable(160), i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4voro16voronoicell_base11reset_edgesEv(ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #1 align 2

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

; Function Attrs: nofree nounwind
declare noundef i32 @fputs(ptr nocapture noundef readonly, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4voro16voronoicell_base13draw_pov_meshEdddP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(160) %0, double noundef %1, double noundef %2, double noundef %3, ptr nocapture noundef %4) local_unnamed_addr #3 align 2 {
  %6 = getelementptr inbounds i8, ptr %0, i64 48
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = load i32, ptr %8, align 8, !tbaa !12
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.11, i32 noundef %9) #4
  %11 = load i32, ptr %8, align 8, !tbaa !12
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %5, %.lr.ph
  %.058 = phi ptr [ %23, %.lr.ph ], [ %7, %5 ]
  %.05057 = phi i32 [ %22, %.lr.ph ], [ 0, %5 ]
  %13 = load double, ptr %.058, align 8, !tbaa !13
  %14 = tail call double @llvm.fmuladd.f64(double %13, double 5.000000e-01, double %1)
  %15 = getelementptr inbounds i8, ptr %.058, i64 8
  %16 = load double, ptr %15, align 8, !tbaa !13
  %17 = tail call double @llvm.fmuladd.f64(double %16, double 5.000000e-01, double %2)
  %18 = getelementptr inbounds i8, ptr %.058, i64 16
  %19 = load double, ptr %18, align 8, !tbaa !13
  %20 = tail call double @llvm.fmuladd.f64(double %19, double 5.000000e-01, double %3)
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.12, double noundef %14, double noundef %17, double noundef %20) #4
  %22 = add nuw nsw i32 %.05057, 1
  %23 = getelementptr inbounds i8, ptr %.058, i64 24
  %24 = load i32, ptr %8, align 8, !tbaa !12
  %25 = icmp slt i32 %22, %24
  br i1 %25, label %.lr.ph, label %._crit_edge, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph, %5
  %.lcssa = phi i32 [ %11, %5 ], [ %24, %.lr.ph ]
  %26 = shl i32 %.lcssa, 1
  %27 = add i32 %26, -4
  %28 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.13, i32 noundef %27) #4
  %29 = load i32, ptr %8, align 8, !tbaa !12
  %30 = icmp sgt i32 %29, 1
  br i1 %30, label %.preheader.lr.ph, label %._crit_edge69

.preheader.lr.ph:                                 ; preds = %._crit_edge
  %31 = getelementptr inbounds i8, ptr %0, i64 40
  %32 = getelementptr inbounds i8, ptr %0, i64 32
  %.pre = load ptr, ptr %31, align 8, !tbaa !16
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge67
  %33 = phi i32 [ %29, %.preheader.lr.ph ], [ %90, %._crit_edge67 ]
  %34 = phi ptr [ %.pre, %.preheader.lr.ph ], [ %91, %._crit_edge67 ]
  %indvars.iv72 = phi i64 [ 1, %.preheader.lr.ph ], [ %indvars.iv.next73, %._crit_edge67 ]
  %35 = getelementptr inbounds i32, ptr %34, i64 %indvars.iv72
  %36 = load i32, ptr %35, align 4, !tbaa !17
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %.lr.ph66.preheader, label %._crit_edge67

.lr.ph66.preheader:                               ; preds = %.preheader
  %.pre75 = load ptr, ptr %32, align 8, !tbaa !18
  %38 = trunc nuw nsw i64 %indvars.iv72 to i32
  br label %.lr.ph66

.lr.ph66:                                         ; preds = %.lr.ph66.preheader, %.loopexit
  %39 = phi ptr [ %.pre75, %.lr.ph66.preheader ], [ %84, %.loopexit ]
  %indvars.iv = phi i64 [ 0, %.lr.ph66.preheader ], [ %indvars.iv.next, %.loopexit ]
  %40 = phi ptr [ %35, %.lr.ph66.preheader ], [ %86, %.loopexit ]
  %41 = getelementptr inbounds ptr, ptr %39, i64 %indvars.iv72
  %42 = load ptr, ptr %41, align 8, !tbaa !19
  %43 = getelementptr inbounds i32, ptr %42, i64 %indvars.iv
  %44 = load i32, ptr %43, align 4, !tbaa !17
  %45 = icmp sgt i32 %44, -1
  br i1 %45, label %46, label %.loopexit

46:                                               ; preds = %.lr.ph66
  %47 = xor i32 %44, -1
  store i32 %47, ptr %43, align 4, !tbaa !17
  %48 = load i32, ptr %40, align 4, !tbaa !17
  %49 = trunc nuw nsw i64 %indvars.iv to i32
  %50 = add nsw i32 %48, %49
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds i32, ptr %42, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !17
  %54 = tail call noundef i32 @_ZN4voro16voronoicell_base8cycle_upEii(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %53, i32 noundef %44)
  %55 = load ptr, ptr %32, align 8, !tbaa !18
  %56 = zext nneg i32 %44 to i64
  %57 = getelementptr inbounds ptr, ptr %55, i64 %56
  %58 = load ptr, ptr %57, align 8, !tbaa !19
  %59 = sext i32 %54 to i64
  %60 = getelementptr inbounds i32, ptr %58, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !17
  %62 = xor i32 %61, -1
  store i32 %62, ptr %60, align 4, !tbaa !17
  %63 = zext i32 %61 to i64
  %.not59 = icmp eq i64 %indvars.iv72, %63
  br i1 %.not59, label %.loopexit, label %.lr.ph64

.lr.ph64:                                         ; preds = %46, %.lr.ph64
  %64 = phi ptr [ %78, %.lr.ph64 ], [ %58, %46 ]
  %.05162 = phi i32 [ %81, %.lr.ph64 ], [ %61, %46 ]
  %.05261 = phi i32 [ %73, %.lr.ph64 ], [ %54, %46 ]
  %.05360 = phi i32 [ %.05162, %.lr.ph64 ], [ %44, %46 ]
  %65 = sext i32 %.05360 to i64
  %66 = load ptr, ptr %31, align 8, !tbaa !16
  %67 = getelementptr inbounds i32, ptr %66, i64 %65
  %68 = load i32, ptr %67, align 4, !tbaa !17
  %69 = add nsw i32 %68, %.05261
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds i32, ptr %64, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !17
  %73 = tail call noundef i32 @_ZN4voro16voronoicell_base8cycle_upEii(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %72, i32 noundef %.05162)
  %74 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %4, ptr noundef nonnull @.str.14, i32 noundef %38, i32 noundef %.05360, i32 noundef %.05162) #4
  %75 = load ptr, ptr %32, align 8, !tbaa !18
  %76 = sext i32 %.05162 to i64
  %77 = getelementptr inbounds ptr, ptr %75, i64 %76
  %78 = load ptr, ptr %77, align 8, !tbaa !19
  %79 = sext i32 %73 to i64
  %80 = getelementptr inbounds i32, ptr %78, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !17
  %82 = xor i32 %81, -1
  store i32 %82, ptr %80, align 4, !tbaa !17
  %83 = zext i32 %81 to i64
  %.not = icmp eq i64 %indvars.iv72, %83
  br i1 %.not, label %.loopexit, label %.lr.ph64, !llvm.loop !20

.loopexit:                                        ; preds = %.lr.ph64, %46, %.lr.ph66
  %84 = phi ptr [ %55, %46 ], [ %39, %.lr.ph66 ], [ %75, %.lr.ph64 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %85 = load ptr, ptr %31, align 8, !tbaa !16
  %86 = getelementptr inbounds i32, ptr %85, i64 %indvars.iv72
  %87 = load i32, ptr %86, align 4, !tbaa !17
  %88 = sext i32 %87 to i64
  %89 = icmp slt i64 %indvars.iv.next, %88
  br i1 %89, label %.lr.ph66, label %._crit_edge67.loopexit, !llvm.loop !21

._crit_edge67.loopexit:                           ; preds = %.loopexit
  %.pre78 = load i32, ptr %8, align 8, !tbaa !12
  br label %._crit_edge67

._crit_edge67:                                    ; preds = %._crit_edge67.loopexit, %.preheader
  %90 = phi i32 [ %.pre78, %._crit_edge67.loopexit ], [ %33, %.preheader ]
  %91 = phi ptr [ %85, %._crit_edge67.loopexit ], [ %34, %.preheader ]
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %92 = sext i32 %90 to i64
  %93 = icmp slt i64 %indvars.iv.next73, %92
  br i1 %93, label %.preheader, label %._crit_edge69, !llvm.loop !22

._crit_edge69:                                    ; preds = %._crit_edge67, %._crit_edge
  %94 = tail call i32 @fputs(ptr noundef nonnull @.str.15, ptr noundef %4)
  tail call void @_ZN4voro16voronoicell_base11reset_edgesEv(ptr noundef nonnull align 8 dereferenceable(160) %0)
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { 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 #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 = { 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, !10, i64 48}
!6 = !{!"_ZTSN4voro16voronoicell_baseE", !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !7, i64 112, !7, i64 116, !10, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !7, i64 24}
!13 = !{!11, !11, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!6, !10, i64 40}
!17 = !{!7, !7, i64 0}
!18 = !{!6, !10, i64 32}
!19 = !{!10, !10, i64 0}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass