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

; 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.SMquality_table = type { i32, i32, i32, i32, ptr }
%struct.SMqualityMeasure = type { i32, [128 x i8], double, double, double, double, double, double, 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.7 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 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

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

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

; 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 i32 @SMmallocQualityTable(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 [10 x [128 x i8]], align 16
  %7 = alloca [10 x double], align 16
  %8 = alloca [10 x i32], align 16
  %9 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 1280, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #5
  %10 = call noalias ptr @malloc(i64 noundef 24) #6
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %10, ptr %11, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %17

15:                                               ; preds = %1
  %16 = call i32 @SMerror(i32 noundef 165, ptr noundef @.str.7, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 55, i32 noundef 0, ptr noundef null)
  store i32 %16, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %217

17:                                               ; preds = %1
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.SMquality_table, ptr %19, i32 0, i32 1
  store i32 10, ptr %20, align 4, !tbaa !9
  %21 = getelementptr inbounds [10 x [128 x i8]], ptr %6, i64 0, i64 0
  %22 = getelementptr inbounds [128 x i8], ptr %21, i64 0, i64 0
  %23 = call ptr @strcpy(ptr noundef %22, ptr noundef @.str.8) #5
  %24 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 0
  store double 0.000000e+00, ptr %24, align 16, !tbaa !12
  %25 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
  store i32 2, ptr %25, align 16, !tbaa !14
  %26 = getelementptr inbounds [10 x [128 x i8]], ptr %6, i64 0, i64 1
  %27 = getelementptr inbounds [128 x i8], ptr %26, i64 0, i64 0
  %28 = call ptr @strcpy(ptr noundef %27, ptr noundef @.str.9) #5
  %29 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 1
  store double 6.000000e+01, ptr %29, align 8, !tbaa !12
  %30 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 1
  store i32 2, ptr %30, align 4, !tbaa !14
  %31 = getelementptr inbounds [10 x [128 x i8]], ptr %6, i64 0, i64 2
  %32 = getelementptr inbounds [128 x i8], ptr %31, i64 0, i64 0
  %33 = call ptr @strcpy(ptr noundef %32, ptr noundef @.str.10) #5
  %34 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 2
  store double 0.000000e+00, ptr %34, align 16, !tbaa !12
  %35 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 2
  store i32 2, ptr %35, align 8, !tbaa !14
  %36 = getelementptr inbounds [10 x [128 x i8]], ptr %6, i64 0, i64 3
  %37 = getelementptr inbounds [128 x i8], ptr %36, i64 0, i64 0
  %38 = call ptr @strcpy(ptr noundef %37, ptr noundef @.str.11) #5
  %39 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 3
  store double 8.600000e-01, ptr %39, align 8, !tbaa !12
  %40 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 3
  store i32 2, ptr %40, align 4, !tbaa !14
  %41 = getelementptr inbounds [10 x [128 x i8]], ptr %6, i64 0, i64 4
  %42 = getelementptr inbounds [128 x i8], ptr %41, i64 0, i64 0
  %43 = call ptr @strcpy(ptr noundef %42, ptr noundef @.str.12) #5
  %44 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 4
  store double 1.000000e+00, ptr %44, align 16, !tbaa !12
  %45 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 4
  store i32 2, ptr %45, align 16, !tbaa !14
  %46 = getelementptr inbounds [10 x [128 x i8]], ptr %6, i64 0, i64 5
  %47 = getelementptr inbounds [128 x i8], ptr %46, i64 0, i64 0
  %48 = call ptr @strcpy(ptr noundef %47, ptr noundef @.str.13) #5
  %49 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 5
  store double 0.000000e+00, ptr %49, align 8, !tbaa !12
  %50 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 5
  store i32 3, ptr %50, align 4, !tbaa !14
  %51 = getelementptr inbounds [10 x [128 x i8]], ptr %6, i64 0, i64 6
  %52 = getelementptr inbounds [128 x i8], ptr %51, i64 0, i64 0
  %53 = call ptr @strcpy(ptr noundef %52, ptr noundef @.str.14) #5
  %54 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 6
  store double 7.200000e+01, ptr %54, align 16, !tbaa !12
  %55 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 6
  store i32 3, ptr %55, align 8, !tbaa !14
  %56 = getelementptr inbounds [10 x [128 x i8]], ptr %6, i64 0, i64 7
  %57 = getelementptr inbounds [128 x i8], ptr %56, i64 0, i64 0
  %58 = call ptr @strcpy(ptr noundef %57, ptr noundef @.str.11) #5
  %59 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 7
  store double 8.600000e-01, ptr %59, align 8, !tbaa !12
  %60 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 7
  store i32 3, ptr %60, align 4, !tbaa !14
  %61 = getelementptr inbounds [10 x [128 x i8]], ptr %6, i64 0, i64 8
  %62 = getelementptr inbounds [128 x i8], ptr %61, i64 0, i64 0
  %63 = call ptr @strcpy(ptr noundef %62, ptr noundef @.str.15) #5
  %64 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 8
  store double 1.000000e-01, ptr %64, align 16, !tbaa !12
  %65 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 8
  store i32 3, ptr %65, align 16, !tbaa !14
  %66 = getelementptr inbounds [10 x [128 x i8]], ptr %6, i64 0, i64 9
  %67 = getelementptr inbounds [128 x i8], ptr %66, i64 0, i64 0
  %68 = call ptr @strcpy(ptr noundef %67, ptr noundef @.str.12) #5
  %69 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 9
  store double 1.000000e+00, ptr %69, align 8, !tbaa !12
  %70 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 9
  store i32 3, ptr %70, align 4, !tbaa !14
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.SMquality_table, ptr %72, i32 0, i32 1
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = mul i64 8, %75
  %77 = icmp eq i64 %76, 0
  br i1 %77, label %78, label %82

78:                                               ; preds = %17
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.SMquality_table, ptr %80, i32 0, i32 4
  store ptr null, ptr %81, align 8, !tbaa !15
  br label %101

82:                                               ; preds = %17
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.SMquality_table, ptr %84, i32 0, i32 1
  %86 = load i32, ptr %85, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = mul i64 8, %87
  %89 = call noalias ptr @malloc(i64 noundef %88) #6
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.SMquality_table, ptr %91, i32 0, i32 4
  store ptr %89, ptr %92, align 8, !tbaa !15
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.SMquality_table, ptr %94, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !15
  %97 = icmp eq ptr %96, null
  br i1 %97, label %98, label %100

98:                                               ; preds = %82
  %99 = call i32 @SMerror(i32 noundef 182, ptr noundef @.str.7, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 55, i32 noundef 0, ptr noundef null)
  store i32 %99, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %217

100:                                              ; preds = %82
  br label %101

101:                                              ; preds = %100, %78
  store i32 0, ptr %4, align 4, !tbaa !14
  br label %102

102:                                              ; preds = %207, %101
  %103 = load i32, ptr %4, align 4, !tbaa !14
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.SMquality_table, ptr %105, i32 0, i32 1
  %107 = load i32, ptr %106, align 4, !tbaa !9
  %108 = icmp slt i32 %103, %107
  br i1 %108, label %109, label %210

109:                                              ; preds = %102
  %110 = call noalias ptr @malloc(i64 noundef 192) #6
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = load ptr, ptr %111, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.SMquality_table, ptr %112, i32 0, i32 4
  %114 = load ptr, ptr %113, align 8, !tbaa !15
  %115 = load i32, ptr %4, align 4, !tbaa !14
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds ptr, ptr %114, i64 %116
  store ptr %110, ptr %117, align 8, !tbaa !5
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.SMquality_table, ptr %119, i32 0, i32 4
  %121 = load ptr, ptr %120, align 8, !tbaa !15
  %122 = load i32, ptr %4, align 4, !tbaa !14
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds ptr, ptr %121, i64 %123
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  %126 = icmp eq ptr %125, null
  br i1 %126, label %127, label %129

127:                                              ; preds = %109
  %128 = call i32 @SMerror(i32 noundef 184, ptr noundef @.str.7, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 55, i32 noundef 0, ptr noundef null)
  store i32 %128, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %217

129:                                              ; preds = %109
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.SMquality_table, ptr %131, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !15
  %134 = load i32, ptr %4, align 4, !tbaa !14
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds ptr, ptr %133, i64 %135
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.SMqualityMeasure, ptr %137, i32 0, i32 1
  %139 = getelementptr inbounds [128 x i8], ptr %138, i64 0, i64 0
  %140 = load i32, ptr %4, align 4, !tbaa !14
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [10 x [128 x i8]], ptr %6, i64 0, i64 %141
  %143 = getelementptr inbounds [128 x i8], ptr %142, i64 0, i64 0
  %144 = call ptr @strcpy(ptr noundef %139, ptr noundef %143) #5
  %145 = load i32, ptr %4, align 4, !tbaa !14
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !14
  %149 = load ptr, ptr %3, align 8, !tbaa !5
  %150 = load ptr, ptr %149, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.SMquality_table, ptr %150, i32 0, i32 4
  %152 = load ptr, ptr %151, align 8, !tbaa !15
  %153 = load i32, ptr %4, align 4, !tbaa !14
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds ptr, ptr %152, i64 %154
  %156 = load ptr, ptr %155, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.SMqualityMeasure, ptr %156, i32 0, i32 0
  store i32 %148, ptr %157, align 8, !tbaa !16
  %158 = load i32, ptr %4, align 4, !tbaa !14
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 %159
  %161 = load double, ptr %160, align 8, !tbaa !12
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = load ptr, ptr %162, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.SMquality_table, ptr %163, i32 0, i32 4
  %165 = load ptr, ptr %164, align 8, !tbaa !15
  %166 = load i32, ptr %4, align 4, !tbaa !14
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds ptr, ptr %165, i64 %167
  %169 = load ptr, ptr %168, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.SMqualityMeasure, ptr %169, i32 0, i32 2
  store double %161, ptr %170, align 8, !tbaa !18
  %171 = load ptr, ptr %3, align 8, !tbaa !5
  %172 = load ptr, ptr %171, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.SMquality_table, ptr %172, i32 0, i32 4
  %174 = load ptr, ptr %173, align 8, !tbaa !15
  %175 = load i32, ptr %4, align 4, !tbaa !14
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds ptr, ptr %174, i64 %176
  %178 = load ptr, ptr %177, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.SMqualityMeasure, ptr %178, i32 0, i32 3
  store double 1.000000e+300, ptr %179, align 8, !tbaa !19
  %180 = load ptr, ptr %3, align 8, !tbaa !5
  %181 = load ptr, ptr %180, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.SMquality_table, ptr %181, i32 0, i32 4
  %183 = load ptr, ptr %182, align 8, !tbaa !15
  %184 = load i32, ptr %4, align 4, !tbaa !14
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds ptr, ptr %183, i64 %185
  %187 = load ptr, ptr %186, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.SMqualityMeasure, ptr %187, i32 0, i32 4
  store double -1.000000e+300, ptr %188, align 8, !tbaa !20
  %189 = load ptr, ptr %3, align 8, !tbaa !5
  %190 = load ptr, ptr %189, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.SMquality_table, ptr %190, i32 0, i32 4
  %192 = load ptr, ptr %191, align 8, !tbaa !15
  %193 = load i32, ptr %4, align 4, !tbaa !14
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds ptr, ptr %192, i64 %194
  %196 = load ptr, ptr %195, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.SMqualityMeasure, ptr %196, i32 0, i32 5
  store double 0.000000e+00, ptr %197, align 8, !tbaa !21
  %198 = load ptr, ptr %3, align 8, !tbaa !5
  %199 = load ptr, ptr %198, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.SMquality_table, ptr %199, i32 0, i32 4
  %201 = load ptr, ptr %200, align 8, !tbaa !15
  %202 = load i32, ptr %4, align 4, !tbaa !14
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds ptr, ptr %201, i64 %203
  %205 = load ptr, ptr %204, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.SMqualityMeasure, ptr %205, i32 0, i32 8
  store i32 0, ptr %206, align 8, !tbaa !22
  br label %207

207:                                              ; preds = %129
  %208 = load i32, ptr %4, align 4, !tbaa !14
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %4, align 4, !tbaa !14
  br label %102, !llvm.loop !23

210:                                              ; preds = %102
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  %212 = load ptr, ptr %211, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.SMquality_table, ptr %212, i32 0, i32 2
  store i32 0, ptr %213, align 8, !tbaa !25
  %214 = load ptr, ptr %3, align 8, !tbaa !5
  %215 = load ptr, ptr %214, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.SMquality_table, ptr %215, i32 0, i32 0
  store i32 0, ptr %216, align 8, !tbaa !26
  store i32 0, ptr %5, align 4, !tbaa !14
  store i32 0, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %217

217:                                              ; preds = %210, %127, %98, %15
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 1280, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  %218 = load i32, ptr %2, align 4
  ret i32 %218
}

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind 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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 4}
!10 = !{!"SMquality_table", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !6, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !6, i64 16}
!16 = !{!17, !11, i64 0}
!17 = !{!"SMqualityMeasure", !11, i64 0, !7, i64 4, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !11, i64 184, !11, i64 188}
!18 = !{!17, !13, i64 136}
!19 = !{!17, !13, i64 144}
!20 = !{!17, !13, i64 152}
!21 = !{!17, !13, i64 160}
!22 = !{!17, !11, i64 184}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!10, !11, i64 8}
!26 = !{!10, !11, i64 0}


; 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.7 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [19 x i8], align 1

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @SMmallocQualityTable(ptr nocapture noundef %0) local_unnamed_addr #3 {
  %2 = alloca [10 x [128 x i8]], align 16
  %3 = alloca [10 x double], align 16
  %4 = alloca [10 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 1280, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #5
  %5 = tail call noalias dereferenceable_or_null(24) ptr @malloc(i64 noundef 24) #6
  store ptr %5, ptr %0, align 8, !tbaa !5
  %6 = icmp eq ptr %5, null
  br i1 %6, label %7, label %9

7:                                                ; preds = %1
  %8 = tail call i32 @SMerror(i32 noundef 165, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 55, i32 noundef 0, ptr noundef null) #5
  br label %75

9:                                                ; preds = %1
  %10 = getelementptr inbounds i8, ptr %5, i64 4
  store i32 10, ptr %10, align 4, !tbaa !9
  %11 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.8) #5
  %12 = getelementptr inbounds i8, ptr %2, i64 128
  %13 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) @.str.9) #5
  store <2 x double> <double 0.000000e+00, double 6.000000e+01>, ptr %3, align 16, !tbaa !12
  %14 = getelementptr inbounds i8, ptr %2, i64 256
  %15 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %14, ptr noundef nonnull dereferenceable(1) @.str.10) #5
  %16 = getelementptr inbounds i8, ptr %3, i64 16
  %17 = getelementptr inbounds i8, ptr %2, i64 384
  %18 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %17, ptr noundef nonnull dereferenceable(1) @.str.11) #5
  store <2 x double> <double 0.000000e+00, double 8.600000e-01>, ptr %16, align 16, !tbaa !12
  store <4 x i32> <i32 2, i32 2, i32 2, i32 2>, ptr %4, align 16, !tbaa !14
  %19 = getelementptr inbounds i8, ptr %2, i64 512
  %20 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %19, ptr noundef nonnull dereferenceable(1) @.str.12) #5
  %21 = getelementptr inbounds i8, ptr %3, i64 32
  %22 = getelementptr inbounds i8, ptr %4, i64 16
  %23 = getelementptr inbounds i8, ptr %2, i64 640
  %24 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %23, ptr noundef nonnull dereferenceable(1) @.str.13) #5
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %21, align 16, !tbaa !12
  %25 = getelementptr inbounds i8, ptr %2, i64 768
  %26 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %25, ptr noundef nonnull dereferenceable(1) @.str.14) #5
  %27 = getelementptr inbounds i8, ptr %3, i64 48
  %28 = getelementptr inbounds i8, ptr %2, i64 896
  %29 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %28, ptr noundef nonnull dereferenceable(1) @.str.11) #5
  store <2 x double> <double 7.200000e+01, double 8.600000e-01>, ptr %27, align 16, !tbaa !12
  store <4 x i32> <i32 2, i32 3, i32 3, i32 3>, ptr %22, align 16, !tbaa !14
  %30 = getelementptr inbounds i8, ptr %2, i64 1024
  %31 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %30, ptr noundef nonnull dereferenceable(1) @.str.15) #5
  %32 = getelementptr inbounds i8, ptr %3, i64 64
  %33 = getelementptr inbounds i8, ptr %4, i64 32
  store i32 3, ptr %33, align 16, !tbaa !14
  %34 = getelementptr inbounds i8, ptr %2, i64 1152
  %35 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %34, ptr noundef nonnull dereferenceable(1) @.str.12) #5
  store <2 x double> <double 1.000000e-01, double 1.000000e+00>, ptr %32, align 16, !tbaa !12
  %36 = getelementptr inbounds i8, ptr %4, i64 36
  store i32 3, ptr %36, align 4, !tbaa !14
  %37 = call noalias dereferenceable_or_null(80) ptr @malloc(i64 noundef 80) #6
  %38 = getelementptr inbounds i8, ptr %5, i64 16
  store ptr %37, ptr %38, align 8, !tbaa !15
  %39 = icmp eq ptr %37, null
  br i1 %39, label %40, label %.lr.ph

40:                                               ; preds = %9
  %41 = call i32 @SMerror(i32 noundef 182, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 55, i32 noundef 0, ptr noundef null) #5
  br label %75

.lr.ph:                                           ; preds = %9, %53
  %42 = phi ptr [ %61, %53 ], [ %37, %9 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %53 ], [ 0, %9 ]
  %43 = call noalias dereferenceable_or_null(192) ptr @malloc(i64 noundef 192) #6
  %44 = getelementptr inbounds ptr, ptr %42, i64 %indvars.iv
  store ptr %43, ptr %44, align 8, !tbaa !5
  %45 = load ptr, ptr %0, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  %47 = load ptr, ptr %46, align 8, !tbaa !15
  %48 = getelementptr inbounds ptr, ptr %47, i64 %indvars.iv
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = icmp eq ptr %49, null
  br i1 %50, label %51, label %53

51:                                               ; preds = %.lr.ph
  %52 = call i32 @SMerror(i32 noundef 184, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 55, i32 noundef 0, ptr noundef null) #5
  br label %75

53:                                               ; preds = %.lr.ph
  %54 = getelementptr inbounds i8, ptr %49, i64 4
  %55 = getelementptr inbounds [10 x [128 x i8]], ptr %2, i64 0, i64 %indvars.iv
  %56 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %54, ptr noundef nonnull dereferenceable(1) %55) #5
  %57 = getelementptr inbounds [10 x i32], ptr %4, i64 0, i64 %indvars.iv
  %58 = load i32, ptr %57, align 4, !tbaa !14
  %59 = load ptr, ptr %0, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 16
  %61 = load ptr, ptr %60, align 8, !tbaa !15
  %62 = getelementptr inbounds ptr, ptr %61, i64 %indvars.iv
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  store i32 %58, ptr %63, align 8, !tbaa !16
  %64 = getelementptr inbounds [10 x double], ptr %3, i64 0, i64 %indvars.iv
  %65 = load double, ptr %64, align 8, !tbaa !12
  %66 = getelementptr inbounds i8, ptr %63, i64 136
  store double %65, ptr %66, align 8, !tbaa !18
  %67 = getelementptr inbounds i8, ptr %63, i64 144
  store <2 x double> <double 1.000000e+300, double -1.000000e+300>, ptr %67, align 8, !tbaa !12
  %68 = getelementptr inbounds i8, ptr %63, i64 160
  store double 0.000000e+00, ptr %68, align 8, !tbaa !19
  %69 = getelementptr inbounds i8, ptr %63, i64 184
  store i32 0, ptr %69, align 8, !tbaa !20
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %70 = getelementptr inbounds i8, ptr %59, i64 4
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = icmp slt i64 %indvars.iv.next, %72
  br i1 %73, label %.lr.ph, label %._crit_edge, !llvm.loop !21

._crit_edge:                                      ; preds = %53
  %74 = getelementptr inbounds i8, ptr %59, i64 8
  store i32 0, ptr %74, align 8, !tbaa !23
  store i32 0, ptr %59, align 8, !tbaa !24
  br label %75

75:                                               ; preds = %._crit_edge, %51, %40, %7
  %.0 = phi i32 [ %8, %7 ], [ %52, %51 ], [ 0, %._crit_edge ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 1280, ptr nonnull %2) #5
  ret i32 %.0
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind 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 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 4}
!10 = !{!"SMquality_table", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !6, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !6, i64 16}
!16 = !{!17, !11, i64 0}
!17 = !{!"SMqualityMeasure", !11, i64 0, !7, i64 4, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !11, i64 184, !11, i64 188}
!18 = !{!17, !13, i64 136}
!19 = !{!17, !13, i64 160}
!20 = !{!17, !11, i64 184}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!10, !11, i64 8}
!24 = !{!10, !11, i64 0}


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