; LLVM IR from QiaoLiuHit/LSOTB-TIR :: vlfeat-0.9.19/vl (sift)

; 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._VlSiftFilt = type { double, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, i32, i32, ptr, double, i64, ptr, i32, i32, double, double, double, double, double, ptr, i32 }

; Function Attrs: nounwind uwtable
define dso_local ptr @vl_sift_new(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store i32 %0, ptr %6, align 4, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %15 = call ptr @vl_malloc(i64 noundef 192)
  store ptr %15, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %16 = load i32, ptr %10, align 4, !tbaa !5
  %17 = sub nsw i32 0, %16
  %18 = icmp sge i32 %17, 0
  br i1 %18, label %19, label %24

19:                                               ; preds = %5
  %20 = load i32, ptr %6, align 4, !tbaa !5
  %21 = load i32, ptr %10, align 4, !tbaa !5
  %22 = sub nsw i32 0, %21
  %23 = shl i32 %20, %22
  br label %30

24:                                               ; preds = %5
  %25 = load i32, ptr %6, align 4, !tbaa !5
  %26 = load i32, ptr %10, align 4, !tbaa !5
  %27 = sub nsw i32 0, %26
  %28 = sub nsw i32 0, %27
  %29 = ashr i32 %25, %28
  br label %30

30:                                               ; preds = %24, %19
  %31 = phi i32 [ %23, %19 ], [ %29, %24 ]
  store i32 %31, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %32 = load i32, ptr %10, align 4, !tbaa !5
  %33 = sub nsw i32 0, %32
  %34 = icmp sge i32 %33, 0
  br i1 %34, label %35, label %40

35:                                               ; preds = %30
  %36 = load i32, ptr %7, align 4, !tbaa !5
  %37 = load i32, ptr %10, align 4, !tbaa !5
  %38 = sub nsw i32 0, %37
  %39 = shl i32 %36, %38
  br label %46

40:                                               ; preds = %30
  %41 = load i32, ptr %7, align 4, !tbaa !5
  %42 = load i32, ptr %10, align 4, !tbaa !5
  %43 = sub nsw i32 0, %42
  %44 = sub nsw i32 0, %43
  %45 = ashr i32 %41, %44
  br label %46

46:                                               ; preds = %40, %35
  %47 = phi i32 [ %39, %35 ], [ %45, %40 ]
  store i32 %47, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %48 = load i32, ptr %12, align 4, !tbaa !5
  %49 = load i32, ptr %13, align 4, !tbaa !5
  %50 = mul nsw i32 %48, %49
  store i32 %50, ptr %14, align 4, !tbaa !5
  %51 = load i32, ptr %8, align 4, !tbaa !5
  %52 = icmp slt i32 %51, 0
  br i1 %52, label %53, label %94

53:                                               ; preds = %46
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = load i32, ptr %7, align 4, !tbaa !5
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %57, label %59

57:                                               ; preds = %53
  %58 = load i32, ptr %6, align 4, !tbaa !5
  br label %61

59:                                               ; preds = %53
  %60 = load i32, ptr %7, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %59, %57
  %62 = phi i32 [ %58, %57 ], [ %60, %59 ]
  %63 = sitofp i32 %62 to double
  %64 = call double @log(double noundef %63) #6
  %65 = fdiv double %64, 0x3FE62E42FEFA39EC
  %66 = call double @llvm.floor.f64(double %65)
  %67 = load i32, ptr %10, align 4, !tbaa !5
  %68 = sitofp i32 %67 to double
  %69 = fsub double %66, %68
  %70 = fsub double %69, 3.000000e+00
  %71 = fcmp ogt double %70, 1.000000e+00
  br i1 %71, label %72, label %90

72:                                               ; preds = %61
  %73 = load i32, ptr %6, align 4, !tbaa !5
  %74 = load i32, ptr %7, align 4, !tbaa !5
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %76, label %78

76:                                               ; preds = %72
  %77 = load i32, ptr %6, align 4, !tbaa !5
  br label %80

78:                                               ; preds = %72
  %79 = load i32, ptr %7, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %78, %76
  %81 = phi i32 [ %77, %76 ], [ %79, %78 ]
  %82 = sitofp i32 %81 to double
  %83 = call double @log(double noundef %82) #6
  %84 = fdiv double %83, 0x3FE62E42FEFA39EC
  %85 = call double @llvm.floor.f64(double %84)
  %86 = load i32, ptr %10, align 4, !tbaa !5
  %87 = sitofp i32 %86 to double
  %88 = fsub double %85, %87
  %89 = fsub double %88, 3.000000e+00
  br label %91

90:                                               ; preds = %61
  br label %91

91:                                               ; preds = %90, %80
  %92 = phi double [ %89, %80 ], [ 1.000000e+00, %90 ]
  %93 = fptosi double %92 to i32
  store i32 %93, ptr %8, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %91, %46
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = load ptr, ptr %11, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct._VlSiftFilt, ptr %96, i32 0, i32 4
  store i32 %95, ptr %97, align 8, !tbaa !11
  %98 = load i32, ptr %7, align 4, !tbaa !5
  %99 = load ptr, ptr %11, align 8, !tbaa !9
  %100 = getelementptr inbounds %struct._VlSiftFilt, ptr %99, i32 0, i32 5
  store i32 %98, ptr %100, align 4, !tbaa !15
  %101 = load i32, ptr %8, align 4, !tbaa !5
  %102 = load ptr, ptr %11, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct._VlSiftFilt, ptr %102, i32 0, i32 6
  store i32 %101, ptr %103, align 8, !tbaa !16
  %104 = load i32, ptr %9, align 4, !tbaa !5
  %105 = load ptr, ptr %11, align 8, !tbaa !9
  %106 = getelementptr inbounds %struct._VlSiftFilt, ptr %105, i32 0, i32 7
  store i32 %104, ptr %106, align 4, !tbaa !17
  %107 = load i32, ptr %10, align 4, !tbaa !5
  %108 = load ptr, ptr %11, align 8, !tbaa !9
  %109 = getelementptr inbounds %struct._VlSiftFilt, ptr %108, i32 0, i32 8
  store i32 %107, ptr %109, align 8, !tbaa !18
  %110 = load ptr, ptr %11, align 8, !tbaa !9
  %111 = getelementptr inbounds %struct._VlSiftFilt, ptr %110, i32 0, i32 9
  store i32 -1, ptr %111, align 4, !tbaa !19
  %112 = load i32, ptr %9, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  %114 = load ptr, ptr %11, align 8, !tbaa !9
  %115 = getelementptr inbounds %struct._VlSiftFilt, ptr %114, i32 0, i32 10
  store i32 %113, ptr %115, align 8, !tbaa !20
  %116 = load i32, ptr %10, align 4, !tbaa !5
  %117 = load ptr, ptr %11, align 8, !tbaa !9
  %118 = getelementptr inbounds %struct._VlSiftFilt, ptr %117, i32 0, i32 11
  store i32 %116, ptr %118, align 4, !tbaa !21
  %119 = load i32, ptr %14, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = mul i64 4, %120
  %122 = call ptr @vl_malloc(i64 noundef %121)
  %123 = load ptr, ptr %11, align 8, !tbaa !9
  %124 = getelementptr inbounds %struct._VlSiftFilt, ptr %123, i32 0, i32 12
  store ptr %122, ptr %124, align 8, !tbaa !22
  %125 = load i32, ptr %14, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = mul i64 4, %126
  %128 = load ptr, ptr %11, align 8, !tbaa !9
  %129 = getelementptr inbounds %struct._VlSiftFilt, ptr %128, i32 0, i32 10
  %130 = load i32, ptr %129, align 8, !tbaa !20
  %131 = load ptr, ptr %11, align 8, !tbaa !9
  %132 = getelementptr inbounds %struct._VlSiftFilt, ptr %131, i32 0, i32 9
  %133 = load i32, ptr %132, align 4, !tbaa !19
  %134 = sub nsw i32 %130, %133
  %135 = add nsw i32 %134, 1
  %136 = sext i32 %135 to i64
  %137 = mul i64 %127, %136
  %138 = call ptr @vl_malloc(i64 noundef %137)
  %139 = load ptr, ptr %11, align 8, !tbaa !9
  %140 = getelementptr inbounds %struct._VlSiftFilt, ptr %139, i32 0, i32 13
  store ptr %138, ptr %140, align 8, !tbaa !23
  %141 = load i32, ptr %14, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = mul i64 4, %142
  %144 = load ptr, ptr %11, align 8, !tbaa !9
  %145 = getelementptr inbounds %struct._VlSiftFilt, ptr %144, i32 0, i32 10
  %146 = load i32, ptr %145, align 8, !tbaa !20
  %147 = load ptr, ptr %11, align 8, !tbaa !9
  %148 = getelementptr inbounds %struct._VlSiftFilt, ptr %147, i32 0, i32 9
  %149 = load i32, ptr %148, align 4, !tbaa !19
  %150 = sub nsw i32 %146, %149
  %151 = sext i32 %150 to i64
  %152 = mul i64 %143, %151
  %153 = call ptr @vl_malloc(i64 noundef %152)
  %154 = load ptr, ptr %11, align 8, !tbaa !9
  %155 = getelementptr inbounds %struct._VlSiftFilt, ptr %154, i32 0, i32 14
  store ptr %153, ptr %155, align 8, !tbaa !24
  %156 = load i32, ptr %14, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = mul i64 4, %157
  %159 = mul i64 %158, 2
  %160 = load ptr, ptr %11, align 8, !tbaa !9
  %161 = getelementptr inbounds %struct._VlSiftFilt, ptr %160, i32 0, i32 10
  %162 = load i32, ptr %161, align 8, !tbaa !20
  %163 = load ptr, ptr %11, align 8, !tbaa !9
  %164 = getelementptr inbounds %struct._VlSiftFilt, ptr %163, i32 0, i32 9
  %165 = load i32, ptr %164, align 4, !tbaa !19
  %166 = sub nsw i32 %162, %165
  %167 = sext i32 %166 to i64
  %168 = mul i64 %159, %167
  %169 = call ptr @vl_malloc(i64 noundef %168)
  %170 = load ptr, ptr %11, align 8, !tbaa !9
  %171 = getelementptr inbounds %struct._VlSiftFilt, ptr %170, i32 0, i32 28
  store ptr %169, ptr %171, align 8, !tbaa !25
  %172 = load ptr, ptr %11, align 8, !tbaa !9
  %173 = getelementptr inbounds %struct._VlSiftFilt, ptr %172, i32 0, i32 0
  store double 5.000000e-01, ptr %173, align 8, !tbaa !26
  %174 = load i32, ptr %9, align 4, !tbaa !5
  %175 = sitofp i32 %174 to double
  %176 = fdiv double 1.000000e+00, %175
  %177 = call double @pow(double noundef 2.000000e+00, double noundef %176) #6
  %178 = load ptr, ptr %11, align 8, !tbaa !9
  %179 = getelementptr inbounds %struct._VlSiftFilt, ptr %178, i32 0, i32 2
  store double %177, ptr %179, align 8, !tbaa !27
  %180 = load ptr, ptr %11, align 8, !tbaa !9
  %181 = getelementptr inbounds %struct._VlSiftFilt, ptr %180, i32 0, i32 2
  %182 = load double, ptr %181, align 8, !tbaa !27
  %183 = fmul double 1.600000e+00, %182
  %184 = load ptr, ptr %11, align 8, !tbaa !9
  %185 = getelementptr inbounds %struct._VlSiftFilt, ptr %184, i32 0, i32 1
  store double %183, ptr %185, align 8, !tbaa !28
  %186 = load ptr, ptr %11, align 8, !tbaa !9
  %187 = getelementptr inbounds %struct._VlSiftFilt, ptr %186, i32 0, i32 1
  %188 = load double, ptr %187, align 8, !tbaa !28
  %189 = load ptr, ptr %11, align 8, !tbaa !9
  %190 = getelementptr inbounds %struct._VlSiftFilt, ptr %189, i32 0, i32 2
  %191 = load double, ptr %190, align 8, !tbaa !27
  %192 = load ptr, ptr %11, align 8, !tbaa !9
  %193 = getelementptr inbounds %struct._VlSiftFilt, ptr %192, i32 0, i32 2
  %194 = load double, ptr %193, align 8, !tbaa !27
  %195 = fmul double %191, %194
  %196 = fdiv double 1.000000e+00, %195
  %197 = fsub double 1.000000e+00, %196
  %198 = call double @sqrt(double noundef %197) #6
  %199 = fmul double %188, %198
  %200 = load ptr, ptr %11, align 8, !tbaa !9
  %201 = getelementptr inbounds %struct._VlSiftFilt, ptr %200, i32 0, i32 3
  store double %199, ptr %201, align 8, !tbaa !29
  %202 = load ptr, ptr %11, align 8, !tbaa !9
  %203 = getelementptr inbounds %struct._VlSiftFilt, ptr %202, i32 0, i32 17
  store ptr null, ptr %203, align 8, !tbaa !30
  %204 = load ptr, ptr %11, align 8, !tbaa !9
  %205 = getelementptr inbounds %struct._VlSiftFilt, ptr %204, i32 0, i32 18
  store double 0.000000e+00, ptr %205, align 8, !tbaa !31
  %206 = load ptr, ptr %11, align 8, !tbaa !9
  %207 = getelementptr inbounds %struct._VlSiftFilt, ptr %206, i32 0, i32 19
  store i64 0, ptr %207, align 8, !tbaa !32
  %208 = load ptr, ptr %11, align 8, !tbaa !9
  %209 = getelementptr inbounds %struct._VlSiftFilt, ptr %208, i32 0, i32 15
  store i32 0, ptr %209, align 8, !tbaa !33
  %210 = load ptr, ptr %11, align 8, !tbaa !9
  %211 = getelementptr inbounds %struct._VlSiftFilt, ptr %210, i32 0, i32 16
  store i32 0, ptr %211, align 4, !tbaa !34
  %212 = load ptr, ptr %11, align 8, !tbaa !9
  %213 = getelementptr inbounds %struct._VlSiftFilt, ptr %212, i32 0, i32 20
  store ptr null, ptr %213, align 8, !tbaa !35
  %214 = load ptr, ptr %11, align 8, !tbaa !9
  %215 = getelementptr inbounds %struct._VlSiftFilt, ptr %214, i32 0, i32 21
  store i32 0, ptr %215, align 8, !tbaa !36
  %216 = load ptr, ptr %11, align 8, !tbaa !9
  %217 = getelementptr inbounds %struct._VlSiftFilt, ptr %216, i32 0, i32 22
  store i32 0, ptr %217, align 4, !tbaa !37
  %218 = load ptr, ptr %11, align 8, !tbaa !9
  %219 = getelementptr inbounds %struct._VlSiftFilt, ptr %218, i32 0, i32 23
  store double 0.000000e+00, ptr %219, align 8, !tbaa !38
  %220 = load ptr, ptr %11, align 8, !tbaa !9
  %221 = getelementptr inbounds %struct._VlSiftFilt, ptr %220, i32 0, i32 24
  store double 1.000000e+01, ptr %221, align 8, !tbaa !39
  %222 = load ptr, ptr %11, align 8, !tbaa !9
  %223 = getelementptr inbounds %struct._VlSiftFilt, ptr %222, i32 0, i32 25
  store double 0.000000e+00, ptr %223, align 8, !tbaa !40
  %224 = load ptr, ptr %11, align 8, !tbaa !9
  %225 = getelementptr inbounds %struct._VlSiftFilt, ptr %224, i32 0, i32 26
  store double 3.000000e+00, ptr %225, align 8, !tbaa !41
  %226 = load ptr, ptr %11, align 8, !tbaa !9
  %227 = getelementptr inbounds %struct._VlSiftFilt, ptr %226, i32 0, i32 27
  store double 2.000000e+00, ptr %227, align 8, !tbaa !42
  %228 = load i32, ptr %10, align 4, !tbaa !5
  %229 = sub nsw i32 %228, 1
  %230 = load ptr, ptr %11, align 8, !tbaa !9
  %231 = getelementptr inbounds %struct._VlSiftFilt, ptr %230, i32 0, i32 29
  store i32 %229, ptr %231, align 8, !tbaa !43
  call void @fast_expn_init()
  %232 = load ptr, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  ret ptr %232
}

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

declare ptr @vl_malloc(i64 noundef) #2

; Function Attrs: nounwind
declare double @log(double noundef) #3

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

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #3

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @fast_expn_init() #5

attributes #0 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!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 = !{!"int", !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, !6, i64 32}
!12 = !{!"_VlSiftFilt", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !10, i64 64, !10, i64 72, !10, i64 80, !6, i64 88, !6, i64 92, !10, i64 96, !13, i64 104, !14, i64 112, !10, i64 120, !6, i64 128, !6, i64 132, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !10, i64 176, !6, i64 184}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long long", !7, i64 0}
!15 = !{!12, !6, i64 36}
!16 = !{!12, !6, i64 40}
!17 = !{!12, !6, i64 44}
!18 = !{!12, !6, i64 48}
!19 = !{!12, !6, i64 52}
!20 = !{!12, !6, i64 56}
!21 = !{!12, !6, i64 60}
!22 = !{!12, !10, i64 64}
!23 = !{!12, !10, i64 72}
!24 = !{!12, !10, i64 80}
!25 = !{!12, !10, i64 176}
!26 = !{!12, !13, i64 0}
!27 = !{!12, !13, i64 16}
!28 = !{!12, !13, i64 8}
!29 = !{!12, !13, i64 24}
!30 = !{!12, !10, i64 96}
!31 = !{!12, !13, i64 104}
!32 = !{!12, !14, i64 112}
!33 = !{!12, !6, i64 88}
!34 = !{!12, !6, i64 92}
!35 = !{!12, !10, i64 120}
!36 = !{!12, !6, i64 128}
!37 = !{!12, !6, i64 132}
!38 = !{!12, !13, i64 136}
!39 = !{!12, !13, i64 144}
!40 = !{!12, !13, i64 152}
!41 = !{!12, !13, i64 160}
!42 = !{!12, !13, i64 168}
!43 = !{!12, !6, i64 184}


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

; Function Attrs: nounwind uwtable
define dso_local ptr @vl_sift_new(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #0 {
  %6 = tail call ptr @vl_malloc(i64 noundef 192) #7
  %7 = icmp slt i32 %2, 0
  br i1 %7, label %8, label %25

8:                                                ; preds = %5
  %9 = tail call i32 @llvm.smin.i32(i32 %0, i32 %1)
  %10 = sitofp i32 %9 to double
  %11 = tail call double @log(double noundef %10) #7
  %12 = fdiv double %11, 0x3FE62E42FEFA39EC
  %13 = tail call double @llvm.floor.f64(double %12)
  %14 = sitofp i32 %4 to double
  %15 = fsub double %13, %14
  %16 = fadd double %15, -3.000000e+00
  %17 = fcmp ogt double %16, 1.000000e+00
  br i1 %17, label %18, label %25

18:                                               ; preds = %8
  %19 = tail call double @log(double noundef %10) #7
  %20 = fdiv double %19, 0x3FE62E42FEFA39EC
  %21 = tail call double @llvm.floor.f64(double %20)
  %22 = fsub double %21, %14
  %23 = fadd double %22, -3.000000e+00
  %24 = fptosi double %23 to i32
  br label %25

25:                                               ; preds = %18, %8, %5
  %.0 = phi i32 [ %2, %5 ], [ %24, %18 ], [ 1, %8 ]
  %26 = icmp slt i32 %4, 1
  %27 = sub nsw i32 0, %4
  %28 = shl i32 %1, %27
  %29 = ashr i32 %1, %4
  %30 = select i1 %26, i32 %28, i32 %29
  %31 = shl i32 %0, %27
  %32 = ashr i32 %0, %4
  %33 = select i1 %26, i32 %31, i32 %32
  %34 = mul nsw i32 %33, %30
  %35 = getelementptr inbounds i8, ptr %6, i64 32
  store i32 %0, ptr %35, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %6, i64 36
  store i32 %1, ptr %36, align 4, !tbaa !13
  %37 = getelementptr inbounds i8, ptr %6, i64 40
  store i32 %.0, ptr %37, align 8, !tbaa !14
  %38 = getelementptr inbounds i8, ptr %6, i64 44
  store i32 %3, ptr %38, align 4, !tbaa !15
  %39 = getelementptr inbounds i8, ptr %6, i64 48
  store i32 %4, ptr %39, align 8, !tbaa !16
  %40 = getelementptr inbounds i8, ptr %6, i64 52
  store i32 -1, ptr %40, align 4, !tbaa !17
  %41 = add nsw i32 %3, 1
  %42 = getelementptr inbounds i8, ptr %6, i64 56
  store i32 %41, ptr %42, align 8, !tbaa !18
  %43 = getelementptr inbounds i8, ptr %6, i64 60
  store i32 %4, ptr %43, align 4, !tbaa !19
  %44 = sext i32 %34 to i64
  %45 = shl nsw i64 %44, 2
  %46 = tail call ptr @vl_malloc(i64 noundef %45) #7
  %47 = getelementptr inbounds i8, ptr %6, i64 64
  store ptr %46, ptr %47, align 8, !tbaa !20
  %48 = load i32, ptr %42, align 8, !tbaa !18
  %49 = load i32, ptr %40, align 4, !tbaa !17
  %50 = add i32 %48, 1
  %51 = sub i32 %50, %49
  %52 = sext i32 %51 to i64
  %53 = mul i64 %45, %52
  %54 = tail call ptr @vl_malloc(i64 noundef %53) #7
  %55 = getelementptr inbounds i8, ptr %6, i64 72
  store ptr %54, ptr %55, align 8, !tbaa !21
  %56 = load i32, ptr %42, align 8, !tbaa !18
  %57 = load i32, ptr %40, align 4, !tbaa !17
  %58 = sub nsw i32 %56, %57
  %59 = sext i32 %58 to i64
  %60 = mul i64 %45, %59
  %61 = tail call ptr @vl_malloc(i64 noundef %60) #7
  %62 = getelementptr inbounds i8, ptr %6, i64 80
  store ptr %61, ptr %62, align 8, !tbaa !22
  %63 = shl nsw i64 %44, 3
  %64 = load i32, ptr %42, align 8, !tbaa !18
  %65 = load i32, ptr %40, align 4, !tbaa !17
  %66 = sub nsw i32 %64, %65
  %67 = sext i32 %66 to i64
  %68 = mul i64 %63, %67
  %69 = tail call ptr @vl_malloc(i64 noundef %68) #7
  %70 = getelementptr inbounds i8, ptr %6, i64 176
  store ptr %69, ptr %70, align 8, !tbaa !23
  store double 5.000000e-01, ptr %6, align 8, !tbaa !24
  %71 = sitofp i32 %3 to double
  %72 = fdiv double 1.000000e+00, %71
  %exp2 = tail call double @exp2(double %72) #7
  %73 = getelementptr inbounds i8, ptr %6, i64 16
  store double %exp2, ptr %73, align 8, !tbaa !25
  %74 = fmul double %exp2, 1.600000e+00
  %75 = getelementptr inbounds i8, ptr %6, i64 8
  store double %74, ptr %75, align 8, !tbaa !26
  %76 = fmul double %exp2, %exp2
  %77 = fdiv double 1.000000e+00, %76
  %78 = fsub double 1.000000e+00, %77
  %79 = tail call double @sqrt(double noundef %78) #7
  %80 = fmul double %74, %79
  %81 = getelementptr inbounds i8, ptr %6, i64 24
  store double %80, ptr %81, align 8, !tbaa !27
  %82 = getelementptr inbounds i8, ptr %6, i64 88
  %83 = getelementptr inbounds i8, ptr %6, i64 144
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %82, i8 0, i64 56, i1 false)
  store <2 x double> <double 1.000000e+01, double 0.000000e+00>, ptr %83, align 8, !tbaa !28
  %84 = getelementptr inbounds i8, ptr %6, i64 160
  store <2 x double> <double 3.000000e+00, double 2.000000e+00>, ptr %84, align 8, !tbaa !28
  %85 = add nsw i32 %4, -1
  %86 = getelementptr inbounds i8, ptr %6, i64 184
  store i32 %85, ptr %86, align 8, !tbaa !29
  tail call void @fast_expn_init()
  ret ptr %6
}

declare ptr @vl_malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @fast_expn_init() local_unnamed_addr #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #5

declare double @exp2(double) local_unnamed_addr

; 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 = { 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 = { "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 nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 32}
!6 = !{!"_VlSiftFilt", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !11, i64 64, !11, i64 72, !11, i64 80, !10, i64 88, !10, i64 92, !11, i64 96, !7, i64 104, !12, i64 112, !11, i64 120, !10, i64 128, !10, i64 132, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !11, i64 176, !10, i64 184}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long long", !8, i64 0}
!13 = !{!6, !10, i64 36}
!14 = !{!6, !10, i64 40}
!15 = !{!6, !10, i64 44}
!16 = !{!6, !10, i64 48}
!17 = !{!6, !10, i64 52}
!18 = !{!6, !10, i64 56}
!19 = !{!6, !10, i64 60}
!20 = !{!6, !11, i64 64}
!21 = !{!6, !11, i64 72}
!22 = !{!6, !11, i64 80}
!23 = !{!6, !11, i64 176}
!24 = !{!6, !7, i64 0}
!25 = !{!6, !7, i64 16}
!26 = !{!6, !7, i64 8}
!27 = !{!6, !7, i64 24}
!28 = !{!7, !7, i64 0}
!29 = !{!6, !10, i64 184}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass