; LLVM IR from mobile-algorithm-optimization/guide :: NeonGaussian/src/test (example)

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

@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @Gaussian3x3Sigma0NoneU8C1(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #0

declare i32 @printf(ptr noundef, ...) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %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 i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 4095, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 2161, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store ptr null, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 100, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = load i32, ptr %3, align 4, !tbaa !5
  %18 = mul nsw i32 %16, %17
  %19 = sext i32 %18 to i64
  %20 = mul i64 %19, 1
  %21 = call noalias ptr @malloc(i64 noundef %20) #6
  store ptr %21, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = load i32, ptr %3, align 4, !tbaa !5
  %24 = mul nsw i32 %22, %23
  %25 = sext i32 %24 to i64
  %26 = mul i64 %25, 1
  %27 = call noalias ptr @malloc(i64 noundef %26) #6
  store ptr %27, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = load i32, ptr %3, align 4, !tbaa !5
  %30 = mul nsw i32 %28, %29
  %31 = sext i32 %30 to i64
  %32 = mul i64 %31, 1
  %33 = call noalias ptr @malloc(i64 noundef %32) #6
  store ptr %33, ptr %12, align 8, !tbaa !9
  %34 = load ptr, ptr %10, align 8, !tbaa !9
  %35 = icmp eq ptr null, %34
  br i1 %35, label %42, label %36

36:                                               ; preds = %0
  %37 = load ptr, ptr %11, align 8, !tbaa !9
  %38 = icmp eq ptr null, %37
  br i1 %38, label %42, label %39

39:                                               ; preds = %36
  %40 = load ptr, ptr %12, align 8, !tbaa !9
  %41 = icmp eq ptr null, %40
  br i1 %41, label %42, label %59

42:                                               ; preds = %39, %36, %0
  %43 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %44 = load ptr, ptr %10, align 8, !tbaa !9
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %48

46:                                               ; preds = %42
  %47 = load ptr, ptr %10, align 8, !tbaa !9
  call void @free(ptr noundef %47) #5
  store ptr null, ptr %10, align 8, !tbaa !9
  br label %48

48:                                               ; preds = %46, %42
  %49 = load ptr, ptr %11, align 8, !tbaa !9
  %50 = icmp ne ptr %49, null
  br i1 %50, label %51, label %53

51:                                               ; preds = %48
  %52 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %52) #5
  store ptr null, ptr %11, align 8, !tbaa !9
  br label %53

53:                                               ; preds = %51, %48
  %54 = load ptr, ptr %12, align 8, !tbaa !9
  %55 = icmp ne ptr %54, null
  br i1 %55, label %56, label %58

56:                                               ; preds = %53
  %57 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free(ptr noundef %57) #5
  store ptr null, ptr %12, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %56, %53
  br label %59

59:                                               ; preds = %58, %39
  %60 = call noalias ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
  store ptr %60, ptr %5, align 8, !tbaa !9
  %61 = load ptr, ptr %5, align 8, !tbaa !9
  %62 = icmp eq ptr null, %61
  br i1 %62, label %63, label %65

63:                                               ; preds = %59
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  br label %159

65:                                               ; preds = %59
  %66 = load ptr, ptr %10, align 8, !tbaa !9
  %67 = load i32, ptr %3, align 4, !tbaa !5
  %68 = load i32, ptr %2, align 4, !tbaa !5
  %69 = mul nsw i32 %67, %68
  %70 = sext i32 %69 to i64
  %71 = load ptr, ptr %5, align 8, !tbaa !9
  %72 = call i64 @fread(ptr noundef %66, i64 noundef 1, i64 noundef %70, ptr noundef %71)
  %73 = load ptr, ptr %5, align 8, !tbaa !9
  %74 = call i32 @fclose(ptr noundef %73)
  store double 0.000000e+00, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %100, %65
  %76 = load i32, ptr %13, align 4, !tbaa !5
  %77 = load i32, ptr %9, align 4, !tbaa !5
  %78 = icmp slt i32 %76, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %75
  store i32 3, ptr %14, align 4
  br label %103

80:                                               ; preds = %75
  call void @GetTime(ptr noundef %7)
  %81 = load ptr, ptr %10, align 8, !tbaa !9
  %82 = load i32, ptr %3, align 4, !tbaa !5
  %83 = load i32, ptr %2, align 4, !tbaa !5
  %84 = load i32, ptr %2, align 4, !tbaa !5
  %85 = load i32, ptr %2, align 4, !tbaa !5
  %86 = load ptr, ptr %11, align 8, !tbaa !9
  %87 = call i32 @Gaussian3x3Sigma0NoneU8C1(ptr noundef %81, i32 noundef %82, i32 noundef %83, i32 noundef %84, i32 noundef %85, ptr noundef %86)
  %88 = load i32, ptr %4, align 4, !tbaa !5
  %89 = or i32 %88, %87
  store i32 %89, ptr %4, align 4, !tbaa !5
  %90 = load i32, ptr %4, align 4, !tbaa !5
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %94

92:                                               ; preds = %80
  %93 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  store i32 2, ptr %14, align 4
  br label %103

94:                                               ; preds = %80
  call void @GetTime(ptr noundef %8)
  %95 = load double, ptr %8, align 8, !tbaa !11
  %96 = load double, ptr %7, align 8, !tbaa !11
  %97 = fsub double %95, %96
  %98 = load double, ptr %6, align 8, !tbaa !11
  %99 = fadd double %98, %97
  store double %99, ptr %6, align 8, !tbaa !11
  br label %100

100:                                              ; preds = %94
  %101 = load i32, ptr %13, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %13, align 4, !tbaa !5
  br label %75, !llvm.loop !13

103:                                              ; preds = %92, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  %104 = load i32, ptr %14, align 4
  switch i32 %104, label %164 [
    i32 3, label %105
    i32 2, label %159
  ]

105:                                              ; preds = %103
  %106 = load double, ptr %6, align 8, !tbaa !11
  %107 = load i32, ptr %9, align 4, !tbaa !5
  %108 = sitofp i32 %107 to double
  %109 = fdiv double %106, %108
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %109)
  store double 0.000000e+00, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %136, %105
  %112 = load i32, ptr %15, align 4, !tbaa !5
  %113 = load i32, ptr %9, align 4, !tbaa !5
  %114 = icmp slt i32 %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  store i32 6, ptr %14, align 4
  br label %139

116:                                              ; preds = %111
  call void @GetTime(ptr noundef %7)
  %117 = load ptr, ptr %10, align 8, !tbaa !9
  %118 = load ptr, ptr %12, align 8, !tbaa !9
  %119 = load i32, ptr %3, align 4, !tbaa !5
  %120 = load i32, ptr %2, align 4, !tbaa !5
  %121 = load i32, ptr %2, align 4, !tbaa !5
  %122 = load i32, ptr %2, align 4, !tbaa !5
  %123 = call i32 @Gaussian3x3Sigma0NeonU8C1(ptr noundef %117, ptr noundef %118, i32 noundef %119, i32 noundef %120, i32 noundef %121, i32 noundef %122)
  %124 = load i32, ptr %4, align 4, !tbaa !5
  %125 = or i32 %124, %123
  store i32 %125, ptr %4, align 4, !tbaa !5
  %126 = load i32, ptr %4, align 4, !tbaa !5
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %130

128:                                              ; preds = %116
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  store i32 2, ptr %14, align 4
  br label %139

130:                                              ; preds = %116
  call void @GetTime(ptr noundef %8)
  %131 = load double, ptr %8, align 8, !tbaa !11
  %132 = load double, ptr %7, align 8, !tbaa !11
  %133 = fsub double %131, %132
  %134 = load double, ptr %6, align 8, !tbaa !11
  %135 = fadd double %134, %133
  store double %135, ptr %6, align 8, !tbaa !11
  br label %136

136:                                              ; preds = %130
  %137 = load i32, ptr %15, align 4, !tbaa !5
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %15, align 4, !tbaa !5
  br label %111, !llvm.loop !15

139:                                              ; preds = %128, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  %140 = load i32, ptr %14, align 4
  switch i32 %140, label %164 [
    i32 6, label %141
    i32 2, label %159
  ]

141:                                              ; preds = %139
  %142 = load double, ptr %6, align 8, !tbaa !11
  %143 = load i32, ptr %9, align 4, !tbaa !5
  %144 = sitofp i32 %143 to double
  %145 = fdiv double %142, %144
  %146 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %145)
  %147 = load ptr, ptr %11, align 8, !tbaa !9
  %148 = load ptr, ptr %12, align 8, !tbaa !9
  %149 = load i32, ptr %2, align 4, !tbaa !5
  %150 = load i32, ptr %2, align 4, !tbaa !5
  %151 = load i32, ptr %3, align 4, !tbaa !5
  %152 = call i32 @CompareResult(ptr noundef %147, ptr noundef %148, i32 noundef %149, i32 noundef %150, i32 noundef %151)
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %156, label %154

154:                                              ; preds = %141
  %155 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  br label %158

156:                                              ; preds = %141
  %157 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  br label %158

158:                                              ; preds = %156, %154
  br label %159

159:                                              ; preds = %158, %139, %103, %63
  %160 = load ptr, ptr %10, align 8, !tbaa !9
  call void @free(ptr noundef %160) #5
  %161 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %161) #5
  %162 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free(ptr noundef %162) #5
  store ptr null, ptr %10, align 8, !tbaa !9
  store ptr null, ptr %11, align 8, !tbaa !9
  store ptr null, ptr %12, align 8, !tbaa !9
  %163 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %14, align 4
  br label %164

164:                                              ; preds = %159, %139, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %165 = load i32, ptr %1, align 4
  ret i32 %165
}

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

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

declare i32 @fclose(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @GetTime(ptr noundef) #0

declare i32 @Gaussian3x3Sigma0NeonU8C1(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @CompareResult(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #0

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { 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 = !{!"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 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !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"

@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @Gaussian3x3Sigma0NoneU8C1(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %3 = tail call noalias dereferenceable_or_null(8849295) ptr @malloc(i64 noundef 8849295) #7
  %4 = tail call noalias dereferenceable_or_null(8849295) ptr @malloc(i64 noundef 8849295) #7
  %5 = tail call noalias dereferenceable_or_null(8849295) ptr @malloc(i64 noundef 8849295) #7
  %6 = icmp eq ptr %3, null
  %7 = icmp eq ptr %4, null
  %or.cond = or i1 %6, %7
  %8 = icmp eq ptr %5, null
  %or.cond3 = or i1 %or.cond, %8
  br i1 %or.cond3, label %9, label %16

9:                                                ; preds = %0
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  br i1 %6, label %12, label %11

11:                                               ; preds = %9
  tail call void @free(ptr noundef nonnull %3) #6
  br label %12

12:                                               ; preds = %11, %9
  br i1 %7, label %14, label %13

13:                                               ; preds = %12
  tail call void @free(ptr noundef nonnull %4) #6
  br label %14

14:                                               ; preds = %13, %12
  br i1 %8, label %16, label %15

15:                                               ; preds = %14
  tail call void @free(ptr noundef nonnull %5) #6
  br label %16

16:                                               ; preds = %14, %15, %0
  %.168 = phi ptr [ null, %15 ], [ null, %14 ], [ %3, %0 ]
  %.166 = phi ptr [ null, %15 ], [ null, %14 ], [ %4, %0 ]
  %.064 = phi ptr [ null, %15 ], [ null, %14 ], [ %5, %0 ]
  %17 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3)
  %18 = icmp eq ptr %17, null
  br i1 %18, label %19, label %21

19:                                               ; preds = %16
  %20 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %55

21:                                               ; preds = %16
  %22 = tail call i64 @fread(ptr noundef %.168, i64 noundef 1, i64 noundef 8849295, ptr noundef nonnull %17)
  %23 = tail call i32 @fclose(ptr noundef nonnull %17)
  br label %24

24:                                               ; preds = %21, %26
  %.063107 = phi i32 [ 0, %21 ], [ %31, %26 ]
  %.070106 = phi double [ 0.000000e+00, %21 ], [ %30, %26 ]
  call void @GetTime(ptr noundef nonnull %1)
  %25 = call i32 @Gaussian3x3Sigma0NoneU8C1(ptr noundef %.168, i32 noundef 2161, i32 noundef 4095, i32 noundef 4095, i32 noundef 4095, ptr noundef %.166)
  %.not89 = icmp eq i32 %25, 0
  br i1 %.not89, label %26, label %32

26:                                               ; preds = %24
  call void @GetTime(ptr noundef nonnull %2)
  %27 = load double, ptr %2, align 8, !tbaa !5
  %28 = load double, ptr %1, align 8, !tbaa !5
  %29 = fsub double %27, %28
  %30 = fadd double %.070106, %29
  %31 = add nuw nsw i32 %.063107, 1
  %exitcond.not = icmp eq i32 %31, 100
  br i1 %exitcond.not, label %34, label %24, !llvm.loop !9

32:                                               ; preds = %24
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %55

34:                                               ; preds = %26
  %35 = fdiv double %30, 1.000000e+02
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %35)
  br label %37

37:                                               ; preds = %34, %39
  %.0109 = phi i32 [ 0, %34 ], [ %44, %39 ]
  %.171108 = phi double [ 0.000000e+00, %34 ], [ %43, %39 ]
  call void @GetTime(ptr noundef nonnull %1)
  %38 = call i32 @Gaussian3x3Sigma0NeonU8C1(ptr noundef %.168, ptr noundef %.064, i32 noundef 2161, i32 noundef 4095, i32 noundef 4095, i32 noundef 4095) #6
  %.not90 = icmp eq i32 %38, 0
  br i1 %.not90, label %39, label %45

39:                                               ; preds = %37
  call void @GetTime(ptr noundef nonnull %2)
  %40 = load double, ptr %2, align 8, !tbaa !5
  %41 = load double, ptr %1, align 8, !tbaa !5
  %42 = fsub double %40, %41
  %43 = fadd double %.171108, %42
  %44 = add nuw nsw i32 %.0109, 1
  %exitcond111.not = icmp eq i32 %44, 100
  br i1 %exitcond111.not, label %47, label %37, !llvm.loop !11

45:                                               ; preds = %37
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %55

47:                                               ; preds = %39
  %48 = fdiv double %43, 1.000000e+02
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, double noundef %48)
  %50 = call i32 @CompareResult(ptr noundef %.166, ptr noundef %.064, i32 noundef 4095, i32 noundef 4095, i32 noundef 2161)
  %.not91 = icmp eq i32 %50, 0
  br i1 %.not91, label %51, label %53

51:                                               ; preds = %47
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  br label %55

53:                                               ; preds = %47
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  br label %55

55:                                               ; preds = %45, %32, %51, %53, %19
  call void @free(ptr noundef %.168) #6
  call void @free(ptr noundef %.166) #6
  call void @free(ptr noundef %.064) #6
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) 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 #4

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @GetTime(ptr noundef) local_unnamed_addr #0

declare i32 @Gaussian3x3Sigma0NeonU8C1(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
declare hidden i32 @CompareResult(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { "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 }
attributes #7 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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