; LLVM IR from aagdev/mlimgsynth :: src/ccompute (tensorstore_safet)

; 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.StioClass = type { ptr, ptr, ptr }
%struct.StioStream = type { ptr, ptr, ptr, ptr, ptr, i32, i32 }
%struct.StioItem = type { i32, i32, %struct.Any }
%struct.Any = type { i16, i16, i32, %union.AnyPayload }
%union.AnyPayload = type { i64 }
%struct.TSTensorEntry = type { i32, i32, i32, [4 x i32], i64, i64, ptr, ptr }

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@stio_class_json = external constant %struct.StioClass, align 8
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@g_allocator_dopt = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @tstore_read_safet(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.StioStream, align 8
  %11 = alloca %struct.StioItem, align 8
  %12 = alloca ptr, align 8
  %13 = alloca [2048 x i8], align 16
  %14 = alloca i64, align 8
  %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 %struct.TSTensorEntry, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 1, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #6
  call void @llvm.memset.p0.i64(ptr align 8 %10, i8 0, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #6
  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 2048, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = call i32 @stream_read_chk(ptr noundef %28, i64 noundef 8, ptr noundef %14)
  %30 = icmp slt i32 %29, 0
  br i1 %30, label %31, label %44

31:                                               ; preds = %3
  br label %32

32:                                               ; preds = %31
  br label %33

33:                                               ; preds = %32
  %34 = call zeroext i1 @log_level_check(i32 noundef 10)
  br i1 %34, label %35, label %36

35:                                               ; preds = %33
  call void (i32, ptr, ...) @log_logf(i32 noundef 10, ptr noundef @.str)
  br label %36

36:                                               ; preds = %35, %33
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37
  br label %39

39:                                               ; preds = %38
  store i32 -12292, ptr %8, align 4, !tbaa !9
  br label %272

40:                                               ; No predecessors!
  br label %41

41:                                               ; preds = %40
  br label %42

42:                                               ; preds = %41
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43, %3
  %45 = load i64, ptr %14, align 8, !tbaa !11
  %46 = add i64 %45, 8
  store i64 %46, ptr %14, align 8, !tbaa !11
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = call i32 @stream_char_get(ptr noundef %47)
  %49 = icmp ne i32 %48, 123
  br i1 %49, label %50, label %63

50:                                               ; preds = %44
  br label %51

51:                                               ; preds = %50
  br label %52

52:                                               ; preds = %51
  %53 = call zeroext i1 @log_level_check(i32 noundef 10)
  br i1 %53, label %54, label %55

54:                                               ; preds = %52
  call void (i32, ptr, ...) @log_logf(i32 noundef 10, ptr noundef @.str.1)
  br label %55

55:                                               ; preds = %54, %52
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  store i32 -12291, ptr %8, align 4, !tbaa !9
  br label %272

59:                                               ; No predecessors!
  br label %60

60:                                               ; preds = %59
  br label %61

61:                                               ; preds = %60
  br label %62

62:                                               ; preds = %61
  br label %63

63:                                               ; preds = %62, %44
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = call i32 @stream_unget(ptr noundef %64, i64 noundef 1)
  %66 = load i64, ptr %14, align 8, !tbaa !11
  %67 = icmp ugt i64 %66, 16777215
  br i1 %67, label %68, label %82

68:                                               ; preds = %63
  br label %69

69:                                               ; preds = %68
  br label %70

70:                                               ; preds = %69
  %71 = call zeroext i1 @log_level_check(i32 noundef 10)
  br i1 %71, label %72, label %74

72:                                               ; preds = %70
  %73 = load i64, ptr %14, align 8, !tbaa !11
  call void (i32, ptr, ...) @log_logf(i32 noundef 10, ptr noundef @.str.2, i64 noundef %73)
  br label %74

74:                                               ; preds = %72, %70
  br label %75

75:                                               ; preds = %74
  br label %76

76:                                               ; preds = %75
  br label %77

77:                                               ; preds = %76
  store i32 -12290, ptr %8, align 4, !tbaa !9
  br label %272

78:                                               ; No predecessors!
  br label %79

79:                                               ; preds = %78
  br label %80

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81, %63
  br label %83

83:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  %86 = call i32 @stio_init(ptr noundef %10, ptr noundef %84, ptr noundef @stio_class_json, i32 noundef 0, i64 noundef 2048, ptr noundef %85)
  store i32 %86, ptr %15, align 4, !tbaa !9
  %87 = load i32, ptr %15, align 4, !tbaa !9
  %88 = icmp slt i32 %87, 0
  br i1 %88, label %89, label %94

89:                                               ; preds = %83
  br label %90

90:                                               ; preds = %89
  %91 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %91, ptr %8, align 4, !tbaa !9
  store i32 8, ptr %16, align 4
  br label %95

92:                                               ; No predecessors!
  br label %93

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93, %83
  store i32 0, ptr %16, align 4
  br label %95

95:                                               ; preds = %94, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  %96 = load i32, ptr %16, align 4
  switch i32 %96, label %289 [
    i32 0, label %97
    i32 8, label %272
  ]

97:                                               ; preds = %95
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %101 = call i32 @stio_read(ptr noundef %10, ptr noundef %11, i32 noundef 0)
  store i32 %101, ptr %17, align 4, !tbaa !9
  %102 = load i32, ptr %17, align 4, !tbaa !9
  %103 = icmp slt i32 %102, 0
  br i1 %103, label %104, label %109

104:                                              ; preds = %100
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %106, ptr %8, align 4, !tbaa !9
  store i32 8, ptr %16, align 4
  br label %110

107:                                              ; No predecessors!
  br label %108

108:                                              ; preds = %107
  br label %109

109:                                              ; preds = %108, %100
  store i32 0, ptr %16, align 4
  br label %110

110:                                              ; preds = %109, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  %111 = load i32, ptr %16, align 4
  switch i32 %111, label %289 [
    i32 0, label %112
    i32 8, label %272
  ]

112:                                              ; preds = %110
  br label %113

113:                                              ; preds = %112
  br label %114

114:                                              ; preds = %113
  br label %115

115:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %116 = call i32 @stio_item_open_check(ptr noundef %11, i32 noundef 1, i32 noundef 27)
  store i32 %116, ptr %18, align 4, !tbaa !9
  %117 = load i32, ptr %18, align 4, !tbaa !9
  %118 = icmp slt i32 %117, 0
  br i1 %118, label %119, label %124

119:                                              ; preds = %115
  br label %120

120:                                              ; preds = %119
  %121 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %121, ptr %8, align 4, !tbaa !9
  store i32 8, ptr %16, align 4
  br label %125

122:                                              ; No predecessors!
  br label %123

123:                                              ; preds = %122
  br label %124

124:                                              ; preds = %123, %115
  store i32 0, ptr %16, align 4
  br label %125

125:                                              ; preds = %124, %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  %126 = load i32, ptr %16, align 4
  switch i32 %126, label %289 [
    i32 0, label %127
    i32 8, label %272
  ]

127:                                              ; preds = %125
  br label %128

128:                                              ; preds = %127
  br label %129

129:                                              ; preds = %128
  store i32 0, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %262, %129
  br label %131

131:                                              ; preds = %130
  br label %132

132:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %133 = call i32 @stio_read(ptr noundef %10, ptr noundef %11, i32 noundef 0)
  store i32 %133, ptr %9, align 4, !tbaa !9
  store i32 %133, ptr %21, align 4, !tbaa !9
  %134 = load i32, ptr %21, align 4, !tbaa !9
  %135 = icmp slt i32 %134, 0
  br i1 %135, label %136, label %141

136:                                              ; preds = %132
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %138, ptr %8, align 4, !tbaa !9
  store i32 8, ptr %16, align 4
  br label %142

139:                                              ; No predecessors!
  br label %140

140:                                              ; preds = %139
  br label %141

141:                                              ; preds = %140, %132
  store i32 0, ptr %16, align 4
  br label %142

142:                                              ; preds = %141, %137
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  %143 = load i32, ptr %16, align 4
  switch i32 %143, label %289 [
    i32 0, label %144
    i32 8, label %272
  ]

144:                                              ; preds = %142
  br label %145

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145
  %147 = load i32, ptr %9, align 4, !tbaa !9
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %149, label %150

149:                                              ; preds = %146
  br label %263

150:                                              ; preds = %146
  br label %151

151:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %152 = call i32 @stio_item_type_check(ptr noundef %11, i32 noundef 2, i32 noundef 15)
  store i32 %152, ptr %22, align 4, !tbaa !9
  %153 = load i32, ptr %22, align 4, !tbaa !9
  %154 = icmp slt i32 %153, 0
  br i1 %154, label %155, label %160

155:                                              ; preds = %151
  br label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %157, ptr %8, align 4, !tbaa !9
  store i32 8, ptr %16, align 4
  br label %161

158:                                              ; No predecessors!
  br label %159

159:                                              ; preds = %158
  br label %160

160:                                              ; preds = %159, %151
  store i32 0, ptr %16, align 4
  br label %161

161:                                              ; preds = %160, %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  %162 = load i32, ptr %16, align 4
  switch i32 %162, label %289 [
    i32 0, label %163
    i32 8, label %272
  ]

163:                                              ; preds = %161
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164
  %166 = getelementptr inbounds %struct.StioItem, ptr %11, i32 0, i32 2
  %167 = getelementptr inbounds %struct.Any, ptr %166, i32 0, i32 3
  %168 = load ptr, ptr %167, align 8, !tbaa !13
  %169 = call i32 @strcmp(ptr noundef %168, ptr noundef @.str.3) #7
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %190, label %171

171:                                              ; preds = %165
  br label %172

172:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %173 = load ptr, ptr %5, align 8, !tbaa !5
  %174 = call i32 @safet_read_meta(ptr noundef %173, ptr noundef %10, ptr noundef %12)
  store i32 %174, ptr %23, align 4, !tbaa !9
  %175 = load i32, ptr %23, align 4, !tbaa !9
  %176 = icmp slt i32 %175, 0
  br i1 %176, label %177, label %182

177:                                              ; preds = %172
  br label %178

178:                                              ; preds = %177
  %179 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %179, ptr %8, align 4, !tbaa !9
  store i32 8, ptr %16, align 4
  br label %183

180:                                              ; No predecessors!
  br label %181

181:                                              ; preds = %180
  br label %182

182:                                              ; preds = %181, %172
  store i32 0, ptr %16, align 4
  br label %183

183:                                              ; preds = %182, %178
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  %184 = load i32, ptr %16, align 4
  switch i32 %184, label %289 [
    i32 0, label %185
    i32 8, label %272
  ]

185:                                              ; preds = %183
  br label %186

186:                                              ; preds = %185
  br label %187

187:                                              ; preds = %186
  %188 = load i32, ptr %19, align 4, !tbaa !9
  %189 = add i32 %188, 1
  store i32 %189, ptr %19, align 4, !tbaa !9
  br label %262

190:                                              ; preds = %165
  %191 = getelementptr inbounds %struct.StioItem, ptr %11, i32 0, i32 2
  %192 = getelementptr inbounds %struct.Any, ptr %191, i32 0, i32 2
  %193 = load i32, ptr %192, align 4, !tbaa !14
  %194 = getelementptr inbounds %struct.StioItem, ptr %11, i32 0, i32 2
  %195 = getelementptr inbounds %struct.Any, ptr %194, i32 0, i32 3
  %196 = load ptr, ptr %195, align 8, !tbaa !13
  %197 = load ptr, ptr @g_allocator_dopt, align 8, !tbaa !5
  %198 = call ptr @dynbuf_copy(ptr noundef %12, i32 noundef %193, ptr noundef %196, i64 noundef 1, i32 noundef 1, ptr noundef %197)
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #6
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 64, i1 false)
  br label %199

199:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %200 = load ptr, ptr %12, align 8, !tbaa !5
  %201 = call i32 @safet_read_tensor(ptr noundef %10, ptr noundef %24, ptr noundef %200)
  store i32 %201, ptr %25, align 4, !tbaa !9
  %202 = load i32, ptr %25, align 4, !tbaa !9
  %203 = icmp slt i32 %202, 0
  br i1 %203, label %204, label %209

204:                                              ; preds = %199
  br label %205

205:                                              ; preds = %204
  %206 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %206, ptr %8, align 4, !tbaa !9
  store i32 8, ptr %16, align 4
  br label %210

207:                                              ; No predecessors!
  br label %208

208:                                              ; preds = %207
  br label %209

209:                                              ; preds = %208, %199
  store i32 0, ptr %16, align 4
  br label %210

210:                                              ; preds = %209, %205
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  %211 = load i32, ptr %16, align 4
  switch i32 %211, label %259 [
    i32 0, label %212
  ]

212:                                              ; preds = %210
  br label %213

213:                                              ; preds = %212
  br label %214

214:                                              ; preds = %213
  %215 = load i64, ptr %14, align 8, !tbaa !11
  %216 = getelementptr inbounds %struct.TSTensorEntry, ptr %24, i32 0, i32 4
  %217 = load i64, ptr %216, align 8, !tbaa !18
  %218 = add i64 %217, %215
  store i64 %218, ptr %216, align 8, !tbaa !18
  br label %219

219:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = call i32 @tstore_cb_call(ptr noundef %220, ptr noundef %221, ptr noundef %24, ptr noundef %12)
  store i32 %222, ptr %9, align 4, !tbaa !9
  store i32 %222, ptr %26, align 4, !tbaa !9
  %223 = load i32, ptr %26, align 4, !tbaa !9
  %224 = icmp slt i32 %223, 0
  br i1 %224, label %225, label %230

225:                                              ; preds = %219
  br label %226

226:                                              ; preds = %225
  %227 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %227, ptr %8, align 4, !tbaa !9
  store i32 8, ptr %16, align 4
  br label %231

228:                                              ; No predecessors!
  br label %229

229:                                              ; preds = %228
  br label %230

230:                                              ; preds = %229, %219
  store i32 0, ptr %16, align 4
  br label %231

231:                                              ; preds = %230, %226
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  %232 = load i32, ptr %16, align 4
  switch i32 %232, label %259 [
    i32 0, label %233
  ]

233:                                              ; preds = %231
  br label %234

234:                                              ; preds = %233
  br label %235

235:                                              ; preds = %234
  %236 = load i32, ptr %9, align 4, !tbaa !9
  %237 = icmp sgt i32 %236, 0
  br i1 %237, label %238, label %258

238:                                              ; preds = %235
  br label %239

239:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %240 = load ptr, ptr %5, align 8, !tbaa !5
  %241 = load ptr, ptr %12, align 8, !tbaa !5
  %242 = call i32 @tstore_tensor_add(ptr noundef %240, ptr noundef %241, ptr noundef %24)
  store i32 %242, ptr %27, align 4, !tbaa !9
  %243 = load i32, ptr %27, align 4, !tbaa !9
  %244 = icmp slt i32 %243, 0
  br i1 %244, label %245, label %250

245:                                              ; preds = %239
  br label %246

246:                                              ; preds = %245
  %247 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %247, ptr %8, align 4, !tbaa !9
  store i32 8, ptr %16, align 4
  br label %251

248:                                              ; No predecessors!
  br label %249

249:                                              ; preds = %248
  br label %250

250:                                              ; preds = %249, %239
  store i32 0, ptr %16, align 4
  br label %251

251:                                              ; preds = %250, %246
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  %252 = load i32, ptr %16, align 4
  switch i32 %252, label %259 [
    i32 0, label %253
  ]

253:                                              ; preds = %251
  br label %254

254:                                              ; preds = %253
  br label %255

255:                                              ; preds = %254
  %256 = load i32, ptr %20, align 4, !tbaa !9
  %257 = add i32 %256, 1
  store i32 %257, ptr %20, align 4, !tbaa !9
  br label %258

258:                                              ; preds = %255, %235
  store i32 0, ptr %16, align 4
  br label %259

259:                                              ; preds = %258, %251, %231, %210
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #6
  %260 = load i32, ptr %16, align 4
  switch i32 %260, label %289 [
    i32 0, label %261
    i32 8, label %272
  ]

261:                                              ; preds = %259
  br label %262

262:                                              ; preds = %261, %187
  br label %130

263:                                              ; preds = %149
  br label %264

264:                                              ; preds = %263
  %265 = call zeroext i1 @log_level_check(i32 noundef 50)
  br i1 %265, label %266, label %269

266:                                              ; preds = %264
  %267 = load i32, ptr %19, align 4, !tbaa !9
  %268 = load i32, ptr %20, align 4, !tbaa !9
  call void (i32, ptr, ...) @log_logf(i32 noundef 50, ptr noundef @.str.4, i32 noundef %267, i32 noundef %268)
  br label %269

269:                                              ; preds = %266, %264
  br label %270

270:                                              ; preds = %269
  br label %271

271:                                              ; preds = %270
  br label %272

272:                                              ; preds = %271, %259, %183, %161, %142, %125, %110, %95, %77, %58, %39
  %273 = load i32, ptr %8, align 4, !tbaa !9
  %274 = icmp slt i32 %273, 0
  br i1 %274, label %275, label %286

275:                                              ; preds = %272
  br label %276

276:                                              ; preds = %275
  %277 = call zeroext i1 @log_level_check(i32 noundef 10)
  br i1 %277, label %278, label %283

278:                                              ; preds = %276
  %279 = load ptr, ptr %6, align 8, !tbaa !5
  %280 = call i64 @stream_pos_get(ptr noundef %279)
  %281 = load i32, ptr %8, align 4, !tbaa !9
  %282 = sub nsw i32 0, %281
  call void (i32, ptr, ...) @log_logf(i32 noundef 10, ptr noundef @.str.5, i64 noundef %280, i32 noundef %282)
  br label %283

283:                                              ; preds = %278, %276
  br label %284

284:                                              ; preds = %283
  br label %285

285:                                              ; preds = %284
  br label %286

286:                                              ; preds = %285, %272
  %287 = load ptr, ptr @g_allocator_dopt, align 8, !tbaa !5
  call void @dynbuf_free(ptr noundef %12, ptr noundef %287)
  %288 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %288, ptr %4, align 4
  store i32 1, ptr %16, align 4
  br label %289

289:                                              ; preds = %286, %259, %183, %161, %142, %125, %110, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %290 = load i32, ptr %4, align 4
  ret i32 %290
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @stream_read_chk(ptr noalias noundef, i64 noundef, ptr noalias noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @log_level_check(i32 noundef) #3

declare void @log_logf(i32 noundef, ptr noundef, ...) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @stream_char_get(ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @stream_unget(ptr noundef, i64 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @stio_init(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i64 noundef, ptr noundef) #3

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

declare i32 @stio_read(ptr noundef, ptr noundef, i32 noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @stio_item_open_check(ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @stio_item_type_check(ptr noundef, i32 noundef, i32 noundef) #3

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

; Function Attrs: nounwind uwtable
declare hidden i32 @safet_read_meta(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @dynbuf_copy(ptr noundef, i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @safet_read_tensor(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @tstore_cb_call(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @tstore_tensor_add(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @stream_pos_get(ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @dynbuf_free(ptr noundef, ptr noundef) #3

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !10, i64 12}
!15 = !{!"StioItem", !10, i64 0, !10, i64 4, !16, i64 8}
!16 = !{!"Any", !17, i64 0, !17, i64 2, !10, i64 4, !7, i64 8}
!17 = !{!"short", !7, i64 0}
!18 = !{!19, !12, i64 32}
!19 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 12, !12, i64 32, !12, i64 40, !6, i64 48, !6, i64 56}


; 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.StioClass = type { ptr, ptr, ptr }
%struct.StioStream = type { ptr, ptr, ptr, ptr, ptr, i32, i32 }
%struct.StioItem = type { i32, i32, %struct.Any }
%struct.Any = type { i16, i16, i32, %union.AnyPayload }
%union.AnyPayload = type { i64 }
%struct.TSTensorEntry = type { i32, i32, i32, [4 x i32], i64, i64, ptr, ptr }

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@stio_class_json = external constant %struct.StioClass, align 8
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@g_allocator_dopt = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @tstore_read_safet(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca %struct.StioStream, align 8
  %5 = alloca %struct.StioItem, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [2048 x i8], align 16
  %8 = alloca i64, align 8
  %9 = alloca %struct.TSTensorEntry, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %4, i8 0, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %10 = call i32 @stream_read_chk(ptr noundef %1, i64 noundef 8, ptr noundef nonnull %8)
  %11 = icmp slt i32 %10, 0
  br i1 %11, label %12, label %15

12:                                               ; preds = %3
  %13 = call zeroext i1 @log_level_check(i32 noundef 10)
  br i1 %13, label %14, label %.thread92

14:                                               ; preds = %12
  call void (i32, ptr, ...) @log_logf(i32 noundef 10, ptr noundef nonnull @.str) #6
  br label %.thread92

15:                                               ; preds = %3
  %16 = load i64, ptr %8, align 8, !tbaa !9
  %17 = add i64 %16, 8
  store i64 %17, ptr %8, align 8, !tbaa !9
  %18 = call i32 @stream_char_get(ptr noundef %1)
  %.not = icmp eq i32 %18, 123
  br i1 %.not, label %22, label %19

19:                                               ; preds = %15
  %20 = call zeroext i1 @log_level_check(i32 noundef 10)
  br i1 %20, label %21, label %.thread92

21:                                               ; preds = %19
  call void (i32, ptr, ...) @log_logf(i32 noundef 10, ptr noundef nonnull @.str.1) #6
  br label %.thread92

22:                                               ; preds = %15
  %23 = call i32 @stream_unget(ptr noundef %1, i64 noundef 1)
  %24 = load i64, ptr %8, align 8, !tbaa !9
  %25 = icmp ugt i64 %24, 16777215
  br i1 %25, label %26, label %30

26:                                               ; preds = %22
  %27 = call zeroext i1 @log_level_check(i32 noundef 10)
  br i1 %27, label %28, label %.thread92

28:                                               ; preds = %26
  %29 = load i64, ptr %8, align 8, !tbaa !9
  call void (i32, ptr, ...) @log_logf(i32 noundef 10, ptr noundef nonnull @.str.2, i64 noundef %29) #6
  br label %.thread92

30:                                               ; preds = %22
  %31 = call i32 @stio_init(ptr noundef nonnull %4, ptr noundef %1, ptr noundef nonnull @stio_class_json, i32 noundef 0, i64 noundef 2048, ptr noundef nonnull %7)
  %32 = icmp slt i32 %31, 0
  br i1 %32, label %.thread92, label %33

33:                                               ; preds = %30
  %34 = call i32 @stio_read(ptr noundef nonnull %4, ptr noundef nonnull %5, i32 noundef 0) #6
  %35 = icmp slt i32 %34, 0
  br i1 %35, label %.thread92, label %36

36:                                               ; preds = %33
  %37 = call i32 @stio_item_open_check(ptr noundef nonnull %5, i32 noundef 1, i32 noundef 27)
  %38 = icmp slt i32 %37, 0
  br i1 %38, label %.thread92, label %.preheader

.preheader:                                       ; preds = %36
  %39 = call i32 @stio_read(ptr noundef nonnull %4, ptr noundef nonnull %5, i32 noundef 0) #6
  %40 = icmp slt i32 %39, 0
  br i1 %40, label %.thread92, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %41 = getelementptr inbounds i8, ptr %5, i64 16
  %42 = getelementptr inbounds i8, ptr %5, i64 12
  %43 = getelementptr inbounds i8, ptr %9, i64 32
  br label %44

44:                                               ; preds = %.lr.ph, %78
  %45 = phi i32 [ %39, %.lr.ph ], [ %79, %78 ]
  %.059101 = phi i32 [ 0, %.lr.ph ], [ %.160, %78 ]
  %.061100 = phi i32 [ 0, %.lr.ph ], [ %.364, %78 ]
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %81, label %47

47:                                               ; preds = %44
  %48 = call i32 @stio_item_type_check(ptr noundef nonnull %5, i32 noundef 2, i32 noundef 15)
  %49 = icmp slt i32 %48, 0
  br i1 %49, label %.thread92, label %50

50:                                               ; preds = %47
  %51 = load ptr, ptr %41, align 8, !tbaa !11
  %52 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %51, ptr noundef nonnull dereferenceable(1) @.str.3) #7
  %.not74 = icmp eq i32 %52, 0
  br i1 %.not74, label %53, label %58

53:                                               ; preds = %50
  %54 = call i32 @safet_read_meta(ptr noundef %0, ptr noundef nonnull %4, ptr noundef nonnull %6)
  %55 = icmp slt i32 %54, 0
  br i1 %55, label %.thread92, label %56

56:                                               ; preds = %53
  %57 = add i32 %.059101, 1
  br label %78

58:                                               ; preds = %50
  %59 = load i32, ptr %42, align 4, !tbaa !12
  %60 = load ptr, ptr @g_allocator_dopt, align 8, !tbaa !5
  %61 = call ptr @dynbuf_copy(ptr noundef nonnull %6, i32 noundef %59, ptr noundef %51, i64 noundef 1, i32 noundef 1, ptr noundef %60)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = call i32 @safet_read_tensor(ptr noundef nonnull %4, ptr noundef nonnull %9, ptr noundef %62)
  %64 = icmp sgt i32 %63, -1
  br i1 %64, label %65, label %77

65:                                               ; preds = %58
  %66 = load i64, ptr %8, align 8, !tbaa !9
  %67 = load i64, ptr %43, align 8, !tbaa !17
  %68 = add i64 %67, %66
  store i64 %68, ptr %43, align 8, !tbaa !17
  %69 = call i32 @tstore_cb_call(ptr noundef %2, ptr noundef %0, ptr noundef nonnull %9, ptr noundef nonnull %6)
  %70 = icmp sgt i32 %69, -1
  br i1 %70, label %71, label %77

71:                                               ; preds = %65
  %.not75 = icmp eq i32 %69, 0
  br i1 %.not75, label %.thread, label %72

72:                                               ; preds = %71
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = call i32 @tstore_tensor_add(ptr noundef %0, ptr noundef %73, ptr noundef nonnull %9)
  %75 = icmp sgt i32 %74, -1
  %76 = add i32 %.061100, 1
  br i1 %75, label %.thread, label %77

.thread:                                          ; preds = %71, %72
  %.263.ph = phi i32 [ %.061100, %71 ], [ %76, %72 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #6
  br label %78

77:                                               ; preds = %72, %65, %58
  %.11 = phi i32 [ %69, %65 ], [ %63, %58 ], [ %74, %72 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #6
  br label %.thread92

78:                                               ; preds = %.thread, %56
  %.364 = phi i32 [ %.061100, %56 ], [ %.263.ph, %.thread ]
  %.160 = phi i32 [ %57, %56 ], [ %.059101, %.thread ]
  %79 = call i32 @stio_read(ptr noundef nonnull %4, ptr noundef nonnull %5, i32 noundef 0) #6
  %80 = icmp slt i32 %79, 0
  br i1 %80, label %.thread92, label %44

81:                                               ; preds = %44
  %82 = call zeroext i1 @log_level_check(i32 noundef 50)
  br i1 %82, label %83, label %.loopexit

83:                                               ; preds = %81
  call void (i32, ptr, ...) @log_logf(i32 noundef 50, ptr noundef nonnull @.str.4, i32 noundef %.059101, i32 noundef %.061100) #6
  br label %.loopexit

.thread92:                                        ; preds = %78, %47, %53, %.preheader, %77, %36, %33, %30, %28, %26, %21, %19, %14, %12
  %.1394 = phi i32 [ -12290, %28 ], [ -12290, %26 ], [ -12291, %21 ], [ -12291, %19 ], [ -12292, %14 ], [ -12292, %12 ], [ %39, %.preheader ], [ %.11, %77 ], [ %37, %36 ], [ %34, %33 ], [ %31, %30 ], [ %54, %53 ], [ %48, %47 ], [ %79, %78 ]
  %84 = call zeroext i1 @log_level_check(i32 noundef 10)
  br i1 %84, label %85, label %.loopexit

85:                                               ; preds = %.thread92
  %86 = call i64 @stream_pos_get(ptr noundef %1)
  %87 = sub nsw i32 0, %.1394
  call void (i32, ptr, ...) @log_logf(i32 noundef 10, ptr noundef nonnull @.str.5, i64 noundef %86, i32 noundef %87) #6
  br label %.loopexit

.loopexit:                                        ; preds = %83, %81, %.thread92, %85
  %.1395 = phi i32 [ %.1394, %.thread92 ], [ %.1394, %85 ], [ 1, %83 ], [ 1, %81 ]
  %88 = load ptr, ptr @g_allocator_dopt, align 8, !tbaa !5
  call void @dynbuf_free(ptr noundef nonnull %6, ptr noundef %88)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #6
  ret i32 %.1395
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @stream_read_chk(ptr noalias noundef, i64 noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @log_level_check(i32 noundef) local_unnamed_addr #3

declare void @log_logf(i32 noundef, ptr noundef, ...) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @stream_char_get(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @stream_unget(ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @stio_init(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

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

declare i32 @stio_read(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @stio_item_open_check(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @stio_item_type_check(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare hidden i32 @safet_read_meta(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @dynbuf_copy(ptr noundef, i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @safet_read_tensor(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @tstore_cb_call(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @tstore_tensor_add(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @stream_pos_get(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @dynbuf_free(ptr noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 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 #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 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !14, i64 12}
!13 = !{!"StioItem", !14, i64 0, !14, i64 4, !15, i64 8}
!14 = !{!"int", !7, i64 0}
!15 = !{!"Any", !16, i64 0, !16, i64 2, !14, i64 4, !7, i64 8}
!16 = !{!"short", !7, i64 0}
!17 = !{!18, !10, i64 32}
!18 = !{!"", !14, i64 0, !14, i64 4, !14, i64 8, !7, i64 12, !10, i64 32, !10, i64 40, !6, i64 48, !6, i64 56}


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