; LLVM IR from stivalaa/EstimNetDirected :: src (graph)

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @free_graph(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %4

4:                                                ; preds = %25, %1
  %5 = load i32, ptr %3, align 4, !tbaa !9
  %6 = load ptr, ptr %2, align 8, !tbaa !5
  %7 = getelementptr inbounds %struct.graph_s, ptr %6, i32 0, i32 15
  %8 = load i32, ptr %7, align 8, !tbaa !11
  %9 = icmp ult i32 %5, %8
  br i1 %9, label %10, label %28

10:                                               ; preds = %4
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.graph_s, ptr %11, i32 0, i32 16
  %13 = load ptr, ptr %12, align 8, !tbaa !13
  %14 = load i32, ptr %3, align 4, !tbaa !9
  %15 = zext i32 %14 to i64
  %16 = getelementptr inbounds ptr, ptr %13, i64 %15
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  call void @free(ptr noundef %17) #3
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.graph_s, ptr %18, i32 0, i32 17
  %20 = load ptr, ptr %19, align 8, !tbaa !14
  %21 = load i32, ptr %3, align 4, !tbaa !9
  %22 = zext i32 %21 to i64
  %23 = getelementptr inbounds ptr, ptr %20, i64 %22
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  call void @free(ptr noundef %24) #3
  br label %25

25:                                               ; preds = %10
  %26 = load i32, ptr %3, align 4, !tbaa !9
  %27 = add i32 %26, 1
  store i32 %27, ptr %3, align 4, !tbaa !9
  br label %4, !llvm.loop !15

28:                                               ; preds = %4
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.graph_s, ptr %29, i32 0, i32 17
  %31 = load ptr, ptr %30, align 8, !tbaa !14
  call void @free(ptr noundef %31) #3
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.graph_s, ptr %32, i32 0, i32 16
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  call void @free(ptr noundef %34) #3
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %56, %28
  %36 = load i32, ptr %3, align 4, !tbaa !9
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.graph_s, ptr %37, i32 0, i32 18
  %39 = load i32, ptr %38, align 8, !tbaa !17
  %40 = icmp ult i32 %36, %39
  br i1 %40, label %41, label %59

41:                                               ; preds = %35
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.graph_s, ptr %42, i32 0, i32 19
  %44 = load ptr, ptr %43, align 8, !tbaa !18
  %45 = load i32, ptr %3, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = getelementptr inbounds ptr, ptr %44, i64 %46
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  call void @free(ptr noundef %48) #3
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.graph_s, ptr %49, i32 0, i32 20
  %51 = load ptr, ptr %50, align 8, !tbaa !19
  %52 = load i32, ptr %3, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds ptr, ptr %51, i64 %53
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  call void @free(ptr noundef %55) #3
  br label %56

56:                                               ; preds = %41
  %57 = load i32, ptr %3, align 4, !tbaa !9
  %58 = add i32 %57, 1
  store i32 %58, ptr %3, align 4, !tbaa !9
  br label %35, !llvm.loop !20

59:                                               ; preds = %35
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.graph_s, ptr %60, i32 0, i32 20
  %62 = load ptr, ptr %61, align 8, !tbaa !19
  call void @free(ptr noundef %62) #3
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.graph_s, ptr %63, i32 0, i32 19
  %65 = load ptr, ptr %64, align 8, !tbaa !18
  call void @free(ptr noundef %65) #3
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %87, %59
  %67 = load i32, ptr %3, align 4, !tbaa !9
  %68 = load ptr, ptr %2, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.graph_s, ptr %68, i32 0, i32 21
  %70 = load i32, ptr %69, align 8, !tbaa !21
  %71 = icmp ult i32 %67, %70
  br i1 %71, label %72, label %90

72:                                               ; preds = %66
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.graph_s, ptr %73, i32 0, i32 22
  %75 = load ptr, ptr %74, align 8, !tbaa !22
  %76 = load i32, ptr %3, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds ptr, ptr %75, i64 %77
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  call void @free(ptr noundef %79) #3
  %80 = load ptr, ptr %2, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.graph_s, ptr %80, i32 0, i32 23
  %82 = load ptr, ptr %81, align 8, !tbaa !23
  %83 = load i32, ptr %3, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds ptr, ptr %82, i64 %84
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  call void @free(ptr noundef %86) #3
  br label %87

87:                                               ; preds = %72
  %88 = load i32, ptr %3, align 4, !tbaa !9
  %89 = add i32 %88, 1
  store i32 %89, ptr %3, align 4, !tbaa !9
  br label %66, !llvm.loop !24

90:                                               ; preds = %66
  %91 = load ptr, ptr %2, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.graph_s, ptr %91, i32 0, i32 23
  %93 = load ptr, ptr %92, align 8, !tbaa !23
  call void @free(ptr noundef %93) #3
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.graph_s, ptr %94, i32 0, i32 22
  %96 = load ptr, ptr %95, align 8, !tbaa !22
  call void @free(ptr noundef %96) #3
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %118, %90
  %98 = load i32, ptr %3, align 4, !tbaa !9
  %99 = load ptr, ptr %2, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.graph_s, ptr %99, i32 0, i32 24
  %101 = load i32, ptr %100, align 8, !tbaa !25
  %102 = icmp ult i32 %98, %101
  br i1 %102, label %103, label %121

103:                                              ; preds = %97
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.graph_s, ptr %104, i32 0, i32 25
  %106 = load ptr, ptr %105, align 8, !tbaa !26
  %107 = load i32, ptr %3, align 4, !tbaa !9
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds ptr, ptr %106, i64 %108
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  call void @free(ptr noundef %110) #3
  %111 = load ptr, ptr %2, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.graph_s, ptr %111, i32 0, i32 27
  %113 = load ptr, ptr %112, align 8, !tbaa !27
  %114 = load i32, ptr %3, align 4, !tbaa !9
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds ptr, ptr %113, i64 %115
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  call void @free(ptr noundef %117) #3
  br label %118

118:                                              ; preds = %103
  %119 = load i32, ptr %3, align 4, !tbaa !9
  %120 = add i32 %119, 1
  store i32 %120, ptr %3, align 4, !tbaa !9
  br label %97, !llvm.loop !28

121:                                              ; preds = %97
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.graph_s, ptr %122, i32 0, i32 27
  %124 = load ptr, ptr %123, align 8, !tbaa !27
  call void @free(ptr noundef %124) #3
  %125 = load ptr, ptr %2, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.graph_s, ptr %125, i32 0, i32 25
  %127 = load ptr, ptr %126, align 8, !tbaa !26
  call void @free(ptr noundef %127) #3
  %128 = load ptr, ptr %2, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.graph_s, ptr %128, i32 0, i32 1
  %130 = load i32, ptr %129, align 4, !tbaa !29
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %158

132:                                              ; preds = %121
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %154, %132
  %134 = load i32, ptr %3, align 4, !tbaa !9
  %135 = load ptr, ptr %2, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.graph_s, ptr %135, i32 0, i32 0
  %137 = load i32, ptr %136, align 8, !tbaa !30
  %138 = icmp ult i32 %134, %137
  br i1 %138, label %139, label %157

139:                                              ; preds = %133
  %140 = load ptr, ptr %2, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.graph_s, ptr %140, i32 0, i32 5
  %142 = load ptr, ptr %141, align 8, !tbaa !31
  %143 = load i32, ptr %3, align 4, !tbaa !9
  %144 = zext i32 %143 to i64
  %145 = getelementptr inbounds ptr, ptr %142, i64 %144
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  call void @free(ptr noundef %146) #3
  %147 = load ptr, ptr %2, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.graph_s, ptr %147, i32 0, i32 7
  %149 = load ptr, ptr %148, align 8, !tbaa !32
  %150 = load i32, ptr %3, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds ptr, ptr %149, i64 %151
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  call void @free(ptr noundef %153) #3
  br label %154

154:                                              ; preds = %139
  %155 = load i32, ptr %3, align 4, !tbaa !9
  %156 = add i32 %155, 1
  store i32 %156, ptr %3, align 4, !tbaa !9
  br label %133, !llvm.loop !33

157:                                              ; preds = %133
  br label %177

158:                                              ; preds = %121
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %173, %158
  %160 = load i32, ptr %3, align 4, !tbaa !9
  %161 = load ptr, ptr %2, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.graph_s, ptr %161, i32 0, i32 0
  %163 = load i32, ptr %162, align 8, !tbaa !30
  %164 = icmp ult i32 %160, %163
  br i1 %164, label %165, label %176

165:                                              ; preds = %159
  %166 = load ptr, ptr %2, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.graph_s, ptr %166, i32 0, i32 11
  %168 = load ptr, ptr %167, align 8, !tbaa !34
  %169 = load i32, ptr %3, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = getelementptr inbounds ptr, ptr %168, i64 %170
  %172 = load ptr, ptr %171, align 8, !tbaa !5
  call void @free(ptr noundef %172) #3
  br label %173

173:                                              ; preds = %165
  %174 = load i32, ptr %3, align 4, !tbaa !9
  %175 = add i32 %174, 1
  store i32 %175, ptr %3, align 4, !tbaa !9
  br label %159, !llvm.loop !35

176:                                              ; preds = %159
  br label %177

177:                                              ; preds = %176, %157
  %178 = load ptr, ptr %2, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.graph_s, ptr %178, i32 0, i32 8
  %180 = load ptr, ptr %179, align 8, !tbaa !36
  call void @free(ptr noundef %180) #3
  %181 = load ptr, ptr %2, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.graph_s, ptr %181, i32 0, i32 5
  %183 = load ptr, ptr %182, align 8, !tbaa !31
  call void @free(ptr noundef %183) #3
  %184 = load ptr, ptr %2, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.graph_s, ptr %184, i32 0, i32 7
  %186 = load ptr, ptr %185, align 8, !tbaa !32
  call void @free(ptr noundef %186) #3
  %187 = load ptr, ptr %2, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.graph_s, ptr %187, i32 0, i32 6
  %189 = load ptr, ptr %188, align 8, !tbaa !37
  call void @free(ptr noundef %189) #3
  %190 = load ptr, ptr %2, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.graph_s, ptr %190, i32 0, i32 4
  %192 = load ptr, ptr %191, align 8, !tbaa !38
  call void @free(ptr noundef %192) #3
  %193 = load ptr, ptr %2, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.graph_s, ptr %193, i32 0, i32 12
  %195 = load ptr, ptr %194, align 8, !tbaa !39
  call void @free(ptr noundef %195) #3
  %196 = load ptr, ptr %2, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.graph_s, ptr %196, i32 0, i32 11
  %198 = load ptr, ptr %197, align 8, !tbaa !34
  call void @free(ptr noundef %198) #3
  %199 = load ptr, ptr %2, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.graph_s, ptr %199, i32 0, i32 10
  %201 = load ptr, ptr %200, align 8, !tbaa !40
  call void @free(ptr noundef %201) #3
  %202 = load ptr, ptr %2, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.graph_s, ptr %202, i32 0, i32 33
  %204 = load ptr, ptr %203, align 8, !tbaa !41
  call void @free(ptr noundef %204) #3
  %205 = load ptr, ptr %2, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.graph_s, ptr %205, i32 0, i32 36
  %207 = load ptr, ptr %206, align 8, !tbaa !42
  call void @free(ptr noundef %207) #3
  %208 = load ptr, ptr %2, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.graph_s, ptr %208, i32 0, i32 37
  %210 = load ptr, ptr %209, align 8, !tbaa !43
  call void @free(ptr noundef %210) #3
  %211 = load ptr, ptr %2, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.graph_s, ptr %211, i32 0, i32 39
  %213 = load ptr, ptr %212, align 8, !tbaa !44
  call void @free(ptr noundef %213) #3
  %214 = load ptr, ptr %2, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.graph_s, ptr %214, i32 0, i32 42
  %216 = load ptr, ptr %215, align 8, !tbaa !45
  call void @free(ptr noundef %216) #3
  %217 = load ptr, ptr %2, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.graph_s, ptr %217, i32 0, i32 45
  %219 = load ptr, ptr %218, align 8, !tbaa !46
  call void @free(ptr noundef %219) #3
  %220 = load ptr, ptr %2, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.graph_s, ptr %220, i32 0, i32 47
  %222 = load ptr, ptr %221, align 8, !tbaa !47
  call void @free(ptr noundef %222) #3
  %223 = load ptr, ptr %2, align 8, !tbaa !5
  call void @free(ptr noundef %223) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 96}
!12 = !{!"graph_s", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !10, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !6, i64 104, !6, i64 112, !10, i64 120, !6, i64 128, !6, i64 136, !10, i64 144, !6, i64 152, !6, i64 160, !10, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !6, i64 224, !10, i64 232, !10, i64 236, !6, i64 240, !6, i64 248, !10, i64 256, !6, i64 264, !10, i64 272, !6, i64 280, !6, i64 288, !10, i64 296, !10, i64 300, !6, i64 304, !10, i64 312, !6, i64 320}
!13 = !{!12, !6, i64 104}
!14 = !{!12, !6, i64 112}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!12, !10, i64 120}
!18 = !{!12, !6, i64 128}
!19 = !{!12, !6, i64 136}
!20 = distinct !{!20, !16}
!21 = !{!12, !10, i64 144}
!22 = !{!12, !6, i64 152}
!23 = !{!12, !6, i64 160}
!24 = distinct !{!24, !16}
!25 = !{!12, !10, i64 168}
!26 = !{!12, !6, i64 176}
!27 = !{!12, !6, i64 192}
!28 = distinct !{!28, !16}
!29 = !{!12, !10, i64 4}
!30 = !{!12, !10, i64 0}
!31 = !{!12, !6, i64 24}
!32 = !{!12, !6, i64 40}
!33 = distinct !{!33, !16}
!34 = !{!12, !6, i64 72}
!35 = distinct !{!35, !16}
!36 = !{!12, !6, i64 48}
!37 = !{!12, !6, i64 32}
!38 = !{!12, !6, i64 16}
!39 = !{!12, !6, i64 80}
!40 = !{!12, !6, i64 64}
!41 = !{!12, !6, i64 224}
!42 = !{!12, !6, i64 240}
!43 = !{!12, !6, i64 248}
!44 = !{!12, !6, i64 264}
!45 = !{!12, !6, i64 288}
!46 = !{!12, !6, i64 304}
!47 = !{!12, !6, i64 320}


; 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 void @free_graph(ptr nocapture noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 96
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %.not83 = icmp eq i32 %3, 0
  br i1 %.not83, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 104
  %5 = getelementptr inbounds i8, ptr %0, i64 112
  br label %6

6:                                                ; preds = %.lr.ph, %6
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %6 ]
  %7 = load ptr, ptr %4, align 8, !tbaa !11
  %8 = getelementptr inbounds ptr, ptr %7, i64 %indvars.iv
  %9 = load ptr, ptr %8, align 8, !tbaa !12
  tail call void @free(ptr noundef %9) #2
  %10 = load ptr, ptr %5, align 8, !tbaa !13
  %11 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv
  %12 = load ptr, ptr %11, align 8, !tbaa !12
  tail call void @free(ptr noundef %12) #2
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %13 = load i32, ptr %2, align 8, !tbaa !5
  %14 = zext i32 %13 to i64
  %15 = icmp ult i64 %indvars.iv.next, %14
  br i1 %15, label %6, label %._crit_edge, !llvm.loop !14

._crit_edge:                                      ; preds = %6, %1
  %16 = getelementptr inbounds i8, ptr %0, i64 112
  %17 = load ptr, ptr %16, align 8, !tbaa !13
  tail call void @free(ptr noundef %17) #2
  %18 = getelementptr inbounds i8, ptr %0, i64 104
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  tail call void @free(ptr noundef %19) #2
  %20 = getelementptr inbounds i8, ptr %0, i64 120
  %21 = load i32, ptr %20, align 8, !tbaa !16
  %.not84 = icmp eq i32 %21, 0
  br i1 %.not84, label %._crit_edge70, label %.lr.ph69

.lr.ph69:                                         ; preds = %._crit_edge
  %22 = getelementptr inbounds i8, ptr %0, i64 128
  %23 = getelementptr inbounds i8, ptr %0, i64 136
  br label %24

24:                                               ; preds = %.lr.ph69, %24
  %indvars.iv91 = phi i64 [ 0, %.lr.ph69 ], [ %indvars.iv.next92, %24 ]
  %25 = load ptr, ptr %22, align 8, !tbaa !17
  %26 = getelementptr inbounds ptr, ptr %25, i64 %indvars.iv91
  %27 = load ptr, ptr %26, align 8, !tbaa !12
  tail call void @free(ptr noundef %27) #2
  %28 = load ptr, ptr %23, align 8, !tbaa !18
  %29 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv91
  %30 = load ptr, ptr %29, align 8, !tbaa !12
  tail call void @free(ptr noundef %30) #2
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %31 = load i32, ptr %20, align 8, !tbaa !16
  %32 = zext i32 %31 to i64
  %33 = icmp ult i64 %indvars.iv.next92, %32
  br i1 %33, label %24, label %._crit_edge70, !llvm.loop !19

._crit_edge70:                                    ; preds = %24, %._crit_edge
  %34 = getelementptr inbounds i8, ptr %0, i64 136
  %35 = load ptr, ptr %34, align 8, !tbaa !18
  tail call void @free(ptr noundef %35) #2
  %36 = getelementptr inbounds i8, ptr %0, i64 128
  %37 = load ptr, ptr %36, align 8, !tbaa !17
  tail call void @free(ptr noundef %37) #2
  %38 = getelementptr inbounds i8, ptr %0, i64 144
  %39 = load i32, ptr %38, align 8, !tbaa !20
  %.not85 = icmp eq i32 %39, 0
  br i1 %.not85, label %._crit_edge74, label %.lr.ph73

.lr.ph73:                                         ; preds = %._crit_edge70
  %40 = getelementptr inbounds i8, ptr %0, i64 152
  %41 = getelementptr inbounds i8, ptr %0, i64 160
  br label %42

42:                                               ; preds = %.lr.ph73, %42
  %indvars.iv94 = phi i64 [ 0, %.lr.ph73 ], [ %indvars.iv.next95, %42 ]
  %43 = load ptr, ptr %40, align 8, !tbaa !21
  %44 = getelementptr inbounds ptr, ptr %43, i64 %indvars.iv94
  %45 = load ptr, ptr %44, align 8, !tbaa !12
  tail call void @free(ptr noundef %45) #2
  %46 = load ptr, ptr %41, align 8, !tbaa !22
  %47 = getelementptr inbounds ptr, ptr %46, i64 %indvars.iv94
  %48 = load ptr, ptr %47, align 8, !tbaa !12
  tail call void @free(ptr noundef %48) #2
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %49 = load i32, ptr %38, align 8, !tbaa !20
  %50 = zext i32 %49 to i64
  %51 = icmp ult i64 %indvars.iv.next95, %50
  br i1 %51, label %42, label %._crit_edge74, !llvm.loop !23

._crit_edge74:                                    ; preds = %42, %._crit_edge70
  %52 = getelementptr inbounds i8, ptr %0, i64 160
  %53 = load ptr, ptr %52, align 8, !tbaa !22
  tail call void @free(ptr noundef %53) #2
  %54 = getelementptr inbounds i8, ptr %0, i64 152
  %55 = load ptr, ptr %54, align 8, !tbaa !21
  tail call void @free(ptr noundef %55) #2
  %56 = getelementptr inbounds i8, ptr %0, i64 168
  %57 = load i32, ptr %56, align 8, !tbaa !24
  %.not86 = icmp eq i32 %57, 0
  br i1 %.not86, label %._crit_edge78, label %.lr.ph77

.lr.ph77:                                         ; preds = %._crit_edge74
  %58 = getelementptr inbounds i8, ptr %0, i64 176
  %59 = getelementptr inbounds i8, ptr %0, i64 192
  br label %60

60:                                               ; preds = %.lr.ph77, %60
  %indvars.iv97 = phi i64 [ 0, %.lr.ph77 ], [ %indvars.iv.next98, %60 ]
  %61 = load ptr, ptr %58, align 8, !tbaa !25
  %62 = getelementptr inbounds ptr, ptr %61, i64 %indvars.iv97
  %63 = load ptr, ptr %62, align 8, !tbaa !12
  tail call void @free(ptr noundef %63) #2
  %64 = load ptr, ptr %59, align 8, !tbaa !26
  %65 = getelementptr inbounds ptr, ptr %64, i64 %indvars.iv97
  %66 = load ptr, ptr %65, align 8, !tbaa !12
  tail call void @free(ptr noundef %66) #2
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %67 = load i32, ptr %56, align 8, !tbaa !24
  %68 = zext i32 %67 to i64
  %69 = icmp ult i64 %indvars.iv.next98, %68
  br i1 %69, label %60, label %._crit_edge78, !llvm.loop !27

._crit_edge78:                                    ; preds = %60, %._crit_edge74
  %70 = getelementptr inbounds i8, ptr %0, i64 192
  %71 = load ptr, ptr %70, align 8, !tbaa !26
  tail call void @free(ptr noundef %71) #2
  %72 = getelementptr inbounds i8, ptr %0, i64 176
  %73 = load ptr, ptr %72, align 8, !tbaa !25
  tail call void @free(ptr noundef %73) #2
  %74 = getelementptr inbounds i8, ptr %0, i64 4
  %75 = load i32, ptr %74, align 4, !tbaa !28
  %.not = icmp eq i32 %75, 0
  %76 = load i32, ptr %0, align 8, !tbaa !29
  %.not88 = icmp eq i32 %76, 0
  br i1 %.not, label %.preheader, label %.preheader64

.preheader64:                                     ; preds = %._crit_edge78
  br i1 %.not88, label %.loopexit, label %.lr.ph80

.lr.ph80:                                         ; preds = %.preheader64
  %77 = getelementptr inbounds i8, ptr %0, i64 24
  %78 = getelementptr inbounds i8, ptr %0, i64 40
  br label %80

.preheader:                                       ; preds = %._crit_edge78
  br i1 %.not88, label %.loopexit, label %.lr.ph82

.lr.ph82:                                         ; preds = %.preheader
  %79 = getelementptr inbounds i8, ptr %0, i64 72
  br label %90

80:                                               ; preds = %.lr.ph80, %80
  %indvars.iv100 = phi i64 [ 0, %.lr.ph80 ], [ %indvars.iv.next101, %80 ]
  %81 = load ptr, ptr %77, align 8, !tbaa !30
  %82 = getelementptr inbounds ptr, ptr %81, i64 %indvars.iv100
  %83 = load ptr, ptr %82, align 8, !tbaa !12
  tail call void @free(ptr noundef %83) #2
  %84 = load ptr, ptr %78, align 8, !tbaa !31
  %85 = getelementptr inbounds ptr, ptr %84, i64 %indvars.iv100
  %86 = load ptr, ptr %85, align 8, !tbaa !12
  tail call void @free(ptr noundef %86) #2
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %87 = load i32, ptr %0, align 8, !tbaa !29
  %88 = zext i32 %87 to i64
  %89 = icmp ult i64 %indvars.iv.next101, %88
  br i1 %89, label %80, label %.loopexit, !llvm.loop !32

90:                                               ; preds = %.lr.ph82, %90
  %indvars.iv103 = phi i64 [ 0, %.lr.ph82 ], [ %indvars.iv.next104, %90 ]
  %91 = load ptr, ptr %79, align 8, !tbaa !33
  %92 = getelementptr inbounds ptr, ptr %91, i64 %indvars.iv103
  %93 = load ptr, ptr %92, align 8, !tbaa !12
  tail call void @free(ptr noundef %93) #2
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %94 = load i32, ptr %0, align 8, !tbaa !29
  %95 = zext i32 %94 to i64
  %96 = icmp ult i64 %indvars.iv.next104, %95
  br i1 %96, label %90, label %.loopexit, !llvm.loop !34

.loopexit:                                        ; preds = %80, %90, %.preheader64, %.preheader
  %97 = getelementptr inbounds i8, ptr %0, i64 48
  %98 = load ptr, ptr %97, align 8, !tbaa !35
  tail call void @free(ptr noundef %98) #2
  %99 = getelementptr inbounds i8, ptr %0, i64 24
  %100 = load ptr, ptr %99, align 8, !tbaa !30
  tail call void @free(ptr noundef %100) #2
  %101 = getelementptr inbounds i8, ptr %0, i64 40
  %102 = load ptr, ptr %101, align 8, !tbaa !31
  tail call void @free(ptr noundef %102) #2
  %103 = getelementptr inbounds i8, ptr %0, i64 32
  %104 = load ptr, ptr %103, align 8, !tbaa !36
  tail call void @free(ptr noundef %104) #2
  %105 = getelementptr inbounds i8, ptr %0, i64 16
  %106 = load ptr, ptr %105, align 8, !tbaa !37
  tail call void @free(ptr noundef %106) #2
  %107 = getelementptr inbounds i8, ptr %0, i64 80
  %108 = load ptr, ptr %107, align 8, !tbaa !38
  tail call void @free(ptr noundef %108) #2
  %109 = getelementptr inbounds i8, ptr %0, i64 72
  %110 = load ptr, ptr %109, align 8, !tbaa !33
  tail call void @free(ptr noundef %110) #2
  %111 = getelementptr inbounds i8, ptr %0, i64 64
  %112 = load ptr, ptr %111, align 8, !tbaa !39
  tail call void @free(ptr noundef %112) #2
  %113 = getelementptr inbounds i8, ptr %0, i64 224
  %114 = load ptr, ptr %113, align 8, !tbaa !40
  tail call void @free(ptr noundef %114) #2
  %115 = getelementptr inbounds i8, ptr %0, i64 240
  %116 = load ptr, ptr %115, align 8, !tbaa !41
  tail call void @free(ptr noundef %116) #2
  %117 = getelementptr inbounds i8, ptr %0, i64 248
  %118 = load ptr, ptr %117, align 8, !tbaa !42
  tail call void @free(ptr noundef %118) #2
  %119 = getelementptr inbounds i8, ptr %0, i64 264
  %120 = load ptr, ptr %119, align 8, !tbaa !43
  tail call void @free(ptr noundef %120) #2
  %121 = getelementptr inbounds i8, ptr %0, i64 288
  %122 = load ptr, ptr %121, align 8, !tbaa !44
  tail call void @free(ptr noundef %122) #2
  %123 = getelementptr inbounds i8, ptr %0, i64 304
  %124 = load ptr, ptr %123, align 8, !tbaa !45
  tail call void @free(ptr noundef %124) #2
  %125 = getelementptr inbounds i8, ptr %0, i64 320
  %126 = load ptr, ptr %125, align 8, !tbaa !46
  tail call void @free(ptr noundef %126) #2
  tail call void @free(ptr noundef nonnull %0) #2
  ret void
}

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

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 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 #2 = { 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, !7, i64 96}
!6 = !{!"graph_s", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !7, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !7, i64 88, !7, i64 92, !7, i64 96, !10, i64 104, !10, i64 112, !7, i64 120, !10, i64 128, !10, i64 136, !7, i64 144, !10, i64 152, !10, i64 160, !7, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !10, i64 224, !7, i64 232, !7, i64 236, !10, i64 240, !10, i64 248, !7, i64 256, !10, i64 264, !7, i64 272, !10, i64 280, !10, i64 288, !7, i64 296, !7, i64 300, !10, i64 304, !7, i64 312, !10, i64 320}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 104}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !10, i64 112}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!6, !7, i64 120}
!17 = !{!6, !10, i64 128}
!18 = !{!6, !10, i64 136}
!19 = distinct !{!19, !15}
!20 = !{!6, !7, i64 144}
!21 = !{!6, !10, i64 152}
!22 = !{!6, !10, i64 160}
!23 = distinct !{!23, !15}
!24 = !{!6, !7, i64 168}
!25 = !{!6, !10, i64 176}
!26 = !{!6, !10, i64 192}
!27 = distinct !{!27, !15}
!28 = !{!6, !7, i64 4}
!29 = !{!6, !7, i64 0}
!30 = !{!6, !10, i64 24}
!31 = !{!6, !10, i64 40}
!32 = distinct !{!32, !15}
!33 = !{!6, !10, i64 72}
!34 = distinct !{!34, !15}
!35 = !{!6, !10, i64 48}
!36 = !{!6, !10, i64 32}
!37 = !{!6, !10, i64 16}
!38 = !{!6, !10, i64 80}
!39 = !{!6, !10, i64 64}
!40 = !{!6, !10, i64 224}
!41 = !{!6, !10, i64 240}
!42 = !{!6, !10, i64 248}
!43 = !{!6, !10, i64 264}
!44 = !{!6, !10, i64 288}
!45 = !{!6, !10, i64 304}
!46 = !{!6, !10, i64 320}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass