; LLVM IR from fritzsedlazeck/SURVIVOR :: src/simulator (Error_scanner)

; 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.read_position = type { double, double, double, double, double }
%struct.differences_str = type { i32, i16 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI15differences_strSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11store_diffsSt6vectorI15differences_strSaIS0_EERS_I13read_positionSaIS3_EE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.read_position, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %5) #4
  %14 = getelementptr inbounds %struct.read_position, ptr %5, i32 0, i32 3
  store double 0.000000e+00, ptr %14, align 8, !tbaa !9
  %15 = getelementptr inbounds %struct.read_position, ptr %5, i32 0, i32 2
  store double 0.000000e+00, ptr %15, align 8, !tbaa !12
  %16 = getelementptr inbounds %struct.read_position, ptr %5, i32 0, i32 0
  store double 0.000000e+00, ptr %16, align 8, !tbaa !13
  %17 = getelementptr inbounds %struct.read_position, ptr %5, i32 0, i32 1
  store double 0.000000e+00, ptr %17, align 8, !tbaa !14
  %18 = getelementptr inbounds %struct.read_position, ptr %5, i32 0, i32 4
  store double 0.000000e+00, ptr %18, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i64 1, ptr %6, align 8, !tbaa !16
  %19 = call noundef i64 @_ZNKSt6vectorI15differences_strSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  %20 = icmp ugt i64 %19, 0
  br i1 %20, label %21, label %28

21:                                               ; preds = %2
  %22 = call noundef i64 @_ZNKSt6vectorI15differences_strSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  %23 = sub i64 %22, 1
  %24 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI15differences_strSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %23) #4
  %25 = getelementptr inbounds %struct.differences_str, ptr %24, i32 0, i32 0
  %26 = load i32, ptr %25, align 4, !tbaa !18
  %27 = sext i32 %26 to i64
  store i64 %27, ptr %6, align 8, !tbaa !16
  br label %28

28:                                               ; preds = %21, %2
  br label %29

29:                                               ; preds = %34, %28
  %30 = load i64, ptr %6, align 8, !tbaa !16
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = call noundef i64 @_ZNKSt6vectorI13read_positionSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #4
  %33 = icmp ugt i64 %30, %32
  br i1 %33, label %34, label %36

34:                                               ; preds = %29
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt6vectorI13read_positionSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(40) %5)
  br label %29, !llvm.loop !22

36:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store i64 0, ptr %8, align 8, !tbaa !16
  br label %37

37:                                               ; preds = %143, %36
  %38 = load i64, ptr %8, align 8, !tbaa !16
  %39 = add i64 %38, 1
  %40 = call noundef i64 @_ZNKSt6vectorI15differences_strSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  %41 = icmp ult i64 %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %37
  store i32 4, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %146

43:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %44 = load i64, ptr %8, align 8, !tbaa !16
  %45 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI15differences_strSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %44) #4
  %46 = getelementptr inbounds %struct.differences_str, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 4, !tbaa !18
  %48 = load i32, ptr %7, align 4, !tbaa !24
  %49 = sub nsw i32 %47, %48
  store i32 %49, ptr %10, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !24
  br label %50

50:                                               ; preds = %73, %43
  %51 = load i32, ptr %11, align 4, !tbaa !24
  %52 = load i32, ptr %10, align 4, !tbaa !24
  %53 = sub nsw i32 %52, 1
  %54 = icmp slt i32 %51, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %50
  store i32 7, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %76

56:                                               ; preds = %50
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = load i32, ptr %7, align 4, !tbaa !24
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI13read_positionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %59) #4
  %61 = getelementptr inbounds %struct.read_position, ptr %60, i32 0, i32 0
  %62 = load double, ptr %61, align 8, !tbaa !13
  %63 = fadd double %62, 1.000000e+00
  store double %63, ptr %61, align 8, !tbaa !13
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = load i32, ptr %7, align 4, !tbaa !24
  %66 = sext i32 %65 to i64
  %67 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI13read_positionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %66) #4
  %68 = getelementptr inbounds %struct.read_position, ptr %67, i32 0, i32 4
  %69 = load double, ptr %68, align 8, !tbaa !15
  %70 = fadd double %69, 1.000000e+00
  store double %70, ptr %68, align 8, !tbaa !15
  %71 = load i32, ptr %7, align 4, !tbaa !24
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %7, align 4, !tbaa !24
  br label %73

73:                                               ; preds = %56
  %74 = load i32, ptr %11, align 4, !tbaa !24
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %11, align 4, !tbaa !24
  br label %50, !llvm.loop !25

76:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %77 = load i64, ptr %8, align 8, !tbaa !16
  %78 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI15differences_strSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %77) #4
  %79 = getelementptr inbounds %struct.differences_str, ptr %78, i32 0, i32 1
  %80 = load i16, ptr %79, align 4, !tbaa !26
  %81 = sext i16 %80 to i32
  %82 = call i32 @llvm.abs.i32(i32 %81, i1 true)
  store i32 %82, ptr %13, align 4, !tbaa !24
  %83 = load i32, ptr %13, align 4, !tbaa !24
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %76
  store i32 1, ptr %13, align 4, !tbaa !24
  br label %86

86:                                               ; preds = %85, %76
  br label %87

87:                                               ; preds = %130, %86
  %88 = load i32, ptr %12, align 4, !tbaa !24
  %89 = load i32, ptr %13, align 4, !tbaa !24
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %91, label %142

91:                                               ; preds = %87
  %92 = load i64, ptr %8, align 8, !tbaa !16
  %93 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI15differences_strSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %92) #4
  %94 = getelementptr inbounds %struct.differences_str, ptr %93, i32 0, i32 1
  %95 = load i16, ptr %94, align 4, !tbaa !26
  %96 = sext i16 %95 to i32
  %97 = icmp slt i32 %96, 0
  br i1 %97, label %98, label %106

98:                                               ; preds = %91
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = load i32, ptr %7, align 4, !tbaa !24
  %101 = sext i32 %100 to i64
  %102 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI13read_positionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %101) #4
  %103 = getelementptr inbounds %struct.read_position, ptr %102, i32 0, i32 2
  %104 = load double, ptr %103, align 8, !tbaa !12
  %105 = fadd double %104, 1.000000e+00
  store double %105, ptr %103, align 8, !tbaa !12
  br label %130

106:                                              ; preds = %91
  %107 = load i64, ptr %8, align 8, !tbaa !16
  %108 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI15differences_strSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %107) #4
  %109 = getelementptr inbounds %struct.differences_str, ptr %108, i32 0, i32 1
  %110 = load i16, ptr %109, align 4, !tbaa !26
  %111 = sext i16 %110 to i32
  %112 = icmp sgt i32 %111, 0
  br i1 %112, label %113, label %121

113:                                              ; preds = %106
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = load i32, ptr %7, align 4, !tbaa !24
  %116 = sext i32 %115 to i64
  %117 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI13read_positionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %114, i64 noundef %116) #4
  %118 = getelementptr inbounds %struct.read_position, ptr %117, i32 0, i32 3
  %119 = load double, ptr %118, align 8, !tbaa !9
  %120 = fadd double %119, 1.000000e+00
  store double %120, ptr %118, align 8, !tbaa !9
  br label %129

121:                                              ; preds = %106
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = load i32, ptr %7, align 4, !tbaa !24
  %124 = sext i32 %123 to i64
  %125 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI13read_positionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %124) #4
  %126 = getelementptr inbounds %struct.read_position, ptr %125, i32 0, i32 1
  %127 = load double, ptr %126, align 8, !tbaa !14
  %128 = fadd double %127, 1.000000e+00
  store double %128, ptr %126, align 8, !tbaa !14
  br label %129

129:                                              ; preds = %121, %113
  br label %130

130:                                              ; preds = %129, %98
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = load i32, ptr %7, align 4, !tbaa !24
  %133 = sext i32 %132 to i64
  %134 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI13read_positionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %131, i64 noundef %133) #4
  %135 = getelementptr inbounds %struct.read_position, ptr %134, i32 0, i32 4
  %136 = load double, ptr %135, align 8, !tbaa !15
  %137 = fadd double %136, 1.000000e+00
  store double %137, ptr %135, align 8, !tbaa !15
  %138 = load i32, ptr %7, align 4, !tbaa !24
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %7, align 4, !tbaa !24
  %140 = load i32, ptr %12, align 4, !tbaa !24
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %12, align 4, !tbaa !24
  br label %87, !llvm.loop !27

142:                                              ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %143

143:                                              ; preds = %142
  %144 = load i64, ptr %8, align 8, !tbaa !16
  %145 = add i64 %144, 1
  store i64 %145, ptr %8, align 8, !tbaa !16
  br label %37, !llvm.loop !28

146:                                              ; preds = %42
  br label %147

147:                                              ; preds = %152, %146
  %148 = load i32, ptr %7, align 4, !tbaa !24
  %149 = load i64, ptr %6, align 8, !tbaa !16
  %150 = trunc i64 %149 to i32
  %151 = icmp slt i32 %148, %150
  br i1 %151, label %152, label %169

152:                                              ; preds = %147
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = load i32, ptr %7, align 4, !tbaa !24
  %155 = sext i32 %154 to i64
  %156 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI13read_positionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %153, i64 noundef %155) #4
  %157 = getelementptr inbounds %struct.read_position, ptr %156, i32 0, i32 0
  %158 = load double, ptr %157, align 8, !tbaa !13
  %159 = fadd double %158, 1.000000e+00
  store double %159, ptr %157, align 8, !tbaa !13
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = load i32, ptr %7, align 4, !tbaa !24
  %162 = sext i32 %161 to i64
  %163 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI13read_positionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %160, i64 noundef %162) #4
  %164 = getelementptr inbounds %struct.read_position, ptr %163, i32 0, i32 4
  %165 = load double, ptr %164, align 8, !tbaa !15
  %166 = fadd double %165, 1.000000e+00
  store double %166, ptr %164, align 8, !tbaa !15
  %167 = load i32, ptr %7, align 4, !tbaa !24
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %7, align 4, !tbaa !24
  br label %147, !llvm.loop !29

169:                                              ; preds = %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #4
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI13read_positionSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI13read_positionSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI13read_positionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #3

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 24}
!10 = !{!"_ZTS13read_position", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!11 = !{!"double", !7, i64 0}
!12 = !{!10, !11, i64 16}
!13 = !{!10, !11, i64 0}
!14 = !{!10, !11, i64 8}
!15 = !{!10, !11, i64 32}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!19, !20, i64 0}
!19 = !{!"_ZTS15differences_str", !20, i64 0, !21, i64 4}
!20 = !{!"int", !7, i64 0}
!21 = !{!"short", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!20, !20, i64 0}
!25 = distinct !{!25, !23}
!26 = !{!19, !21, i64 4}
!27 = distinct !{!27, !23}
!28 = distinct !{!28, !23}
!29 = distinct !{!29, !23}


; 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.read_position = type { double, double, double, double, double }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI15differences_strSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11store_diffsSt6vectorI15differences_strSaIS0_EERS_I13read_positionSaIS3_EE(ptr noundef nonnull %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #2 {
  %3 = alloca %struct.read_position, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %3, i8 0, i64 40, i1 false)
  %4 = tail call noundef i64 @_ZNKSt6vectorI15differences_strSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %.not = icmp eq i64 %4, 0
  br i1 %.not, label %11, label %5

5:                                                ; preds = %2
  %6 = tail call noundef i64 @_ZNKSt6vectorI15differences_strSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %7 = add i64 %6, -1
  %8 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI15differences_strSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %7) #5
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = sext i32 %9 to i64
  br label %11

11:                                               ; preds = %5, %2
  %.038 = phi i64 [ %10, %5 ], [ 1, %2 ]
  %12 = tail call noundef i64 @_ZNKSt6vectorI13read_positionSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %13 = icmp ugt i64 %.038, %12
  br i1 %13, label %.lr.ph, label %.preheader42

.preheader42:                                     ; preds = %.lr.ph, %11
  %14 = call noundef i64 @_ZNKSt6vectorI15differences_strSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %15 = icmp ugt i64 %14, 1
  br i1 %15, label %.lr.ph53, label %.preheader

.lr.ph:                                           ; preds = %11, %.lr.ph
  call void @_ZNSt6vectorI13read_positionSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(40) %3)
  %16 = call noundef i64 @_ZNKSt6vectorI13read_positionSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %17 = icmp ugt i64 %.038, %16
  br i1 %17, label %.lr.ph, label %.preheader42, !llvm.loop !11

.loopexit.loopexit:                               ; preds = %64
  %18 = trunc nsw i64 %indvars.iv.next62 to i32
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %._crit_edge
  %.2.lcssa = phi i32 [ %.1.lcssa, %._crit_edge ], [ %18, %.loopexit.loopexit ]
  %19 = add nuw i64 %25, 1
  %20 = call noundef i64 @_ZNKSt6vectorI15differences_strSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %21 = icmp ult i64 %19, %20
  br i1 %21, label %.lr.ph53, label %.preheader, !llvm.loop !13

.preheader:                                       ; preds = %.loopexit, %.preheader42
  %.040.lcssa = phi i32 [ 0, %.preheader42 ], [ %.2.lcssa, %.loopexit ]
  %22 = trunc nsw i64 %.038 to i32
  %23 = icmp slt i32 %.040.lcssa, %22
  br i1 %23, label %.lr.ph56.preheader, label %._crit_edge57

.lr.ph56.preheader:                               ; preds = %.preheader
  %24 = sext i32 %.040.lcssa to i64
  br label %.lr.ph56

.lr.ph53:                                         ; preds = %.preheader42, %.loopexit
  %25 = phi i64 [ %19, %.loopexit ], [ 1, %.preheader42 ]
  %.03952 = phi i64 [ %25, %.loopexit ], [ 0, %.preheader42 ]
  %.04051 = phi i32 [ %.2.lcssa, %.loopexit ], [ 0, %.preheader42 ]
  %26 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI15differences_strSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.03952) #5
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = xor i32 %.04051, -1
  %29 = add i32 %27, %28
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph45.preheader, label %._crit_edge

.lr.ph45.preheader:                               ; preds = %.lr.ph53
  %31 = sext i32 %.04051 to i64
  br label %.lr.ph45

._crit_edge.loopexit:                             ; preds = %.lr.ph45
  %32 = trunc nsw i64 %indvars.iv.next to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph53
  %.1.lcssa = phi i32 [ %.04051, %.lr.ph53 ], [ %32, %._crit_edge.loopexit ]
  %33 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI15differences_strSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.03952) #5
  %34 = getelementptr inbounds i8, ptr %33, i64 4
  %35 = load i16, ptr %34, align 4, !tbaa !14
  %36 = call i16 @llvm.abs.i16(i16 %35, i1 false)
  %37 = icmp eq i16 %35, 0
  %narrow = select i1 %37, i16 1, i16 %36
  %spec.store.select = zext i16 %narrow to i32
  %.not58 = icmp eq i16 %narrow, 0
  br i1 %.not58, label %.loopexit, label %.lr.ph49.preheader

.lr.ph49.preheader:                               ; preds = %._crit_edge
  %38 = sext i32 %.1.lcssa to i64
  br label %.lr.ph49

.lr.ph45:                                         ; preds = %.lr.ph45.preheader, %.lr.ph45
  %indvars.iv = phi i64 [ %31, %.lr.ph45.preheader ], [ %indvars.iv.next, %.lr.ph45 ]
  %.03744 = phi i32 [ 0, %.lr.ph45.preheader ], [ %46, %.lr.ph45 ]
  %39 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI13read_positionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #5
  %40 = load double, ptr %39, align 8, !tbaa !15
  %41 = fadd double %40, 1.000000e+00
  store double %41, ptr %39, align 8, !tbaa !15
  %42 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI13read_positionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #5
  %43 = getelementptr inbounds i8, ptr %42, i64 32
  %44 = load double, ptr %43, align 8, !tbaa !18
  %45 = fadd double %44, 1.000000e+00
  store double %45, ptr %43, align 8, !tbaa !18
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %46 = add nuw nsw i32 %.03744, 1
  %exitcond.not = icmp eq i32 %46, %29
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %.lr.ph45, !llvm.loop !19

.lr.ph49:                                         ; preds = %.lr.ph49.preheader, %64
  %indvars.iv61 = phi i64 [ %38, %.lr.ph49.preheader ], [ %indvars.iv.next62, %64 ]
  %.047 = phi i32 [ 0, %.lr.ph49.preheader ], [ %71, %64 ]
  %47 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI15differences_strSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.03952) #5
  %48 = getelementptr inbounds i8, ptr %47, i64 4
  %49 = load i16, ptr %48, align 4, !tbaa !14
  %50 = icmp slt i16 %49, 0
  br i1 %50, label %51, label %54

51:                                               ; preds = %.lr.ph49
  %52 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI13read_positionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv61) #5
  %53 = getelementptr inbounds i8, ptr %52, i64 16
  br label %64

54:                                               ; preds = %.lr.ph49
  %55 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI15differences_strSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.03952) #5
  %56 = getelementptr inbounds i8, ptr %55, i64 4
  %57 = load i16, ptr %56, align 4, !tbaa !14
  %58 = icmp sgt i16 %57, 0
  %59 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI13read_positionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv61) #5
  br i1 %58, label %60, label %62

60:                                               ; preds = %54
  %61 = getelementptr inbounds i8, ptr %59, i64 24
  br label %64

62:                                               ; preds = %54
  %63 = getelementptr inbounds i8, ptr %59, i64 8
  br label %64

64:                                               ; preds = %60, %62, %51
  %.sink = phi ptr [ %61, %60 ], [ %63, %62 ], [ %53, %51 ]
  %65 = load double, ptr %.sink, align 8, !tbaa !20
  %66 = fadd double %65, 1.000000e+00
  store double %66, ptr %.sink, align 8, !tbaa !20
  %67 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI13read_positionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv61) #5
  %68 = getelementptr inbounds i8, ptr %67, i64 32
  %69 = load double, ptr %68, align 8, !tbaa !18
  %70 = fadd double %69, 1.000000e+00
  store double %70, ptr %68, align 8, !tbaa !18
  %indvars.iv.next62 = add nsw i64 %indvars.iv61, 1
  %71 = add nuw nsw i32 %.047, 1
  %exitcond64.not = icmp eq i32 %71, %spec.store.select
  br i1 %exitcond64.not, label %.loopexit.loopexit, label %.lr.ph49, !llvm.loop !21

.lr.ph56:                                         ; preds = %.lr.ph56.preheader, %.lr.ph56
  %indvars.iv65 = phi i64 [ %24, %.lr.ph56.preheader ], [ %indvars.iv.next66, %.lr.ph56 ]
  %72 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI13read_positionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv65) #5
  %73 = load double, ptr %72, align 8, !tbaa !15
  %74 = fadd double %73, 1.000000e+00
  store double %74, ptr %72, align 8, !tbaa !15
  %75 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI13read_positionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv65) #5
  %76 = getelementptr inbounds i8, ptr %75, i64 32
  %77 = load double, ptr %76, align 8, !tbaa !18
  %78 = fadd double %77, 1.000000e+00
  store double %78, ptr %76, align 8, !tbaa !18
  %indvars.iv.next66 = add nsw i64 %indvars.iv65, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next66 to i32
  %exitcond68.not = icmp eq i32 %lftr.wideiv, %22
  br i1 %exitcond68.not, label %._crit_edge57, label %.lr.ph56, !llvm.loop !22

._crit_edge57:                                    ; preds = %.lr.ph56, %.preheader
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #5
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI13read_positionSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI13read_positionSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI13read_positionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.abs.i16(i16, i1 immarg) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }

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

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


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