; LLVM IR from huawei-noah/bolt :: common/model_spec/src (model_serialize)

; 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.ModelSpec = type { i32, i32, [128 x i8], i32, i32, ptr, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, ptr }
%struct.OperatorSpec = type <{ [128 x i8], i32, i32, ptr, i32, [4 x i8], ptr, ptr, i32, [4 x i8], ptr, %union.ParameterSpec, [4 x i8] }>
%union.ParameterSpec = type { %struct.MultiHeadAttentionParamSpec }
%struct.MultiHeadAttentionParamSpec = type { [6 x %struct.FullyConnectedParamSpec], %struct.PowerParamSpec, [2 x i8], i32, [4 x %struct.ReshapeParamSpec], [2 x %struct.EltwiseParamSpec] }
%struct.FullyConnectedParamSpec = type { i32, i32, [32 x i32] }
%struct.PowerParamSpec = type { float, float, float }
%struct.ReshapeParamSpec = type { [8 x i32], i32, i32, i32 }
%struct.EltwiseParamSpec = type { i32, %struct.EltwiseSumSpec, i32, %union.ActivationSpec }
%struct.EltwiseSumSpec = type { [8 x float], i32 }
%union.ActivationSpec = type { %struct.ClipParamSpec }
%struct.ClipParamSpec = type { float, float }
%struct.QuantSpec = type { i32, ptr }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [23 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: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z9mt_mallocj(i32 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z15serialize_fieldIiEvPPhPjPKT_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z15serialize_fieldIcEvPPhPjPKT_i(ptr noundef, ptr noundef, ptr noundef, i32 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
declare i64 @syscall(i64 noundef, ...) #2

declare i32 @printf(ptr noundef, ...) #3

declare i32 @fflush(ptr noundef) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignIPhvEERS4_T_S8_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z7mt_freeIhEvRPT_(ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z17get_operator_sizeRK12OperatorSpec(ptr noundef nonnull align 8 dereferenceable(1300)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z27get_operator_parameter_sizei12OperatorType(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z19serialize_operatorsPK9ModelSpecPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %0, ptr noundef %1) #6 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = 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 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 4, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.ModelSpec, ptr %25, i32 0, i32 10
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  store ptr %27, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %55, %2
  %29 = load i32, ptr %8, align 4, !tbaa !9
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.ModelSpec, ptr %30, i32 0, i32 9
  %32 = load i32, ptr %31, align 8, !tbaa !14
  %33 = icmp slt i32 %29, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %58

35:                                               ; preds = %28
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = load i32, ptr %8, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds %struct.OperatorSpec, ptr %36, i64 %38
  %40 = getelementptr inbounds %struct.OperatorSpec, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 8, !tbaa !15
  %42 = call noundef zeroext i1 @_Z14isDeprecatedOp12OperatorType(i32 noundef %41)
  br i1 %42, label %43, label %46

43:                                               ; preds = %35
  %44 = load i32, ptr %5, align 4, !tbaa !9
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %5, align 4, !tbaa !9
  br label %54

46:                                               ; preds = %35
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = load i32, ptr %8, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds %struct.OperatorSpec, ptr %47, i64 %49
  %51 = call noundef i32 @_Z17get_operator_sizeRK12OperatorSpec(ptr noundef nonnull align 8 dereferenceable(1300) %50)
  %52 = load i32, ptr %6, align 4, !tbaa !9
  %53 = add i32 %52, %51
  store i32 %53, ptr %6, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %46, %43
  br label %55

55:                                               ; preds = %54
  %56 = load i32, ptr %8, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %8, align 4, !tbaa !9
  br label %28, !llvm.loop !18

58:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %59 = load i32, ptr %6, align 4, !tbaa !9
  %60 = call noundef ptr @_Z9mt_mallocj(i32 noundef %59)
  store ptr %60, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %61, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store ptr %10, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store ptr %11, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.ModelSpec, ptr %62, i32 0, i32 9
  %64 = load i32, ptr %63, align 8, !tbaa !14
  %65 = load i32, ptr %5, align 4, !tbaa !9
  %66 = sub nsw i32 %64, %65
  store i32 %66, ptr %14, align 4, !tbaa !9
  %67 = load ptr, ptr %12, align 8, !tbaa !5
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_Z15serialize_fieldIiEvPPhPjPKT_i(ptr noundef %67, ptr noundef %68, ptr noundef %14, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %285, %58
  %70 = load i32, ptr %15, align 4, !tbaa !9
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.ModelSpec, ptr %71, i32 0, i32 9
  %73 = load i32, ptr %72, align 8, !tbaa !14
  %74 = icmp slt i32 %70, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %69
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %288

76:                                               ; preds = %69
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = load i32, ptr %15, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds %struct.OperatorSpec, ptr %77, i64 %79
  %81 = getelementptr inbounds %struct.OperatorSpec, ptr %80, i32 0, i32 1
  %82 = load i32, ptr %81, align 8, !tbaa !15
  %83 = call noundef zeroext i1 @_Z14isDeprecatedOp12OperatorType(i32 noundef %82)
  br i1 %83, label %84, label %85

84:                                               ; preds = %76
  br label %285

85:                                               ; preds = %76
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = load ptr, ptr %13, align 8, !tbaa !5
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = load i32, ptr %15, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds %struct.OperatorSpec, ptr %88, i64 %90
  %92 = getelementptr inbounds %struct.OperatorSpec, ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds [128 x i8], ptr %92, i64 0, i64 0
  call void @_Z15serialize_fieldIcEvPPhPjPKT_i(ptr noundef %86, ptr noundef %87, ptr noundef %93, i32 noundef 128)
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = load i32, ptr %15, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds %struct.OperatorSpec, ptr %96, i64 %98
  %100 = getelementptr inbounds %struct.OperatorSpec, ptr %99, i32 0, i32 1
  call void @_Z15serialize_fieldI12OperatorTypeEvPPhPjPKT_i(ptr noundef %94, ptr noundef %95, ptr noundef %100, i32 noundef 1)
  %101 = load ptr, ptr %12, align 8, !tbaa !5
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = load i32, ptr %15, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds %struct.OperatorSpec, ptr %103, i64 %105
  %107 = getelementptr inbounds %struct.OperatorSpec, ptr %106, i32 0, i32 2
  call void @_Z15serialize_fieldIjEvPPhPjPKT_i(ptr noundef %101, ptr noundef %102, ptr noundef %107, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %131, %85
  %109 = load i32, ptr %17, align 4, !tbaa !9
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = load i32, ptr %15, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds %struct.OperatorSpec, ptr %110, i64 %112
  %114 = getelementptr inbounds %struct.OperatorSpec, ptr %113, i32 0, i32 2
  %115 = load i32, ptr %114, align 4, !tbaa !20
  %116 = icmp ult i32 %109, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %108
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %134

118:                                              ; preds = %108
  %119 = load ptr, ptr %12, align 8, !tbaa !5
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = load i32, ptr %15, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds %struct.OperatorSpec, ptr %121, i64 %123
  %125 = getelementptr inbounds %struct.OperatorSpec, ptr %124, i32 0, i32 3
  %126 = load ptr, ptr %125, align 8, !tbaa !21
  %127 = load i32, ptr %17, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds ptr, ptr %126, i64 %128
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  call void @_Z15serialize_fieldIcEvPPhPjPKT_i(ptr noundef %119, ptr noundef %120, ptr noundef %130, i32 noundef 128)
  br label %131

131:                                              ; preds = %118
  %132 = load i32, ptr %17, align 4, !tbaa !9
  %133 = add i32 %132, 1
  store i32 %133, ptr %17, align 4, !tbaa !9
  br label %108, !llvm.loop !22

134:                                              ; preds = %117
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = load i32, ptr %15, align 4, !tbaa !9
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds %struct.OperatorSpec, ptr %137, i64 %139
  %141 = getelementptr inbounds %struct.OperatorSpec, ptr %140, i32 0, i32 4
  call void @_Z15serialize_fieldIjEvPPhPjPKT_i(ptr noundef %135, ptr noundef %136, ptr noundef %141, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %142

142:                                              ; preds = %165, %134
  %143 = load i32, ptr %18, align 4, !tbaa !9
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = load i32, ptr %15, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds %struct.OperatorSpec, ptr %144, i64 %146
  %148 = getelementptr inbounds %struct.OperatorSpec, ptr %147, i32 0, i32 4
  %149 = load i32, ptr %148, align 8, !tbaa !23
  %150 = icmp ult i32 %143, %149
  br i1 %150, label %152, label %151

151:                                              ; preds = %142
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %168

152:                                              ; preds = %142
  %153 = load ptr, ptr %12, align 8, !tbaa !5
  %154 = load ptr, ptr %13, align 8, !tbaa !5
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = load i32, ptr %15, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds %struct.OperatorSpec, ptr %155, i64 %157
  %159 = getelementptr inbounds %struct.OperatorSpec, ptr %158, i32 0, i32 6
  %160 = load ptr, ptr %159, align 8, !tbaa !24
  %161 = load i32, ptr %18, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = getelementptr inbounds ptr, ptr %160, i64 %162
  %164 = load ptr, ptr %163, align 8, !tbaa !5
  call void @_Z15serialize_fieldIcEvPPhPjPKT_i(ptr noundef %153, ptr noundef %154, ptr noundef %164, i32 noundef 128)
  br label %165

165:                                              ; preds = %152
  %166 = load i32, ptr %18, align 4, !tbaa !9
  %167 = add i32 %166, 1
  store i32 %167, ptr %18, align 4, !tbaa !9
  br label %142, !llvm.loop !25

168:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = load i32, ptr %15, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds %struct.OperatorSpec, ptr %169, i64 %171
  %173 = getelementptr inbounds %struct.OperatorSpec, ptr %172, i32 0, i32 2
  %174 = load i32, ptr %173, align 4, !tbaa !20
  %175 = load ptr, ptr %7, align 8, !tbaa !5
  %176 = load i32, ptr %15, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds %struct.OperatorSpec, ptr %175, i64 %177
  %179 = getelementptr inbounds %struct.OperatorSpec, ptr %178, i32 0, i32 4
  %180 = load i32, ptr %179, align 8, !tbaa !23
  %181 = add i32 %174, %180
  store i32 %181, ptr %19, align 4, !tbaa !9
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  %183 = load i32, ptr %15, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds %struct.OperatorSpec, ptr %182, i64 %184
  %186 = getelementptr inbounds %struct.OperatorSpec, ptr %185, i32 0, i32 7
  %187 = load ptr, ptr %186, align 8, !tbaa !26
  %188 = icmp ne ptr null, %187
  br i1 %188, label %189, label %199

189:                                              ; preds = %168
  %190 = load ptr, ptr %12, align 8, !tbaa !5
  %191 = load ptr, ptr %13, align 8, !tbaa !5
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = load i32, ptr %15, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds %struct.OperatorSpec, ptr %192, i64 %194
  %196 = getelementptr inbounds %struct.OperatorSpec, ptr %195, i32 0, i32 7
  %197 = load ptr, ptr %196, align 8, !tbaa !26
  %198 = load i32, ptr %19, align 4, !tbaa !9
  call void @_Z15serialize_fieldIiEvPPhPjPKT_i(ptr noundef %190, ptr noundef %191, ptr noundef %197, i32 noundef %198)
  br label %212

199:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %200

200:                                              ; preds = %208, %199
  %201 = load i32, ptr %20, align 4, !tbaa !9
  %202 = load i32, ptr %19, align 4, !tbaa !9
  %203 = icmp ult i32 %201, %202
  br i1 %203, label %205, label %204

204:                                              ; preds = %200
  store i32 14, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %211

205:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 -1, ptr %21, align 4, !tbaa !9
  %206 = load ptr, ptr %12, align 8, !tbaa !5
  %207 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_Z15serialize_fieldIiEvPPhPjPKT_i(ptr noundef %206, ptr noundef %207, ptr noundef %21, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %208

208:                                              ; preds = %205
  %209 = load i32, ptr %20, align 4, !tbaa !9
  %210 = add i32 %209, 1
  store i32 %210, ptr %20, align 4, !tbaa !9
  br label %200, !llvm.loop !27

211:                                              ; preds = %204
  br label %212

212:                                              ; preds = %211, %189
  %213 = load ptr, ptr %12, align 8, !tbaa !5
  %214 = load ptr, ptr %13, align 8, !tbaa !5
  %215 = load ptr, ptr %7, align 8, !tbaa !5
  %216 = load i32, ptr %15, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds %struct.OperatorSpec, ptr %215, i64 %217
  %219 = getelementptr inbounds %struct.OperatorSpec, ptr %218, i32 0, i32 8
  call void @_Z15serialize_fieldIjEvPPhPjPKT_i(ptr noundef %213, ptr noundef %214, ptr noundef %219, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %267, %212
  %221 = load i32, ptr %22, align 4, !tbaa !9
  %222 = load ptr, ptr %7, align 8, !tbaa !5
  %223 = load i32, ptr %15, align 4, !tbaa !9
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds %struct.OperatorSpec, ptr %222, i64 %224
  %226 = getelementptr inbounds %struct.OperatorSpec, ptr %225, i32 0, i32 8
  %227 = load i32, ptr %226, align 8, !tbaa !28
  %228 = icmp ult i32 %221, %227
  br i1 %228, label %230, label %229

229:                                              ; preds = %220
  store i32 17, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %270

230:                                              ; preds = %220
  %231 = load ptr, ptr %12, align 8, !tbaa !5
  %232 = load ptr, ptr %13, align 8, !tbaa !5
  %233 = load ptr, ptr %7, align 8, !tbaa !5
  %234 = load i32, ptr %15, align 4, !tbaa !9
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds %struct.OperatorSpec, ptr %233, i64 %235
  %237 = getelementptr inbounds %struct.OperatorSpec, ptr %236, i32 0, i32 10
  %238 = load ptr, ptr %237, align 8, !tbaa !29
  %239 = load i32, ptr %22, align 4, !tbaa !9
  %240 = zext i32 %239 to i64
  %241 = getelementptr inbounds %struct.QuantSpec, ptr %238, i64 %240
  %242 = getelementptr inbounds %struct.QuantSpec, ptr %241, i32 0, i32 0
  call void @_Z15serialize_fieldIiEvPPhPjPKT_i(ptr noundef %231, ptr noundef %232, ptr noundef %242, i32 noundef 1)
  %243 = load ptr, ptr %12, align 8, !tbaa !5
  %244 = load ptr, ptr %13, align 8, !tbaa !5
  %245 = load ptr, ptr %7, align 8, !tbaa !5
  %246 = load i32, ptr %15, align 4, !tbaa !9
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds %struct.OperatorSpec, ptr %245, i64 %247
  %249 = getelementptr inbounds %struct.OperatorSpec, ptr %248, i32 0, i32 10
  %250 = load ptr, ptr %249, align 8, !tbaa !29
  %251 = load i32, ptr %22, align 4, !tbaa !9
  %252 = zext i32 %251 to i64
  %253 = getelementptr inbounds %struct.QuantSpec, ptr %250, i64 %252
  %254 = getelementptr inbounds %struct.QuantSpec, ptr %253, i32 0, i32 1
  %255 = load ptr, ptr %254, align 8, !tbaa !30
  %256 = load ptr, ptr %7, align 8, !tbaa !5
  %257 = load i32, ptr %15, align 4, !tbaa !9
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds %struct.OperatorSpec, ptr %256, i64 %258
  %260 = getelementptr inbounds %struct.OperatorSpec, ptr %259, i32 0, i32 10
  %261 = load ptr, ptr %260, align 8, !tbaa !29
  %262 = load i32, ptr %22, align 4, !tbaa !9
  %263 = zext i32 %262 to i64
  %264 = getelementptr inbounds %struct.QuantSpec, ptr %261, i64 %263
  %265 = getelementptr inbounds %struct.QuantSpec, ptr %264, i32 0, i32 0
  %266 = load i32, ptr %265, align 8, !tbaa !32
  call void @_Z15serialize_fieldIfEvPPhPjPKT_i(ptr noundef %243, ptr noundef %244, ptr noundef %255, i32 noundef %266)
  br label %267

267:                                              ; preds = %230
  %268 = load i32, ptr %22, align 4, !tbaa !9
  %269 = add i32 %268, 1
  store i32 %269, ptr %22, align 4, !tbaa !9
  br label %220, !llvm.loop !33

270:                                              ; preds = %229
  %271 = load ptr, ptr %12, align 8, !tbaa !5
  %272 = load ptr, ptr %13, align 8, !tbaa !5
  %273 = load ptr, ptr %7, align 8, !tbaa !5
  %274 = load i32, ptr %15, align 4, !tbaa !9
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds %struct.OperatorSpec, ptr %273, i64 %275
  %277 = getelementptr inbounds %struct.OperatorSpec, ptr %276, i32 0, i32 11
  %278 = load ptr, ptr %7, align 8, !tbaa !5
  %279 = load i32, ptr %15, align 4, !tbaa !9
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds %struct.OperatorSpec, ptr %278, i64 %280
  %282 = getelementptr inbounds %struct.OperatorSpec, ptr %281, i32 0, i32 1
  %283 = load i32, ptr %282, align 8, !tbaa !15
  %284 = call noundef i32 @_Z27get_operator_parameter_sizei12OperatorType(i32 noundef 20220831, i32 noundef %283)
  call void @_Z15serialize_fieldIhEvPPhPjPKT_i(ptr noundef %271, ptr noundef %272, ptr noundef %277, i32 noundef %284)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %285

285:                                              ; preds = %270, %84
  %286 = load i32, ptr %15, align 4, !tbaa !9
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr %15, align 4, !tbaa !9
  br label %69, !llvm.loop !34

288:                                              ; preds = %75
  %289 = load ptr, ptr %13, align 8, !tbaa !5
  %290 = load i32, ptr %289, align 4, !tbaa !9
  %291 = load i32, ptr %6, align 4, !tbaa !9
  %292 = icmp eq i32 %290, %291
  br i1 %292, label %303, label %293

293:                                              ; preds = %288
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %294 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %295 = trunc i64 %294 to i32
  store i32 %295, ptr %23, align 4, !tbaa !9
  %296 = load i32, ptr %23, align 4, !tbaa !9
  %297 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %296)
  %298 = load ptr, ptr @stdout, align 8, !tbaa !5
  %299 = call i32 @fflush(ptr noundef %298)
  %300 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %301 = load ptr, ptr @stdout, align 8, !tbaa !5
  %302 = call i32 @fflush(ptr noundef %301)
  call void @exit(i32 noundef 1) #8
  unreachable

303:                                              ; preds = %288
  %304 = load ptr, ptr %12, align 8, !tbaa !5
  %305 = load ptr, ptr %304, align 8, !tbaa !5
  %306 = load ptr, ptr %9, align 8, !tbaa !5
  %307 = ptrtoint ptr %305 to i64
  %308 = ptrtoint ptr %306 to i64
  %309 = sub i64 %307, %308
  %310 = trunc i64 %309 to i32
  %311 = load i32, ptr %6, align 4, !tbaa !9
  %312 = icmp eq i32 %310, %311
  br i1 %312, label %323, label %313

313:                                              ; preds = %303
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %314 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %315 = trunc i64 %314 to i32
  store i32 %315, ptr %24, align 4, !tbaa !9
  %316 = load i32, ptr %24, align 4, !tbaa !9
  %317 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %316)
  %318 = load ptr, ptr @stdout, align 8, !tbaa !5
  %319 = call i32 @fflush(ptr noundef %318)
  %320 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %321 = load ptr, ptr @stdout, align 8, !tbaa !5
  %322 = call i32 @fflush(ptr noundef %321)
  call void @exit(i32 noundef 1) #8
  unreachable

323:                                              ; preds = %303
  %324 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32) %324) #7
  %325 = load ptr, ptr %4, align 8, !tbaa !5
  %326 = load ptr, ptr %9, align 8, !tbaa !5
  %327 = load ptr, ptr %9, align 8, !tbaa !5
  %328 = load i32, ptr %6, align 4, !tbaa !9
  %329 = zext i32 %328 to i64
  %330 = getelementptr inbounds i8, ptr %327, i64 %329
  %331 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignIPhvEERS4_T_S8_(ptr noundef nonnull align 8 dereferenceable(32) %325, ptr noundef %326, ptr noundef %330)
  call void @_Z7mt_freeIhEvRPT_(ptr noundef nonnull align 8 dereferenceable(8) %9)
  store i32 1, ptr %16, align 4
  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 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  ret i32 0
}

declare noundef zeroext i1 @_Z14isDeprecatedOp12OperatorType(i32 noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z15serialize_fieldI12OperatorTypeEvPPhPjPKT_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z15serialize_fieldIjEvPPhPjPKT_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z15serialize_fieldIfEvPPhPjPKT_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z15serialize_fieldIhEvPPhPjPKT_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress 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 "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 = { "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 = { 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 #5 = { mustprogress 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 = { mustprogress 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 = { noreturn 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 184}
!12 = !{!"_ZTS9ModelSpec", !10, i64 0, !10, i64 4, !7, i64 8, !13, i64 136, !10, i64 140, !6, i64 144, !6, i64 152, !10, i64 160, !6, i64 168, !10, i64 176, !6, i64 184, !10, i64 192, !6, i64 200, !10, i64 208, !6, i64 216, !6, i64 224}
!13 = !{!"_ZTS8DataType", !7, i64 0}
!14 = !{!12, !10, i64 176}
!15 = !{!16, !17, i64 128}
!16 = !{!"_ZTS12OperatorSpec", !7, i64 0, !17, i64 128, !10, i64 132, !6, i64 136, !10, i64 144, !6, i64 152, !6, i64 160, !10, i64 168, !6, i64 176, !7, i64 184}
!17 = !{!"_ZTS12OperatorType", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!16, !10, i64 132}
!21 = !{!16, !6, i64 136}
!22 = distinct !{!22, !19}
!23 = !{!16, !10, i64 144}
!24 = !{!16, !6, i64 152}
!25 = distinct !{!25, !19}
!26 = !{!16, !6, i64 160}
!27 = distinct !{!27, !19}
!28 = !{!16, !10, i64 168}
!29 = !{!16, !6, i64 176}
!30 = !{!31, !6, i64 8}
!31 = !{!"_ZTS9QuantSpec", !10, i64 0, !6, i64 8}
!32 = !{!31, !10, i64 0}
!33 = distinct !{!33, !19}
!34 = distinct !{!34, !19}


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

%struct.OperatorSpec = type <{ [128 x i8], i32, i32, ptr, i32, [4 x i8], ptr, ptr, i32, [4 x i8], ptr, %union.ParameterSpec, [4 x i8] }>
%union.ParameterSpec = type { %struct.MultiHeadAttentionParamSpec }
%struct.MultiHeadAttentionParamSpec = type { [6 x %struct.FullyConnectedParamSpec], %struct.PowerParamSpec, [2 x i8], i32, [4 x %struct.ReshapeParamSpec], [2 x %struct.EltwiseParamSpec] }
%struct.FullyConnectedParamSpec = type { i32, i32, [32 x i32] }
%struct.PowerParamSpec = type { float, float, float }
%struct.ReshapeParamSpec = type { [8 x i32], i32, i32, i32 }
%struct.EltwiseParamSpec = type { i32, %struct.EltwiseSumSpec, i32, %union.ActivationSpec }
%struct.EltwiseSumSpec = type { [8 x float], i32 }
%union.ActivationSpec = type { %struct.ClipParamSpec }
%struct.ClipParamSpec = type { float, float }
%struct.QuantSpec = type { i32, ptr }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z9mt_mallocj(i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z15serialize_fieldIiEvPPhPjPKT_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z15serialize_fieldIcEvPPhPjPKT_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind
declare i64 @syscall(i64 noundef, ...) local_unnamed_addr #2

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignIPhvEERS4_T_S8_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z7mt_freeIhEvRPT_(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z17get_operator_sizeRK12OperatorSpec(ptr noundef nonnull align 8 dereferenceable(1300)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z27get_operator_parameter_sizei12OperatorType(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z19serialize_operatorsPK9ModelSpecPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #6 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = getelementptr inbounds i8, ptr %0, i64 184
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 176
  %11 = load i32, ptr %10, align 8, !tbaa !12
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %27, %2
  %.0105.lcssa = phi i32 [ 4, %2 ], [ %.1106, %27 ]
  %.0.lcssa = phi i32 [ 0, %2 ], [ %.1, %27 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %13 = tail call noundef ptr @_Z9mt_mallocj(i32 noundef %.0105.lcssa)
  store ptr %13, ptr %3, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  store ptr %13, ptr %4, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  store i32 0, ptr %5, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  %14 = load i32, ptr %10, align 8, !tbaa !12
  %15 = sub nsw i32 %14, %.0.lcssa
  store i32 %15, ptr %6, align 4, !tbaa !14
  call void @_Z15serialize_fieldIiEvPPhPjPKT_i(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef 1)
  %16 = load i32, ptr %10, align 8, !tbaa !12
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph137, label %._crit_edge138

.lr.ph:                                           ; preds = %2, %27
  %indvars.iv = phi i64 [ %indvars.iv.next, %27 ], [ 0, %2 ]
  %.0118 = phi i32 [ %.1, %27 ], [ 0, %2 ]
  %.0105117 = phi i32 [ %.1106, %27 ], [ 4, %2 ]
  %18 = getelementptr inbounds %struct.OperatorSpec, ptr %9, i64 %indvars.iv
  %19 = getelementptr inbounds i8, ptr %18, i64 128
  %20 = load i32, ptr %19, align 8, !tbaa !15
  %21 = tail call noundef zeroext i1 @_Z14isDeprecatedOp12OperatorType(i32 noundef %20)
  br i1 %21, label %22, label %24

22:                                               ; preds = %.lr.ph
  %23 = add nsw i32 %.0118, 1
  br label %27

24:                                               ; preds = %.lr.ph
  %25 = tail call noundef i32 @_Z17get_operator_sizeRK12OperatorSpec(ptr noundef nonnull align 8 dereferenceable(1300) %18)
  %26 = add i32 %25, %.0105117
  br label %27

27:                                               ; preds = %22, %24
  %.1106 = phi i32 [ %.0105117, %22 ], [ %26, %24 ]
  %.1 = phi i32 [ %23, %22 ], [ %.0118, %24 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %28 = load i32, ptr %10, align 8, !tbaa !12
  %29 = sext i32 %28 to i64
  %30 = icmp slt i64 %indvars.iv.next, %29
  br i1 %30, label %.lr.ph, label %._crit_edge, !llvm.loop !18

._crit_edge138:                                   ; preds = %81, %._crit_edge
  %31 = load i32, ptr %5, align 4, !tbaa !14
  %32 = icmp eq i32 %31, %.0105.lcssa
  br i1 %32, label %94, label %85

.lr.ph137:                                        ; preds = %._crit_edge, %81
  %indvars.iv154 = phi i64 [ %indvars.iv.next155, %81 ], [ 0, %._crit_edge ]
  %33 = getelementptr inbounds %struct.OperatorSpec, ptr %9, i64 %indvars.iv154
  %34 = getelementptr inbounds i8, ptr %33, i64 128
  %35 = load i32, ptr %34, align 8, !tbaa !15
  %36 = call noundef zeroext i1 @_Z14isDeprecatedOp12OperatorType(i32 noundef %35)
  br i1 %36, label %81, label %37

37:                                               ; preds = %.lr.ph137
  call void @_Z15serialize_fieldIcEvPPhPjPKT_i(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %33, i32 noundef 128)
  call void @_Z15serialize_fieldI12OperatorTypeEvPPhPjPKT_i(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %34, i32 noundef 1)
  %38 = getelementptr inbounds i8, ptr %33, i64 132
  call void @_Z15serialize_fieldIjEvPPhPjPKT_i(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %38, i32 noundef 1)
  %39 = load i32, ptr %38, align 4, !tbaa !20
  %.not139 = icmp eq i32 %39, 0
  br i1 %.not139, label %._crit_edge123, label %.lr.ph122

.lr.ph122:                                        ; preds = %37
  %40 = getelementptr inbounds i8, ptr %33, i64 136
  br label %44

._crit_edge123:                                   ; preds = %44, %37
  %41 = getelementptr inbounds i8, ptr %33, i64 144
  call void @_Z15serialize_fieldIjEvPPhPjPKT_i(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %41, i32 noundef 1)
  %42 = load i32, ptr %41, align 8, !tbaa !21
  %.not140 = icmp eq i32 %42, 0
  br i1 %.not140, label %._crit_edge127, label %.lr.ph126

.lr.ph126:                                        ; preds = %._crit_edge123
  %43 = getelementptr inbounds i8, ptr %33, i64 152
  br label %55

44:                                               ; preds = %.lr.ph122, %44
  %indvars.iv145 = phi i64 [ 0, %.lr.ph122 ], [ %indvars.iv.next146, %44 ]
  %45 = load ptr, ptr %40, align 8, !tbaa !22
  %46 = getelementptr inbounds ptr, ptr %45, i64 %indvars.iv145
  %47 = load ptr, ptr %46, align 8, !tbaa !13
  call void @_Z15serialize_fieldIcEvPPhPjPKT_i(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef %47, i32 noundef 128)
  %indvars.iv.next146 = add nuw nsw i64 %indvars.iv145, 1
  %48 = load i32, ptr %38, align 4, !tbaa !20
  %49 = zext i32 %48 to i64
  %50 = icmp ult i64 %indvars.iv.next146, %49
  br i1 %50, label %44, label %._crit_edge123, !llvm.loop !23

._crit_edge127:                                   ; preds = %55, %._crit_edge123
  %.lcssa = phi i32 [ 0, %._crit_edge123 ], [ %59, %55 ]
  %51 = load i32, ptr %38, align 4, !tbaa !20
  %52 = add i32 %51, %.lcssa
  %53 = getelementptr inbounds i8, ptr %33, i64 160
  %54 = load ptr, ptr %53, align 8, !tbaa !24
  %.not = icmp eq ptr %54, null
  br i1 %.not, label %.preheader, label %62

.preheader:                                       ; preds = %._crit_edge127
  %.not141 = icmp eq i32 %52, 0
  br i1 %.not141, label %.loopexit, label %.lr.ph130

55:                                               ; preds = %.lr.ph126, %55
  %indvars.iv148 = phi i64 [ 0, %.lr.ph126 ], [ %indvars.iv.next149, %55 ]
  %56 = load ptr, ptr %43, align 8, !tbaa !25
  %57 = getelementptr inbounds ptr, ptr %56, i64 %indvars.iv148
  %58 = load ptr, ptr %57, align 8, !tbaa !13
  call void @_Z15serialize_fieldIcEvPPhPjPKT_i(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef %58, i32 noundef 128)
  %indvars.iv.next149 = add nuw nsw i64 %indvars.iv148, 1
  %59 = load i32, ptr %41, align 8, !tbaa !21
  %60 = zext i32 %59 to i64
  %61 = icmp ult i64 %indvars.iv.next149, %60
  br i1 %61, label %55, label %._crit_edge127, !llvm.loop !26

62:                                               ; preds = %._crit_edge127
  call void @_Z15serialize_fieldIiEvPPhPjPKT_i(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %54, i32 noundef %52)
  br label %.loopexit

.lr.ph130:                                        ; preds = %.preheader, %.lr.ph130
  %.0108129 = phi i32 [ %63, %.lr.ph130 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  store i32 -1, ptr %7, align 4, !tbaa !14
  call void @_Z15serialize_fieldIiEvPPhPjPKT_i(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %7, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  %63 = add nuw i32 %.0108129, 1
  %exitcond.not = icmp eq i32 %63, %52
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph130, !llvm.loop !27

.loopexit:                                        ; preds = %.lr.ph130, %.preheader, %62
  %64 = getelementptr inbounds i8, ptr %33, i64 168
  call void @_Z15serialize_fieldIjEvPPhPjPKT_i(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %64, i32 noundef 1)
  %65 = load i32, ptr %64, align 8, !tbaa !28
  %.not142 = icmp eq i32 %65, 0
  br i1 %.not142, label %._crit_edge134, label %.lr.ph133

.lr.ph133:                                        ; preds = %.loopexit
  %66 = getelementptr inbounds i8, ptr %33, i64 176
  br label %70

._crit_edge134:                                   ; preds = %70, %.loopexit
  %67 = getelementptr inbounds i8, ptr %33, i64 184
  %68 = load i32, ptr %34, align 8, !tbaa !15
  %69 = call noundef i32 @_Z27get_operator_parameter_sizei12OperatorType(i32 noundef 20220831, i32 noundef %68)
  call void @_Z15serialize_fieldIhEvPPhPjPKT_i(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %67, i32 noundef %69)
  br label %81

70:                                               ; preds = %.lr.ph133, %70
  %indvars.iv151 = phi i64 [ 0, %.lr.ph133 ], [ %indvars.iv.next152, %70 ]
  %71 = load ptr, ptr %66, align 8, !tbaa !29
  %72 = getelementptr inbounds %struct.QuantSpec, ptr %71, i64 %indvars.iv151
  call void @_Z15serialize_fieldIiEvPPhPjPKT_i(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef %72, i32 noundef 1)
  %73 = load ptr, ptr %66, align 8, !tbaa !29
  %74 = getelementptr inbounds %struct.QuantSpec, ptr %73, i64 %indvars.iv151
  %75 = getelementptr inbounds i8, ptr %74, i64 8
  %76 = load ptr, ptr %75, align 8, !tbaa !30
  %77 = load i32, ptr %74, align 8, !tbaa !32
  call void @_Z15serialize_fieldIfEvPPhPjPKT_i(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef %76, i32 noundef %77)
  %indvars.iv.next152 = add nuw nsw i64 %indvars.iv151, 1
  %78 = load i32, ptr %64, align 8, !tbaa !28
  %79 = zext i32 %78 to i64
  %80 = icmp ult i64 %indvars.iv.next152, %79
  br i1 %80, label %70, label %._crit_edge134, !llvm.loop !33

81:                                               ; preds = %.lr.ph137, %._crit_edge134
  %indvars.iv.next155 = add nuw nsw i64 %indvars.iv154, 1
  %82 = load i32, ptr %10, align 8, !tbaa !12
  %83 = sext i32 %82 to i64
  %84 = icmp slt i64 %indvars.iv.next155, %83
  br i1 %84, label %.lr.ph137, label %._crit_edge138, !llvm.loop !34

85:                                               ; preds = %._crit_edge138
  %86 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %87 = trunc i64 %86 to i32
  %88 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %87)
  %89 = load ptr, ptr @stdout, align 8, !tbaa !13
  %90 = call i32 @fflush(ptr noundef %89)
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %92 = load ptr, ptr @stdout, align 8, !tbaa !13
  %93 = call i32 @fflush(ptr noundef %92)
  call void @exit(i32 noundef 1) #9
  unreachable

94:                                               ; preds = %._crit_edge138
  %95 = load ptr, ptr %4, align 8, !tbaa !13
  %96 = ptrtoint ptr %95 to i64
  %97 = ptrtoint ptr %13 to i64
  %98 = sub i64 %96, %97
  %99 = trunc i64 %98 to i32
  %100 = icmp eq i32 %.0105.lcssa, %99
  br i1 %100, label %110, label %101

101:                                              ; preds = %94
  %102 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %103 = trunc i64 %102 to i32
  %104 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %103)
  %105 = load ptr, ptr @stdout, align 8, !tbaa !13
  %106 = call i32 @fflush(ptr noundef %105)
  %107 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %108 = load ptr, ptr @stdout, align 8, !tbaa !13
  %109 = call i32 @fflush(ptr noundef %108)
  call void @exit(i32 noundef 1) #9
  unreachable

110:                                              ; preds = %94
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5clearEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  %111 = zext i32 %.0105.lcssa to i64
  %112 = getelementptr inbounds i8, ptr %13, i64 %111
  %113 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignIPhvEERS4_T_S8_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef %13, ptr noundef %112)
  call void @_Z7mt_freeIhEvRPT_(ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  ret i32 0
}

declare noundef zeroext i1 @_Z14isDeprecatedOp12OperatorType(i32 noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z15serialize_fieldI12OperatorTypeEvPPhPjPKT_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z15serialize_fieldIjEvPPhPjPKT_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z15serialize_fieldIfEvPPhPjPKT_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z15serialize_fieldIhEvPPhPjPKT_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress 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 "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 = { 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 #4 = { 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 #5 = { mustprogress 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 = { mustprogress 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 = { "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 }
attributes #9 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 184}
!6 = !{!"_ZTS9ModelSpec", !7, i64 0, !7, i64 4, !8, i64 8, !10, i64 136, !7, i64 140, !11, i64 144, !11, i64 152, !7, i64 160, !11, i64 168, !7, i64 176, !11, i64 184, !7, i64 192, !11, i64 200, !7, i64 208, !11, i64 216, !11, i64 224}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS8DataType", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !7, i64 176}
!13 = !{!11, !11, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !17, i64 128}
!16 = !{!"_ZTS12OperatorSpec", !8, i64 0, !17, i64 128, !7, i64 132, !11, i64 136, !7, i64 144, !11, i64 152, !11, i64 160, !7, i64 168, !11, i64 176, !8, i64 184}
!17 = !{!"_ZTS12OperatorType", !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!16, !7, i64 132}
!21 = !{!16, !7, i64 144}
!22 = !{!16, !11, i64 136}
!23 = distinct !{!23, !19}
!24 = !{!16, !11, i64 160}
!25 = !{!16, !11, i64 152}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !19}
!28 = !{!16, !7, i64 168}
!29 = !{!16, !11, i64 176}
!30 = !{!31, !11, i64 8}
!31 = !{!"_ZTS9QuantSpec", !7, i64 0, !11, i64 8}
!32 = !{!31, !7, i64 0}
!33 = distinct !{!33, !19}
!34 = distinct !{!34, !19}


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