; LLVM IR from QiaoLiuHit/LSOTB-TIR :: vlfeat-0.9.19/src (test_imopv)

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

@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %struct._VlPgmImage, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 256, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 256, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 7, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %20 = load i32, ptr %4, align 4, !tbaa !5
  %21 = icmp slt i32 %20, 2
  br i1 %21, label %22, label %67

22:                                               ; preds = %2
  %23 = load i32, ptr %6, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = mul i64 4, %24
  %26 = load i32, ptr %7, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = mul i64 %25, %27
  %29 = call ptr @vl_malloc(i64 noundef %28)
  store ptr %29, ptr %9, align 8, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %63, %22
  %31 = load i32, ptr %14, align 4, !tbaa !5
  %32 = load i32, ptr %7, align 4, !tbaa !5
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %34, label %66

34:                                               ; preds = %30
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %59, %34
  %36 = load i32, ptr %13, align 4, !tbaa !5
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %39, label %62

39:                                               ; preds = %35
  %40 = load i32, ptr %13, align 4, !tbaa !5
  %41 = srem i32 %40, 16
  %42 = icmp slt i32 %41, 8
  %43 = zext i1 %42 to i32
  %44 = load i32, ptr %14, align 4, !tbaa !5
  %45 = srem i32 %44, 16
  %46 = icmp slt i32 %45, 8
  %47 = zext i1 %46 to i32
  %48 = xor i32 %43, %47
  %49 = sitofp i32 %48 to float
  %50 = fmul float 1.280000e+02, %49
  %51 = load ptr, ptr %9, align 8, !tbaa !9
  %52 = load i32, ptr %13, align 4, !tbaa !5
  %53 = load i32, ptr %6, align 4, !tbaa !5
  %54 = load i32, ptr %14, align 4, !tbaa !5
  %55 = mul nsw i32 %53, %54
  %56 = add nsw i32 %52, %55
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds float, ptr %51, i64 %57
  store float %50, ptr %58, align 4, !tbaa !11
  br label %59

59:                                               ; preds = %39
  %60 = load i32, ptr %13, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %13, align 4, !tbaa !5
  br label %35, !llvm.loop !13

62:                                               ; preds = %35
  br label %63

63:                                               ; preds = %62
  %64 = load i32, ptr %14, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %14, align 4, !tbaa !5
  br label %30, !llvm.loop !15

66:                                               ; preds = %30
  br label %89

67:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %68 = load ptr, ptr %5, align 8, !tbaa !9
  %69 = getelementptr inbounds ptr, ptr %68, i64 1
  %70 = load ptr, ptr %69, align 8, !tbaa !9
  %71 = call i32 @vl_pgm_read_new_f(ptr noundef %70, ptr noundef %15, ptr noundef %9)
  store i32 %71, ptr %16, align 4, !tbaa !5
  %72 = load i32, ptr %16, align 4, !tbaa !5
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %79

74:                                               ; preds = %67
  %75 = call ptr @vl_get_printf_func()
  %76 = call ptr @vl_get_last_error_message()
  %77 = call i32 @vl_get_last_error()
  %78 = call i32 (ptr, ...) %75(ptr noundef @.str, ptr noundef %76, i32 noundef %77)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %17, align 4
  br label %86

79:                                               ; preds = %67
  %80 = getelementptr inbounds %struct._VlPgmImage, ptr %15, i32 0, i32 0
  %81 = load i64, ptr %80, align 8, !tbaa !16
  %82 = trunc i64 %81 to i32
  store i32 %82, ptr %6, align 4, !tbaa !5
  %83 = getelementptr inbounds %struct._VlPgmImage, ptr %15, i32 0, i32 1
  %84 = load i64, ptr %83, align 8, !tbaa !19
  %85 = trunc i64 %84 to i32
  store i32 %85, ptr %7, align 4, !tbaa !5
  store i32 0, ptr %17, align 4
  br label %86

86:                                               ; preds = %79, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #3
  %87 = load i32, ptr %17, align 4
  switch i32 %87, label %181 [
    i32 0, label %88
  ]

88:                                               ; preds = %86
  br label %89

89:                                               ; preds = %88, %66
  %90 = call ptr @vl_get_printf_func()
  %91 = load i32, ptr %6, align 4, !tbaa !5
  %92 = load i32, ptr %7, align 4, !tbaa !5
  %93 = call i32 (ptr, ...) %90(ptr noundef @.str.1, i32 noundef %91, i32 noundef %92)
  %94 = load i32, ptr %6, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = mul i64 4, %95
  %97 = load i32, ptr %7, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = mul i64 %96, %98
  %100 = call ptr @vl_malloc(i64 noundef %99)
  store ptr %100, ptr %10, align 8, !tbaa !9
  %101 = load i32, ptr %6, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = mul i64 4, %102
  %104 = load i32, ptr %7, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = mul i64 %103, %105
  %107 = call ptr @vl_malloc(i64 noundef %106)
  store ptr %107, ptr %11, align 8, !tbaa !9
  %108 = call ptr @vl_malloc(i64 noundef 60)
  store ptr %108, ptr %12, align 8, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %117, %89
  %110 = load i32, ptr %13, align 4, !tbaa !5
  %111 = icmp slt i32 %110, 15
  br i1 %111, label %112, label %120

112:                                              ; preds = %109
  %113 = load ptr, ptr %12, align 8, !tbaa !9
  %114 = load i32, ptr %13, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds float, ptr %113, i64 %115
  store float 0x3FB1111120000000, ptr %116, align 4, !tbaa !11
  br label %117

117:                                              ; preds = %112
  %118 = load i32, ptr %13, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %13, align 4, !tbaa !5
  br label %109, !llvm.loop !20

120:                                              ; preds = %109
  call void @vl_set_simd_enabled(i32 noundef 0)
  call void @vl_tic()
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !5
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %136, %120
  %122 = load i32, ptr %18, align 4, !tbaa !5
  %123 = icmp slt i32 %122, 1000
  br i1 %123, label %124, label %139

124:                                              ; preds = %121
  %125 = load ptr, ptr %10, align 8, !tbaa !9
  %126 = load i32, ptr %7, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = load ptr, ptr %9, align 8, !tbaa !9
  %129 = load i32, ptr %6, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = load i32, ptr %7, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = load i32, ptr %6, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = load ptr, ptr %12, align 8, !tbaa !9
  call void @vl_imconvcol_vf(ptr noundef %125, i64 noundef %127, ptr noundef %128, i64 noundef %130, i64 noundef %132, i64 noundef %134, ptr noundef %135, i64 noundef -7, i64 noundef 7, i32 noundef 1, i32 noundef 5)
  br label %136

136:                                              ; preds = %124
  %137 = load i32, ptr %18, align 4, !tbaa !5
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %18, align 4, !tbaa !5
  br label %121, !llvm.loop !21

139:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  %140 = call ptr @vl_get_printf_func()
  %141 = call double @vl_toc()
  %142 = call i32 (ptr, ...) %140(ptr noundef @.str.2, double noundef %141)
  call void @vl_set_simd_enabled(i32 noundef 1)
  call void @vl_tic()
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 0, ptr %19, align 4, !tbaa !5
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %143

143:                                              ; preds = %158, %139
  %144 = load i32, ptr %19, align 4, !tbaa !5
  %145 = icmp slt i32 %144, 1000
  br i1 %145, label %146, label %161

146:                                              ; preds = %143
  %147 = load ptr, ptr %11, align 8, !tbaa !9
  %148 = load i32, ptr %7, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = load ptr, ptr %9, align 8, !tbaa !9
  %151 = load i32, ptr %6, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = load i32, ptr %7, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = load i32, ptr %6, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = load ptr, ptr %12, align 8, !tbaa !9
  call void @vl_imconvcol_vf(ptr noundef %147, i64 noundef %149, ptr noundef %150, i64 noundef %152, i64 noundef %154, i64 noundef %156, ptr noundef %157, i64 noundef -7, i64 noundef 7, i32 noundef 1, i32 noundef 5)
  br label %158

158:                                              ; preds = %146
  %159 = load i32, ptr %19, align 4, !tbaa !5
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %19, align 4, !tbaa !5
  br label %143, !llvm.loop !22

161:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  %162 = call ptr @vl_get_printf_func()
  %163 = call double @vl_toc()
  %164 = call i32 (ptr, ...) %162(ptr noundef @.str.3, double noundef %163)
  %165 = load ptr, ptr %9, align 8, !tbaa !9
  %166 = load i32, ptr %6, align 4, !tbaa !5
  %167 = load i32, ptr %7, align 4, !tbaa !5
  %168 = call i32 @vl_pgm_write_f(ptr noundef @.str.4, ptr noundef %165, i32 noundef %166, i32 noundef %167)
  %169 = load ptr, ptr %10, align 8, !tbaa !9
  %170 = load i32, ptr %7, align 4, !tbaa !5
  %171 = load i32, ptr %6, align 4, !tbaa !5
  %172 = call i32 @vl_pgm_write_f(ptr noundef @.str.5, ptr noundef %169, i32 noundef %170, i32 noundef %171)
  %173 = load ptr, ptr %11, align 8, !tbaa !9
  %174 = load i32, ptr %7, align 4, !tbaa !5
  %175 = load i32, ptr %6, align 4, !tbaa !5
  %176 = call i32 @vl_pgm_write_f(ptr noundef @.str.6, ptr noundef %173, i32 noundef %174, i32 noundef %175)
  %177 = load ptr, ptr %9, align 8, !tbaa !9
  call void @vl_free(ptr noundef %177)
  %178 = load ptr, ptr %12, align 8, !tbaa !9
  call void @vl_free(ptr noundef %178)
  %179 = load ptr, ptr %10, align 8, !tbaa !9
  call void @vl_free(ptr noundef %179)
  %180 = load ptr, ptr %11, align 8, !tbaa !9
  call void @vl_free(ptr noundef %180)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %17, align 4
  br label %181

181:                                              ; preds = %161, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  %182 = load i32, ptr %3, align 4
  ret i32 %182
}

; 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

declare i32 @vl_pgm_read_new_f(ptr noundef, ptr noundef, ptr noundef) #2

declare ptr @vl_get_printf_func() #2

declare ptr @vl_get_last_error_message() #2

declare i32 @vl_get_last_error() #2

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

declare void @vl_set_simd_enabled(i32 noundef) #2

declare void @vl_tic() #2

declare void @vl_imconvcol_vf(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i32 noundef, i32 noundef) #2

declare double @vl_toc() #2

declare i32 @vl_pgm_write_f(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

declare void @vl_free(ptr noundef) #2

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 }

!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, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !18, i64 0}
!17 = !{!"_VlPgmImage", !18, i64 0, !18, i64 8, !18, i64 16, !6, i64 24}
!18 = !{!"long long", !7, i64 0}
!19 = !{!17, !18, i64 8}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}


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

@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca ptr, align 8
  %4 = alloca %struct._VlPgmImage, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %5 = icmp slt i32 %0, 2
  br i1 %5, label %6, label %21

6:                                                ; preds = %2
  %7 = tail call ptr @vl_malloc(i64 noundef 262144) #3
  store ptr %7, ptr %3, align 8, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %6, %middle.block
  %indvars.iv75 = phi i64 [ 0, %6 ], [ %indvars.iv.next76, %middle.block ]
  %.idx = shl nsw i64 %indvars.iv75, 10
  %invariant.gep = getelementptr inbounds i8, ptr %7, i64 %.idx
  %broadcast.splatinsert = insertelement <4 x i64> poison, i64 %indvars.iv75, i64 0
  %broadcast.splat = shufflevector <4 x i64> %broadcast.splatinsert, <4 x i64> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %.preheader
  %index = phi i64 [ 0, %.preheader ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i64> [ <i64 0, i64 1, i64 2, i64 3>, %.preheader ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i64> %vec.ind, <i64 4, i64 4, i64 4, i64 4>
  %8 = xor <4 x i64> %vec.ind, %broadcast.splat
  %9 = xor <4 x i64> %step.add, %broadcast.splat
  %10 = trunc <4 x i64> %8 to <4 x i32>
  %11 = trunc <4 x i64> %9 to <4 x i32>
  %12 = shl nuw nsw <4 x i32> %10, <i32 4, i32 4, i32 4, i32 4>
  %13 = shl nuw nsw <4 x i32> %11, <i32 4, i32 4, i32 4, i32 4>
  %14 = and <4 x i32> %12, <i32 128, i32 128, i32 128, i32 128>
  %15 = and <4 x i32> %13, <i32 128, i32 128, i32 128, i32 128>
  %16 = uitofp nneg <4 x i32> %14 to <4 x float>
  %17 = uitofp nneg <4 x i32> %15 to <4 x float>
  %18 = getelementptr inbounds float, ptr %invariant.gep, i64 %index
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  store <4 x float> %16, ptr %18, align 4, !tbaa !9
  store <4 x float> %17, ptr %19, align 4, !tbaa !9
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i64> %vec.ind, <i64 8, i64 8, i64 8, i64 8>
  %20 = icmp eq i64 %index.next, 256
  br i1 %20, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %exitcond78.not = icmp eq i64 %indvars.iv.next76, 256
  br i1 %exitcond78.not, label %.loopexit, label %.preheader, !llvm.loop !15

21:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #3
  %22 = getelementptr inbounds i8, ptr %1, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !5
  %24 = call i32 @vl_pgm_read_new_f(ptr noundef %23, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  %.not = icmp eq i32 %24, 0
  br i1 %.not, label %.thread, label %30

.thread:                                          ; preds = %21
  %25 = load i64, ptr %4, align 8, !tbaa !16
  %26 = trunc i64 %25 to i32
  %27 = getelementptr inbounds i8, ptr %4, i64 8
  %28 = load i64, ptr %27, align 8, !tbaa !20
  %29 = trunc i64 %28 to i32
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #3
  br label %.loopexit

30:                                               ; preds = %21
  %31 = call ptr @vl_get_printf_func() #3
  %32 = call ptr @vl_get_last_error_message() #3
  %33 = call i32 @vl_get_last_error() #3
  %34 = call i32 (ptr, ...) %31(ptr noundef nonnull @.str, ptr noundef %32, i32 noundef %33) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #3
  br label %67

.loopexit:                                        ; preds = %middle.block, %.thread
  %.163 = phi i32 [ %29, %.thread ], [ 256, %middle.block ]
  %.161 = phi i32 [ %26, %.thread ], [ 256, %middle.block ]
  %35 = call ptr @vl_get_printf_func() #3
  %36 = call i32 (ptr, ...) %35(ptr noundef nonnull @.str.1, i32 noundef %.161, i32 noundef %.163) #3
  %37 = sext i32 %.161 to i64
  %38 = shl nsw i64 %37, 2
  %39 = sext i32 %.163 to i64
  %40 = mul i64 %38, %39
  %41 = call ptr @vl_malloc(i64 noundef %40) #3
  %42 = call ptr @vl_malloc(i64 noundef %40) #3
  %43 = call ptr @vl_malloc(i64 noundef 60) #3
  store <4 x float> <float 0x3FB1111120000000, float 0x3FB1111120000000, float 0x3FB1111120000000, float 0x3FB1111120000000>, ptr %43, align 4, !tbaa !9
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  store <4 x float> <float 0x3FB1111120000000, float 0x3FB1111120000000, float 0x3FB1111120000000, float 0x3FB1111120000000>, ptr %44, align 4, !tbaa !9
  %45 = getelementptr inbounds i8, ptr %43, i64 32
  store <4 x float> <float 0x3FB1111120000000, float 0x3FB1111120000000, float 0x3FB1111120000000, float 0x3FB1111120000000>, ptr %45, align 4, !tbaa !9
  %46 = getelementptr inbounds i8, ptr %43, i64 48
  store <2 x float> <float 0x3FB1111120000000, float 0x3FB1111120000000>, ptr %46, align 4, !tbaa !9
  %47 = getelementptr inbounds i8, ptr %43, i64 56
  store float 0x3FB1111120000000, ptr %47, align 4, !tbaa !9
  call void @vl_set_simd_enabled(i32 noundef 0) #3
  call void @vl_tic() #3
  br label %48

48:                                               ; preds = %.loopexit, %48
  %.05472 = phi i32 [ 0, %.loopexit ], [ %50, %48 ]
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  call void @vl_imconvcol_vf(ptr noundef %41, i64 noundef %39, ptr noundef %49, i64 noundef %37, i64 noundef %39, i64 noundef %37, ptr noundef nonnull %43, i64 noundef -7, i64 noundef 7, i32 noundef 1, i32 noundef 5) #3
  %50 = add nuw nsw i32 %.05472, 1
  %exitcond83.not = icmp eq i32 %50, 1000
  br i1 %exitcond83.not, label %51, label %48, !llvm.loop !21

51:                                               ; preds = %48
  %52 = call ptr @vl_get_printf_func() #3
  %53 = call double @vl_toc() #3
  %54 = call i32 (ptr, ...) %52(ptr noundef nonnull @.str.2, double noundef %53) #3
  call void @vl_set_simd_enabled(i32 noundef 1) #3
  call void @vl_tic() #3
  br label %55

55:                                               ; preds = %51, %55
  %.073 = phi i32 [ 0, %51 ], [ %57, %55 ]
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  call void @vl_imconvcol_vf(ptr noundef %42, i64 noundef %39, ptr noundef %56, i64 noundef %37, i64 noundef %39, i64 noundef %37, ptr noundef nonnull %43, i64 noundef -7, i64 noundef 7, i32 noundef 1, i32 noundef 5) #3
  %57 = add nuw nsw i32 %.073, 1
  %exitcond84.not = icmp eq i32 %57, 1000
  br i1 %exitcond84.not, label %58, label %55, !llvm.loop !22

58:                                               ; preds = %55
  %59 = call ptr @vl_get_printf_func() #3
  %60 = call double @vl_toc() #3
  %61 = call i32 (ptr, ...) %59(ptr noundef nonnull @.str.3, double noundef %60) #3
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = call i32 @vl_pgm_write_f(ptr noundef nonnull @.str.4, ptr noundef %62, i32 noundef %.161, i32 noundef %.163) #3
  %64 = call i32 @vl_pgm_write_f(ptr noundef nonnull @.str.5, ptr noundef %41, i32 noundef %.163, i32 noundef %.161) #3
  %65 = call i32 @vl_pgm_write_f(ptr noundef nonnull @.str.6, ptr noundef %42, i32 noundef %.163, i32 noundef %.161) #3
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  call void @vl_free(ptr noundef %66) #3
  call void @vl_free(ptr noundef nonnull %43) #3
  call void @vl_free(ptr noundef %41) #3
  call void @vl_free(ptr noundef %42) #3
  br label %67

67:                                               ; preds = %30, %58
  %.1 = phi i32 [ 0, %58 ], [ -1, %30 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret i32 %.1
}

; Function Attrs: mustprogress 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) local_unnamed_addr #2

declare i32 @vl_pgm_read_new_f(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @vl_get_printf_func() local_unnamed_addr #2

declare ptr @vl_get_last_error_message() local_unnamed_addr #2

declare i32 @vl_get_last_error() local_unnamed_addr #2

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

declare void @vl_set_simd_enabled(i32 noundef) local_unnamed_addr #2

declare void @vl_tic() local_unnamed_addr #2

declare void @vl_imconvcol_vf(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare double @vl_toc() local_unnamed_addr #2

declare i32 @vl_pgm_write_f(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @vl_free(ptr noundef) local_unnamed_addr #2

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12}
!16 = !{!17, !18, i64 0}
!17 = !{!"_VlPgmImage", !18, i64 0, !18, i64 8, !18, i64 16, !19, i64 24}
!18 = !{!"long long", !7, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!17, !18, i64 8}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass