; LLVM IR from sourceryinstitute/MORFEUS-Source :: src/FV/src/mesh_optimize/OptMS (SMfree)

; 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.__SMoptimal = type { i32, i32, i32, i32, i32, i32, i32, double, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, [3 x double], double, double, ptr, ptr, ptr, ptr, [3 x i32], i32 }

@.str.1 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1

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

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

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

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

8:                                                ; preds = %32, %1
  %9 = load i32, ptr %5, align 4, !tbaa !9
  %10 = load i32, ptr %6, align 4, !tbaa !9
  %11 = icmp slt i32 %9, %10
  br i1 %11, label %12, label %35

12:                                               ; preds = %8
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.__SMoptimal, ptr %13, i32 0, i32 11
  %15 = load ptr, ptr %14, align 8, !tbaa !11
  %16 = load i32, ptr %5, align 4, !tbaa !9
  %17 = sext i32 %16 to i64
  %18 = getelementptr inbounds ptr, ptr %15, i64 %17
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %23

21:                                               ; preds = %12
  %22 = call i32 @SMerror(i32 noundef 50, ptr noundef @.str.3, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null)
  store i32 %22, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %197

23:                                               ; preds = %12
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.__SMoptimal, ptr %24, i32 0, i32 11
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %27 = load i32, ptr %5, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds ptr, ptr %26, i64 %28
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  call void @free(ptr noundef %30) #4
  br label %31

31:                                               ; preds = %23
  br label %32

32:                                               ; preds = %31
  %33 = load i32, ptr %5, align 4, !tbaa !9
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %5, align 4, !tbaa !9
  br label %8, !llvm.loop !14

35:                                               ; preds = %8
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %36

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

39:                                               ; preds = %36
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.__SMoptimal, ptr %40, i32 0, i32 23
  %42 = load ptr, ptr %41, align 8, !tbaa !16
  %43 = load i32, ptr %5, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds ptr, ptr %42, i64 %44
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = icmp eq ptr %46, null
  br i1 %47, label %48, label %50

48:                                               ; preds = %39
  %49 = call i32 @SMerror(i32 noundef 53, ptr noundef @.str.3, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null)
  store i32 %49, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %197

50:                                               ; preds = %39
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.__SMoptimal, ptr %51, i32 0, i32 23
  %53 = load ptr, ptr %52, align 8, !tbaa !16
  %54 = load i32, ptr %5, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds ptr, ptr %53, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  call void @free(ptr noundef %57) #4
  br label %58

58:                                               ; preds = %50
  br label %59

59:                                               ; preds = %58
  %60 = load i32, ptr %5, align 4, !tbaa !9
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %5, align 4, !tbaa !9
  br label %36, !llvm.loop !17

62:                                               ; preds = %36
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %86, %62
  %64 = load i32, ptr %5, align 4, !tbaa !9
  %65 = icmp slt i32 %64, 3
  br i1 %65, label %66, label %89

66:                                               ; preds = %63
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.__SMoptimal, ptr %67, i32 0, i32 24
  %69 = load ptr, ptr %68, align 8, !tbaa !18
  %70 = load i32, ptr %5, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds ptr, ptr %69, i64 %71
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = icmp eq ptr %73, null
  br i1 %74, label %75, label %77

75:                                               ; preds = %66
  %76 = call i32 @SMerror(i32 noundef 56, ptr noundef @.str.3, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null)
  store i32 %76, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %197

77:                                               ; preds = %66
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.__SMoptimal, ptr %78, i32 0, i32 24
  %80 = load ptr, ptr %79, align 8, !tbaa !18
  %81 = load i32, ptr %5, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds ptr, ptr %80, i64 %82
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  call void @free(ptr noundef %84) #4
  br label %85

85:                                               ; preds = %77
  br label %86

86:                                               ; preds = %85
  %87 = load i32, ptr %5, align 4, !tbaa !9
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %5, align 4, !tbaa !9
  br label %63, !llvm.loop !19

89:                                               ; preds = %63
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.__SMoptimal, ptr %90, i32 0, i32 10
  %92 = load ptr, ptr %91, align 8, !tbaa !20
  %93 = icmp eq ptr %92, null
  br i1 %93, label %94, label %96

94:                                               ; preds = %89
  %95 = call i32 @SMerror(i32 noundef 59, ptr noundef @.str.3, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null)
  store i32 %95, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %197

96:                                               ; preds = %89
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.__SMoptimal, ptr %97, i32 0, i32 10
  %99 = load ptr, ptr %98, align 8, !tbaa !20
  call void @free(ptr noundef %99) #4
  br label %100

100:                                              ; preds = %96
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.__SMoptimal, ptr %101, i32 0, i32 12
  %103 = load ptr, ptr %102, align 8, !tbaa !21
  %104 = icmp eq ptr %103, null
  br i1 %104, label %105, label %107

105:                                              ; preds = %100
  %106 = call i32 @SMerror(i32 noundef 60, ptr noundef @.str.3, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null)
  store i32 %106, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %197

107:                                              ; preds = %100
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.__SMoptimal, ptr %108, i32 0, i32 12
  %110 = load ptr, ptr %109, align 8, !tbaa !21
  call void @free(ptr noundef %110) #4
  br label %111

111:                                              ; preds = %107
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.__SMoptimal, ptr %112, i32 0, i32 13
  %114 = load ptr, ptr %113, align 8, !tbaa !22
  %115 = icmp eq ptr %114, null
  br i1 %115, label %116, label %118

116:                                              ; preds = %111
  %117 = call i32 @SMerror(i32 noundef 61, ptr noundef @.str.3, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null)
  store i32 %117, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %197

118:                                              ; preds = %111
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.__SMoptimal, ptr %119, i32 0, i32 13
  %121 = load ptr, ptr %120, align 8, !tbaa !22
  call void @free(ptr noundef %121) #4
  br label %122

122:                                              ; preds = %118
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.__SMoptimal, ptr %123, i32 0, i32 11
  %125 = load ptr, ptr %124, align 8, !tbaa !11
  %126 = icmp eq ptr %125, null
  br i1 %126, label %127, label %129

127:                                              ; preds = %122
  %128 = call i32 @SMerror(i32 noundef 62, ptr noundef @.str.3, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null)
  store i32 %128, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %197

129:                                              ; preds = %122
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.__SMoptimal, ptr %130, i32 0, i32 11
  %132 = load ptr, ptr %131, align 8, !tbaa !11
  call void @free(ptr noundef %132) #4
  br label %133

133:                                              ; preds = %129
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.__SMoptimal, ptr %134, i32 0, i32 21
  %136 = load ptr, ptr %135, align 8, !tbaa !23
  %137 = icmp eq ptr %136, null
  br i1 %137, label %138, label %140

138:                                              ; preds = %133
  %139 = call i32 @SMerror(i32 noundef 63, ptr noundef @.str.3, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null)
  store i32 %139, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %197

140:                                              ; preds = %133
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.__SMoptimal, ptr %141, i32 0, i32 21
  %143 = load ptr, ptr %142, align 8, !tbaa !23
  call void @free(ptr noundef %143) #4
  br label %144

144:                                              ; preds = %140
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.__SMoptimal, ptr %145, i32 0, i32 23
  %147 = load ptr, ptr %146, align 8, !tbaa !16
  %148 = icmp eq ptr %147, null
  br i1 %148, label %149, label %151

149:                                              ; preds = %144
  %150 = call i32 @SMerror(i32 noundef 64, ptr noundef @.str.3, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null)
  store i32 %150, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %197

151:                                              ; preds = %144
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.__SMoptimal, ptr %152, i32 0, i32 23
  %154 = load ptr, ptr %153, align 8, !tbaa !16
  call void @free(ptr noundef %154) #4
  br label %155

155:                                              ; preds = %151
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.__SMoptimal, ptr %156, i32 0, i32 24
  %158 = load ptr, ptr %157, align 8, !tbaa !18
  %159 = icmp eq ptr %158, null
  br i1 %159, label %160, label %162

160:                                              ; preds = %155
  %161 = call i32 @SMerror(i32 noundef 65, ptr noundef @.str.3, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null)
  store i32 %161, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %197

162:                                              ; preds = %155
  %163 = load ptr, ptr %3, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.__SMoptimal, ptr %163, i32 0, i32 24
  %165 = load ptr, ptr %164, align 8, !tbaa !18
  call void @free(ptr noundef %165) #4
  br label %166

166:                                              ; preds = %162
  %167 = load ptr, ptr %3, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.__SMoptimal, ptr %167, i32 0, i32 22
  %169 = load ptr, ptr %168, align 8, !tbaa !24
  %170 = icmp eq ptr %169, null
  br i1 %170, label %171, label %173

171:                                              ; preds = %166
  %172 = call i32 @SMerror(i32 noundef 66, ptr noundef @.str.3, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null)
  store i32 %172, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %197

173:                                              ; preds = %166
  %174 = load ptr, ptr %3, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.__SMoptimal, ptr %174, i32 0, i32 22
  %176 = load ptr, ptr %175, align 8, !tbaa !24
  call void @free(ptr noundef %176) #4
  br label %177

177:                                              ; preds = %173
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.__SMoptimal, ptr %178, i32 0, i32 14
  %180 = load ptr, ptr %179, align 8, !tbaa !25
  %181 = call i32 @SMfreeActive(ptr noundef %180)
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.__SMoptimal, ptr %182, i32 0, i32 15
  %184 = load ptr, ptr %183, align 8, !tbaa !26
  %185 = call i32 @SMfreeActive(ptr noundef %184)
  %186 = load ptr, ptr %3, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.__SMoptimal, ptr %186, i32 0, i32 16
  %188 = load ptr, ptr %187, align 8, !tbaa !27
  %189 = call i32 @SMfreeActive(ptr noundef %188)
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = icmp eq ptr %190, null
  br i1 %191, label %192, label %194

192:                                              ; preds = %177
  %193 = call i32 @SMerror(i32 noundef 73, ptr noundef @.str.3, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null)
  store i32 %193, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %197

194:                                              ; preds = %177
  %195 = load ptr, ptr %3, align 8, !tbaa !5
  call void @free(ptr noundef %195) #4
  br label %196

196:                                              ; preds = %194
  store i32 0, ptr %4, align 4, !tbaa !9
  store i32 0, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %197

197:                                              ; preds = %196, %192, %171, %160, %149, %138, %127, %116, %105, %94, %75, %48, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  %198 = load i32, ptr %2, align 4
  ret i32 %198
}

; 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
declare dso_local i32 @SMfreeActive(ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 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 #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 = !{!"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, !6, i64 56}
!12 = !{!"__SMoptimal", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !13, i64 32, !10, i64 40, !10, i64 44, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !10, i64 104, !7, i64 112, !13, i64 136, !13, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !7, i64 184, !10, i64 196}
!13 = !{!"double", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!12, !6, i64 168}
!17 = distinct !{!17, !15}
!18 = !{!12, !6, i64 176}
!19 = distinct !{!19, !15}
!20 = !{!12, !6, i64 48}
!21 = !{!12, !6, i64 64}
!22 = !{!12, !6, i64 72}
!23 = !{!12, !6, i64 152}
!24 = !{!12, !6, i64 160}
!25 = !{!12, !6, i64 80}
!26 = !{!12, !6, i64 88}
!27 = !{!12, !6, i64 96}


; 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 [106 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1

declare i32 @SMerror(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local i32 @SMfreeOpt(ptr nocapture noundef %0) local_unnamed_addr #2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 56
  br label %4

.preheader53:                                     ; preds = %11
  %3 = getelementptr inbounds i8, ptr %0, i64 168
  br label %16

4:                                                ; preds = %1, %11
  %indvars.iv = phi i64 [ 0, %1 ], [ %indvars.iv.next, %11 ]
  %5 = load ptr, ptr %2, align 8, !tbaa !5
  %6 = getelementptr inbounds ptr, ptr %5, i64 %indvars.iv
  %7 = load ptr, ptr %6, align 8, !tbaa !12
  %8 = icmp eq ptr %7, null
  br i1 %8, label %9, label %11

9:                                                ; preds = %4
  %10 = tail call i32 @SMerror(i32 noundef 50, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null) #3
  br label %91

11:                                               ; preds = %4
  tail call void @free(ptr noundef nonnull %7) #3
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 900
  br i1 %exitcond.not, label %.preheader53, label %4, !llvm.loop !13

.preheader:                                       ; preds = %23
  %12 = getelementptr inbounds i8, ptr %0, i64 176
  %13 = load ptr, ptr %12, align 8, !tbaa !15
  %14 = load ptr, ptr %13, align 8, !tbaa !12
  %15 = icmp eq ptr %14, null
  br i1 %15, label %24, label %26

16:                                               ; preds = %.preheader53, %23
  %indvars.iv58 = phi i64 [ 0, %.preheader53 ], [ %indvars.iv.next59, %23 ]
  %17 = load ptr, ptr %3, align 8, !tbaa !16
  %18 = getelementptr inbounds ptr, ptr %17, i64 %indvars.iv58
  %19 = load ptr, ptr %18, align 8, !tbaa !12
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %23

21:                                               ; preds = %16
  %22 = tail call i32 @SMerror(i32 noundef 53, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null) #3
  br label %91

23:                                               ; preds = %16
  tail call void @free(ptr noundef nonnull %19) #3
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %exitcond61.not = icmp eq i64 %indvars.iv.next59, 150
  br i1 %exitcond61.not, label %.preheader, label %16, !llvm.loop !17

24:                                               ; preds = %31, %26, %.preheader
  %25 = tail call i32 @SMerror(i32 noundef 56, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null) #3
  br label %91

26:                                               ; preds = %.preheader
  tail call void @free(ptr noundef nonnull %14) #3
  %27 = load ptr, ptr %12, align 8, !tbaa !15
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = load ptr, ptr %28, align 8, !tbaa !12
  %30 = icmp eq ptr %29, null
  br i1 %30, label %24, label %31

31:                                               ; preds = %26
  tail call void @free(ptr noundef nonnull %29) #3
  %32 = load ptr, ptr %12, align 8, !tbaa !15
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !12
  %35 = icmp eq ptr %34, null
  br i1 %35, label %24, label %36

36:                                               ; preds = %31
  tail call void @free(ptr noundef nonnull %34) #3
  %37 = getelementptr inbounds i8, ptr %0, i64 48
  %38 = load ptr, ptr %37, align 8, !tbaa !18
  %39 = icmp eq ptr %38, null
  br i1 %39, label %40, label %42

40:                                               ; preds = %36
  %41 = tail call i32 @SMerror(i32 noundef 59, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null) #3
  br label %91

42:                                               ; preds = %36
  tail call void @free(ptr noundef nonnull %38) #3
  %43 = getelementptr inbounds i8, ptr %0, i64 64
  %44 = load ptr, ptr %43, align 8, !tbaa !19
  %45 = icmp eq ptr %44, null
  br i1 %45, label %46, label %48

46:                                               ; preds = %42
  %47 = tail call i32 @SMerror(i32 noundef 60, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null) #3
  br label %91

48:                                               ; preds = %42
  tail call void @free(ptr noundef nonnull %44) #3
  %49 = getelementptr inbounds i8, ptr %0, i64 72
  %50 = load ptr, ptr %49, align 8, !tbaa !20
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %54

52:                                               ; preds = %48
  %53 = tail call i32 @SMerror(i32 noundef 61, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null) #3
  br label %91

54:                                               ; preds = %48
  tail call void @free(ptr noundef nonnull %50) #3
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = icmp eq ptr %55, null
  br i1 %56, label %57, label %59

57:                                               ; preds = %54
  %58 = tail call i32 @SMerror(i32 noundef 62, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null) #3
  br label %91

59:                                               ; preds = %54
  tail call void @free(ptr noundef nonnull %55) #3
  %60 = getelementptr inbounds i8, ptr %0, i64 152
  %61 = load ptr, ptr %60, align 8, !tbaa !21
  %62 = icmp eq ptr %61, null
  br i1 %62, label %63, label %65

63:                                               ; preds = %59
  %64 = tail call i32 @SMerror(i32 noundef 63, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null) #3
  br label %91

65:                                               ; preds = %59
  tail call void @free(ptr noundef nonnull %61) #3
  %66 = load ptr, ptr %3, align 8, !tbaa !16
  %67 = icmp eq ptr %66, null
  br i1 %67, label %68, label %70

68:                                               ; preds = %65
  %69 = tail call i32 @SMerror(i32 noundef 64, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null) #3
  br label %91

70:                                               ; preds = %65
  tail call void @free(ptr noundef nonnull %66) #3
  %71 = load ptr, ptr %12, align 8, !tbaa !15
  %72 = icmp eq ptr %71, null
  br i1 %72, label %73, label %75

73:                                               ; preds = %70
  %74 = tail call i32 @SMerror(i32 noundef 65, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null) #3
  br label %91

75:                                               ; preds = %70
  tail call void @free(ptr noundef nonnull %71) #3
  %76 = getelementptr inbounds i8, ptr %0, i64 160
  %77 = load ptr, ptr %76, align 8, !tbaa !22
  %78 = icmp eq ptr %77, null
  br i1 %78, label %79, label %81

79:                                               ; preds = %75
  %80 = tail call i32 @SMerror(i32 noundef 66, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 60, i32 noundef 0, ptr noundef null) #3
  br label %91

81:                                               ; preds = %75
  tail call void @free(ptr noundef nonnull %77) #3
  %82 = getelementptr inbounds i8, ptr %0, i64 80
  %83 = load ptr, ptr %82, align 8, !tbaa !23
  %84 = tail call i32 @SMfreeActive(ptr noundef %83)
  %85 = getelementptr inbounds i8, ptr %0, i64 88
  %86 = load ptr, ptr %85, align 8, !tbaa !24
  %87 = tail call i32 @SMfreeActive(ptr noundef %86)
  %88 = getelementptr inbounds i8, ptr %0, i64 96
  %89 = load ptr, ptr %88, align 8, !tbaa !25
  %90 = tail call i32 @SMfreeActive(ptr noundef %89)
  tail call void @free(ptr noundef nonnull %0) #3
  br label %91

91:                                               ; preds = %81, %79, %73, %68, %63, %57, %52, %46, %40, %24, %21, %9
  %.0 = phi i32 [ %10, %9 ], [ %22, %21 ], [ %25, %24 ], [ %41, %40 ], [ %47, %46 ], [ %53, %52 ], [ %58, %57 ], [ %64, %63 ], [ %69, %68 ], [ %74, %73 ], [ %80, %79 ], [ 0, %81 ]
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @SMfreeActive(ptr noundef) local_unnamed_addr #2

attributes #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 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 #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, !11, i64 56}
!6 = !{!"__SMoptimal", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !10, i64 32, !7, i64 40, !7, i64 44, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !7, i64 104, !8, i64 112, !10, i64 136, !10, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !8, i64 184, !7, i64 196}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!11, !11, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!6, !11, i64 176}
!16 = !{!6, !11, i64 168}
!17 = distinct !{!17, !14}
!18 = !{!6, !11, i64 48}
!19 = !{!6, !11, i64 64}
!20 = !{!6, !11, i64 72}
!21 = !{!6, !11, i64 152}
!22 = !{!6, !11, i64 160}
!23 = !{!6, !11, i64 80}
!24 = !{!6, !11, i64 88}
!25 = !{!6, !11, i64 96}


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