; LLVM IR from csviragh/robotsim :: src/utilities (param_utils)

; 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.flocking_model_params_t = type { [256 x i8], i32, [64 x %struct.fl_param_double_t], i32, [64 x ptr], i32 }
%struct.fl_param_double_t = type { [64 x i8], [10 x i8], double, i32, double, double, double, double, [64 x i8], i8, i8, double, ptr, i32, %struct.anon }
%struct.anon = type { [32 x double], [32 x [7 x i8]] }

@.str.105 = external hidden unnamed_addr constant [48 x i8], align 1

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

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

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #0

declare ptr @LSkip(ptr noundef) #0

declare ptr @RStrip(ptr noundef) #0

declare ptr @FindCharOrComment(ptr noundef, i8 noundef signext) #0

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #3

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

; Function Attrs: nounwind uwtable
define dso_local void @GetFlockingModelParamsFromFile(ptr noundef %0, ptr noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca [256 x i8], align 16
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = icmp eq ptr null, %13
  br i1 %14, label %15, label %17

15:                                               ; preds = %2
  %16 = call i32 (ptr, ...) @printf(ptr noundef @.str.105)
  br label %121

17:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 256, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %18

18:                                               ; preds = %85, %17
  %19 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = call ptr @fgets(ptr noundef %19, i32 noundef 256, ptr noundef %20)
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %86

23:                                               ; preds = %18
  %24 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
  %25 = call ptr @RStrip(ptr noundef %24)
  %26 = call ptr @LSkip(ptr noundef %25)
  store ptr %26, ptr %7, align 8, !tbaa !5
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = load i8, ptr %27, align 1, !tbaa !11
  %29 = sext i8 %28 to i32
  %30 = icmp eq i32 %29, 59
  br i1 %30, label %36, label %31

31:                                               ; preds = %23
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = load i8, ptr %32, align 1, !tbaa !11
  %34 = sext i8 %33 to i32
  %35 = icmp eq i32 %34, 35
  br i1 %35, label %36, label %37

36:                                               ; preds = %31, %23
  br label %85

37:                                               ; preds = %31
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = call ptr @FindCharOrComment(ptr noundef %38, i8 noundef signext 61)
  store ptr %39, ptr %8, align 8, !tbaa !5
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = load i8, ptr %40, align 1, !tbaa !11
  %42 = sext i8 %41 to i32
  %43 = icmp eq i32 %42, 61
  br i1 %43, label %44, label %53

44:                                               ; preds = %37
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  store i8 0, ptr %45, align 1, !tbaa !11
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = call ptr @RStrip(ptr noundef %46)
  store ptr %47, ptr %9, align 8, !tbaa !5
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %48, i64 1
  %50 = call ptr @LSkip(ptr noundef %49)
  store ptr %50, ptr %10, align 8, !tbaa !5
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = call ptr @FindCharOrComment(ptr noundef %51, i8 noundef signext 0)
  store ptr %52, ptr %8, align 8, !tbaa !5
  br label %53

53:                                               ; preds = %44, %37
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %81, %53
  %55 = load i32, ptr %5, align 4, !tbaa !9
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.flocking_model_params_t, ptr %56, i32 0, i32 1
  %58 = load i32, ptr %57, align 8, !tbaa !12
  %59 = icmp slt i32 %55, %58
  br i1 %59, label %60, label %84

60:                                               ; preds = %54
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.flocking_model_params_t, ptr %62, i32 0, i32 2
  %64 = load i32, ptr %5, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [64 x %struct.fl_param_double_t], ptr %63, i64 0, i64 %65
  %67 = getelementptr inbounds %struct.fl_param_double_t, ptr %66, i32 0, i32 8
  %68 = getelementptr inbounds [64 x i8], ptr %67, i64 0, i64 0
  %69 = call i32 @strcmp(ptr noundef %61, ptr noundef %68) #6
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %80

71:                                               ; preds = %60
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = call double @atof(ptr noundef %72) #6
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.flocking_model_params_t, ptr %74, i32 0, i32 2
  %76 = load i32, ptr %5, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [64 x %struct.fl_param_double_t], ptr %75, i64 0, i64 %77
  %79 = getelementptr inbounds %struct.fl_param_double_t, ptr %78, i32 0, i32 2
  store double %73, ptr %79, align 8, !tbaa !14
  br label %80

80:                                               ; preds = %71, %60
  br label %81

81:                                               ; preds = %80
  %82 = load i32, ptr %5, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %5, align 4, !tbaa !9
  br label %54, !llvm.loop !19

84:                                               ; preds = %54
  br label %85

85:                                               ; preds = %84, %36
  br label %18, !llvm.loop !21

86:                                               ; preds = %18
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %117, %86
  %88 = load i32, ptr %5, align 4, !tbaa !9
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.flocking_model_params_t, ptr %89, i32 0, i32 1
  %91 = load i32, ptr %90, align 8, !tbaa !12
  %92 = icmp slt i32 %88, %91
  br i1 %92, label %93, label %120

93:                                               ; preds = %87
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.flocking_model_params_t, ptr %94, i32 0, i32 2
  %96 = load i32, ptr %5, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [64 x %struct.fl_param_double_t], ptr %95, i64 0, i64 %97
  %99 = getelementptr inbounds %struct.fl_param_double_t, ptr %98, i32 0, i32 10
  %100 = load i8, ptr %99, align 1, !tbaa !22, !range !23, !noundef !24
  %101 = trunc i8 %100 to i1
  br i1 %101, label %102, label %116

102:                                              ; preds = %93
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.flocking_model_params_t, ptr %103, i32 0, i32 2
  %105 = load i32, ptr %5, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [64 x %struct.fl_param_double_t], ptr %104, i64 0, i64 %106
  %108 = getelementptr inbounds %struct.fl_param_double_t, ptr %107, i32 0, i32 2
  %109 = load double, ptr %108, align 8, !tbaa !14
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.flocking_model_params_t, ptr %110, i32 0, i32 2
  %112 = load i32, ptr %5, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [64 x %struct.fl_param_double_t], ptr %111, i64 0, i64 %113
  %115 = getelementptr inbounds %struct.fl_param_double_t, ptr %114, i32 0, i32 11
  store double %109, ptr %115, align 8, !tbaa !25
  br label %116

116:                                              ; preds = %102, %93
  br label %117

117:                                              ; preds = %116
  %118 = load i32, ptr %5, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %5, align 4, !tbaa !9
  br label %87, !llvm.loop !26

120:                                              ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %121

121:                                              ; preds = %120, %15
  ret void
}

attributes #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 = { nounwind willreturn memory(read) "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 = { inlinehint nounwind willreturn memory(read) 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 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 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 256}
!13 = !{!"", !7, i64 0, !10, i64 256, !7, i64 264, !10, i64 45320, !7, i64 45328, !10, i64 45840}
!14 = !{!15, !16, i64 80}
!15 = !{!"", !7, i64 0, !7, i64 64, !16, i64 80, !10, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !7, i64 128, !17, i64 192, !17, i64 193, !16, i64 200, !6, i64 208, !10, i64 216, !18, i64 224}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_Bool", !7, i64 0}
!18 = !{!"", !7, i64 0, !7, i64 256}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!15, !17, i64 193}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!15, !16, i64 200}
!26 = distinct !{!26, !20}


; 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.fl_param_double_t = type { [64 x i8], [10 x i8], double, i32, double, double, double, double, [64 x i8], i8, i8, double, ptr, i32, %struct.anon }
%struct.anon = type { [32 x double], [32 x [7 x i8]] }

@.str.105 = external hidden unnamed_addr constant [48 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #0

declare ptr @LSkip(ptr noundef) local_unnamed_addr #2

declare ptr @RStrip(ptr noundef) local_unnamed_addr #2

declare ptr @FindCharOrComment(ptr noundef, i8 noundef signext) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #4

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

; Function Attrs: nounwind uwtable
define dso_local void @GetFlockingModelParamsFromFile(ptr nocapture noundef %0, ptr noundef %1) local_unnamed_addr #5 {
  %3 = alloca [256 x i8], align 16
  %4 = icmp eq ptr %1, null
  br i1 %4, label %5, label %7

5:                                                ; preds = %2
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.105)
  br label %68

7:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %3) #6
  %8 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 256, ptr noundef nonnull %1)
  %.not35 = icmp eq ptr %8, null
  br i1 %.not35, label %.preheader, label %.lr.ph38

.lr.ph38:                                         ; preds = %7
  %9 = getelementptr inbounds i8, ptr %0, i64 256
  %10 = getelementptr inbounds i8, ptr %0, i64 264
  br label %16

.preheader:                                       ; preds = %.loopexit, %7
  %11 = getelementptr inbounds i8, ptr %0, i64 256
  %12 = load i32, ptr %11, align 8, !tbaa !5
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph40, label %._crit_edge

.lr.ph40:                                         ; preds = %.preheader
  %14 = getelementptr inbounds i8, ptr %0, i64 264
  %wide.trip.count45 = zext nneg i32 %12 to i64
  %xtraiter = and i64 %wide.trip.count45, 1
  %15 = icmp eq i32 %12, 1
  br i1 %15, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph40.new

.lr.ph40.new:                                     ; preds = %.lr.ph40
  %unroll_iter = and i64 %wide.trip.count45, 2147483646
  br label %41

16:                                               ; preds = %.lr.ph38, %.loopexit
  %.02737 = phi ptr [ undef, %.lr.ph38 ], [ %.2, %.loopexit ]
  %.02936 = phi ptr [ undef, %.lr.ph38 ], [ %.231, %.loopexit ]
  %17 = call ptr @RStrip(ptr noundef nonnull %3) #6
  %18 = call ptr @LSkip(ptr noundef %17) #6
  %19 = load i8, ptr %18, align 1, !tbaa !10
  switch i8 %19, label %20 [
    i8 59, label %.loopexit
    i8 35, label %.loopexit
  ]

20:                                               ; preds = %16
  %21 = call ptr @FindCharOrComment(ptr noundef nonnull %18, i8 noundef signext 61) #6
  %22 = load i8, ptr %21, align 1, !tbaa !10
  %23 = icmp eq i8 %22, 61
  br i1 %23, label %24, label %29

24:                                               ; preds = %20
  store i8 0, ptr %21, align 1, !tbaa !10
  %25 = call ptr @RStrip(ptr noundef nonnull %18) #6
  %26 = getelementptr inbounds i8, ptr %21, i64 1
  %27 = call ptr @LSkip(ptr noundef nonnull %26) #6
  %28 = call ptr @FindCharOrComment(ptr noundef %27, i8 noundef signext 0) #6
  br label %29

29:                                               ; preds = %24, %20
  %.130 = phi ptr [ %25, %24 ], [ %.02936, %20 ]
  %.128 = phi ptr [ %27, %24 ], [ %.02737, %20 ]
  %30 = load i32, ptr %9, align 8, !tbaa !5
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %29
  %wide.trip.count = zext nneg i32 %30 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %39
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %39 ]
  %32 = getelementptr inbounds [64 x %struct.fl_param_double_t], ptr %10, i64 0, i64 %indvars.iv
  %33 = getelementptr inbounds i8, ptr %32, i64 128
  %34 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.130, ptr noundef nonnull dereferenceable(1) %33) #7
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %39

36:                                               ; preds = %.lr.ph
  %37 = call double @atof(ptr noundef %.128) #7
  %38 = getelementptr inbounds i8, ptr %32, i64 80
  store double %37, ptr %38, align 8, !tbaa !11
  br label %39

39:                                               ; preds = %.lr.ph, %36
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !17

.loopexit:                                        ; preds = %39, %29, %16, %16
  %.231 = phi ptr [ %.02936, %16 ], [ %.02936, %16 ], [ %.130, %29 ], [ %.130, %39 ]
  %.2 = phi ptr [ %.02737, %16 ], [ %.02737, %16 ], [ %.128, %29 ], [ %.128, %39 ]
  %40 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 256, ptr noundef nonnull %1)
  %.not = icmp eq ptr %40, null
  br i1 %.not, label %.preheader, label %16, !llvm.loop !19

41:                                               ; preds = %59, %.lr.ph40.new
  %indvars.iv42 = phi i64 [ 0, %.lr.ph40.new ], [ %indvars.iv.next43.1, %59 ]
  %niter = phi i64 [ 0, %.lr.ph40.new ], [ %niter.next.1, %59 ]
  %42 = getelementptr inbounds [64 x %struct.fl_param_double_t], ptr %14, i64 0, i64 %indvars.iv42
  %43 = getelementptr inbounds i8, ptr %42, i64 193
  %44 = load i8, ptr %43, align 1, !tbaa !20, !range !21, !noundef !22
  %45 = trunc nuw i8 %44 to i1
  br i1 %45, label %46, label %50

46:                                               ; preds = %41
  %47 = getelementptr inbounds i8, ptr %42, i64 80
  %48 = load double, ptr %47, align 8, !tbaa !11
  %49 = getelementptr inbounds i8, ptr %42, i64 200
  store double %48, ptr %49, align 8, !tbaa !23
  br label %50

50:                                               ; preds = %41, %46
  %indvars.iv.next43 = or disjoint i64 %indvars.iv42, 1
  %51 = getelementptr inbounds [64 x %struct.fl_param_double_t], ptr %14, i64 0, i64 %indvars.iv.next43
  %52 = getelementptr inbounds i8, ptr %51, i64 193
  %53 = load i8, ptr %52, align 1, !tbaa !20, !range !21, !noundef !22
  %54 = trunc nuw i8 %53 to i1
  br i1 %54, label %55, label %59

55:                                               ; preds = %50
  %56 = getelementptr inbounds i8, ptr %51, i64 80
  %57 = load double, ptr %56, align 8, !tbaa !11
  %58 = getelementptr inbounds i8, ptr %51, i64 200
  store double %57, ptr %58, align 8, !tbaa !23
  br label %59

59:                                               ; preds = %55, %50
  %indvars.iv.next43.1 = add nuw nsw i64 %indvars.iv42, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %41, !llvm.loop !24

._crit_edge.loopexit.unr-lcssa:                   ; preds = %59, %.lr.ph40
  %indvars.iv42.unr = phi i64 [ 0, %.lr.ph40 ], [ %indvars.iv.next43.1, %59 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa
  %60 = getelementptr inbounds [64 x %struct.fl_param_double_t], ptr %14, i64 0, i64 %indvars.iv42.unr
  %61 = getelementptr inbounds i8, ptr %60, i64 193
  %62 = load i8, ptr %61, align 1, !tbaa !20, !range !21, !noundef !22
  %63 = trunc nuw i8 %62 to i1
  br i1 %63, label %64, label %._crit_edge

64:                                               ; preds = %.epil.preheader
  %65 = getelementptr inbounds i8, ptr %60, i64 80
  %66 = load double, ptr %65, align 8, !tbaa !11
  %67 = getelementptr inbounds i8, ptr %60, i64 200
  store double %66, ptr %67, align 8, !tbaa !23
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %64, %.epil.preheader, %.preheader
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #6
  br label %68

68:                                               ; preds = %._crit_edge, %5
  ret void
}

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 nofree nounwind willreturn memory(argmem: read) "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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 = { 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 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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, !9, i64 256}
!6 = !{!"", !7, i64 0, !9, i64 256, !7, i64 264, !9, i64 45320, !7, i64 45328, !9, i64 45840}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !13, i64 80}
!12 = !{!"", !7, i64 0, !7, i64 64, !13, i64 80, !9, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !7, i64 128, !14, i64 192, !14, i64 193, !13, i64 200, !15, i64 208, !9, i64 216, !16, i64 224}
!13 = !{!"double", !7, i64 0}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"", !7, i64 0, !7, i64 256}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!12, !14, i64 193}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!12, !13, i64 200}
!24 = distinct !{!24, !18}


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