; LLVM IR from cyberbotics/webots_ros2 :: webots_ros2_driver/webots/src/controller/c (range_finder)

; 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._GImage = type { i32, i32, ptr, ptr, i8, i8, i8 }
%struct.AbstractCamera = type { i8, i32, i32, i32, i32, double, i8, double, i32, ptr, ptr }
%struct.Image = type { ptr, i32, ptr }
%struct.RangeFinder = type { double }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [60 x i8], align 1
@__FUNCTION__.wb_range_finder_save_image = external hidden unnamed_addr constant [27 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [29 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: nounwind uwtable
declare hidden ptr @range_finder_get_struct(i16 noundef zeroext) #1

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

declare void @robot_mutex_lock(...) #3

declare void @robot_mutex_unlock(...) #3

; Function Attrs: nounwind uwtable
declare hidden ptr @range_finder_get_abstract_camera_struct(i16 noundef zeroext) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @wb_range_finder_save_image(i16 noundef zeroext %0, ptr noundef %1, i32 noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca i16, align 2
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %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
  %14 = alloca double, align 8
  %15 = alloca i8, align 1
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %struct._GImage, align 8
  store i16 %0, ptr %5, align 2, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !11
  %20 = load ptr, ptr %6, align 8, !tbaa !9
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %27

22:                                               ; preds = %3
  %23 = load ptr, ptr %6, align 8, !tbaa !9
  %24 = getelementptr inbounds i8, ptr %23, i64 0
  %25 = load i8, ptr %24, align 1, !tbaa !13
  %26 = icmp ne i8 %25, 0
  br i1 %26, label %30, label %27

27:                                               ; preds = %22, %3
  %28 = load ptr, ptr @stderr, align 8, !tbaa !9
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str.4, ptr noundef @__FUNCTION__.wb_range_finder_save_image) #5
  store i32 -1, ptr %4, align 4
  br label %242

30:                                               ; preds = %22
  %31 = load i32, ptr %7, align 4, !tbaa !11
  %32 = icmp slt i32 %31, 1
  br i1 %32, label %36, label %33

33:                                               ; preds = %30
  %34 = load i32, ptr %7, align 4, !tbaa !11
  %35 = icmp sgt i32 %34, 100
  br i1 %35, label %36, label %39

36:                                               ; preds = %33, %30
  %37 = load ptr, ptr @stderr, align 8, !tbaa !9
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef @.str.5, ptr noundef @__FUNCTION__.wb_range_finder_save_image) #5
  store i32 -1, ptr %4, align 4
  br label %242

39:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  call void (...) @robot_mutex_lock()
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %40 = load i16, ptr %5, align 2, !tbaa !5
  %41 = call ptr @range_finder_get_abstract_camera_struct(i16 noundef zeroext %40)
  store ptr %41, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %42 = load i16, ptr %5, align 2, !tbaa !5
  %43 = call ptr @range_finder_get_struct(i16 noundef zeroext %42)
  store ptr %43, ptr %17, align 8, !tbaa !9
  %44 = load ptr, ptr %16, align 8, !tbaa !9
  %45 = icmp ne ptr %44, null
  br i1 %45, label %49, label %46

46:                                               ; preds = %39
  %47 = load ptr, ptr @stderr, align 8, !tbaa !9
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str, ptr noundef @__FUNCTION__.wb_range_finder_save_image) #5
  call void (...) @robot_mutex_unlock()
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %18, align 4
  br label %241

49:                                               ; preds = %39
  %50 = load ptr, ptr %16, align 8, !tbaa !9
  %51 = getelementptr inbounds %struct.AbstractCamera, ptr %50, i32 0, i32 10
  %52 = load ptr, ptr %51, align 8, !tbaa !14
  %53 = getelementptr inbounds %struct.Image, ptr %52, i32 0, i32 2
  %54 = load ptr, ptr %53, align 8, !tbaa !17
  %55 = icmp ne ptr %54, null
  br i1 %55, label %57, label %56

56:                                               ; preds = %49
  call void (...) @robot_mutex_unlock()
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %18, align 4
  br label %241

57:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #5
  %58 = load ptr, ptr %16, align 8, !tbaa !9
  %59 = getelementptr inbounds %struct.AbstractCamera, ptr %58, i32 0, i32 3
  %60 = load i32, ptr %59, align 4, !tbaa !19
  %61 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 0
  store i32 %60, ptr %61, align 8, !tbaa !20
  %62 = load ptr, ptr %16, align 8, !tbaa !9
  %63 = getelementptr inbounds %struct.AbstractCamera, ptr %62, i32 0, i32 4
  %64 = load i32, ptr %63, align 8, !tbaa !22
  %65 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 1
  store i32 %64, ptr %65, align 4, !tbaa !23
  %66 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 3
  store ptr null, ptr %66, align 8, !tbaa !24
  %67 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 2
  store ptr null, ptr %67, align 8, !tbaa !25
  %68 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 0
  %69 = load i32, ptr %68, align 8, !tbaa !20
  %70 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 1
  %71 = load i32, ptr %70, align 4, !tbaa !23
  %72 = mul nsw i32 %69, %71
  store i32 %72, ptr %13, align 4, !tbaa !11
  %73 = load ptr, ptr %6, align 8, !tbaa !9
  %74 = call zeroext i8 @g_image_get_type(ptr noundef %73)
  %75 = zext i8 %74 to i32
  %76 = icmp eq i32 %75, 4
  br i1 %76, label %77, label %80

77:                                               ; preds = %57
  %78 = load ptr, ptr @stderr, align 8, !tbaa !9
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef @.str.6, ptr noundef @__FUNCTION__.wb_range_finder_save_image) #5
  call void (...) @robot_mutex_unlock()
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %18, align 4
  br label %240

80:                                               ; preds = %57
  %81 = load ptr, ptr %6, align 8, !tbaa !9
  %82 = call zeroext i8 @g_image_get_type(ptr noundef %81)
  %83 = zext i8 %82 to i32
  %84 = icmp eq i32 %83, 5
  br i1 %84, label %85, label %95

85:                                               ; preds = %80
  %86 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 4
  store i8 0, ptr %86, align 8, !tbaa !26
  %87 = load i32, ptr %13, align 4, !tbaa !11
  %88 = sext i32 %87 to i64
  %89 = mul i64 %88, 4
  %90 = trunc i64 %89 to i32
  store i32 %90, ptr %13, align 4, !tbaa !11
  %91 = load i32, ptr %13, align 4, !tbaa !11
  %92 = sext i32 %91 to i64
  %93 = call noalias ptr @malloc(i64 noundef %92) #6
  %94 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 2
  store ptr %93, ptr %94, align 8, !tbaa !25
  br label %103

95:                                               ; preds = %80
  %96 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 4
  store i8 1, ptr %96, align 8, !tbaa !26
  %97 = load i32, ptr %13, align 4, !tbaa !11
  %98 = mul nsw i32 %97, 3
  store i32 %98, ptr %13, align 4, !tbaa !11
  %99 = load i32, ptr %13, align 4, !tbaa !11
  %100 = sext i32 %99 to i64
  %101 = call noalias ptr @malloc(i64 noundef %100) #6
  %102 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 3
  store ptr %101, ptr %102, align 8, !tbaa !24
  br label %103

103:                                              ; preds = %95, %85
  br label %104

104:                                              ; preds = %103
  %105 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 3
  %106 = load ptr, ptr %105, align 8, !tbaa !24
  %107 = icmp ne ptr %106, null
  br i1 %107, label %115, label %108

108:                                              ; preds = %104
  %109 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 2
  %110 = load ptr, ptr %109, align 8, !tbaa !25
  %111 = icmp ne ptr %110, null
  br i1 %111, label %115, label %112

112:                                              ; preds = %108
  %113 = load ptr, ptr @stderr, align 8, !tbaa !9
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef @.str.7, ptr noundef @__FUNCTION__.wb_range_finder_save_image) #5
  call void (...) @robot_mutex_unlock()
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %18, align 4
  br label %240

115:                                              ; preds = %108, %104
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %116

116:                                              ; preds = %220, %115
  %117 = load i32, ptr %11, align 4, !tbaa !11
  %118 = load ptr, ptr %16, align 8, !tbaa !9
  %119 = getelementptr inbounds %struct.AbstractCamera, ptr %118, i32 0, i32 4
  %120 = load i32, ptr %119, align 8, !tbaa !22
  %121 = icmp slt i32 %117, %120
  br i1 %121, label %122, label %223

122:                                              ; preds = %116
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %123

123:                                              ; preds = %216, %122
  %124 = load i32, ptr %10, align 4, !tbaa !11
  %125 = load ptr, ptr %16, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct.AbstractCamera, ptr %125, i32 0, i32 3
  %127 = load i32, ptr %126, align 4, !tbaa !19
  %128 = icmp slt i32 %124, %127
  br i1 %128, label %129, label %219

129:                                              ; preds = %123
  %130 = load i32, ptr %11, align 4, !tbaa !11
  %131 = load ptr, ptr %16, align 8, !tbaa !9
  %132 = getelementptr inbounds %struct.AbstractCamera, ptr %131, i32 0, i32 3
  %133 = load i32, ptr %132, align 4, !tbaa !19
  %134 = mul nsw i32 %130, %133
  %135 = load i32, ptr %10, align 4, !tbaa !11
  %136 = add nsw i32 %134, %135
  store i32 %136, ptr %9, align 4, !tbaa !11
  %137 = load ptr, ptr %16, align 8, !tbaa !9
  %138 = getelementptr inbounds %struct.AbstractCamera, ptr %137, i32 0, i32 10
  %139 = load ptr, ptr %138, align 8, !tbaa !14
  %140 = getelementptr inbounds %struct.Image, ptr %139, i32 0, i32 2
  %141 = load ptr, ptr %140, align 8, !tbaa !17
  %142 = load i32, ptr %9, align 4, !tbaa !11
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds float, ptr %141, i64 %143
  %145 = load float, ptr %144, align 4, !tbaa !27
  %146 = fpext float %145 to double
  store double %146, ptr %14, align 8, !tbaa !29
  %147 = load ptr, ptr %16, align 8, !tbaa !9
  %148 = getelementptr inbounds %struct.AbstractCamera, ptr %147, i32 0, i32 5
  %149 = load double, ptr %148, align 8, !tbaa !30
  %150 = load double, ptr %14, align 8, !tbaa !29
  %151 = fsub double %150, %149
  store double %151, ptr %14, align 8, !tbaa !29
  %152 = load ptr, ptr %17, align 8, !tbaa !9
  %153 = getelementptr inbounds %struct.RangeFinder, ptr %152, i32 0, i32 0
  %154 = load double, ptr %153, align 8, !tbaa !31
  %155 = load double, ptr %14, align 8, !tbaa !29
  %156 = fdiv double %155, %154
  store double %156, ptr %14, align 8, !tbaa !29
  %157 = load double, ptr %14, align 8, !tbaa !29
  %158 = fcmp ogt double %157, 1.000000e+00
  br i1 %158, label %159, label %160

159:                                              ; preds = %129
  br label %168

160:                                              ; preds = %129
  %161 = load double, ptr %14, align 8, !tbaa !29
  %162 = fcmp olt double %161, 0.000000e+00
  br i1 %162, label %163, label %164

163:                                              ; preds = %160
  br label %166

164:                                              ; preds = %160
  %165 = load double, ptr %14, align 8, !tbaa !29
  br label %166

166:                                              ; preds = %164, %163
  %167 = phi double [ 0.000000e+00, %163 ], [ %165, %164 ]
  br label %168

168:                                              ; preds = %166, %159
  %169 = phi double [ 1.000000e+00, %159 ], [ %167, %166 ]
  store double %169, ptr %14, align 8, !tbaa !29
  %170 = load double, ptr %14, align 8, !tbaa !29
  %171 = fmul double %170, 2.550000e+02
  %172 = fptoui double %171 to i8
  store i8 %172, ptr %15, align 1, !tbaa !13
  %173 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 4
  %174 = load i8, ptr %173, align 8, !tbaa !26
  %175 = zext i8 %174 to i32
  %176 = icmp eq i32 %175, 1
  br i1 %176, label %177, label %207

177:                                              ; preds = %168
  %178 = load i32, ptr %11, align 4, !tbaa !11
  %179 = load ptr, ptr %16, align 8, !tbaa !9
  %180 = getelementptr inbounds %struct.AbstractCamera, ptr %179, i32 0, i32 3
  %181 = load i32, ptr %180, align 4, !tbaa !19
  %182 = mul nsw i32 %178, %181
  %183 = mul nsw i32 %182, 3
  %184 = load i32, ptr %10, align 4, !tbaa !11
  %185 = mul nsw i32 3, %184
  %186 = add nsw i32 %183, %185
  store i32 %186, ptr %8, align 4, !tbaa !11
  %187 = load i8, ptr %15, align 1, !tbaa !13
  %188 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 3
  %189 = load ptr, ptr %188, align 8, !tbaa !24
  %190 = load i32, ptr %8, align 4, !tbaa !11
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds i8, ptr %189, i64 %191
  store i8 %187, ptr %192, align 1, !tbaa !13
  %193 = load i8, ptr %15, align 1, !tbaa !13
  %194 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 3
  %195 = load ptr, ptr %194, align 8, !tbaa !24
  %196 = load i32, ptr %8, align 4, !tbaa !11
  %197 = add nsw i32 %196, 1
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds i8, ptr %195, i64 %198
  store i8 %193, ptr %199, align 1, !tbaa !13
  %200 = load i8, ptr %15, align 1, !tbaa !13
  %201 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 3
  %202 = load ptr, ptr %201, align 8, !tbaa !24
  %203 = load i32, ptr %8, align 4, !tbaa !11
  %204 = add nsw i32 %203, 2
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds i8, ptr %202, i64 %205
  store i8 %200, ptr %206, align 1, !tbaa !13
  br label %215

207:                                              ; preds = %168
  %208 = load double, ptr %14, align 8, !tbaa !29
  %209 = fptrunc double %208 to float
  %210 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 2
  %211 = load ptr, ptr %210, align 8, !tbaa !25
  %212 = load i32, ptr %9, align 4, !tbaa !11
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds float, ptr %211, i64 %213
  store float %209, ptr %214, align 4, !tbaa !27
  br label %215

215:                                              ; preds = %207, %177
  br label %216

216:                                              ; preds = %215
  %217 = load i32, ptr %10, align 4, !tbaa !11
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %10, align 4, !tbaa !11
  br label %123, !llvm.loop !33

219:                                              ; preds = %123
  br label %220

220:                                              ; preds = %219
  %221 = load i32, ptr %11, align 4, !tbaa !11
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %11, align 4, !tbaa !11
  br label %116, !llvm.loop !35

223:                                              ; preds = %116
  %224 = load ptr, ptr %6, align 8, !tbaa !9
  %225 = load i32, ptr %7, align 4, !tbaa !11
  %226 = trunc i32 %225 to i8
  %227 = call i32 @g_image_save(ptr noundef %19, ptr noundef %224, i8 noundef signext %226)
  store i32 %227, ptr %12, align 4, !tbaa !11
  %228 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 4
  %229 = load i8, ptr %228, align 8, !tbaa !26
  %230 = zext i8 %229 to i32
  %231 = icmp eq i32 %230, 1
  br i1 %231, label %232, label %235

232:                                              ; preds = %223
  %233 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 3
  %234 = load ptr, ptr %233, align 8, !tbaa !24
  call void @free(ptr noundef %234) #5
  br label %238

235:                                              ; preds = %223
  %236 = getelementptr inbounds %struct._GImage, ptr %19, i32 0, i32 2
  %237 = load ptr, ptr %236, align 8, !tbaa !25
  call void @free(ptr noundef %237) #5
  br label %238

238:                                              ; preds = %235, %232
  call void (...) @robot_mutex_unlock()
  %239 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %239, ptr %4, align 4
  store i32 1, ptr %18, align 4
  br label %240

240:                                              ; preds = %238, %112, %77
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #5
  br label %241

241:                                              ; preds = %240, %56, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  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 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %242

242:                                              ; preds = %241, %36, %27
  %243 = load i32, ptr %4, align 4
  ret i32 %243
}

declare zeroext i8 @g_image_get_type(ptr noundef) #3

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

declare i32 @g_image_save(ptr noundef, ptr noundef, i8 noundef signext) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

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

!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 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !10, i64 64}
!15 = !{!"", !7, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !16, i64 24, !7, i64 32, !16, i64 40, !12, i64 48, !10, i64 56, !10, i64 64}
!16 = !{!"double", !7, i64 0}
!17 = !{!18, !10, i64 16}
!18 = !{!"", !10, i64 0, !12, i64 8, !10, i64 16}
!19 = !{!15, !12, i64 12}
!20 = !{!21, !12, i64 0}
!21 = !{!"_GImage", !12, i64 0, !12, i64 4, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 25, !7, i64 26}
!22 = !{!15, !12, i64 16}
!23 = !{!21, !12, i64 4}
!24 = !{!21, !10, i64 16}
!25 = !{!21, !10, i64 8}
!26 = !{!21, !7, i64 24}
!27 = !{!28, !28, i64 0}
!28 = !{!"float", !7, i64 0}
!29 = !{!16, !16, i64 0}
!30 = !{!15, !16, i64 24}
!31 = !{!32, !16, i64 0}
!32 = !{!"", !16, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = distinct !{!35, !34}


; 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._GImage = type { i32, i32, ptr, ptr, i8, i8, i8 }

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [60 x i8], align 1
@__FUNCTION__.wb_range_finder_save_image = external hidden unnamed_addr constant [27 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [29 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare hidden ptr @range_finder_get_struct(i16 noundef zeroext) local_unnamed_addr #1

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

declare void @robot_mutex_lock(...) local_unnamed_addr #3

declare void @robot_mutex_unlock(...) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden ptr @range_finder_get_abstract_camera_struct(i16 noundef zeroext) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @wb_range_finder_save_image(i16 noundef zeroext %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #1 {
  %4 = alloca %struct._GImage, align 8
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %7, label %5

5:                                                ; preds = %3
  %6 = load i8, ptr %1, align 1, !tbaa !5
  %.not60 = icmp eq i8 %6, 0
  br i1 %.not60, label %7, label %10

7:                                                ; preds = %5, %3
  %8 = load ptr, ptr @stderr, align 8, !tbaa !8
  %9 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.4, ptr noundef nonnull @__FUNCTION__.wb_range_finder_save_image) #7
  br label %173

10:                                               ; preds = %5
  %11 = add i32 %2, -101
  %or.cond = icmp ult i32 %11, -100
  br i1 %or.cond, label %12, label %15

12:                                               ; preds = %10
  %13 = load ptr, ptr @stderr, align 8, !tbaa !8
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.5, ptr noundef nonnull @__FUNCTION__.wb_range_finder_save_image) #7
  br label %173

15:                                               ; preds = %10
  tail call void (...) @robot_mutex_lock() #8
  %16 = tail call ptr @range_finder_get_abstract_camera_struct(i16 noundef zeroext %0)
  %17 = tail call ptr @range_finder_get_struct(i16 noundef zeroext %0)
  %.not61 = icmp eq ptr %16, null
  br i1 %.not61, label %18, label %21

18:                                               ; preds = %15
  %19 = load ptr, ptr @stderr, align 8, !tbaa !8
  %20 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__.wb_range_finder_save_image) #7
  tail call void (...) @robot_mutex_unlock() #8
  br label %173

21:                                               ; preds = %15
  %22 = getelementptr inbounds i8, ptr %16, i64 64
  %23 = load ptr, ptr %22, align 8, !tbaa !10
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  %25 = load ptr, ptr %24, align 8, !tbaa !14
  %.not62 = icmp eq ptr %25, null
  br i1 %.not62, label %26, label %27

26:                                               ; preds = %21
  tail call void (...) @robot_mutex_unlock() #8
  br label %173

27:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #8
  %28 = getelementptr inbounds i8, ptr %16, i64 12
  %29 = load i32, ptr %28, align 4, !tbaa !16
  store i32 %29, ptr %4, align 8, !tbaa !17
  %30 = getelementptr inbounds i8, ptr %16, i64 16
  %31 = load i32, ptr %30, align 8, !tbaa !19
  %32 = getelementptr inbounds i8, ptr %4, i64 4
  store i32 %31, ptr %32, align 4, !tbaa !20
  %33 = getelementptr inbounds i8, ptr %4, i64 16
  %34 = getelementptr inbounds i8, ptr %4, i64 8
  %35 = mul nsw i32 %31, %29
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %34, i8 0, i64 16, i1 false)
  %36 = tail call zeroext i8 @g_image_get_type(ptr noundef nonnull %1) #8
  %37 = icmp eq i8 %36, 4
  br i1 %37, label %38, label %41

38:                                               ; preds = %27
  %39 = load ptr, ptr @stderr, align 8, !tbaa !8
  %40 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.6, ptr noundef nonnull @__FUNCTION__.wb_range_finder_save_image) #7
  tail call void (...) @robot_mutex_unlock() #8
  br label %172

41:                                               ; preds = %27
  %42 = tail call zeroext i8 @g_image_get_type(ptr noundef nonnull %1) #8
  %.not72.not = icmp eq i8 %42, 5
  br i1 %.not72.not, label %43, label %47

43:                                               ; preds = %41
  %44 = shl i32 %35, 2
  %45 = sext i32 %44 to i64
  %46 = tail call noalias ptr @malloc(i64 noundef %45) #9
  store ptr %46, ptr %34, align 8, !tbaa !21
  br label %51

47:                                               ; preds = %41
  %48 = mul nsw i32 %35, 3
  %49 = sext i32 %48 to i64
  %50 = tail call noalias ptr @malloc(i64 noundef %49) #9
  store ptr %50, ptr %33, align 8, !tbaa !22
  br label %51

51:                                               ; preds = %43, %47
  %52 = phi ptr [ %46, %43 ], [ null, %47 ]
  %53 = phi ptr [ null, %43 ], [ %50, %47 ]
  %54 = phi i8 [ 0, %43 ], [ 1, %47 ]
  %55 = ptrtoint ptr %52 to i64
  %56 = getelementptr inbounds i8, ptr %4, i64 24
  store i8 %54, ptr %56, align 8
  %57 = icmp ne ptr %53, null
  %58 = icmp ne ptr %52, null
  %or.cond4 = or i1 %57, %58
  br i1 %or.cond4, label %.preheader63, label %64

.preheader63:                                     ; preds = %51
  %59 = load i32, ptr %30, align 8, !tbaa !19
  %60 = icmp sgt i32 %59, 0
  br i1 %60, label %.preheader.lr.ph, label %._crit_edge67

.preheader.lr.ph:                                 ; preds = %.preheader63
  %61 = getelementptr inbounds i8, ptr %16, i64 24
  %62 = load i32, ptr %28, align 4, !tbaa !16
  %63 = icmp sgt i32 %62, 0
  br i1 %63, label %.preheader, label %._crit_edge67

64:                                               ; preds = %51
  %65 = load ptr, ptr @stderr, align 8, !tbaa !8
  %66 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef nonnull @.str.7, ptr noundef nonnull @__FUNCTION__.wb_range_finder_save_image) #7
  tail call void (...) @robot_mutex_unlock() #8
  br label %172

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge
  %67 = phi i32 [ %160, %._crit_edge ], [ %59, %.preheader.lr.ph ]
  %68 = phi i32 [ %161, %._crit_edge ], [ %62, %.preheader.lr.ph ]
  %69 = phi ptr [ %162, %._crit_edge ], [ %53, %.preheader.lr.ph ]
  %70 = phi i32 [ %163, %._crit_edge ], [ %62, %.preheader.lr.ph ]
  %71 = phi i32 [ %164, %._crit_edge ], [ %62, %.preheader.lr.ph ]
  %.05465 = phi i32 [ %165, %._crit_edge ], [ 0, %.preheader.lr.ph ]
  %72 = icmp sgt i32 %71, 0
  br i1 %72, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  br i1 %.not72.not, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph
  %73 = load ptr, ptr %22, align 8, !tbaa !10
  %74 = getelementptr inbounds i8, ptr %73, i64 16
  %75 = load ptr, ptr %74, align 8, !tbaa !14
  %76 = load double, ptr %61, align 8, !tbaa !23
  %77 = load double, ptr %17, align 8, !tbaa !24
  %78 = mul nuw nsw i32 %71, %.05465
  %79 = zext nneg i32 %78 to i64
  %80 = getelementptr inbounds float, ptr %75, i64 %79
  %81 = load float, ptr %80, align 4, !tbaa !26
  %82 = fpext float %81 to double
  %83 = fsub double %82, %76
  %84 = fdiv double %83, %77
  %85 = fcmp ogt double %84, 1.000000e+00
  %86 = fcmp olt double %84, 0.000000e+00
  %87 = select i1 %86, double 0.000000e+00, double %84
  %88 = select i1 %85, double 1.000000e+00, double %87
  %89 = fptrunc double %88 to float
  %90 = getelementptr inbounds float, ptr %52, i64 %79
  store float %89, ptr %90, align 4, !tbaa !26
  %exitcond.peel.not = icmp slt i32 %70, 2
  br i1 %exitcond.peel.not, label %._crit_edge, label %.peel.next

.peel.next:                                       ; preds = %.lr.ph.split.us
  %91 = ptrtoint ptr %75 to i64
  %92 = mul nuw nsw i32 %70, %.05465
  %93 = add nsw i32 %70, -1
  %min.iters.check = icmp ult i32 %70, 5
  %94 = sub i64 %55, %91
  %diff.check = icmp ult i64 %94, 16
  %or.cond81 = or i1 %min.iters.check, %diff.check
  br i1 %or.cond81, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.peel.next
  %n.vec = and i32 %93, -4
  %ind.end = or disjoint i32 %n.vec, 1
  %broadcast.splatinsert = insertelement <4 x double> poison, double %76, i64 0
  %broadcast.splat = shufflevector <4 x double> %broadcast.splatinsert, <4 x double> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert79 = insertelement <4 x double> poison, double %77, i64 0
  %broadcast.splat80 = shufflevector <4 x double> %broadcast.splatinsert79, <4 x double> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i32 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i32 %index, 1
  %95 = add nuw nsw i32 %92, %offset.idx
  %96 = zext nneg i32 %95 to i64
  %97 = getelementptr inbounds float, ptr %75, i64 %96
  %wide.load = load <4 x float>, ptr %97, align 4, !tbaa !26
  %98 = fpext <4 x float> %wide.load to <4 x double>
  %99 = fsub <4 x double> %98, %broadcast.splat
  %100 = fdiv <4 x double> %99, %broadcast.splat80
  %101 = fcmp ogt <4 x double> %100, <double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00>
  %102 = fcmp olt <4 x double> %100, zeroinitializer
  %103 = select <4 x i1> %102, <4 x double> zeroinitializer, <4 x double> %100
  %104 = select <4 x i1> %101, <4 x double> <double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00>, <4 x double> %103
  %105 = fptrunc <4 x double> %104 to <4 x float>
  %106 = getelementptr inbounds float, ptr %52, i64 %96
  store <4 x float> %105, ptr %106, align 4, !tbaa !26
  %index.next = add nuw i32 %index, 4
  %107 = icmp eq i32 %index.next, %n.vec
  br i1 %107, label %middle.block, label %vector.body, !llvm.loop !28

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i32 %93, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.peel.next
  %.05364.us.ph = phi i32 [ 1, %.peel.next ], [ %ind.end, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.05364.us = phi i32 [ %121, %scalar.ph ], [ %.05364.us.ph, %scalar.ph.preheader ]
  %108 = add nuw nsw i32 %92, %.05364.us
  %109 = zext nneg i32 %108 to i64
  %110 = getelementptr inbounds float, ptr %75, i64 %109
  %111 = load float, ptr %110, align 4, !tbaa !26
  %112 = fpext float %111 to double
  %113 = fsub double %112, %76
  %114 = fdiv double %113, %77
  %115 = fcmp ogt double %114, 1.000000e+00
  %116 = fcmp olt double %114, 0.000000e+00
  %117 = select i1 %116, double 0.000000e+00, double %114
  %118 = select i1 %115, double 1.000000e+00, double %117
  %119 = fptrunc double %118 to float
  %120 = getelementptr inbounds float, ptr %52, i64 %109
  store float %119, ptr %120, align 4, !tbaa !26
  %121 = add nuw nsw i32 %.05364.us, 1
  %exitcond.not = icmp eq i32 %70, %121
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !33

.lr.ph.split:                                     ; preds = %.lr.ph, %155
  %122 = phi i32 [ %156, %155 ], [ %68, %.lr.ph ]
  %123 = phi ptr [ %157, %155 ], [ %69, %.lr.ph ]
  %124 = phi i32 [ %156, %155 ], [ %71, %.lr.ph ]
  %.05364 = phi i32 [ %158, %155 ], [ 0, %.lr.ph ]
  %125 = mul nsw i32 %124, %.05465
  %126 = add nsw i32 %125, %.05364
  %127 = load ptr, ptr %22, align 8, !tbaa !10
  %128 = getelementptr inbounds i8, ptr %127, i64 16
  %129 = load ptr, ptr %128, align 8, !tbaa !14
  %130 = sext i32 %126 to i64
  %131 = getelementptr inbounds float, ptr %129, i64 %130
  %132 = load float, ptr %131, align 4, !tbaa !26
  %133 = fpext float %132 to double
  %134 = load double, ptr %61, align 8, !tbaa !23
  %135 = fsub double %133, %134
  %136 = load double, ptr %17, align 8, !tbaa !24
  %137 = fdiv double %135, %136
  %138 = fcmp ogt double %137, 1.000000e+00
  %139 = fcmp olt double %137, 0.000000e+00
  %140 = select i1 %139, double 0.000000e+00, double %137
  %141 = select i1 %138, double 1.000000e+00, double %140
  br i1 %.not72.not, label %152, label %142

142:                                              ; preds = %.lr.ph.split
  %143 = fmul double %141, 2.550000e+02
  %144 = fptoui double %143 to i8
  %145 = mul i32 %126, 3
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds i8, ptr %123, i64 %146
  store i8 %144, ptr %147, align 1, !tbaa !5
  %148 = load ptr, ptr %33, align 8, !tbaa !22
  %149 = getelementptr i8, ptr %148, i64 %146
  %150 = getelementptr i8, ptr %149, i64 1
  store i8 %144, ptr %150, align 1, !tbaa !5
  %151 = getelementptr i8, ptr %149, i64 2
  store i8 %144, ptr %151, align 1, !tbaa !5
  %.pre = load i32, ptr %28, align 4, !tbaa !16
  br label %155

152:                                              ; preds = %.lr.ph.split
  %153 = fptrunc double %141 to float
  %154 = getelementptr inbounds float, ptr %52, i64 %130
  store float %153, ptr %154, align 4, !tbaa !26
  br label %155

155:                                              ; preds = %142, %152
  %156 = phi i32 [ %.pre, %142 ], [ %122, %152 ]
  %157 = phi ptr [ %148, %142 ], [ %123, %152 ]
  %158 = add nuw nsw i32 %.05364, 1
  %159 = icmp slt i32 %158, %156
  br i1 %159, label %.lr.ph.split, label %._crit_edge.loopexit, !llvm.loop !34

._crit_edge.loopexit:                             ; preds = %155
  %.pre71 = load i32, ptr %30, align 8, !tbaa !19
  br label %._crit_edge

._crit_edge:                                      ; preds = %scalar.ph, %middle.block, %.lr.ph.split.us, %._crit_edge.loopexit, %.preheader
  %160 = phi i32 [ %.pre71, %._crit_edge.loopexit ], [ %67, %.preheader ], [ %67, %.lr.ph.split.us ], [ %67, %middle.block ], [ %67, %scalar.ph ]
  %161 = phi i32 [ %156, %._crit_edge.loopexit ], [ %68, %.preheader ], [ %68, %.lr.ph.split.us ], [ %68, %middle.block ], [ %68, %scalar.ph ]
  %162 = phi ptr [ %157, %._crit_edge.loopexit ], [ %69, %.preheader ], [ %69, %.lr.ph.split.us ], [ %69, %middle.block ], [ %69, %scalar.ph ]
  %163 = phi i32 [ %156, %._crit_edge.loopexit ], [ %70, %.preheader ], [ %70, %.lr.ph.split.us ], [ %70, %middle.block ], [ %70, %scalar.ph ]
  %164 = phi i32 [ %156, %._crit_edge.loopexit ], [ %71, %.preheader ], [ %70, %.lr.ph.split.us ], [ %70, %middle.block ], [ %70, %scalar.ph ]
  %165 = add nuw nsw i32 %.05465, 1
  %166 = icmp slt i32 %165, %160
  br i1 %166, label %.preheader, label %._crit_edge67, !llvm.loop !36

._crit_edge67:                                    ; preds = %._crit_edge, %.preheader.lr.ph, %.preheader63
  %167 = trunc nuw nsw i32 %2 to i8
  %168 = call i32 @g_image_save(ptr noundef nonnull %4, ptr noundef nonnull %1, i8 noundef signext %167) #8
  %169 = load i8, ptr %56, align 8, !tbaa !37
  %170 = icmp eq i8 %169, 1
  %.val = load ptr, ptr %33, align 8
  %.val76 = load ptr, ptr %34, align 8
  %171 = select i1 %170, ptr %.val, ptr %.val76
  call void @free(ptr noundef %171) #8
  call void (...) @robot_mutex_unlock() #8
  br label %172

172:                                              ; preds = %._crit_edge67, %64, %38
  %.0 = phi i32 [ -1, %38 ], [ %168, %._crit_edge67 ], [ -1, %64 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  br label %173

173:                                              ; preds = %18, %26, %172, %12, %7
  %.2 = phi i32 [ -1, %12 ], [ -1, %7 ], [ %.0, %172 ], [ -1, %26 ], [ -1, %18 ]
  ret i32 %.2
}

declare zeroext i8 @g_image_get_type(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #4

declare i32 @g_image_save(ptr noundef, ptr noundef, i8 noundef signext) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { cold nounwind }
attributes #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }

!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/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !9, i64 64}
!11 = !{!"", !6, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !13, i64 24, !6, i64 32, !13, i64 40, !12, i64 48, !9, i64 56, !9, i64 64}
!12 = !{!"int", !6, i64 0}
!13 = !{!"double", !6, i64 0}
!14 = !{!15, !9, i64 16}
!15 = !{!"", !9, i64 0, !12, i64 8, !9, i64 16}
!16 = !{!11, !12, i64 12}
!17 = !{!18, !12, i64 0}
!18 = !{!"_GImage", !12, i64 0, !12, i64 4, !9, i64 8, !9, i64 16, !6, i64 24, !6, i64 25, !6, i64 26}
!19 = !{!11, !12, i64 16}
!20 = !{!18, !12, i64 4}
!21 = !{!18, !9, i64 8}
!22 = !{!18, !9, i64 16}
!23 = !{!11, !13, i64 24}
!24 = !{!25, !13, i64 0}
!25 = !{!"", !13, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"float", !6, i64 0}
!28 = distinct !{!28, !29, !30, !31, !32}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!"llvm.loop.peeled.count", i32 1}
!31 = !{!"llvm.loop.isvectorized", i32 1}
!32 = !{!"llvm.loop.unroll.runtime.disable"}
!33 = distinct !{!33, !29, !30, !31}
!34 = distinct !{!34, !29, !35}
!35 = !{!"llvm.loop.unswitch.partial.disable"}
!36 = distinct !{!36, !29, !35}
!37 = !{!18, !6, i64 24}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MemCpyOptPass,MergedLoadStoreMotionPass,ReassociatePass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass