; LLVM IR from Discngine/fpocket :: src (descriptors)

; 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.s_desc = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, i32, [20 x i32], i32, i32, i32, float, float, i32, i32, i32, i32, i32, [255 x i8], [255 x i8], [8 x i8] }
%struct.s_atm = type { i32, float, float, float, float, float, float, float, [5 x i8], [7 x i8], [16 x i8], [16 x i8], [3 x i8], [8 x i8], i32, i32, i32, i32, i32, i32, i32, float, float, float, float, float, float, float, i8, i8, float, float, float, float, i16, ptr, i32 }

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

declare ptr @my_malloc(i64 noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @set_atom_based_descriptors(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  %20 = load i32, ptr %7, align 4, !tbaa !9
  %21 = zext i32 %20 to i64
  %22 = call ptr @llvm.stacksave.p0()
  store ptr %22, ptr %15, align 8
  %23 = alloca i32, i64 %21, align 16
  store i64 %21, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %24 = call ptr @my_malloc(i64 noundef 255)
  store ptr %24, ptr %19, align 8, !tbaa !5
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %264

27:                                               ; preds = %5
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = icmp sgt i32 %28, 1
  br i1 %29, label %30, label %264

30:                                               ; preds = %27
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds ptr, ptr %31, i64 0
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  store ptr %33, ptr %12, align 8, !tbaa !5
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.s_desc, ptr %34, i32 0, i32 34
  store i32 0, ptr %35, align 4, !tbaa !11
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.s_atm, ptr %36, i32 0, i32 13
  %38 = getelementptr inbounds [8 x i8], ptr %37, i64 0, i64 0
  %39 = call i32 @element_in_std_res(ptr noundef %38)
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %44

41:                                               ; preds = %30
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.s_desc, ptr %42, i32 0, i32 35
  store i32 0, ptr %43, align 4, !tbaa !14
  br label %64

44:                                               ; preds = %30
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.s_atm, ptr %45, i32 0, i32 13
  %47 = getelementptr inbounds [8 x i8], ptr %46, i64 0, i64 0
  %48 = call i32 @element_in_nucl_acid(ptr noundef %47)
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %53

50:                                               ; preds = %44
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.s_desc, ptr %51, i32 0, i32 35
  store i32 1, ptr %52, align 4, !tbaa !14
  br label %63

53:                                               ; preds = %44
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.s_atm, ptr %54, i32 0, i32 13
  %56 = getelementptr inbounds [8 x i8], ptr %55, i64 0, i64 0
  %57 = call i32 @element_in_kept_res(ptr noundef %56)
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %62

59:                                               ; preds = %53
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.s_desc, ptr %60, i32 0, i32 35
  store i32 2, ptr %61, align 4, !tbaa !14
  br label %62

62:                                               ; preds = %59, %53
  br label %63

63:                                               ; preds = %62, %50
  br label %64

64:                                               ; preds = %63, %41
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.s_desc, ptr %65, i32 0, i32 39
  %67 = getelementptr inbounds [255 x i8], ptr %66, i64 0, i64 0
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.s_atm, ptr %68, i32 0, i32 10
  %70 = getelementptr inbounds [16 x i8], ptr %69, i64 0, i64 0
  %71 = call ptr @strcpy(ptr noundef %67, ptr noundef %70) #6
  %72 = load ptr, ptr %19, align 8, !tbaa !5
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.s_atm, ptr %73, i32 0, i32 10
  %75 = getelementptr inbounds [16 x i8], ptr %74, i64 0, i64 0
  %76 = call ptr @strcpy(ptr noundef %72, ptr noundef %75) #6
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = load i32, ptr %10, align 4, !tbaa !9
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.s_atm, ptr %79, i32 0, i32 10
  %81 = getelementptr inbounds [16 x i8], ptr %80, i64 0, i64 0
  %82 = call i32 @countResidues(ptr noundef %77, i32 noundef %78, ptr noundef %81)
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.s_desc, ptr %83, i32 0, i32 37
  store i32 %82, ptr %84, align 4, !tbaa !15
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %209, %64
  %86 = load i32, ptr %13, align 4, !tbaa !9
  %87 = load i32, ptr %7, align 4, !tbaa !9
  %88 = icmp slt i32 %86, %87
  br i1 %88, label %89, label %212

89:                                               ; preds = %85
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = load i32, ptr %13, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds ptr, ptr %90, i64 %92
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  store ptr %94, ptr %11, align 8, !tbaa !5
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = icmp ne ptr %95, %96
  br i1 %97, label %98, label %168

98:                                               ; preds = %89
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.s_atm, ptr %99, i32 0, i32 10
  %101 = getelementptr inbounds [16 x i8], ptr %100, i64 0, i64 0
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.s_atm, ptr %102, i32 0, i32 10
  %104 = getelementptr inbounds [16 x i8], ptr %103, i64 0, i64 0
  %105 = call i32 @strcmp(ptr noundef %101, ptr noundef %104) #7
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %134

107:                                              ; preds = %98
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.s_desc, ptr %108, i32 0, i32 34
  %110 = load i32, ptr %109, align 4, !tbaa !11
  %111 = icmp slt i32 %110, 1
  br i1 %111, label %112, label %134

112:                                              ; preds = %107
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.s_desc, ptr %113, i32 0, i32 34
  store i32 1, ptr %114, align 4, !tbaa !11
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.s_desc, ptr %115, i32 0, i32 38
  %117 = load i32, ptr %116, align 4, !tbaa !16
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %133, label %119

119:                                              ; preds = %112
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = load i32, ptr %10, align 4, !tbaa !9
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.s_atm, ptr %122, i32 0, i32 10
  %124 = getelementptr inbounds [16 x i8], ptr %123, i64 0, i64 0
  %125 = call i32 @countResidues(ptr noundef %120, i32 noundef %121, ptr noundef %124)
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.s_desc, ptr %126, i32 0, i32 38
  store i32 %125, ptr %127, align 4, !tbaa !16
  %128 = load ptr, ptr %19, align 8, !tbaa !5
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.s_atm, ptr %129, i32 0, i32 10
  %131 = getelementptr inbounds [16 x i8], ptr %130, i64 0, i64 0
  %132 = call ptr @strcpy(ptr noundef %128, ptr noundef %131) #6
  br label %133

133:                                              ; preds = %119, %112
  br label %134

134:                                              ; preds = %133, %107, %98
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.s_atm, ptr %135, i32 0, i32 13
  %137 = getelementptr inbounds [8 x i8], ptr %136, i64 0, i64 0
  %138 = call i32 @element_in_std_res(ptr noundef %137)
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %141

140:                                              ; preds = %134
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %157

141:                                              ; preds = %134
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.s_atm, ptr %142, i32 0, i32 13
  %144 = getelementptr inbounds [8 x i8], ptr %143, i64 0, i64 0
  %145 = call i32 @element_in_nucl_acid(ptr noundef %144)
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %148

147:                                              ; preds = %141
  store i32 1, ptr %14, align 4, !tbaa !9
  br label %156

148:                                              ; preds = %141
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.s_atm, ptr %149, i32 0, i32 13
  %151 = getelementptr inbounds [8 x i8], ptr %150, i64 0, i64 0
  %152 = call i32 @element_in_kept_res(ptr noundef %151)
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %155

154:                                              ; preds = %148
  store i32 2, ptr %14, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %154, %148
  br label %156

156:                                              ; preds = %155, %147
  br label %157

157:                                              ; preds = %156, %140
  %158 = load i32, ptr %14, align 4, !tbaa !9
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.s_desc, ptr %159, i32 0, i32 35
  %161 = load i32, ptr %160, align 4, !tbaa !14
  %162 = icmp ne i32 %158, %161
  br i1 %162, label %163, label %167

163:                                              ; preds = %157
  %164 = load i32, ptr %14, align 4, !tbaa !9
  %165 = load ptr, ptr %8, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.s_desc, ptr %165, i32 0, i32 36
  store i32 %164, ptr %166, align 4, !tbaa !17
  br label %167

167:                                              ; preds = %163, %157
  br label %168

168:                                              ; preds = %167, %89
  %169 = load i32, ptr %17, align 4, !tbaa !9
  %170 = load ptr, ptr %11, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.s_atm, ptr %170, i32 0, i32 16
  %172 = load i32, ptr %171, align 8, !tbaa !18
  %173 = call i32 @in_tab(ptr noundef %23, i32 noundef %169, i32 noundef %172)
  %174 = icmp eq i32 %173, 0
  br i1 %174, label %175, label %192

175:                                              ; preds = %168
  %176 = load ptr, ptr %8, align 8, !tbaa !5
  %177 = load ptr, ptr %6, align 8, !tbaa !5
  %178 = load i32, ptr %13, align 4, !tbaa !9
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds ptr, ptr %177, i64 %179
  %181 = load ptr, ptr %180, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.s_atm, ptr %181, i32 0, i32 13
  %183 = getelementptr inbounds [8 x i8], ptr %182, i64 0, i64 0
  call void @set_aa_desc(ptr noundef %176, ptr noundef %183)
  %184 = load ptr, ptr %11, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.s_atm, ptr %184, i32 0, i32 16
  %186 = load i32, ptr %185, align 8, !tbaa !18
  %187 = load i32, ptr %17, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds i32, ptr %23, i64 %188
  store i32 %186, ptr %189, align 4, !tbaa !9
  %190 = load i32, ptr %17, align 4, !tbaa !9
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %17, align 4, !tbaa !9
  br label %192

192:                                              ; preds = %175, %168
  %193 = load ptr, ptr %11, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.s_atm, ptr %193, i32 0, i32 24
  %195 = load float, ptr %194, align 8, !tbaa !21
  %196 = load ptr, ptr %8, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.s_desc, ptr %196, i32 0, i32 11
  %198 = load float, ptr %197, align 4, !tbaa !22
  %199 = fadd float %198, %195
  store float %199, ptr %197, align 4, !tbaa !22
  %200 = load ptr, ptr %11, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.s_atm, ptr %200, i32 0, i32 22
  %202 = load float, ptr %201, align 8, !tbaa !23
  %203 = fpext float %202 to double
  %204 = fcmp ogt double %203, 2.700000e+00
  br i1 %204, label %205, label %208

205:                                              ; preds = %192
  %206 = load i32, ptr %18, align 4, !tbaa !9
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %18, align 4, !tbaa !9
  br label %208

208:                                              ; preds = %205, %192
  br label %209

209:                                              ; preds = %208
  %210 = load i32, ptr %13, align 4, !tbaa !9
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %13, align 4, !tbaa !9
  br label %85, !llvm.loop !24

212:                                              ; preds = %85
  %213 = load ptr, ptr %8, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.s_desc, ptr %213, i32 0, i32 38
  %215 = load i32, ptr %214, align 4, !tbaa !16
  %216 = icmp ne i32 %215, 0
  br i1 %216, label %226, label %217

217:                                              ; preds = %212
  %218 = load ptr, ptr %9, align 8, !tbaa !5
  %219 = load i32, ptr %10, align 4, !tbaa !9
  %220 = load ptr, ptr %11, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.s_atm, ptr %220, i32 0, i32 10
  %222 = getelementptr inbounds [16 x i8], ptr %221, i64 0, i64 0
  %223 = call i32 @countResidues(ptr noundef %218, i32 noundef %219, ptr noundef %222)
  %224 = load ptr, ptr %8, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.s_desc, ptr %224, i32 0, i32 38
  store i32 %223, ptr %225, align 4, !tbaa !16
  br label %226

226:                                              ; preds = %217, %212
  %227 = load ptr, ptr %8, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.s_desc, ptr %227, i32 0, i32 40
  %229 = getelementptr inbounds [255 x i8], ptr %228, i64 0, i64 0
  %230 = load ptr, ptr %19, align 8, !tbaa !5
  %231 = call ptr @strncpy(ptr noundef %229, ptr noundef %230, i64 noundef 2) #6
  %232 = load ptr, ptr %8, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.s_desc, ptr %232, i32 0, i32 0
  %234 = load float, ptr %233, align 4, !tbaa !26
  %235 = load i32, ptr %17, align 4, !tbaa !9
  %236 = sitofp i32 %235 to float
  %237 = fdiv float %234, %236
  %238 = load ptr, ptr %8, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.s_desc, ptr %238, i32 0, i32 0
  store float %237, ptr %239, align 4, !tbaa !26
  %240 = load ptr, ptr %8, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.s_desc, ptr %240, i32 0, i32 1
  %242 = load float, ptr %241, align 4, !tbaa !27
  %243 = load i32, ptr %17, align 4, !tbaa !9
  %244 = sitofp i32 %243 to float
  %245 = fdiv float %242, %244
  %246 = load ptr, ptr %8, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.s_desc, ptr %246, i32 0, i32 1
  store float %245, ptr %247, align 4, !tbaa !27
  %248 = load i32, ptr %7, align 4, !tbaa !9
  %249 = sitofp i32 %248 to float
  %250 = load ptr, ptr %8, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.s_desc, ptr %250, i32 0, i32 11
  %252 = load float, ptr %251, align 4, !tbaa !22
  %253 = fdiv float %252, %249
  store float %253, ptr %251, align 4, !tbaa !22
  %254 = load i32, ptr %18, align 4, !tbaa !9
  %255 = sitofp i32 %254 to float
  %256 = load i32, ptr %7, align 4, !tbaa !9
  %257 = sitofp i32 %256 to float
  %258 = fdiv float %255, %257
  %259 = fpext float %258 to double
  %260 = fmul double %259, 1.000000e+02
  %261 = fptrunc double %260 to float
  %262 = load ptr, ptr %8, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.s_desc, ptr %262, i32 0, i32 4
  store float %261, ptr %263, align 4, !tbaa !28
  br label %273

264:                                              ; preds = %27, %5
  %265 = load ptr, ptr %8, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.s_desc, ptr %265, i32 0, i32 0
  store float 0.000000e+00, ptr %266, align 4, !tbaa !26
  %267 = load ptr, ptr %8, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.s_desc, ptr %267, i32 0, i32 1
  store float 0.000000e+00, ptr %268, align 4, !tbaa !27
  %269 = load ptr, ptr %8, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.s_desc, ptr %269, i32 0, i32 11
  store float 0.000000e+00, ptr %270, align 4, !tbaa !22
  %271 = load ptr, ptr %8, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.s_desc, ptr %271, i32 0, i32 4
  store float 0.000000e+00, ptr %272, align 4, !tbaa !28
  br label %273

273:                                              ; preds = %264, %226
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  %274 = load ptr, ptr %15, align 8
  call void @llvm.stackrestore.p0(ptr %274)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

declare i32 @element_in_std_res(ptr noundef) #1

declare i32 @element_in_nucl_acid(ptr noundef) #1

declare i32 @element_in_kept_res(ptr noundef) #1

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #5

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 212}
!12 = !{!"s_desc", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !13, i64 64, !13, i64 68, !13, i64 72, !13, i64 76, !13, i64 80, !13, i64 84, !13, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !10, i64 108, !7, i64 112, !10, i64 192, !10, i64 196, !10, i64 200, !13, i64 204, !13, i64 208, !10, i64 212, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !7, i64 232, !7, i64 487, !7, i64 742}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !10, i64 216}
!15 = !{!12, !10, i64 224}
!16 = !{!12, !10, i64 228}
!17 = !{!12, !10, i64 220}
!18 = !{!19, !10, i64 96}
!19 = !{!"s_atm", !10, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !7, i64 32, !7, i64 37, !7, i64 44, !7, i64 60, !7, i64 76, !7, i64 79, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !13, i64 132, !13, i64 136, !13, i64 140, !7, i64 144, !7, i64 145, !13, i64 148, !13, i64 152, !13, i64 156, !13, i64 160, !20, i64 164, !6, i64 168, !10, i64 176}
!20 = !{!"short", !7, i64 0}
!21 = !{!19, !13, i64 128}
!22 = !{!12, !13, i64 44}
!23 = !{!19, !13, i64 120}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!12, !13, i64 0}
!27 = !{!12, !13, i64 4}
!28 = !{!12, !13, i64 16}


; 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"

declare ptr @my_malloc(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @set_atom_based_descriptors(ptr noundef readonly %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #1 {
  %6 = zext i32 %1 to i64
  %7 = alloca i32, i64 %6, align 16
  %8 = tail call ptr @my_malloc(i64 noundef 255) #4
  %9 = icmp ne ptr %0, null
  %10 = icmp sgt i32 %1, 1
  %or.cond = and i1 %9, %10
  br i1 %or.cond, label %11, label %97

11:                                               ; preds = %5
  %12 = load ptr, ptr %0, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %2, i64 212
  store i32 0, ptr %13, align 4, !tbaa !9
  %14 = getelementptr inbounds i8, ptr %12, i64 79
  %15 = tail call i32 @element_in_std_res(ptr noundef nonnull %14) #4
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %16, label %.lr.ph.sink.split

16:                                               ; preds = %11
  %17 = tail call i32 @element_in_nucl_acid(ptr noundef nonnull %14) #4
  %.not88 = icmp eq i32 %17, 0
  br i1 %.not88, label %18, label %.lr.ph.sink.split

18:                                               ; preds = %16
  %19 = tail call i32 @element_in_kept_res(ptr noundef nonnull %14) #4
  %.not89 = icmp eq i32 %19, 0
  br i1 %.not89, label %.lr.ph, label %.lr.ph.sink.split

.lr.ph.sink.split:                                ; preds = %18, %16, %11
  %.sink = phi i32 [ 0, %11 ], [ 1, %16 ], [ 2, %18 ]
  %20 = getelementptr inbounds i8, ptr %2, i64 216
  store i32 %.sink, ptr %20, align 4, !tbaa !13
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.sink.split, %18
  %21 = getelementptr inbounds i8, ptr %2, i64 232
  %22 = getelementptr inbounds i8, ptr %12, i64 44
  %23 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %21, ptr noundef nonnull dereferenceable(1) %22) #4
  %24 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) %22) #4
  %25 = tail call i32 @countResidues(ptr noundef %3, i32 noundef %4, ptr noundef nonnull %22)
  %26 = getelementptr inbounds i8, ptr %2, i64 224
  store i32 %25, ptr %26, align 4, !tbaa !14
  %27 = getelementptr inbounds i8, ptr %2, i64 228
  %28 = getelementptr inbounds i8, ptr %2, i64 216
  %29 = getelementptr inbounds i8, ptr %2, i64 220
  %30 = getelementptr inbounds i8, ptr %2, i64 44
  %wide.trip.count = zext nneg i32 %1 to i64
  br label %31

31:                                               ; preds = %.lr.ph, %67
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %67 ]
  %.079101 = phi i32 [ 0, %.lr.ph ], [ %.1, %67 ]
  %.080100 = phi i32 [ 0, %.lr.ph ], [ %.181, %67 ]
  %.08398 = phi i32 [ 0, %.lr.ph ], [ %.2, %67 ]
  %32 = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %.not91 = icmp eq ptr %33, %12
  br i1 %.not91, label %55, label %34

34:                                               ; preds = %31
  %35 = getelementptr inbounds i8, ptr %33, i64 44
  %36 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %35, ptr noundef nonnull dereferenceable(1) %22) #5
  %.not92 = icmp eq i32 %36, 0
  br i1 %.not92, label %45, label %37

37:                                               ; preds = %34
  %38 = load i32, ptr %13, align 4, !tbaa !9
  %39 = icmp slt i32 %38, 1
  br i1 %39, label %40, label %45

40:                                               ; preds = %37
  store i32 1, ptr %13, align 4, !tbaa !9
  %41 = load i32, ptr %27, align 4, !tbaa !15
  %.not93 = icmp eq i32 %41, 0
  br i1 %.not93, label %42, label %45

42:                                               ; preds = %40
  %43 = call i32 @countResidues(ptr noundef %3, i32 noundef %4, ptr noundef nonnull %35)
  store i32 %43, ptr %27, align 4, !tbaa !15
  %44 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) %35) #4
  br label %45

45:                                               ; preds = %40, %42, %37, %34
  %46 = getelementptr inbounds i8, ptr %33, i64 79
  %47 = call i32 @element_in_std_res(ptr noundef nonnull %46) #4
  %.not94 = icmp eq i32 %47, 0
  br i1 %.not94, label %48, label %52

48:                                               ; preds = %45
  %49 = call i32 @element_in_nucl_acid(ptr noundef nonnull %46) #4
  %.not95 = icmp eq i32 %49, 0
  br i1 %.not95, label %50, label %52

50:                                               ; preds = %48
  %51 = call i32 @element_in_kept_res(ptr noundef nonnull %46) #4
  %.not96 = icmp eq i32 %51, 0
  %spec.select = select i1 %.not96, i32 %.08398, i32 2
  br label %52

52:                                               ; preds = %50, %48, %45
  %.184 = phi i32 [ 0, %45 ], [ 1, %48 ], [ %spec.select, %50 ]
  %53 = load i32, ptr %28, align 4, !tbaa !13
  %.not97 = icmp eq i32 %.184, %53
  br i1 %.not97, label %55, label %54

54:                                               ; preds = %52
  store i32 %.184, ptr %29, align 4, !tbaa !16
  br label %55

55:                                               ; preds = %52, %54, %31
  %.2 = phi i32 [ %.184, %54 ], [ %.184, %52 ], [ %.08398, %31 ]
  %56 = getelementptr inbounds i8, ptr %33, i64 96
  %57 = load i32, ptr %56, align 8, !tbaa !17
  %58 = call i32 @in_tab(ptr noundef nonnull %7, i32 noundef %.080100, i32 noundef %57) #4
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %67

60:                                               ; preds = %55
  %61 = load ptr, ptr %32, align 8, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %61, i64 79
  call void @set_aa_desc(ptr noundef nonnull %2, ptr noundef nonnull %62)
  %63 = load i32, ptr %56, align 8, !tbaa !17
  %64 = sext i32 %.080100 to i64
  %65 = getelementptr inbounds i32, ptr %7, i64 %64
  store i32 %63, ptr %65, align 4, !tbaa !20
  %66 = add nsw i32 %.080100, 1
  br label %67

67:                                               ; preds = %60, %55
  %.181 = phi i32 [ %66, %60 ], [ %.080100, %55 ]
  %68 = getelementptr inbounds i8, ptr %33, i64 128
  %69 = load float, ptr %68, align 8, !tbaa !21
  %70 = load float, ptr %30, align 4, !tbaa !22
  %71 = fadd float %69, %70
  store float %71, ptr %30, align 4, !tbaa !22
  %72 = getelementptr inbounds i8, ptr %33, i64 120
  %73 = load float, ptr %72, align 8, !tbaa !23
  %74 = fpext float %73 to double
  %75 = fcmp ogt double %74, 2.700000e+00
  %76 = zext i1 %75 to i32
  %.1 = add nuw nsw i32 %.079101, %76
  %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_edge, label %31, !llvm.loop !24

._crit_edge:                                      ; preds = %67
  %77 = getelementptr inbounds i8, ptr %2, i64 228
  %78 = load i32, ptr %77, align 4, !tbaa !15
  %.not90 = icmp eq i32 %78, 0
  br i1 %.not90, label %79, label %82

79:                                               ; preds = %._crit_edge
  %80 = getelementptr inbounds i8, ptr %33, i64 44
  %81 = call i32 @countResidues(ptr noundef %3, i32 noundef %4, ptr noundef nonnull %80)
  store i32 %81, ptr %77, align 4, !tbaa !15
  br label %82

82:                                               ; preds = %79, %._crit_edge
  %83 = getelementptr inbounds i8, ptr %2, i64 487
  %84 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %83, ptr noundef nonnull dereferenceable(1) %8, i64 noundef 2) #4
  %85 = sitofp i32 %.181 to float
  %86 = load <2 x float>, ptr %2, align 4, !tbaa !26
  %87 = insertelement <2 x float> poison, float %85, i64 0
  %88 = shufflevector <2 x float> %87, <2 x float> poison, <2 x i32> zeroinitializer
  %89 = fdiv <2 x float> %86, %88
  store <2 x float> %89, ptr %2, align 4, !tbaa !26
  %90 = uitofp nneg i32 %1 to float
  %91 = getelementptr inbounds i8, ptr %2, i64 44
  %92 = load float, ptr %91, align 4, !tbaa !22
  %93 = fdiv float %92, %90
  store float %93, ptr %91, align 4, !tbaa !22
  %94 = uitofp nneg i32 %.1 to float
  %95 = fdiv float %94, %90
  %96 = fmul float %95, 1.000000e+02
  br label %99

97:                                               ; preds = %5
  store <2 x float> zeroinitializer, ptr %2, align 4, !tbaa !26
  %98 = getelementptr inbounds i8, ptr %2, i64 44
  store float 0.000000e+00, ptr %98, align 4, !tbaa !22
  br label %99

99:                                               ; preds = %97, %82
  %.sink106 = phi float [ 0.000000e+00, %97 ], [ %96, %82 ]
  %100 = getelementptr inbounds i8, ptr %2, i64 16
  store float %.sink106, ptr %100, align 4, !tbaa !27
  ret void
}

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

declare i32 @element_in_std_res(ptr noundef) local_unnamed_addr #0

declare i32 @element_in_nucl_acid(ptr noundef) local_unnamed_addr #0

declare i32 @element_in_kept_res(ptr noundef) local_unnamed_addr #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 #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

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

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

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

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

!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 212}
!10 = !{!"s_desc", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !12, i64 108, !7, i64 112, !12, i64 192, !12, i64 196, !12, i64 200, !11, i64 204, !11, i64 208, !12, i64 212, !12, i64 216, !12, i64 220, !12, i64 224, !12, i64 228, !7, i64 232, !7, i64 487, !7, i64 742}
!11 = !{!"float", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !12, i64 216}
!14 = !{!10, !12, i64 224}
!15 = !{!10, !12, i64 228}
!16 = !{!10, !12, i64 220}
!17 = !{!18, !12, i64 96}
!18 = !{!"s_atm", !12, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !7, i64 32, !7, i64 37, !7, i64 44, !7, i64 60, !7, i64 76, !7, i64 79, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !7, i64 144, !7, i64 145, !11, i64 148, !11, i64 152, !11, i64 156, !11, i64 160, !19, i64 164, !6, i64 168, !12, i64 176}
!19 = !{!"short", !7, i64 0}
!20 = !{!12, !12, i64 0}
!21 = !{!18, !11, i64 128}
!22 = !{!10, !11, i64 44}
!23 = !{!18, !11, i64 120}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!11, !11, i64 0}
!27 = !{!10, !11, i64 16}


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