; LLVM IR from Syrocco/Graphical-EDMD :: parser (add_doubleatomprop)

; 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.Dump = type { ptr, ptr, i8, i32, ptr, i32, i32, i64, ptr, i32, [10 x [256 x i8]], [11 x ptr] }

@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [8 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 @printf(ptr noundef, ...) #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

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

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #4

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

; Function Attrs: nounwind uwtable
declare dso_local void @find_sections(ptr noundef) #6

; Function Attrs: nounwind uwtable
declare dso_local i64 @strlcpy(ptr noundef, ptr noundef, i64 noundef) #6

; Function Attrs: nounwind uwtable
declare dso_local i32 @sec_index(ptr noundef, ptr noundef) #6

; Function Attrs: nounwind
declare ptr @strtok(ptr noundef, ptr noundef) #5

; Function Attrs: nounwind uwtable
declare dso_local i32 @get_natoms(ptr noundef) #6

; Function Attrs: nounwind uwtable
declare dso_local i32 @atomprop_index(ptr noundef, ptr noundef) #6

; Function Attrs: nounwind uwtable
declare dso_local void @cp_framebuff(ptr noundef, ptr noundef) #6

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #5

; Function Attrs: nounwind uwtable
define dso_local void @add_doubleatomprop(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #6 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.Dump, ptr %21, i32 0, i32 7
  %23 = load i64, ptr %22, align 8, !tbaa !9
  %24 = icmp eq i64 %23, 0
  br i1 %24, label %25, label %28

25:                                               ; preds = %4
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  call void @cp_framebuff(ptr noundef %26, ptr noundef %27)
  br label %28

28:                                               ; preds = %25, %4
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = call i32 @atomprop_index(ptr noundef %29, ptr noundef %30)
  %32 = icmp sge i32 %31, 0
  br i1 %32, label %33, label %42

33:                                               ; preds = %28
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.Dump, ptr %35, i32 0, i32 6
  %37 = load i32, ptr %36, align 4, !tbaa !13
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.Dump, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !14
  %41 = call i32 (ptr, ...) @printf(ptr noundef @.str.52, ptr noundef %34, i32 noundef %37, ptr noundef %40)
  br label %42

42:                                               ; preds = %33, %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = call i32 @get_natoms(ptr noundef %43)
  store i32 %44, ptr %9, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = call i32 @sec_index(ptr noundef @.str.32, ptr noundef %45)
  store i32 %46, ptr %10, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.Dump, ptr %47, i32 0, i32 11
  %49 = load i32, ptr %10, align 4, !tbaa !15
  %50 = add nsw i32 %49, 1
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [11 x ptr], ptr %48, i64 0, i64 %51
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.Dump, ptr %54, i32 0, i32 11
  %56 = load i32, ptr %10, align 4, !tbaa !15
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [11 x ptr], ptr %55, i64 0, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = ptrtoint ptr %53 to i64
  %61 = ptrtoint ptr %59 to i64
  %62 = sub i64 %60, %61
  %63 = trunc i64 %62 to i32
  store i32 %63, ptr %11, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %64 = load i32, ptr %11, align 4, !tbaa !15
  %65 = mul nsw i32 2, %64
  store i32 %65, ptr %12, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %66 = load i32, ptr %12, align 4, !tbaa !15
  %67 = add nsw i32 %66, 1
  %68 = sext i32 %67 to i64
  %69 = mul i64 %68, 1
  %70 = call noalias ptr @malloc(i64 noundef %69) #8
  store ptr %70, ptr %13, align 8, !tbaa !5
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = icmp eq ptr %71, null
  br i1 %72, label %73, label %77

73:                                               ; preds = %42
  %74 = load i32, ptr %12, align 4, !tbaa !15
  %75 = add nsw i32 %74, 1
  %76 = call i32 (ptr, ...) @printf(ptr noundef @.str.53, i32 noundef %75)
  call void @exit(i32 noundef 1) #9
  unreachable

77:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.Dump, ptr %78, i32 0, i32 11
  %80 = load i32, ptr %10, align 4, !tbaa !15
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [11 x ptr], ptr %79, i64 0, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  %84 = call ptr @strtok(ptr noundef %83, ptr noundef @.str.19) #7
  store ptr %84, ptr %16, align 8, !tbaa !5
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = load i32, ptr %12, align 4, !tbaa !15
  %87 = add nsw i32 %86, 1
  %88 = sext i32 %87 to i64
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %85, i64 noundef %88, ptr noundef @.str.50, ptr noundef %89, ptr noundef %90) #7
  store i32 %91, ptr %15, align 4, !tbaa !15
  br label %92

92:                                               ; preds = %113, %77
  %93 = load i32, ptr %15, align 4, !tbaa !15
  %94 = load i32, ptr %14, align 4, !tbaa !15
  %95 = add nsw i32 %93, %94
  %96 = load i32, ptr %12, align 4, !tbaa !15
  %97 = icmp sge i32 %95, %96
  br i1 %97, label %98, label %124

98:                                               ; preds = %92
  %99 = load i32, ptr %12, align 4, !tbaa !15
  %100 = mul nsw i32 %99, 2
  store i32 %100, ptr %12, align 4, !tbaa !15
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  %102 = load i32, ptr %12, align 4, !tbaa !15
  %103 = add nsw i32 %102, 1
  %104 = sext i32 %103 to i64
  %105 = mul i64 %104, 1
  %106 = call ptr @realloc(ptr noundef %101, i64 noundef %105) #10
  store ptr %106, ptr %13, align 8, !tbaa !5
  %107 = load ptr, ptr %13, align 8, !tbaa !5
  %108 = icmp eq ptr %107, null
  br i1 %108, label %109, label %113

109:                                              ; preds = %98
  %110 = load i32, ptr %12, align 4, !tbaa !15
  %111 = add nsw i32 %110, 1
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.53, i32 noundef %111)
  call void @exit(i32 noundef 1) #9
  unreachable

113:                                              ; preds = %98
  %114 = load ptr, ptr %13, align 8, !tbaa !5
  %115 = load i32, ptr %14, align 4, !tbaa !15
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds i8, ptr %114, i64 %116
  %118 = load i32, ptr %12, align 4, !tbaa !15
  %119 = add nsw i32 %118, 1
  %120 = sext i32 %119 to i64
  %121 = load ptr, ptr %16, align 8, !tbaa !5
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %117, i64 noundef %120, ptr noundef @.str.50, ptr noundef %121, ptr noundef %122) #7
  store i32 %123, ptr %15, align 4, !tbaa !15
  br label %92, !llvm.loop !16

124:                                              ; preds = %92
  %125 = load i32, ptr %15, align 4, !tbaa !15
  %126 = load i32, ptr %14, align 4, !tbaa !15
  %127 = add nsw i32 %126, %125
  store i32 %127, ptr %14, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !15
  br label %128

128:                                              ; preds = %193, %124
  %129 = load i32, ptr %17, align 4, !tbaa !15
  %130 = load i32, ptr %9, align 4, !tbaa !15
  %131 = icmp slt i32 %129, %130
  br i1 %131, label %133, label %132

132:                                              ; preds = %128
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %196

133:                                              ; preds = %128
  %134 = call ptr @strtok(ptr noundef null, ptr noundef @.str.19) #7
  store ptr %134, ptr %16, align 8, !tbaa !5
  %135 = load ptr, ptr %13, align 8, !tbaa !5
  %136 = load i32, ptr %14, align 4, !tbaa !15
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds i8, ptr %135, i64 %137
  %139 = load i32, ptr %12, align 4, !tbaa !15
  %140 = load i32, ptr %14, align 4, !tbaa !15
  %141 = sub nsw i32 %139, %140
  %142 = add nsw i32 %141, 1
  %143 = sext i32 %142 to i64
  %144 = load ptr, ptr %16, align 8, !tbaa !5
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = load i32, ptr %17, align 4, !tbaa !15
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds double, ptr %145, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !18
  %150 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %138, i64 noundef %143, ptr noundef @.str.54, ptr noundef %144, double noundef %149) #7
  store i32 %150, ptr %15, align 4, !tbaa !15
  br label %151

151:                                              ; preds = %172, %133
  %152 = load i32, ptr %15, align 4, !tbaa !15
  %153 = load i32, ptr %14, align 4, !tbaa !15
  %154 = add nsw i32 %152, %153
  %155 = load i32, ptr %12, align 4, !tbaa !15
  %156 = icmp sge i32 %154, %155
  br i1 %156, label %157, label %189

157:                                              ; preds = %151
  %158 = load i32, ptr %12, align 4, !tbaa !15
  %159 = mul nsw i32 %158, 2
  store i32 %159, ptr %12, align 4, !tbaa !15
  %160 = load ptr, ptr %13, align 8, !tbaa !5
  %161 = load i32, ptr %12, align 4, !tbaa !15
  %162 = add nsw i32 %161, 1
  %163 = sext i32 %162 to i64
  %164 = mul i64 %163, 1
  %165 = call ptr @realloc(ptr noundef %160, i64 noundef %164) #10
  store ptr %165, ptr %13, align 8, !tbaa !5
  %166 = load ptr, ptr %13, align 8, !tbaa !5
  %167 = icmp eq ptr %166, null
  br i1 %167, label %168, label %172

168:                                              ; preds = %157
  %169 = load i32, ptr %12, align 4, !tbaa !15
  %170 = add nsw i32 %169, 1
  %171 = call i32 (ptr, ...) @printf(ptr noundef @.str.53, i32 noundef %170)
  call void @exit(i32 noundef 1) #9
  unreachable

172:                                              ; preds = %157
  %173 = load ptr, ptr %13, align 8, !tbaa !5
  %174 = load i32, ptr %14, align 4, !tbaa !15
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds i8, ptr %173, i64 %175
  %177 = load i32, ptr %12, align 4, !tbaa !15
  %178 = load i32, ptr %14, align 4, !tbaa !15
  %179 = sub nsw i32 %177, %178
  %180 = add nsw i32 %179, 1
  %181 = sext i32 %180 to i64
  %182 = load ptr, ptr %16, align 8, !tbaa !5
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  %184 = load i32, ptr %17, align 4, !tbaa !15
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds double, ptr %183, i64 %185
  %187 = load double, ptr %186, align 8, !tbaa !18
  %188 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %176, i64 noundef %181, ptr noundef @.str.54, ptr noundef %182, double noundef %187) #7
  store i32 %188, ptr %15, align 4, !tbaa !15
  br label %151, !llvm.loop !20

189:                                              ; preds = %151
  %190 = load i32, ptr %15, align 4, !tbaa !15
  %191 = load i32, ptr %14, align 4, !tbaa !15
  %192 = add nsw i32 %191, %190
  store i32 %192, ptr %14, align 4, !tbaa !15
  br label %193

193:                                              ; preds = %189
  %194 = load i32, ptr %17, align 4, !tbaa !15
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %17, align 4, !tbaa !15
  br label %128, !llvm.loop !21

196:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %197 = load ptr, ptr %7, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.Dump, ptr %197, i32 0, i32 11
  %199 = load i32, ptr %10, align 4, !tbaa !15
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [11 x ptr], ptr %198, i64 0, i64 %200
  %202 = load ptr, ptr %201, align 8, !tbaa !5
  %203 = load ptr, ptr %7, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.Dump, ptr %203, i32 0, i32 11
  %205 = getelementptr inbounds [11 x ptr], ptr %204, i64 0, i64 0
  %206 = load ptr, ptr %205, align 8, !tbaa !5
  %207 = ptrtoint ptr %202 to i64
  %208 = ptrtoint ptr %206 to i64
  %209 = sub i64 %207, %208
  %210 = trunc i64 %209 to i32
  store i32 %210, ptr %18, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.Dump, ptr %211, i32 0, i32 11
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.Dump, ptr %213, i32 0, i32 9
  %215 = load i32, ptr %214, align 8, !tbaa !22
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [11 x ptr], ptr %212, i64 0, i64 %216
  %218 = load ptr, ptr %217, align 8, !tbaa !5
  %219 = load ptr, ptr %7, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.Dump, ptr %219, i32 0, i32 11
  %221 = load i32, ptr %10, align 4, !tbaa !15
  %222 = add nsw i32 %221, 1
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [11 x ptr], ptr %220, i64 0, i64 %223
  %225 = load ptr, ptr %224, align 8, !tbaa !5
  %226 = ptrtoint ptr %218 to i64
  %227 = ptrtoint ptr %225 to i64
  %228 = sub i64 %226, %227
  %229 = trunc i64 %228 to i32
  store i32 %229, ptr %19, align 4, !tbaa !15
  %230 = load i32, ptr %18, align 4, !tbaa !15
  %231 = load i32, ptr %14, align 4, !tbaa !15
  %232 = add nsw i32 %230, %231
  %233 = load i32, ptr %19, align 4, !tbaa !15
  %234 = add nsw i32 %232, %233
  %235 = sext i32 %234 to i64
  %236 = load ptr, ptr %7, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.Dump, ptr %236, i32 0, i32 7
  store i64 %235, ptr %237, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %238 = load ptr, ptr %7, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.Dump, ptr %238, i32 0, i32 7
  %240 = load i64, ptr %239, align 8, !tbaa !9
  %241 = add nsw i64 %240, 1
  %242 = mul i64 %241, 1
  %243 = call noalias ptr @malloc(i64 noundef %242) #8
  store ptr %243, ptr %20, align 8, !tbaa !5
  %244 = load ptr, ptr %20, align 8, !tbaa !5
  %245 = load ptr, ptr %7, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.Dump, ptr %245, i32 0, i32 8
  %247 = load ptr, ptr %246, align 8, !tbaa !23
  %248 = load i32, ptr %18, align 4, !tbaa !15
  %249 = add nsw i32 %248, 1
  %250 = sext i32 %249 to i64
  %251 = call i64 @strlcpy(ptr noundef %244, ptr noundef %247, i64 noundef %250)
  %252 = load ptr, ptr %20, align 8, !tbaa !5
  %253 = load i32, ptr %18, align 4, !tbaa !15
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds i8, ptr %252, i64 %254
  %256 = load ptr, ptr %13, align 8, !tbaa !5
  %257 = load i32, ptr %14, align 4, !tbaa !15
  %258 = add nsw i32 %257, 1
  %259 = sext i32 %258 to i64
  %260 = call i64 @strlcpy(ptr noundef %255, ptr noundef %256, i64 noundef %259)
  %261 = load ptr, ptr %20, align 8, !tbaa !5
  %262 = load i32, ptr %18, align 4, !tbaa !15
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds i8, ptr %261, i64 %263
  %265 = load i32, ptr %14, align 4, !tbaa !15
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds i8, ptr %264, i64 %266
  %268 = load ptr, ptr %7, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.Dump, ptr %268, i32 0, i32 11
  %270 = load i32, ptr %10, align 4, !tbaa !15
  %271 = add nsw i32 %270, 1
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [11 x ptr], ptr %269, i64 0, i64 %272
  %274 = load ptr, ptr %273, align 8, !tbaa !5
  %275 = load i32, ptr %19, align 4, !tbaa !15
  %276 = add nsw i32 %275, 1
  %277 = sext i32 %276 to i64
  %278 = call i64 @strlcpy(ptr noundef %267, ptr noundef %274, i64 noundef %277)
  %279 = load ptr, ptr %13, align 8, !tbaa !5
  call void @free(ptr noundef %279) #7
  %280 = load ptr, ptr %7, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.Dump, ptr %280, i32 0, i32 8
  %282 = load ptr, ptr %281, align 8, !tbaa !23
  call void @free(ptr noundef %282) #7
  %283 = load ptr, ptr %20, align 8, !tbaa !5
  %284 = load ptr, ptr %7, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.Dump, ptr %284, i32 0, i32 8
  store ptr %283, ptr %285, align 8, !tbaa !23
  %286 = load ptr, ptr %7, align 8, !tbaa !5
  call void @find_sections(ptr noundef %286)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  ret void
}

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

!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, !12, i64 40}
!10 = !{!"Dump", !6, i64 0, !6, i64 8, !7, i64 16, !11, i64 20, !6, i64 24, !11, i64 32, !11, i64 36, !12, i64 40, !6, i64 48, !11, i64 56, !7, i64 60, !7, i64 2624}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !11, i64 36}
!14 = !{!10, !6, i64 0}
!15 = !{!11, !11, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = !{!10, !11, i64 56}
!23 = !{!10, !6, i64 48}


; 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.19 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [8 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare dso_local void @find_sections(ptr noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind uwtable
declare dso_local i64 @strlcpy(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #6

; Function Attrs: nounwind uwtable
declare dso_local i32 @sec_index(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn
declare ptr @strtok(ptr noundef, ptr nocapture noundef readonly) local_unnamed_addr #7

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @atomprop_index(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
declare dso_local void @cp_framebuff(ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @add_doubleatomprop(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #5 {
  %5 = getelementptr inbounds i8, ptr %2, i64 40
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %7 = icmp eq i64 %6, 0
  br i1 %7, label %8, label %9

8:                                                ; preds = %4
  tail call void @cp_framebuff(ptr noundef %3, ptr noundef nonnull %2)
  br label %9

9:                                                ; preds = %8, %4
  %10 = tail call i32 @atomprop_index(ptr noundef %1, ptr noundef nonnull %2)
  %11 = icmp sgt i32 %10, -1
  br i1 %11, label %12, label %17

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %2, i64 36
  %14 = load i32, ptr %13, align 4, !tbaa !12
  %15 = load ptr, ptr %2, align 8, !tbaa !13
  %16 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.52, ptr noundef %1, i32 noundef %14, ptr noundef %15)
  br label %17

17:                                               ; preds = %12, %9
  %18 = tail call i32 @get_natoms(ptr noundef nonnull %2)
  %19 = tail call i32 @sec_index(ptr noundef nonnull @.str.32, ptr noundef nonnull %2)
  %20 = getelementptr inbounds i8, ptr %2, i64 2624
  %21 = add nsw i32 %19, 1
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [11 x ptr], ptr %20, i64 0, i64 %22
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  %25 = sext i32 %19 to i64
  %26 = getelementptr inbounds [11 x ptr], ptr %20, i64 0, i64 %25
  %27 = load ptr, ptr %26, align 8, !tbaa !14
  %28 = ptrtoint ptr %24 to i64
  %29 = ptrtoint ptr %27 to i64
  %30 = sub i64 %28, %29
  %31 = trunc i64 %30 to i32
  %32 = shl nsw i32 %31, 1
  %33 = or disjoint i32 %32, 1
  %34 = sext i32 %33 to i64
  %35 = tail call noalias ptr @malloc(i64 noundef %34) #8
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %39

37:                                               ; preds = %17
  %38 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, i32 noundef %33)
  tail call void @exit(i32 noundef 1) #9
  unreachable

39:                                               ; preds = %17
  %40 = tail call ptr @strtok(ptr noundef %27, ptr noundef nonnull @.str.19) #10
  %41 = tail call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %35, i64 noundef %34, ptr noundef nonnull @.str.50, ptr noundef %40, ptr noundef %1) #10
  %.not119 = icmp slt i32 %41, %32
  br i1 %.not119, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %50, %39
  %.0100.lcssa = phi i32 [ %41, %39 ], [ %51, %50 ]
  %.095.lcssa = phi ptr [ %35, %39 ], [ %46, %50 ]
  %.0.lcssa = phi i32 [ %32, %39 ], [ %43, %50 ]
  %42 = icmp sgt i32 %18, 0
  br i1 %42, label %.lr.ph137.preheader, label %._crit_edge138

.lr.ph137.preheader:                              ; preds = %.preheader
  %wide.trip.count = zext nneg i32 %18 to i64
  br label %.lr.ph137

.lr.ph:                                           ; preds = %39, %50
  %.0121 = phi i32 [ %43, %50 ], [ %32, %39 ]
  %.095120 = phi ptr [ %46, %50 ], [ %35, %39 ]
  %43 = shl nsw i32 %.0121, 1
  %44 = or disjoint i32 %43, 1
  %45 = sext i32 %44 to i64
  %46 = tail call ptr @realloc(ptr noundef nonnull %.095120, i64 noundef %45) #11
  %47 = icmp eq ptr %46, null
  br i1 %47, label %48, label %50

48:                                               ; preds = %.lr.ph
  %49 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, i32 noundef %44)
  tail call void @exit(i32 noundef 1) #9
  unreachable

50:                                               ; preds = %.lr.ph
  %51 = tail call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %46, i64 noundef %45, ptr noundef nonnull @.str.50, ptr noundef %40, ptr noundef %1) #10
  %.not = icmp slt i32 %51, %43
  br i1 %.not, label %.preheader, label %.lr.ph, !llvm.loop !15

._crit_edge138:                                   ; preds = %._crit_edge, %.preheader
  %.098.lcssa = phi i32 [ %.0100.lcssa, %.preheader ], [ %.lcssa, %._crit_edge ]
  %.196.lcssa = phi ptr [ %.095.lcssa, %.preheader ], [ %.297.lcssa, %._crit_edge ]
  %52 = load ptr, ptr %26, align 8, !tbaa !14
  %53 = load ptr, ptr %20, align 8, !tbaa !14
  %54 = ptrtoint ptr %52 to i64
  %55 = ptrtoint ptr %53 to i64
  %56 = sub i64 %54, %55
  %57 = trunc i64 %56 to i32
  %58 = getelementptr inbounds i8, ptr %2, i64 56
  %59 = load i32, ptr %58, align 8, !tbaa !17
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [11 x ptr], ptr %20, i64 0, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !14
  %63 = load ptr, ptr %23, align 8, !tbaa !14
  %64 = ptrtoint ptr %62 to i64
  %65 = ptrtoint ptr %63 to i64
  %66 = sub i64 %64, %65
  %67 = trunc i64 %66 to i32
  %68 = add nsw i32 %.098.lcssa, %57
  %69 = add nsw i32 %68, %67
  %70 = sext i32 %69 to i64
  store i64 %70, ptr %5, align 8, !tbaa !5
  %71 = add nsw i64 %70, 1
  %72 = tail call noalias ptr @malloc(i64 noundef %71) #8
  %73 = getelementptr inbounds i8, ptr %2, i64 48
  %74 = load ptr, ptr %73, align 8, !tbaa !18
  %75 = shl i64 %56, 32
  %sext = add i64 %75, 4294967296
  %76 = ashr exact i64 %sext, 32
  %77 = tail call i64 @strlcpy(ptr noundef %72, ptr noundef nonnull dereferenceable(1) %74, i64 noundef %76)
  %78 = ashr exact i64 %75, 32
  %79 = getelementptr inbounds i8, ptr %72, i64 %78
  %80 = add nsw i32 %.098.lcssa, 1
  %81 = sext i32 %80 to i64
  %82 = tail call i64 @strlcpy(ptr noundef %79, ptr noundef nonnull dereferenceable(1) %.196.lcssa, i64 noundef %81)
  %83 = sext i32 %.098.lcssa to i64
  %84 = getelementptr inbounds i8, ptr %79, i64 %83
  %85 = load ptr, ptr %23, align 8, !tbaa !14
  %86 = shl i64 %66, 32
  %sext107 = add i64 %86, 4294967296
  %87 = ashr exact i64 %sext107, 32
  %88 = tail call i64 @strlcpy(ptr noundef %84, ptr noundef nonnull dereferenceable(1) %85, i64 noundef %87)
  tail call void @free(ptr noundef %.196.lcssa) #10
  %89 = load ptr, ptr %73, align 8, !tbaa !18
  tail call void @free(ptr noundef %89) #10
  store ptr %72, ptr %73, align 8, !tbaa !18
  tail call void @find_sections(ptr noundef %2)
  ret void

.lr.ph137:                                        ; preds = %.lr.ph137.preheader, %._crit_edge
  %indvars.iv = phi i64 [ 0, %.lr.ph137.preheader ], [ %indvars.iv.next, %._crit_edge ]
  %.1135 = phi i32 [ %.0.lcssa, %.lr.ph137.preheader ], [ %.2.lcssa, %._crit_edge ]
  %.196134 = phi ptr [ %.095.lcssa, %.lr.ph137.preheader ], [ %.297.lcssa, %._crit_edge ]
  %.098133 = phi i32 [ %.0100.lcssa, %.lr.ph137.preheader ], [ %.lcssa, %._crit_edge ]
  %90 = tail call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.19) #10
  %91 = sext i32 %.098133 to i64
  %92 = getelementptr inbounds i8, ptr %.196134, i64 %91
  %reass.sub = sub i32 %.1135, %.098133
  %93 = add i32 %reass.sub, 1
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds double, ptr %0, i64 %indvars.iv
  %96 = load double, ptr %95, align 8, !tbaa !19
  %97 = tail call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %92, i64 noundef %94, ptr noundef nonnull @.str.54, ptr noundef %90, double noundef %96) #10
  %98 = add nsw i32 %97, %.098133
  %.not108124 = icmp slt i32 %98, %.1135
  br i1 %.not108124, label %._crit_edge, label %.lr.ph127

.lr.ph127:                                        ; preds = %.lr.ph137, %106
  %.2126 = phi i32 [ %99, %106 ], [ %.1135, %.lr.ph137 ]
  %.297125 = phi ptr [ %102, %106 ], [ %.196134, %.lr.ph137 ]
  %99 = shl nsw i32 %.2126, 1
  %100 = or disjoint i32 %99, 1
  %101 = sext i32 %100 to i64
  %102 = tail call ptr @realloc(ptr noundef %.297125, i64 noundef %101) #11
  %103 = icmp eq ptr %102, null
  br i1 %103, label %104, label %106

104:                                              ; preds = %.lr.ph127
  %105 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, i32 noundef %100)
  tail call void @exit(i32 noundef 1) #9
  unreachable

106:                                              ; preds = %.lr.ph127
  %107 = getelementptr inbounds i8, ptr %102, i64 %91
  %reass.sub141 = sub i32 %99, %.098133
  %108 = add i32 %reass.sub141, 1
  %109 = sext i32 %108 to i64
  %110 = load double, ptr %95, align 8, !tbaa !19
  %111 = tail call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull %107, i64 noundef %109, ptr noundef nonnull @.str.54, ptr noundef %90, double noundef %110) #10
  %112 = add nsw i32 %111, %.098133
  %.not108 = icmp slt i32 %112, %99
  br i1 %.not108, label %._crit_edge, label %.lr.ph127, !llvm.loop !21

._crit_edge:                                      ; preds = %106, %.lr.ph137
  %.297.lcssa = phi ptr [ %.196134, %.lr.ph137 ], [ %102, %106 ]
  %.2.lcssa = phi i32 [ %.1135, %.lr.ph137 ], [ %99, %106 ]
  %.lcssa = phi i32 [ %98, %.lr.ph137 ], [ %112, %106 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge138, label %.lr.ph137, !llvm.loop !22
}

attributes #0 = { 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 #1 = { 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 #2 = { noreturn 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 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) 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 #4 = { 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 #5 = { 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 #6 = { 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 #7 = { mustprogress nofree nounwind willreturn "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 #8 = { nounwind allocsize(0) }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind }
attributes #11 = { nounwind allocsize(1) }

!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 40}
!6 = !{!"Dump", !7, i64 0, !7, i64 8, !8, i64 16, !10, i64 20, !7, i64 24, !10, i64 32, !10, i64 36, !11, i64 40, !7, i64 48, !10, i64 56, !8, i64 60, !8, i64 2624}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!6, !10, i64 36}
!13 = !{!6, !7, i64 0}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!6, !10, i64 56}
!18 = !{!6, !7, i64 48}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !8, i64 0}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}


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