; LLVM IR from mrbid/CSGO_TENSOR_TRIGGER :: GOBOT15/StandaloneFNN (aim3)

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

@input = external dso_local global [784 x float], align 16
@twin = external dso_local global i64, align 8
@aim_model_fnn_layer0 = external dso_local constant [6272 x float], align 16
@aim_model_fnn_layer1 = external dso_local constant [8 x float], align 16

; Function Attrs: nounwind uwtable
define dso_local float @processModel() #0 {
  %1 = alloca [8 x float], align 16
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = load i64, ptr @twin, align 8, !tbaa !5
  call void @processScanArea(i64 noundef %8)
  call void @llvm.lifetime.start.p0(i64 32, ptr %1) #6
  call void @llvm.memset.p0.i64(ptr align 16 %1, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %9

9:                                                ; preds = %48, %0
  %10 = load i32, ptr %2, align 4, !tbaa !9
  %11 = icmp slt i32 %10, 8
  br i1 %11, label %13, label %12

12:                                               ; preds = %9
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %51

13:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %14 = load i32, ptr %2, align 4, !tbaa !9
  %15 = mul nsw i32 %14, 784
  store i32 %15, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %16

16:                                               ; preds = %36, %13
  %17 = load i32, ptr %5, align 4, !tbaa !9
  %18 = icmp slt i32 %17, 784
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %39

20:                                               ; preds = %16
  %21 = load i32, ptr %5, align 4, !tbaa !9
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %22
  %24 = load float, ptr %23, align 4, !tbaa !11
  %25 = load i32, ptr %4, align 4, !tbaa !9
  %26 = load i32, ptr %5, align 4, !tbaa !9
  %27 = add nsw i32 %25, %26
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %28
  %30 = load float, ptr %29, align 4, !tbaa !11
  %31 = load i32, ptr %2, align 4, !tbaa !9
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [8 x float], ptr %1, i64 0, i64 %32
  %34 = load float, ptr %33, align 4, !tbaa !11
  %35 = call float @llvm.fmuladd.f32(float %24, float %30, float %34)
  store float %35, ptr %33, align 4, !tbaa !11
  br label %36

36:                                               ; preds = %20
  %37 = load i32, ptr %5, align 4, !tbaa !9
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %5, align 4, !tbaa !9
  br label %16, !llvm.loop !13

39:                                               ; preds = %19
  %40 = load i32, ptr %2, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [8 x float], ptr %1, i64 0, i64 %41
  %43 = load float, ptr %42, align 4, !tbaa !11
  %44 = call float @tanhf(float noundef %43) #6
  %45 = load i32, ptr %2, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [8 x float], ptr %1, i64 0, i64 %46
  store float %44, ptr %47, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %48

48:                                               ; preds = %39
  %49 = load i32, ptr %2, align 4, !tbaa !9
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %2, align 4, !tbaa !9
  br label %9, !llvm.loop !15

51:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store float 0.000000e+00, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %67, %51
  %53 = load i32, ptr %7, align 4, !tbaa !9
  %54 = icmp slt i32 %53, 8
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %70

56:                                               ; preds = %52
  %57 = load i32, ptr %7, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [8 x float], ptr %1, i64 0, i64 %58
  %60 = load float, ptr %59, align 4, !tbaa !11
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [8 x float], ptr @aim_model_fnn_layer1, i64 0, i64 %62
  %64 = load float, ptr %63, align 4, !tbaa !11
  %65 = load float, ptr %6, align 4, !tbaa !11
  %66 = call float @llvm.fmuladd.f32(float %60, float %64, float %65)
  store float %66, ptr %6, align 4, !tbaa !11
  br label %67

67:                                               ; preds = %56
  %68 = load i32, ptr %7, align 4, !tbaa !9
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %7, align 4, !tbaa !9
  br label %52, !llvm.loop !16

70:                                               ; preds = %55
  %71 = load float, ptr %6, align 4, !tbaa !11
  %72 = fneg float %71
  %73 = call float @expf(float noundef %72) #6, !tbaa !9
  %74 = fadd float 1.000000e+00, %73
  %75 = fdiv float 1.000000e+00, %74
  store i32 1, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %1) #6
  ret float %75
}

; Function Attrs: alwaysinline nounwind uwtable
declare dso_local void @processScanArea(i64 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

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

; Function Attrs: nounwind
declare float @tanhf(float noundef) #5

; Function Attrs: nounwind
declare float @expf(float noundef) #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 = { alwaysinline 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !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 = distinct !{!16, !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"

@input = external dso_local local_unnamed_addr global [784 x float], align 16
@twin = external dso_local local_unnamed_addr global i64, align 8
@aim_model_fnn_layer0 = external dso_local local_unnamed_addr constant [6272 x float], align 16
@aim_model_fnn_layer1 = external dso_local local_unnamed_addr constant [8 x float], align 16

; Function Attrs: nounwind uwtable
define dso_local float @processModel() local_unnamed_addr #0 {
  %1 = load i64, ptr @twin, align 8, !tbaa !5
  tail call void @processScanArea(i64 noundef %1)
  br label %219

2:                                                ; preds = %219
  %3 = tail call float @tanhf(float noundef %240) #4
  br label %4

4:                                                ; preds = %4, %2
  %indvars.iv.1 = phi i64 [ 0, %2 ], [ %indvars.iv.next.1.3, %4 ]
  %5 = phi float [ 0.000000e+00, %2 ], [ %29, %4 ]
  %6 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.1
  %7 = load float, ptr %6, align 16, !tbaa !9
  %8 = add nuw nsw i64 %indvars.iv.1, 784
  %9 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %8
  %10 = load float, ptr %9, align 16, !tbaa !9
  %11 = tail call float @llvm.fmuladd.f32(float %7, float %10, float %5)
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv.1, 1
  %12 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.1
  %13 = load float, ptr %12, align 4, !tbaa !9
  %14 = add nuw nsw i64 %indvars.iv.1, 785
  %15 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %14
  %16 = load float, ptr %15, align 4, !tbaa !9
  %17 = tail call float @llvm.fmuladd.f32(float %13, float %16, float %11)
  %indvars.iv.next.1.1 = or disjoint i64 %indvars.iv.1, 2
  %18 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.1.1
  %19 = load float, ptr %18, align 8, !tbaa !9
  %20 = add nuw nsw i64 %indvars.iv.1, 786
  %21 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %20
  %22 = load float, ptr %21, align 8, !tbaa !9
  %23 = tail call float @llvm.fmuladd.f32(float %19, float %22, float %17)
  %indvars.iv.next.1.2 = or disjoint i64 %indvars.iv.1, 3
  %24 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.1.2
  %25 = load float, ptr %24, align 4, !tbaa !9
  %26 = add nuw nsw i64 %indvars.iv.1, 787
  %27 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %26
  %28 = load float, ptr %27, align 4, !tbaa !9
  %29 = tail call float @llvm.fmuladd.f32(float %25, float %28, float %23)
  %indvars.iv.next.1.3 = add nuw nsw i64 %indvars.iv.1, 4
  %exitcond.1.not.3 = icmp eq i64 %indvars.iv.next.1.3, 784
  br i1 %exitcond.1.not.3, label %30, label %4, !llvm.loop !11

30:                                               ; preds = %4
  %31 = tail call float @tanhf(float noundef %29) #4
  br label %32

32:                                               ; preds = %32, %30
  %indvars.iv.2 = phi i64 [ 0, %30 ], [ %indvars.iv.next.2.3, %32 ]
  %33 = phi float [ 0.000000e+00, %30 ], [ %57, %32 ]
  %34 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.2
  %35 = load float, ptr %34, align 16, !tbaa !9
  %36 = add nuw nsw i64 %indvars.iv.2, 1568
  %37 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %36
  %38 = load float, ptr %37, align 16, !tbaa !9
  %39 = tail call float @llvm.fmuladd.f32(float %35, float %38, float %33)
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv.2, 1
  %40 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.2
  %41 = load float, ptr %40, align 4, !tbaa !9
  %42 = add nuw nsw i64 %indvars.iv.2, 1569
  %43 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %42
  %44 = load float, ptr %43, align 4, !tbaa !9
  %45 = tail call float @llvm.fmuladd.f32(float %41, float %44, float %39)
  %indvars.iv.next.2.1 = or disjoint i64 %indvars.iv.2, 2
  %46 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.2.1
  %47 = load float, ptr %46, align 8, !tbaa !9
  %48 = add nuw nsw i64 %indvars.iv.2, 1570
  %49 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %48
  %50 = load float, ptr %49, align 8, !tbaa !9
  %51 = tail call float @llvm.fmuladd.f32(float %47, float %50, float %45)
  %indvars.iv.next.2.2 = or disjoint i64 %indvars.iv.2, 3
  %52 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.2.2
  %53 = load float, ptr %52, align 4, !tbaa !9
  %54 = add nuw nsw i64 %indvars.iv.2, 1571
  %55 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %54
  %56 = load float, ptr %55, align 4, !tbaa !9
  %57 = tail call float @llvm.fmuladd.f32(float %53, float %56, float %51)
  %indvars.iv.next.2.3 = add nuw nsw i64 %indvars.iv.2, 4
  %exitcond.2.not.3 = icmp eq i64 %indvars.iv.next.2.3, 784
  br i1 %exitcond.2.not.3, label %58, label %32, !llvm.loop !11

58:                                               ; preds = %32
  %59 = tail call float @tanhf(float noundef %57) #4
  br label %60

60:                                               ; preds = %60, %58
  %indvars.iv.3 = phi i64 [ 0, %58 ], [ %indvars.iv.next.3.3, %60 ]
  %61 = phi float [ 0.000000e+00, %58 ], [ %85, %60 ]
  %62 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.3
  %63 = load float, ptr %62, align 16, !tbaa !9
  %64 = add nuw nsw i64 %indvars.iv.3, 2352
  %65 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %64
  %66 = load float, ptr %65, align 16, !tbaa !9
  %67 = tail call float @llvm.fmuladd.f32(float %63, float %66, float %61)
  %indvars.iv.next.3 = or disjoint i64 %indvars.iv.3, 1
  %68 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.3
  %69 = load float, ptr %68, align 4, !tbaa !9
  %70 = add nuw nsw i64 %indvars.iv.3, 2353
  %71 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %70
  %72 = load float, ptr %71, align 4, !tbaa !9
  %73 = tail call float @llvm.fmuladd.f32(float %69, float %72, float %67)
  %indvars.iv.next.3.1 = or disjoint i64 %indvars.iv.3, 2
  %74 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.3.1
  %75 = load float, ptr %74, align 8, !tbaa !9
  %76 = add nuw nsw i64 %indvars.iv.3, 2354
  %77 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %76
  %78 = load float, ptr %77, align 8, !tbaa !9
  %79 = tail call float @llvm.fmuladd.f32(float %75, float %78, float %73)
  %indvars.iv.next.3.2 = or disjoint i64 %indvars.iv.3, 3
  %80 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.3.2
  %81 = load float, ptr %80, align 4, !tbaa !9
  %82 = add nuw nsw i64 %indvars.iv.3, 2355
  %83 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %82
  %84 = load float, ptr %83, align 4, !tbaa !9
  %85 = tail call float @llvm.fmuladd.f32(float %81, float %84, float %79)
  %indvars.iv.next.3.3 = add nuw nsw i64 %indvars.iv.3, 4
  %exitcond.3.not.3 = icmp eq i64 %indvars.iv.next.3.3, 784
  br i1 %exitcond.3.not.3, label %86, label %60, !llvm.loop !11

86:                                               ; preds = %60
  %87 = tail call float @tanhf(float noundef %85) #4
  br label %88

88:                                               ; preds = %88, %86
  %indvars.iv.4 = phi i64 [ 0, %86 ], [ %indvars.iv.next.4.3, %88 ]
  %89 = phi float [ 0.000000e+00, %86 ], [ %113, %88 ]
  %90 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.4
  %91 = load float, ptr %90, align 16, !tbaa !9
  %92 = add nuw nsw i64 %indvars.iv.4, 3136
  %93 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %92
  %94 = load float, ptr %93, align 16, !tbaa !9
  %95 = tail call float @llvm.fmuladd.f32(float %91, float %94, float %89)
  %indvars.iv.next.4 = or disjoint i64 %indvars.iv.4, 1
  %96 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.4
  %97 = load float, ptr %96, align 4, !tbaa !9
  %98 = add nuw nsw i64 %indvars.iv.4, 3137
  %99 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %98
  %100 = load float, ptr %99, align 4, !tbaa !9
  %101 = tail call float @llvm.fmuladd.f32(float %97, float %100, float %95)
  %indvars.iv.next.4.1 = or disjoint i64 %indvars.iv.4, 2
  %102 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.4.1
  %103 = load float, ptr %102, align 8, !tbaa !9
  %104 = add nuw nsw i64 %indvars.iv.4, 3138
  %105 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %104
  %106 = load float, ptr %105, align 8, !tbaa !9
  %107 = tail call float @llvm.fmuladd.f32(float %103, float %106, float %101)
  %indvars.iv.next.4.2 = or disjoint i64 %indvars.iv.4, 3
  %108 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.4.2
  %109 = load float, ptr %108, align 4, !tbaa !9
  %110 = add nuw nsw i64 %indvars.iv.4, 3139
  %111 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %110
  %112 = load float, ptr %111, align 4, !tbaa !9
  %113 = tail call float @llvm.fmuladd.f32(float %109, float %112, float %107)
  %indvars.iv.next.4.3 = add nuw nsw i64 %indvars.iv.4, 4
  %exitcond.4.not.3 = icmp eq i64 %indvars.iv.next.4.3, 784
  br i1 %exitcond.4.not.3, label %114, label %88, !llvm.loop !11

114:                                              ; preds = %88
  %115 = tail call float @tanhf(float noundef %113) #4
  br label %116

116:                                              ; preds = %116, %114
  %indvars.iv.5 = phi i64 [ 0, %114 ], [ %indvars.iv.next.5.3, %116 ]
  %117 = phi float [ 0.000000e+00, %114 ], [ %141, %116 ]
  %118 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.5
  %119 = load float, ptr %118, align 16, !tbaa !9
  %120 = add nuw nsw i64 %indvars.iv.5, 3920
  %121 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %120
  %122 = load float, ptr %121, align 16, !tbaa !9
  %123 = tail call float @llvm.fmuladd.f32(float %119, float %122, float %117)
  %indvars.iv.next.5 = or disjoint i64 %indvars.iv.5, 1
  %124 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.5
  %125 = load float, ptr %124, align 4, !tbaa !9
  %126 = add nuw nsw i64 %indvars.iv.5, 3921
  %127 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %126
  %128 = load float, ptr %127, align 4, !tbaa !9
  %129 = tail call float @llvm.fmuladd.f32(float %125, float %128, float %123)
  %indvars.iv.next.5.1 = or disjoint i64 %indvars.iv.5, 2
  %130 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.5.1
  %131 = load float, ptr %130, align 8, !tbaa !9
  %132 = add nuw nsw i64 %indvars.iv.5, 3922
  %133 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %132
  %134 = load float, ptr %133, align 8, !tbaa !9
  %135 = tail call float @llvm.fmuladd.f32(float %131, float %134, float %129)
  %indvars.iv.next.5.2 = or disjoint i64 %indvars.iv.5, 3
  %136 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.5.2
  %137 = load float, ptr %136, align 4, !tbaa !9
  %138 = add nuw nsw i64 %indvars.iv.5, 3923
  %139 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %138
  %140 = load float, ptr %139, align 4, !tbaa !9
  %141 = tail call float @llvm.fmuladd.f32(float %137, float %140, float %135)
  %indvars.iv.next.5.3 = add nuw nsw i64 %indvars.iv.5, 4
  %exitcond.5.not.3 = icmp eq i64 %indvars.iv.next.5.3, 784
  br i1 %exitcond.5.not.3, label %142, label %116, !llvm.loop !11

142:                                              ; preds = %116
  %143 = tail call float @tanhf(float noundef %141) #4
  br label %144

144:                                              ; preds = %144, %142
  %indvars.iv.6 = phi i64 [ 0, %142 ], [ %indvars.iv.next.6.3, %144 ]
  %145 = phi float [ 0.000000e+00, %142 ], [ %169, %144 ]
  %146 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.6
  %147 = load float, ptr %146, align 16, !tbaa !9
  %148 = add nuw nsw i64 %indvars.iv.6, 4704
  %149 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %148
  %150 = load float, ptr %149, align 16, !tbaa !9
  %151 = tail call float @llvm.fmuladd.f32(float %147, float %150, float %145)
  %indvars.iv.next.6 = or disjoint i64 %indvars.iv.6, 1
  %152 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.6
  %153 = load float, ptr %152, align 4, !tbaa !9
  %154 = add nuw nsw i64 %indvars.iv.6, 4705
  %155 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %154
  %156 = load float, ptr %155, align 4, !tbaa !9
  %157 = tail call float @llvm.fmuladd.f32(float %153, float %156, float %151)
  %indvars.iv.next.6.1 = or disjoint i64 %indvars.iv.6, 2
  %158 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.6.1
  %159 = load float, ptr %158, align 8, !tbaa !9
  %160 = add nuw nsw i64 %indvars.iv.6, 4706
  %161 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %160
  %162 = load float, ptr %161, align 8, !tbaa !9
  %163 = tail call float @llvm.fmuladd.f32(float %159, float %162, float %157)
  %indvars.iv.next.6.2 = or disjoint i64 %indvars.iv.6, 3
  %164 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.6.2
  %165 = load float, ptr %164, align 4, !tbaa !9
  %166 = add nuw nsw i64 %indvars.iv.6, 4707
  %167 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %166
  %168 = load float, ptr %167, align 4, !tbaa !9
  %169 = tail call float @llvm.fmuladd.f32(float %165, float %168, float %163)
  %indvars.iv.next.6.3 = add nuw nsw i64 %indvars.iv.6, 4
  %exitcond.6.not.3 = icmp eq i64 %indvars.iv.next.6.3, 784
  br i1 %exitcond.6.not.3, label %170, label %144, !llvm.loop !11

170:                                              ; preds = %144
  %171 = tail call float @tanhf(float noundef %169) #4
  br label %172

172:                                              ; preds = %172, %170
  %indvars.iv.7 = phi i64 [ 0, %170 ], [ %indvars.iv.next.7.3, %172 ]
  %173 = phi float [ 0.000000e+00, %170 ], [ %197, %172 ]
  %174 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.7
  %175 = load float, ptr %174, align 16, !tbaa !9
  %176 = add nuw nsw i64 %indvars.iv.7, 5488
  %177 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %176
  %178 = load float, ptr %177, align 16, !tbaa !9
  %179 = tail call float @llvm.fmuladd.f32(float %175, float %178, float %173)
  %indvars.iv.next.7 = or disjoint i64 %indvars.iv.7, 1
  %180 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.7
  %181 = load float, ptr %180, align 4, !tbaa !9
  %182 = add nuw nsw i64 %indvars.iv.7, 5489
  %183 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %182
  %184 = load float, ptr %183, align 4, !tbaa !9
  %185 = tail call float @llvm.fmuladd.f32(float %181, float %184, float %179)
  %indvars.iv.next.7.1 = or disjoint i64 %indvars.iv.7, 2
  %186 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.7.1
  %187 = load float, ptr %186, align 8, !tbaa !9
  %188 = add nuw nsw i64 %indvars.iv.7, 5490
  %189 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %188
  %190 = load float, ptr %189, align 8, !tbaa !9
  %191 = tail call float @llvm.fmuladd.f32(float %187, float %190, float %185)
  %indvars.iv.next.7.2 = or disjoint i64 %indvars.iv.7, 3
  %192 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.7.2
  %193 = load float, ptr %192, align 4, !tbaa !9
  %194 = add nuw nsw i64 %indvars.iv.7, 5491
  %195 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %194
  %196 = load float, ptr %195, align 4, !tbaa !9
  %197 = tail call float @llvm.fmuladd.f32(float %193, float %196, float %191)
  %indvars.iv.next.7.3 = add nuw nsw i64 %indvars.iv.7, 4
  %exitcond.7.not.3 = icmp eq i64 %indvars.iv.next.7.3, 784
  br i1 %exitcond.7.not.3, label %.preheader.preheader, label %172, !llvm.loop !11

.preheader.preheader:                             ; preds = %172
  %198 = tail call float @tanhf(float noundef %197) #4
  %199 = load float, ptr @aim_model_fnn_layer1, align 16, !tbaa !9
  %200 = tail call float @llvm.fmuladd.f32(float %3, float %199, float 0.000000e+00)
  %201 = load float, ptr getelementptr inbounds (i8, ptr @aim_model_fnn_layer1, i64 4), align 4, !tbaa !9
  %202 = tail call float @llvm.fmuladd.f32(float %31, float %201, float %200)
  %203 = load float, ptr getelementptr inbounds (i8, ptr @aim_model_fnn_layer1, i64 8), align 8, !tbaa !9
  %204 = tail call float @llvm.fmuladd.f32(float %59, float %203, float %202)
  %205 = load float, ptr getelementptr inbounds (i8, ptr @aim_model_fnn_layer1, i64 12), align 4, !tbaa !9
  %206 = tail call float @llvm.fmuladd.f32(float %87, float %205, float %204)
  %207 = load float, ptr getelementptr inbounds (i8, ptr @aim_model_fnn_layer1, i64 16), align 16, !tbaa !9
  %208 = tail call float @llvm.fmuladd.f32(float %115, float %207, float %206)
  %209 = load float, ptr getelementptr inbounds (i8, ptr @aim_model_fnn_layer1, i64 20), align 4, !tbaa !9
  %210 = tail call float @llvm.fmuladd.f32(float %143, float %209, float %208)
  %211 = load float, ptr getelementptr inbounds (i8, ptr @aim_model_fnn_layer1, i64 24), align 8, !tbaa !9
  %212 = tail call float @llvm.fmuladd.f32(float %171, float %211, float %210)
  %213 = load float, ptr getelementptr inbounds (i8, ptr @aim_model_fnn_layer1, i64 28), align 4, !tbaa !9
  %214 = tail call float @llvm.fmuladd.f32(float %198, float %213, float %212)
  %215 = fneg float %214
  %216 = tail call float @expf(float noundef %215) #4, !tbaa !13
  %217 = fadd float %216, 1.000000e+00
  %218 = fdiv float 1.000000e+00, %217
  ret float %218

219:                                              ; preds = %219, %0
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next.367, %219 ]
  %220 = phi float [ 0.000000e+00, %0 ], [ %240, %219 ]
  %221 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv
  %222 = load float, ptr %221, align 16, !tbaa !9
  %223 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %indvars.iv
  %224 = load float, ptr %223, align 16, !tbaa !9
  %225 = tail call float @llvm.fmuladd.f32(float %222, float %224, float %220)
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %226 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next
  %227 = load float, ptr %226, align 4, !tbaa !9
  %228 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %indvars.iv.next
  %229 = load float, ptr %228, align 4, !tbaa !9
  %230 = tail call float @llvm.fmuladd.f32(float %227, float %229, float %225)
  %indvars.iv.next.163 = or disjoint i64 %indvars.iv, 2
  %231 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.163
  %232 = load float, ptr %231, align 8, !tbaa !9
  %233 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %indvars.iv.next.163
  %234 = load float, ptr %233, align 8, !tbaa !9
  %235 = tail call float @llvm.fmuladd.f32(float %232, float %234, float %230)
  %indvars.iv.next.265 = or disjoint i64 %indvars.iv, 3
  %236 = getelementptr inbounds [784 x float], ptr @input, i64 0, i64 %indvars.iv.next.265
  %237 = load float, ptr %236, align 4, !tbaa !9
  %238 = getelementptr inbounds [6272 x float], ptr @aim_model_fnn_layer0, i64 0, i64 %indvars.iv.next.265
  %239 = load float, ptr %238, align 4, !tbaa !9
  %240 = tail call float @llvm.fmuladd.f32(float %237, float %239, float %235)
  %indvars.iv.next.367 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.367, 784
  br i1 %exitcond.not.3, label %2, label %219, !llvm.loop !11
}

; Function Attrs: alwaysinline nounwind uwtable
declare dso_local void @processScanArea(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @tanhf(float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @expf(float noundef) local_unnamed_addr #3

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 = { alwaysinline 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { 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 = !{!"long", !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}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass