; LLVM IR from stan-dev/math :: lib/boost_1.84.0/libs/algorithm/minmax/fuzzing (element.fuzz)

; 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.std::pair" = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [118 x i8], align 1
@__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput = external hidden unnamed_addr constant [52 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z7greaterhh(i8 noundef zeroext, i8 noundef zeroext) #0

; Function Attrs: mustprogress uwtable
define dso_local i32 @LLVMFuzzerTestOneInput(ptr noundef %0, i64 noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca %"struct.std::pair", align 8
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i64, align 8
  %10 = alloca %"struct.std::pair", align 8
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  %14 = load i64, ptr %5, align 8, !tbaa !9
  %15 = icmp eq i64 %14, 0
  br i1 %15, label %16, label %17

16:                                               ; preds = %2
  store i32 0, ptr %3, align 4
  br label %203

17:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = load i64, ptr %5, align 8, !tbaa !9
  %21 = getelementptr inbounds i8, ptr %19, i64 %20
  %22 = call { ptr, ptr } @_ZN5boost14minmax_elementIPKhEESt4pairIT_S4_ES4_S4_(ptr noundef %18, ptr noundef %21)
  %23 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 0
  %24 = extractvalue { ptr, ptr } %22, 0
  store ptr %24, ptr %23, align 8
  %25 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 1
  %26 = extractvalue { ptr, ptr } %22, 1
  store ptr %26, ptr %25, align 8
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.std::pair", ptr %6, i32 0, i32 0
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  %30 = call noundef i64 @_ZSt8distanceIPKhENSt15iterator_traitsIT_E15difference_typeES3_S3_(ptr noundef %27, ptr noundef %29)
  %31 = load i64, ptr %5, align 8, !tbaa !9
  %32 = icmp ult i64 %30, %31
  br i1 %32, label %33, label %34

33:                                               ; preds = %17
  br label %36

34:                                               ; preds = %17
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 35, ptr noundef @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #6
  unreachable

35:                                               ; No predecessors!
  br label %36

36:                                               ; preds = %35, %33
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.std::pair", ptr %6, i32 0, i32 1
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  %40 = call noundef i64 @_ZSt8distanceIPKhENSt15iterator_traitsIT_E15difference_typeES3_S3_(ptr noundef %37, ptr noundef %39)
  %41 = load i64, ptr %5, align 8, !tbaa !9
  %42 = icmp ult i64 %40, %41
  br i1 %42, label %43, label %44

43:                                               ; preds = %36
  br label %46

44:                                               ; preds = %36
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 36, ptr noundef @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #6
  unreachable

45:                                               ; No predecessors!
  br label %46

46:                                               ; preds = %45, %43
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  %47 = getelementptr inbounds %"struct.std::pair", ptr %6, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !11
  %49 = load i8, ptr %48, align 1, !tbaa !14
  store i8 %49, ptr %7, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
  %50 = getelementptr inbounds %"struct.std::pair", ptr %6, i32 0, i32 1
  %51 = load ptr, ptr %50, align 8, !tbaa !13
  %52 = load i8, ptr %51, align 1, !tbaa !14
  store i8 %52, ptr %8, align 1, !tbaa !14
  %53 = load i8, ptr %7, align 1, !tbaa !14
  %54 = zext i8 %53 to i32
  %55 = load i8, ptr %8, align 1, !tbaa !14
  %56 = zext i8 %55 to i32
  %57 = icmp sle i32 %54, %56
  br i1 %57, label %58, label %59

58:                                               ; preds = %46
  br label %61

59:                                               ; preds = %46
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 42, ptr noundef @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #6
  unreachable

60:                                               ; No predecessors!
  br label %61

61:                                               ; preds = %60, %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %62

62:                                               ; preds = %92, %61
  %63 = load i64, ptr %9, align 8, !tbaa !9
  %64 = load i64, ptr %5, align 8, !tbaa !9
  %65 = icmp ult i64 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %95

67:                                               ; preds = %62
  %68 = load i8, ptr %7, align 1, !tbaa !14
  %69 = zext i8 %68 to i32
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = load i64, ptr %9, align 8, !tbaa !9
  %72 = getelementptr inbounds i8, ptr %70, i64 %71
  %73 = load i8, ptr %72, align 1, !tbaa !14
  %74 = zext i8 %73 to i32
  %75 = icmp sle i32 %69, %74
  br i1 %75, label %76, label %77

76:                                               ; preds = %67
  br label %79

77:                                               ; preds = %67
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 46, ptr noundef @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #6
  unreachable

78:                                               ; No predecessors!
  br label %79

79:                                               ; preds = %78, %76
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = load i64, ptr %9, align 8, !tbaa !9
  %82 = getelementptr inbounds i8, ptr %80, i64 %81
  %83 = load i8, ptr %82, align 1, !tbaa !14
  %84 = zext i8 %83 to i32
  %85 = load i8, ptr %8, align 1, !tbaa !14
  %86 = zext i8 %85 to i32
  %87 = icmp sle i32 %84, %86
  br i1 %87, label %88, label %89

88:                                               ; preds = %79
  br label %91

89:                                               ; preds = %79
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 47, ptr noundef @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #6
  unreachable

90:                                               ; No predecessors!
  br label %91

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

92:                                               ; preds = %91
  %93 = load i64, ptr %9, align 8, !tbaa !9
  %94 = add i64 %93, 1
  store i64 %94, ptr %9, align 8, !tbaa !9
  br label %62, !llvm.loop !15

95:                                               ; preds = %66
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.std::pair", ptr %6, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !11
  %99 = call noundef zeroext i1 @_ZN5boost9algorithm13none_of_equalIPKhhEEbT_S4_RKT0_(ptr noundef %96, ptr noundef %98, ptr noundef nonnull align 1 dereferenceable(1) %7)
  br i1 %99, label %100, label %101

100:                                              ; preds = %95
  br label %103

101:                                              ; preds = %95
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 51, ptr noundef @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #6
  unreachable

102:                                              ; No predecessors!
  br label %103

103:                                              ; preds = %102, %100
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.std::pair", ptr %6, i32 0, i32 1
  %106 = load ptr, ptr %105, align 8, !tbaa !13
  %107 = call noundef zeroext i1 @_ZN5boost9algorithm13none_of_equalIPKhhEEbT_S4_RKT0_(ptr noundef %104, ptr noundef %106, ptr noundef nonnull align 1 dereferenceable(1) %8)
  br i1 %107, label %108, label %109

108:                                              ; preds = %103
  br label %111

109:                                              ; preds = %103
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 52, ptr noundef @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #6
  unreachable

110:                                              ; No predecessors!
  br label %111

111:                                              ; preds = %110, %108
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = load i64, ptr %5, align 8, !tbaa !9
  %115 = getelementptr inbounds i8, ptr %113, i64 %114
  %116 = call { ptr, ptr } @_ZN5boost14minmax_elementIPKhPFbhhEEESt4pairIT_S6_ES6_S6_T0_(ptr noundef %112, ptr noundef %115, ptr noundef @_Z7greaterhh)
  %117 = getelementptr inbounds { ptr, ptr }, ptr %10, i32 0, i32 0
  %118 = extractvalue { ptr, ptr } %116, 0
  store ptr %118, ptr %117, align 8
  %119 = getelementptr inbounds { ptr, ptr }, ptr %10, i32 0, i32 1
  %120 = extractvalue { ptr, ptr } %116, 1
  store ptr %120, ptr %119, align 8
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.std::pair", ptr %10, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !11
  %124 = call noundef i64 @_ZSt8distanceIPKhENSt15iterator_traitsIT_E15difference_typeES3_S3_(ptr noundef %121, ptr noundef %123)
  %125 = load i64, ptr %5, align 8, !tbaa !9
  %126 = icmp ult i64 %124, %125
  br i1 %126, label %127, label %128

127:                                              ; preds = %111
  br label %130

128:                                              ; preds = %111
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 60, ptr noundef @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #6
  unreachable

129:                                              ; No predecessors!
  br label %130

130:                                              ; preds = %129, %127
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.std::pair", ptr %10, i32 0, i32 1
  %133 = load ptr, ptr %132, align 8, !tbaa !13
  %134 = call noundef i64 @_ZSt8distanceIPKhENSt15iterator_traitsIT_E15difference_typeES3_S3_(ptr noundef %131, ptr noundef %133)
  %135 = load i64, ptr %5, align 8, !tbaa !9
  %136 = icmp ult i64 %134, %135
  br i1 %136, label %137, label %138

137:                                              ; preds = %130
  br label %140

138:                                              ; preds = %130
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 61, ptr noundef @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #6
  unreachable

139:                                              ; No predecessors!
  br label %140

140:                                              ; preds = %139, %137
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  %141 = getelementptr inbounds %"struct.std::pair", ptr %10, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8, !tbaa !11
  %143 = load i8, ptr %142, align 1, !tbaa !14
  store i8 %143, ptr %11, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  %144 = getelementptr inbounds %"struct.std::pair", ptr %10, i32 0, i32 1
  %145 = load ptr, ptr %144, align 8, !tbaa !13
  %146 = load i8, ptr %145, align 1, !tbaa !14
  store i8 %146, ptr %12, align 1, !tbaa !14
  %147 = load i8, ptr %12, align 1, !tbaa !14
  %148 = load i8, ptr %11, align 1, !tbaa !14
  %149 = call noundef zeroext i1 @_Z7greaterhh(i8 noundef zeroext %147, i8 noundef zeroext %148)
  %150 = xor i1 %149, true
  br i1 %150, label %151, label %152

151:                                              ; preds = %140
  br label %154

152:                                              ; preds = %140
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 67, ptr noundef @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #6
  unreachable

153:                                              ; No predecessors!
  br label %154

154:                                              ; preds = %153, %151
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %155

155:                                              ; preds = %183, %154
  %156 = load i64, ptr %13, align 8, !tbaa !9
  %157 = load i64, ptr %5, align 8, !tbaa !9
  %158 = icmp ult i64 %156, %157
  br i1 %158, label %160, label %159

159:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %186

160:                                              ; preds = %155
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = load i64, ptr %13, align 8, !tbaa !9
  %163 = getelementptr inbounds i8, ptr %161, i64 %162
  %164 = load i8, ptr %163, align 1, !tbaa !14
  %165 = load i8, ptr %11, align 1, !tbaa !14
  %166 = call noundef zeroext i1 @_Z7greaterhh(i8 noundef zeroext %164, i8 noundef zeroext %165)
  %167 = xor i1 %166, true
  br i1 %167, label %168, label %169

168:                                              ; preds = %160
  br label %171

169:                                              ; preds = %160
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 71, ptr noundef @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #6
  unreachable

170:                                              ; No predecessors!
  br label %171

171:                                              ; preds = %170, %168
  %172 = load i8, ptr %12, align 1, !tbaa !14
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = load i64, ptr %13, align 8, !tbaa !9
  %175 = getelementptr inbounds i8, ptr %173, i64 %174
  %176 = load i8, ptr %175, align 1, !tbaa !14
  %177 = call noundef zeroext i1 @_Z7greaterhh(i8 noundef zeroext %172, i8 noundef zeroext %176)
  %178 = xor i1 %177, true
  br i1 %178, label %179, label %180

179:                                              ; preds = %171
  br label %182

180:                                              ; preds = %171
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 72, ptr noundef @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #6
  unreachable

181:                                              ; No predecessors!
  br label %182

182:                                              ; preds = %181, %179
  br label %183

183:                                              ; preds = %182
  %184 = load i64, ptr %13, align 8, !tbaa !9
  %185 = add i64 %184, 1
  store i64 %185, ptr %13, align 8, !tbaa !9
  br label %155, !llvm.loop !17

186:                                              ; preds = %159
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.std::pair", ptr %10, i32 0, i32 0
  %189 = load ptr, ptr %188, align 8, !tbaa !11
  %190 = call noundef zeroext i1 @_ZN5boost9algorithm13none_of_equalIPKhhEEbT_S4_RKT0_(ptr noundef %187, ptr noundef %189, ptr noundef nonnull align 1 dereferenceable(1) %11)
  br i1 %190, label %191, label %192

191:                                              ; preds = %186
  br label %194

192:                                              ; preds = %186
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 76, ptr noundef @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #6
  unreachable

193:                                              ; No predecessors!
  br label %194

194:                                              ; preds = %193, %191
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.std::pair", ptr %10, i32 0, i32 1
  %197 = load ptr, ptr %196, align 8, !tbaa !13
  %198 = call noundef zeroext i1 @_ZN5boost9algorithm13none_of_equalIPKhhEEbT_S4_RKT0_(ptr noundef %195, ptr noundef %197, ptr noundef nonnull align 1 dereferenceable(1) %12)
  br i1 %198, label %199, label %200

199:                                              ; preds = %194
  br label %202

200:                                              ; preds = %194
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 77, ptr noundef @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #6
  unreachable

201:                                              ; No predecessors!
  br label %202

202:                                              ; preds = %201, %199
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  store i32 0, ptr %3, align 4
  br label %203

203:                                              ; preds = %202, %16
  %204 = load i32, ptr %3, align 4
  ret i32 %204
}

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5boost14minmax_elementIPKhEESt4pairIT_S4_ES4_S4_(ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceIPKhENSt15iterator_traitsIT_E15difference_typeES3_S3_(ptr noundef, ptr noundef) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5boost9algorithm13none_of_equalIPKhhEEbT_S4_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) #0

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5boost14minmax_elementIPKhPFbhhEEESt4pairIT_S6_ES6_S6_T0_(ptr noundef, ptr noundef, ptr noundef) #1

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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSSt4pairIPKhS1_E", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; 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 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [118 x i8], align 1
@__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput = external hidden unnamed_addr constant [52 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z7greaterhh(i8 noundef zeroext, i8 noundef zeroext) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @LLVMFuzzerTestOneInput(ptr noundef %0, i64 noundef %1) local_unnamed_addr #1 {
  %3 = alloca i8, align 1
  %4 = alloca i8, align 1
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = icmp eq i64 %1, 0
  br i1 %7, label %70, label %8

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %0, i64 %1
  %10 = tail call { ptr, ptr } @_ZN5boost14minmax_elementIPKhEESt4pairIT_S4_ES4_S4_(ptr noundef %0, ptr noundef nonnull %9)
  %11 = extractvalue { ptr, ptr } %10, 0
  %12 = extractvalue { ptr, ptr } %10, 1
  %13 = tail call noundef i64 @_ZSt8distanceIPKhENSt15iterator_traitsIT_E15difference_typeES3_S3_(ptr noundef %0, ptr noundef %11)
  %14 = icmp ult i64 %13, %1
  br i1 %14, label %16, label %15

15:                                               ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 35, ptr noundef nonnull @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #5
  unreachable

16:                                               ; preds = %8
  %17 = tail call noundef i64 @_ZSt8distanceIPKhENSt15iterator_traitsIT_E15difference_typeES3_S3_(ptr noundef %0, ptr noundef %12)
  %18 = icmp ult i64 %17, %1
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 36, ptr noundef nonnull @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #5
  unreachable

20:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  %21 = load i8, ptr %11, align 1, !tbaa !5
  store i8 %21, ptr %3, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  %22 = load i8, ptr %12, align 1, !tbaa !5
  store i8 %22, ptr %4, align 1, !tbaa !5
  %.not = icmp ugt i8 %21, %22
  br i1 %.not, label %23, label %.preheader49

23:                                               ; preds = %20
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 42, ptr noundef nonnull @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #5
  unreachable

24:                                               ; preds = %31
  %25 = add nuw i64 %.04450, 1
  %exitcond.not = icmp eq i64 %25, %1
  br i1 %exitcond.not, label %26, label %.preheader49, !llvm.loop !8

26:                                               ; preds = %24
  %27 = call noundef zeroext i1 @_ZN5boost9algorithm13none_of_equalIPKhhEEbT_S4_RKT0_(ptr noundef nonnull %0, ptr noundef nonnull %11, ptr noundef nonnull align 1 dereferenceable(1) %3)
  br i1 %27, label %34, label %33

.preheader49:                                     ; preds = %20, %24
  %.04450 = phi i64 [ %25, %24 ], [ 0, %20 ]
  %28 = getelementptr inbounds i8, ptr %0, i64 %.04450
  %29 = load i8, ptr %28, align 1, !tbaa !5
  %.not47 = icmp ugt i8 %21, %29
  br i1 %.not47, label %30, label %31

30:                                               ; preds = %.preheader49
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 46, ptr noundef nonnull @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #5
  unreachable

31:                                               ; preds = %.preheader49
  %.not48 = icmp ugt i8 %29, %22
  br i1 %.not48, label %32, label %24

32:                                               ; preds = %31
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 47, ptr noundef nonnull @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #5
  unreachable

33:                                               ; preds = %26
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 51, ptr noundef nonnull @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #5
  unreachable

34:                                               ; preds = %26
  %35 = call noundef zeroext i1 @_ZN5boost9algorithm13none_of_equalIPKhhEEbT_S4_RKT0_(ptr noundef nonnull %0, ptr noundef nonnull %12, ptr noundef nonnull align 1 dereferenceable(1) %4)
  br i1 %35, label %37, label %36

36:                                               ; preds = %34
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 52, ptr noundef nonnull @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #5
  unreachable

37:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  %38 = call { ptr, ptr } @_ZN5boost14minmax_elementIPKhPFbhhEEESt4pairIT_S6_ES6_S6_T0_(ptr noundef nonnull %0, ptr noundef nonnull %9, ptr noundef nonnull @_Z7greaterhh)
  %39 = extractvalue { ptr, ptr } %38, 0
  %40 = extractvalue { ptr, ptr } %38, 1
  %41 = call noundef i64 @_ZSt8distanceIPKhENSt15iterator_traitsIT_E15difference_typeES3_S3_(ptr noundef nonnull %0, ptr noundef %39)
  %42 = icmp ult i64 %41, %1
  br i1 %42, label %44, label %43

43:                                               ; preds = %37
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 60, ptr noundef nonnull @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #5
  unreachable

44:                                               ; preds = %37
  %45 = call noundef i64 @_ZSt8distanceIPKhENSt15iterator_traitsIT_E15difference_typeES3_S3_(ptr noundef nonnull %0, ptr noundef %40)
  %46 = icmp ult i64 %45, %1
  br i1 %46, label %48, label %47

47:                                               ; preds = %44
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 61, ptr noundef nonnull @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #5
  unreachable

48:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  %49 = load i8, ptr %39, align 1, !tbaa !5
  store i8 %49, ptr %5, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  %50 = load i8, ptr %40, align 1, !tbaa !5
  store i8 %50, ptr %6, align 1, !tbaa !5
  %51 = call noundef zeroext i1 @_Z7greaterhh(i8 noundef zeroext %50, i8 noundef zeroext %49)
  br i1 %51, label %52, label %.preheader

52:                                               ; preds = %48
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 67, ptr noundef nonnull @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #5
  unreachable

53:                                               ; preds = %61
  %54 = add nuw i64 %.051, 1
  %exitcond52.not = icmp eq i64 %54, %1
  br i1 %exitcond52.not, label %55, label %.preheader, !llvm.loop !10

55:                                               ; preds = %53
  %56 = call noundef zeroext i1 @_ZN5boost9algorithm13none_of_equalIPKhhEEbT_S4_RKT0_(ptr noundef nonnull %0, ptr noundef nonnull %39, ptr noundef nonnull align 1 dereferenceable(1) %5)
  br i1 %56, label %66, label %65

.preheader:                                       ; preds = %48, %53
  %.051 = phi i64 [ %54, %53 ], [ 0, %48 ]
  %57 = getelementptr inbounds i8, ptr %0, i64 %.051
  %58 = load i8, ptr %57, align 1, !tbaa !5
  %59 = call noundef zeroext i1 @_Z7greaterhh(i8 noundef zeroext %58, i8 noundef zeroext %49)
  br i1 %59, label %60, label %61

60:                                               ; preds = %.preheader
  call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 71, ptr noundef nonnull @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #5
  unreachable

61:                                               ; preds = %.preheader
  %62 = load i8, ptr %57, align 1, !tbaa !5
  %63 = call noundef zeroext i1 @_Z7greaterhh(i8 noundef zeroext %50, i8 noundef zeroext %62)
  br i1 %63, label %64, label %53

64:                                               ; preds = %61
  call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 72, ptr noundef nonnull @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #5
  unreachable

65:                                               ; preds = %55
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 76, ptr noundef nonnull @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #5
  unreachable

66:                                               ; preds = %55
  %67 = call noundef zeroext i1 @_ZN5boost9algorithm13none_of_equalIPKhhEEbT_S4_RKT0_(ptr noundef nonnull %0, ptr noundef nonnull %40, ptr noundef nonnull align 1 dereferenceable(1) %6)
  br i1 %67, label %69, label %68

68:                                               ; preds = %66
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 77, ptr noundef nonnull @__PRETTY_FUNCTION__.LLVMFuzzerTestOneInput) #5
  unreachable

69:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  br label %70

70:                                               ; preds = %2, %69
  ret i32 0
}

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5boost14minmax_elementIPKhEESt4pairIT_S4_ES4_S4_(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceIPKhENSt15iterator_traitsIT_E15difference_typeES3_S3_(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) 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) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5boost9algorithm13none_of_equalIPKhhEEbT_S4_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN5boost14minmax_elementIPKhPFbhhEEESt4pairIT_S6_ES6_S6_T0_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { noreturn nounwind }
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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass