; LLVM IR from OpenFAST/openfast :: modules/map/src (outputstream)

; 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.InitializationData_t = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.bstrList = type { i32, i32, ptr }
%struct.tagbstring = type { i32, i32, ptr }

@.str.94 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [6 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @write_expanded_input_file_to_summary_file(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef @.str.94) #3
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef @.str.95) #3
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef @.str.96) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %14

14:                                               ; preds = %60, %2
  %15 = load i32, ptr %7, align 4, !tbaa !9
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.InitializationData_t, ptr %16, i32 0, i32 0
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %19 = getelementptr inbounds %struct.bstrList, ptr %18, i32 0, i32 0
  %20 = load i32, ptr %19, align 8, !tbaa !13
  %21 = icmp slt i32 %15, %20
  br i1 %21, label %22, label %63

22:                                               ; preds = %14
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.InitializationData_t, ptr %23, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  %26 = getelementptr inbounds %struct.bstrList, ptr %25, i32 0, i32 2
  %27 = load ptr, ptr %26, align 8, !tbaa !15
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds ptr, ptr %27, i64 %29
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.tagbstring, ptr %31, i32 0, i32 2
  %33 = load ptr, ptr %32, align 8, !tbaa !16
  store ptr %33, ptr %5, align 8, !tbaa !5
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.InitializationData_t, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8, !tbaa !11
  %37 = getelementptr inbounds %struct.bstrList, ptr %36, i32 0, i32 2
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  %39 = load i32, ptr %7, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds ptr, ptr %38, i64 %40
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.tagbstring, ptr %42, i32 0, i32 1
  %44 = load i32, ptr %43, align 4, !tbaa !18
  store i32 %44, ptr %6, align 4, !tbaa !9
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef @.str.97, ptr noundef %46) #3
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = load i32, ptr %6, align 4, !tbaa !9
  %50 = sub nsw i32 %49, 1
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds i8, ptr %48, i64 %51
  %53 = load i8, ptr %52, align 1, !tbaa !19
  %54 = sext i8 %53 to i32
  %55 = icmp ne i32 %54, 10
  br i1 %55, label %56, label %59

56:                                               ; preds = %22
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.98) #3
  br label %59

59:                                               ; preds = %56, %22
  br label %60

60:                                               ; preds = %59
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %7, align 4, !tbaa !9
  br label %14, !llvm.loop !20

63:                                               ; preds = %14
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.99) #3
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef @.str.100) #3
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef @.str.101) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %116, %63
  %71 = load i32, ptr %7, align 4, !tbaa !9
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.InitializationData_t, ptr %72, i32 0, i32 4
  %74 = load ptr, ptr %73, align 8, !tbaa !22
  %75 = getelementptr inbounds %struct.bstrList, ptr %74, i32 0, i32 0
  %76 = load i32, ptr %75, align 8, !tbaa !13
  %77 = icmp slt i32 %71, %76
  br i1 %77, label %78, label %119

78:                                               ; preds = %70
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.InitializationData_t, ptr %79, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !22
  %82 = getelementptr inbounds %struct.bstrList, ptr %81, i32 0, i32 2
  %83 = load ptr, ptr %82, align 8, !tbaa !15
  %84 = load i32, ptr %7, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds ptr, ptr %83, i64 %85
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.tagbstring, ptr %87, i32 0, i32 2
  %89 = load ptr, ptr %88, align 8, !tbaa !16
  store ptr %89, ptr %5, align 8, !tbaa !5
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.InitializationData_t, ptr %90, i32 0, i32 4
  %92 = load ptr, ptr %91, align 8, !tbaa !22
  %93 = getelementptr inbounds %struct.bstrList, ptr %92, i32 0, i32 2
  %94 = load ptr, ptr %93, align 8, !tbaa !15
  %95 = load i32, ptr %7, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds ptr, ptr %94, i64 %96
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.tagbstring, ptr %98, i32 0, i32 1
  %100 = load i32, ptr %99, align 4, !tbaa !18
  store i32 %100, ptr %6, align 4, !tbaa !9
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef @.str.97, ptr noundef %102) #3
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = load i32, ptr %6, align 4, !tbaa !9
  %106 = sub nsw i32 %105, 1
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds i8, ptr %104, i64 %107
  %109 = load i8, ptr %108, align 1, !tbaa !19
  %110 = sext i8 %109 to i32
  %111 = icmp ne i32 %110, 10
  br i1 %111, label %112, label %115

112:                                              ; preds = %78
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef @.str.98) #3
  br label %115

115:                                              ; preds = %112, %78
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %7, align 4, !tbaa !9
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %7, align 4, !tbaa !9
  br label %70, !llvm.loop !23

119:                                              ; preds = %70
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef @.str.102) #3
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.103) #3
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef @.str.104) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %126

126:                                              ; preds = %172, %119
  %127 = load i32, ptr %7, align 4, !tbaa !9
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.InitializationData_t, ptr %128, i32 0, i32 5
  %130 = load ptr, ptr %129, align 8, !tbaa !24
  %131 = getelementptr inbounds %struct.bstrList, ptr %130, i32 0, i32 0
  %132 = load i32, ptr %131, align 8, !tbaa !13
  %133 = icmp slt i32 %127, %132
  br i1 %133, label %134, label %175

134:                                              ; preds = %126
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.InitializationData_t, ptr %135, i32 0, i32 5
  %137 = load ptr, ptr %136, align 8, !tbaa !24
  %138 = getelementptr inbounds %struct.bstrList, ptr %137, i32 0, i32 2
  %139 = load ptr, ptr %138, align 8, !tbaa !15
  %140 = load i32, ptr %7, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds ptr, ptr %139, i64 %141
  %143 = load ptr, ptr %142, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.tagbstring, ptr %143, i32 0, i32 2
  %145 = load ptr, ptr %144, align 8, !tbaa !16
  store ptr %145, ptr %5, align 8, !tbaa !5
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.InitializationData_t, ptr %146, i32 0, i32 5
  %148 = load ptr, ptr %147, align 8, !tbaa !24
  %149 = getelementptr inbounds %struct.bstrList, ptr %148, i32 0, i32 2
  %150 = load ptr, ptr %149, align 8, !tbaa !15
  %151 = load i32, ptr %7, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds ptr, ptr %150, i64 %152
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.tagbstring, ptr %154, i32 0, i32 1
  %156 = load i32, ptr %155, align 4, !tbaa !18
  store i32 %156, ptr %6, align 4, !tbaa !9
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef @.str.97, ptr noundef %158) #3
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = load i32, ptr %6, align 4, !tbaa !9
  %162 = sub nsw i32 %161, 1
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds i8, ptr %160, i64 %163
  %165 = load i8, ptr %164, align 1, !tbaa !19
  %166 = sext i8 %165 to i32
  %167 = icmp ne i32 %166, 10
  br i1 %167, label %168, label %171

168:                                              ; preds = %134
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef @.str.98) #3
  br label %171

171:                                              ; preds = %168, %134
  br label %172

172:                                              ; preds = %171
  %173 = load i32, ptr %7, align 4, !tbaa !9
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %7, align 4, !tbaa !9
  br label %126, !llvm.loop !25

175:                                              ; preds = %126
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %176, ptr noundef @.str.105) #3
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %178, ptr noundef @.str.106) #3
  %180 = load ptr, ptr %3, align 8, !tbaa !5
  %181 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %180, ptr noundef @.str.107) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %182

182:                                              ; preds = %228, %175
  %183 = load i32, ptr %7, align 4, !tbaa !9
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.InitializationData_t, ptr %184, i32 0, i32 3
  %186 = load ptr, ptr %185, align 8, !tbaa !26
  %187 = getelementptr inbounds %struct.bstrList, ptr %186, i32 0, i32 0
  %188 = load i32, ptr %187, align 8, !tbaa !13
  %189 = icmp slt i32 %183, %188
  br i1 %189, label %190, label %231

190:                                              ; preds = %182
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.InitializationData_t, ptr %191, i32 0, i32 3
  %193 = load ptr, ptr %192, align 8, !tbaa !26
  %194 = getelementptr inbounds %struct.bstrList, ptr %193, i32 0, i32 2
  %195 = load ptr, ptr %194, align 8, !tbaa !15
  %196 = load i32, ptr %7, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds ptr, ptr %195, i64 %197
  %199 = load ptr, ptr %198, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.tagbstring, ptr %199, i32 0, i32 2
  %201 = load ptr, ptr %200, align 8, !tbaa !16
  store ptr %201, ptr %5, align 8, !tbaa !5
  %202 = load ptr, ptr %4, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.InitializationData_t, ptr %202, i32 0, i32 3
  %204 = load ptr, ptr %203, align 8, !tbaa !26
  %205 = getelementptr inbounds %struct.bstrList, ptr %204, i32 0, i32 2
  %206 = load ptr, ptr %205, align 8, !tbaa !15
  %207 = load i32, ptr %7, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds ptr, ptr %206, i64 %208
  %210 = load ptr, ptr %209, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.tagbstring, ptr %210, i32 0, i32 1
  %212 = load i32, ptr %211, align 4, !tbaa !18
  store i32 %212, ptr %6, align 4, !tbaa !9
  %213 = load ptr, ptr %3, align 8, !tbaa !5
  %214 = load ptr, ptr %5, align 8, !tbaa !5
  %215 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %213, ptr noundef @.str.97, ptr noundef %214) #3
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  %217 = load i32, ptr %6, align 4, !tbaa !9
  %218 = sub nsw i32 %217, 1
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds i8, ptr %216, i64 %219
  %221 = load i8, ptr %220, align 1, !tbaa !19
  %222 = sext i8 %221 to i32
  %223 = icmp ne i32 %222, 10
  br i1 %223, label %224, label %227

224:                                              ; preds = %190
  %225 = load ptr, ptr %3, align 8, !tbaa !5
  %226 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %225, ptr noundef @.str.98) #3
  br label %227

227:                                              ; preds = %224, %190
  br label %228

228:                                              ; preds = %227
  %229 = load i32, ptr %7, align 4, !tbaa !9
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %7, align 4, !tbaa !9
  br label %182, !llvm.loop !27

231:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret i32 0
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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, !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 0}
!12 = !{!"InitializationData_t", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!13 = !{!14, !10, i64 0}
!14 = !{!"bstrList", !10, i64 0, !10, i64 4, !6, i64 8}
!15 = !{!14, !6, i64 8}
!16 = !{!17, !6, i64 8}
!17 = !{!"tagbstring", !10, i64 0, !10, i64 4, !6, i64 8}
!18 = !{!17, !10, i64 4}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!12, !6, i64 32}
!23 = distinct !{!23, !21}
!24 = !{!12, !6, i64 40}
!25 = distinct !{!25, !21}
!26 = !{!12, !6, i64 24}
!27 = distinct !{!27, !21}


; 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.94 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [6 x i8], align 1

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

; Function Attrs: nofree nounwind uwtable
define dso_local noundef i32 @write_expanded_input_file_to_summary_file(ptr nocapture noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #1 {
  %3 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.94) #2
  %4 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.95) #2
  %5 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.96) #2
  %6 = load ptr, ptr %1, align 8, !tbaa !5
  %7 = load i32, ptr %6, align 8, !tbaa !10
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2, %25
  %indvars.iv = phi i64 [ %indvars.iv.next, %25 ], [ 0, %2 ]
  %9 = phi ptr [ %26, %25 ], [ %6, %2 ]
  %10 = getelementptr inbounds i8, ptr %9, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  %12 = getelementptr inbounds ptr, ptr %11, i64 %indvars.iv
  %13 = load ptr, ptr %12, align 8, !tbaa !14
  %14 = getelementptr inbounds i8, ptr %13, i64 8
  %15 = load ptr, ptr %14, align 8, !tbaa !15
  %16 = getelementptr inbounds i8, ptr %13, i64 4
  %17 = load i32, ptr %16, align 4, !tbaa !17
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.97, ptr noundef %15) #2
  %19 = sext i32 %17 to i64
  %20 = getelementptr i8, ptr %15, i64 %19
  %21 = getelementptr i8, ptr %20, i64 -1
  %22 = load i8, ptr %21, align 1, !tbaa !18
  %.not61 = icmp eq i8 %22, 10
  br i1 %.not61, label %25, label %23

23:                                               ; preds = %.lr.ph
  %24 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.98) #2
  br label %25

25:                                               ; preds = %.lr.ph, %23
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %26 = load ptr, ptr %1, align 8, !tbaa !5
  %27 = load i32, ptr %26, align 8, !tbaa !10
  %28 = sext i32 %27 to i64
  %29 = icmp slt i64 %indvars.iv.next, %28
  br i1 %29, label %.lr.ph, label %._crit_edge, !llvm.loop !19

._crit_edge:                                      ; preds = %25, %2
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.99) #2
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.100) #2
  %32 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.101) #2
  %33 = getelementptr inbounds i8, ptr %1, i64 32
  %34 = load ptr, ptr %33, align 8, !tbaa !21
  %35 = load i32, ptr %34, align 8, !tbaa !10
  %36 = icmp sgt i32 %35, 0
  br i1 %36, label %.lr.ph65, label %._crit_edge66

.lr.ph65:                                         ; preds = %._crit_edge, %53
  %indvars.iv76 = phi i64 [ %indvars.iv.next77, %53 ], [ 0, %._crit_edge ]
  %37 = phi ptr [ %54, %53 ], [ %34, %._crit_edge ]
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  %40 = getelementptr inbounds ptr, ptr %39, i64 %indvars.iv76
  %41 = load ptr, ptr %40, align 8, !tbaa !14
  %42 = getelementptr inbounds i8, ptr %41, i64 8
  %43 = load ptr, ptr %42, align 8, !tbaa !15
  %44 = getelementptr inbounds i8, ptr %41, i64 4
  %45 = load i32, ptr %44, align 4, !tbaa !17
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.97, ptr noundef %43) #2
  %47 = sext i32 %45 to i64
  %48 = getelementptr i8, ptr %43, i64 %47
  %49 = getelementptr i8, ptr %48, i64 -1
  %50 = load i8, ptr %49, align 1, !tbaa !18
  %.not60 = icmp eq i8 %50, 10
  br i1 %.not60, label %53, label %51

51:                                               ; preds = %.lr.ph65
  %52 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.98) #2
  br label %53

53:                                               ; preds = %.lr.ph65, %51
  %indvars.iv.next77 = add nuw nsw i64 %indvars.iv76, 1
  %54 = load ptr, ptr %33, align 8, !tbaa !21
  %55 = load i32, ptr %54, align 8, !tbaa !10
  %56 = sext i32 %55 to i64
  %57 = icmp slt i64 %indvars.iv.next77, %56
  br i1 %57, label %.lr.ph65, label %._crit_edge66, !llvm.loop !22

._crit_edge66:                                    ; preds = %53, %._crit_edge
  %58 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.102) #2
  %59 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.103) #2
  %60 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.104) #2
  %61 = getelementptr inbounds i8, ptr %1, i64 40
  %62 = load ptr, ptr %61, align 8, !tbaa !23
  %63 = load i32, ptr %62, align 8, !tbaa !10
  %64 = icmp sgt i32 %63, 0
  br i1 %64, label %.lr.ph69, label %._crit_edge70

.lr.ph69:                                         ; preds = %._crit_edge66, %81
  %indvars.iv79 = phi i64 [ %indvars.iv.next80, %81 ], [ 0, %._crit_edge66 ]
  %65 = phi ptr [ %82, %81 ], [ %62, %._crit_edge66 ]
  %66 = getelementptr inbounds i8, ptr %65, i64 8
  %67 = load ptr, ptr %66, align 8, !tbaa !13
  %68 = getelementptr inbounds ptr, ptr %67, i64 %indvars.iv79
  %69 = load ptr, ptr %68, align 8, !tbaa !14
  %70 = getelementptr inbounds i8, ptr %69, i64 8
  %71 = load ptr, ptr %70, align 8, !tbaa !15
  %72 = getelementptr inbounds i8, ptr %69, i64 4
  %73 = load i32, ptr %72, align 4, !tbaa !17
  %74 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.97, ptr noundef %71) #2
  %75 = sext i32 %73 to i64
  %76 = getelementptr i8, ptr %71, i64 %75
  %77 = getelementptr i8, ptr %76, i64 -1
  %78 = load i8, ptr %77, align 1, !tbaa !18
  %.not59 = icmp eq i8 %78, 10
  br i1 %.not59, label %81, label %79

79:                                               ; preds = %.lr.ph69
  %80 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.98) #2
  br label %81

81:                                               ; preds = %.lr.ph69, %79
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %82 = load ptr, ptr %61, align 8, !tbaa !23
  %83 = load i32, ptr %82, align 8, !tbaa !10
  %84 = sext i32 %83 to i64
  %85 = icmp slt i64 %indvars.iv.next80, %84
  br i1 %85, label %.lr.ph69, label %._crit_edge70, !llvm.loop !24

._crit_edge70:                                    ; preds = %81, %._crit_edge66
  %86 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.105) #2
  %87 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.106) #2
  %88 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.107) #2
  %89 = getelementptr inbounds i8, ptr %1, i64 24
  %90 = load ptr, ptr %89, align 8, !tbaa !25
  %91 = load i32, ptr %90, align 8, !tbaa !10
  %92 = icmp sgt i32 %91, 0
  br i1 %92, label %.lr.ph73, label %._crit_edge74

.lr.ph73:                                         ; preds = %._crit_edge70, %109
  %indvars.iv82 = phi i64 [ %indvars.iv.next83, %109 ], [ 0, %._crit_edge70 ]
  %93 = phi ptr [ %110, %109 ], [ %90, %._crit_edge70 ]
  %94 = getelementptr inbounds i8, ptr %93, i64 8
  %95 = load ptr, ptr %94, align 8, !tbaa !13
  %96 = getelementptr inbounds ptr, ptr %95, i64 %indvars.iv82
  %97 = load ptr, ptr %96, align 8, !tbaa !14
  %98 = getelementptr inbounds i8, ptr %97, i64 8
  %99 = load ptr, ptr %98, align 8, !tbaa !15
  %100 = getelementptr inbounds i8, ptr %97, i64 4
  %101 = load i32, ptr %100, align 4, !tbaa !17
  %102 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.97, ptr noundef %99) #2
  %103 = sext i32 %101 to i64
  %104 = getelementptr i8, ptr %99, i64 %103
  %105 = getelementptr i8, ptr %104, i64 -1
  %106 = load i8, ptr %105, align 1, !tbaa !18
  %.not = icmp eq i8 %106, 10
  br i1 %.not, label %109, label %107

107:                                              ; preds = %.lr.ph73
  %108 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %0, ptr noundef nonnull @.str.98) #2
  br label %109

109:                                              ; preds = %.lr.ph73, %107
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %110 = load ptr, ptr %89, align 8, !tbaa !25
  %111 = load i32, ptr %110, align 8, !tbaa !10
  %112 = sext i32 %111 to i64
  %113 = icmp slt i64 %indvars.iv.next83, %112
  br i1 %113, label %.lr.ph73, label %._crit_edge74, !llvm.loop !26

._crit_edge74:                                    ; preds = %109, %._crit_edge70
  ret i32 0
}

attributes #0 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nofree 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 }

!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 0}
!6 = !{!"InitializationData_t", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"bstrList", !12, i64 0, !12, i64 4, !7, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!11, !7, i64 8}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !7, i64 8}
!16 = !{!"tagbstring", !12, i64 0, !12, i64 4, !7, i64 8}
!17 = !{!16, !12, i64 4}
!18 = !{!8, !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!6, !7, i64 32}
!22 = distinct !{!22, !20}
!23 = !{!6, !7, i64 40}
!24 = distinct !{!24, !20}
!25 = !{!6, !7, i64 24}
!26 = distinct !{!26, !20}


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