; LLVM IR from aws/s2n-tls :: tests/testlib (s2n_io_testlib)

; 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.s2n_debug_info = type { ptr, ptr }
%struct.s2n_result = type { i32 }
%struct.s2n_blob = type { ptr, i32, i32, i8 }
%struct.s2n_test_iovecs = type { ptr, i64 }
%struct.iovec = type { ptr, i64 }

@_s2n_debug_info = external thread_local global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local global i32, align 4
@.str.1 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [100 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #0

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

declare i32 @s2n_calculate_stacktrace() #2

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @s2n_test_new_iovecs(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #4 {
  %5 = alloca %struct.s2n_result, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca %struct.s2n_blob, align 8
  %15 = alloca i64, align 8
  %16 = alloca %struct.s2n_result, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i64 %3, ptr %9, align 8, !tbaa !9
  br label %17

17:                                               ; preds = %4
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %52, label %20

20:                                               ; preds = %17
  br label %21

21:                                               ; preds = %20
  br label %22

22:                                               ; preds = %21
  %23 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %24 = getelementptr inbounds %struct.s2n_debug_info, ptr %23, i32 0, i32 0
  store ptr @.str.1, ptr %24, align 8, !tbaa !11
  %25 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %26 = getelementptr inbounds %struct.s2n_debug_info, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = getelementptr inbounds i8, ptr %27, i64 21
  %29 = call ptr @strrchr(ptr noundef %28, i32 noundef 47) #7
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %38

31:                                               ; preds = %22
  %32 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %33 = getelementptr inbounds %struct.s2n_debug_info, ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = getelementptr inbounds i8, ptr %34, i64 21
  %36 = call ptr @strrchr(ptr noundef %35, i32 noundef 47) #7
  %37 = getelementptr inbounds i8, ptr %36, i64 1
  br label %43

38:                                               ; preds = %22
  %39 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %40 = getelementptr inbounds %struct.s2n_debug_info, ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !11
  %42 = getelementptr inbounds i8, ptr %41, i64 21
  br label %43

43:                                               ; preds = %38, %31
  %44 = phi ptr [ %37, %31 ], [ %42, %38 ]
  %45 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %46 = getelementptr inbounds %struct.s2n_debug_info, ptr %45, i32 0, i32 1
  store ptr %44, ptr %46, align 8, !tbaa !13
  %47 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %47, align 4, !tbaa !14
  %48 = call i32 @s2n_calculate_stacktrace()
  br label %49

49:                                               ; preds = %43
  %50 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 -1, ptr %50, align 4, !tbaa !16
  br label %278

51:                                               ; No predecessors!
  br label %52

52:                                               ; preds = %51, %17
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = icmp ne ptr %55, null
  br i1 %56, label %89, label %57

57:                                               ; preds = %54
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  %60 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %61 = getelementptr inbounds %struct.s2n_debug_info, ptr %60, i32 0, i32 0
  store ptr @.str.2, ptr %61, align 8, !tbaa !11
  %62 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %63 = getelementptr inbounds %struct.s2n_debug_info, ptr %62, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8, !tbaa !11
  %65 = getelementptr inbounds i8, ptr %64, i64 21
  %66 = call ptr @strrchr(ptr noundef %65, i32 noundef 47) #7
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %75

68:                                               ; preds = %59
  %69 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %70 = getelementptr inbounds %struct.s2n_debug_info, ptr %69, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8, !tbaa !11
  %72 = getelementptr inbounds i8, ptr %71, i64 21
  %73 = call ptr @strrchr(ptr noundef %72, i32 noundef 47) #7
  %74 = getelementptr inbounds i8, ptr %73, i64 1
  br label %80

75:                                               ; preds = %59
  %76 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %77 = getelementptr inbounds %struct.s2n_debug_info, ptr %76, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8, !tbaa !11
  %79 = getelementptr inbounds i8, ptr %78, i64 21
  br label %80

80:                                               ; preds = %75, %68
  %81 = phi ptr [ %74, %68 ], [ %79, %75 ]
  %82 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %83 = getelementptr inbounds %struct.s2n_debug_info, ptr %82, i32 0, i32 1
  store ptr %81, ptr %83, align 8, !tbaa !13
  %84 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %84, align 4, !tbaa !14
  %85 = call i32 @s2n_calculate_stacktrace()
  br label %86

86:                                               ; preds = %80
  %87 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 -1, ptr %87, align 4, !tbaa !16
  br label %278

88:                                               ; No predecessors!
  br label %89

89:                                               ; preds = %88, %54
  br label %90

90:                                               ; preds = %89
  br label %91

91:                                               ; preds = %90
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = icmp ne ptr %92, null
  br i1 %93, label %126, label %94

94:                                               ; preds = %91
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  %97 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %98 = getelementptr inbounds %struct.s2n_debug_info, ptr %97, i32 0, i32 0
  store ptr @.str.3, ptr %98, align 8, !tbaa !11
  %99 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %100 = getelementptr inbounds %struct.s2n_debug_info, ptr %99, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !11
  %102 = getelementptr inbounds i8, ptr %101, i64 21
  %103 = call ptr @strrchr(ptr noundef %102, i32 noundef 47) #7
  %104 = icmp ne ptr %103, null
  br i1 %104, label %105, label %112

105:                                              ; preds = %96
  %106 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %107 = getelementptr inbounds %struct.s2n_debug_info, ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !11
  %109 = getelementptr inbounds i8, ptr %108, i64 21
  %110 = call ptr @strrchr(ptr noundef %109, i32 noundef 47) #7
  %111 = getelementptr inbounds i8, ptr %110, i64 1
  br label %117

112:                                              ; preds = %96
  %113 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %114 = getelementptr inbounds %struct.s2n_debug_info, ptr %113, i32 0, i32 0
  %115 = load ptr, ptr %114, align 8, !tbaa !11
  %116 = getelementptr inbounds i8, ptr %115, i64 21
  br label %117

117:                                              ; preds = %112, %105
  %118 = phi ptr [ %111, %105 ], [ %116, %112 ]
  %119 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %120 = getelementptr inbounds %struct.s2n_debug_info, ptr %119, i32 0, i32 1
  store ptr %118, ptr %120, align 8, !tbaa !13
  %121 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %121, align 4, !tbaa !14
  %122 = call i32 @s2n_calculate_stacktrace()
  br label %123

123:                                              ; preds = %117
  %124 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 -1, ptr %124, align 4, !tbaa !16
  br label %278

125:                                              ; No predecessors!
  br label %126

126:                                              ; preds = %125, %91
  br label %127

127:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  store i64 0, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %128

128:                                              ; preds = %140, %127
  %129 = load i64, ptr %11, align 8, !tbaa !9
  %130 = load i64, ptr %9, align 8, !tbaa !9
  %131 = icmp ult i64 %129, %130
  br i1 %131, label %133, label %132

132:                                              ; preds = %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %143

133:                                              ; preds = %128
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = load i64, ptr %11, align 8, !tbaa !9
  %136 = getelementptr inbounds i64, ptr %134, i64 %135
  %137 = load i64, ptr %136, align 8, !tbaa !9
  %138 = load i64, ptr %10, align 8, !tbaa !9
  %139 = add i64 %138, %137
  store i64 %139, ptr %10, align 8, !tbaa !9
  br label %140

140:                                              ; preds = %133
  %141 = load i64, ptr %11, align 8, !tbaa !9
  %142 = add i64 %141, 1
  store i64 %142, ptr %11, align 8, !tbaa !9
  br label %128, !llvm.loop !18

143:                                              ; preds = %132
  br label %144

144:                                              ; preds = %143
  %145 = load i64, ptr %10, align 8, !tbaa !9
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.s2n_blob, ptr %146, i32 0, i32 1
  %148 = load i32, ptr %147, align 8, !tbaa !20
  %149 = zext i32 %148 to i64
  %150 = icmp ule i64 %145, %149
  br i1 %150, label %185, label %151

151:                                              ; preds = %144
  br label %152

152:                                              ; preds = %151
  br label %153

153:                                              ; preds = %152
  %154 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %155 = getelementptr inbounds %struct.s2n_debug_info, ptr %154, i32 0, i32 0
  store ptr @.str.4, ptr %155, align 8, !tbaa !11
  %156 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %157 = getelementptr inbounds %struct.s2n_debug_info, ptr %156, i32 0, i32 0
  %158 = load ptr, ptr %157, align 8, !tbaa !11
  %159 = getelementptr inbounds i8, ptr %158, i64 21
  %160 = call ptr @strrchr(ptr noundef %159, i32 noundef 47) #7
  %161 = icmp ne ptr %160, null
  br i1 %161, label %162, label %169

162:                                              ; preds = %153
  %163 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %164 = getelementptr inbounds %struct.s2n_debug_info, ptr %163, i32 0, i32 0
  %165 = load ptr, ptr %164, align 8, !tbaa !11
  %166 = getelementptr inbounds i8, ptr %165, i64 21
  %167 = call ptr @strrchr(ptr noundef %166, i32 noundef 47) #7
  %168 = getelementptr inbounds i8, ptr %167, i64 1
  br label %174

169:                                              ; preds = %153
  %170 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %171 = getelementptr inbounds %struct.s2n_debug_info, ptr %170, i32 0, i32 0
  %172 = load ptr, ptr %171, align 8, !tbaa !11
  %173 = getelementptr inbounds i8, ptr %172, i64 21
  br label %174

174:                                              ; preds = %169, %162
  %175 = phi ptr [ %168, %162 ], [ %173, %169 ]
  %176 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %177 = getelementptr inbounds %struct.s2n_debug_info, ptr %176, i32 0, i32 1
  store ptr %175, ptr %177, align 8, !tbaa !13
  %178 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %178, align 4, !tbaa !14
  %179 = call i32 @s2n_calculate_stacktrace()
  br label %180

180:                                              ; preds = %174
  br label %181

181:                                              ; preds = %180
  %182 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 -1, ptr %182, align 4, !tbaa !16
  store i32 1, ptr %12, align 4
  br label %277

183:                                              ; No predecessors!
  br label %184

184:                                              ; preds = %183
  br label %185

185:                                              ; preds = %184, %144
  br label %186

186:                                              ; preds = %185
  br label %187

187:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %188 = load i64, ptr %9, align 8, !tbaa !9
  store i64 %188, ptr %13, align 8, !tbaa !9
  %189 = load i64, ptr %10, align 8, !tbaa !9
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.s2n_blob, ptr %190, i32 0, i32 1
  %192 = load i32, ptr %191, align 8, !tbaa !20
  %193 = zext i32 %192 to i64
  %194 = icmp ult i64 %189, %193
  br i1 %194, label %195, label %198

195:                                              ; preds = %187
  %196 = load i64, ptr %13, align 8, !tbaa !9
  %197 = add i64 %196, 1
  store i64 %197, ptr %13, align 8, !tbaa !9
  br label %198

198:                                              ; preds = %195, %187
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #8
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 24, i1 false)
  br label %199

199:                                              ; preds = %198
  %200 = load i64, ptr %13, align 8, !tbaa !9
  %201 = mul i64 16, %200
  %202 = trunc i64 %201 to i32
  %203 = call i32 @s2n_alloc(ptr noundef %14, i32 noundef %202)
  %204 = icmp sgt i32 %203, -1
  br i1 %204, label %207, label %205

205:                                              ; preds = %199
  %206 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 -1, ptr %206, align 4, !tbaa !16
  store i32 1, ptr %12, align 4
  br label %276

207:                                              ; preds = %199
  br label %208

208:                                              ; preds = %207
  br label %209

209:                                              ; preds = %208
  br label %210

210:                                              ; preds = %209
  %211 = call i32 @s2n_blob_zero(ptr noundef %14)
  %212 = icmp sgt i32 %211, -1
  br i1 %212, label %215, label %213

213:                                              ; preds = %210
  %214 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 -1, ptr %214, align 4, !tbaa !16
  store i32 1, ptr %12, align 4
  br label %276

215:                                              ; preds = %210
  br label %216

216:                                              ; preds = %215
  br label %217

217:                                              ; preds = %216
  %218 = getelementptr inbounds %struct.s2n_blob, ptr %14, i32 0, i32 0
  %219 = load ptr, ptr %218, align 8, !tbaa !22
  %220 = load ptr, ptr %6, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.s2n_test_iovecs, ptr %220, i32 0, i32 0
  store ptr %219, ptr %221, align 8, !tbaa !23
  %222 = load i64, ptr %13, align 8, !tbaa !9
  %223 = load ptr, ptr %6, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.s2n_test_iovecs, ptr %223, i32 0, i32 1
  store i64 %222, ptr %224, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %225

225:                                              ; preds = %241, %217
  %226 = load i64, ptr %15, align 8, !tbaa !9
  %227 = load i64, ptr %9, align 8, !tbaa !9
  %228 = icmp ult i64 %226, %227
  br i1 %228, label %230, label %229

229:                                              ; preds = %225
  store i32 33, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %244

230:                                              ; preds = %225
  %231 = load ptr, ptr %8, align 8, !tbaa !5
  %232 = load i64, ptr %15, align 8, !tbaa !9
  %233 = getelementptr inbounds i64, ptr %231, i64 %232
  %234 = load i64, ptr %233, align 8, !tbaa !9
  %235 = load ptr, ptr %6, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.s2n_test_iovecs, ptr %235, i32 0, i32 0
  %237 = load ptr, ptr %236, align 8, !tbaa !23
  %238 = load i64, ptr %15, align 8, !tbaa !9
  %239 = getelementptr inbounds %struct.iovec, ptr %237, i64 %238
  %240 = getelementptr inbounds %struct.iovec, ptr %239, i32 0, i32 1
  store i64 %234, ptr %240, align 8, !tbaa !26
  br label %241

241:                                              ; preds = %230
  %242 = load i64, ptr %15, align 8, !tbaa !9
  %243 = add i64 %242, 1
  store i64 %243, ptr %15, align 8, !tbaa !9
  br label %225, !llvm.loop !28

244:                                              ; preds = %229
  %245 = load i64, ptr %9, align 8, !tbaa !9
  %246 = load i64, ptr %13, align 8, !tbaa !9
  %247 = icmp ult i64 %245, %246
  br i1 %247, label %248, label %261

248:                                              ; preds = %244
  %249 = load ptr, ptr %7, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.s2n_blob, ptr %249, i32 0, i32 1
  %251 = load i32, ptr %250, align 8, !tbaa !20
  %252 = zext i32 %251 to i64
  %253 = load i64, ptr %10, align 8, !tbaa !9
  %254 = sub i64 %252, %253
  %255 = load ptr, ptr %6, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.s2n_test_iovecs, ptr %255, i32 0, i32 0
  %257 = load ptr, ptr %256, align 8, !tbaa !23
  %258 = load i64, ptr %9, align 8, !tbaa !9
  %259 = getelementptr inbounds %struct.iovec, ptr %257, i64 %258
  %260 = getelementptr inbounds %struct.iovec, ptr %259, i32 0, i32 1
  store i64 %254, ptr %260, align 8, !tbaa !26
  br label %261

261:                                              ; preds = %248, %244
  br label %262

262:                                              ; preds = %261
  %263 = load ptr, ptr %6, align 8, !tbaa !5
  %264 = load ptr, ptr %7, align 8, !tbaa !5
  %265 = call i32 @s2n_test_split_data(ptr noundef %263, ptr noundef %264)
  %266 = getelementptr inbounds %struct.s2n_result, ptr %16, i32 0, i32 0
  store i32 %265, ptr %266, align 4
  %267 = getelementptr inbounds %struct.s2n_result, ptr %16, i32 0, i32 0
  %268 = load i32, ptr %267, align 4
  %269 = call zeroext i1 @s2n_result_is_ok(i32 %268)
  br i1 %269, label %272, label %270

270:                                              ; preds = %262
  %271 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 -1, ptr %271, align 4, !tbaa !16
  store i32 1, ptr %12, align 4
  br label %276

272:                                              ; preds = %262
  br label %273

273:                                              ; preds = %272
  br label %274

274:                                              ; preds = %273
  %275 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 0, ptr %275, align 4, !tbaa !16
  store i32 1, ptr %12, align 4
  br label %276

276:                                              ; preds = %274, %270, %213, %205
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %277

277:                                              ; preds = %276, %181
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %278

278:                                              ; preds = %277, %123, %86, %49
  %279 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  %280 = load i32, ptr %279, align 4
  ret i32 %280
}

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

declare i32 @s2n_alloc(ptr noundef, i32 noundef) #2

declare i32 @s2n_blob_zero(ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @s2n_result_is_ok(i32) #6

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"s2n_debug_info", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !15, i64 0}
!17 = !{!"", !15, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !15, i64 8}
!21 = !{!"s2n_blob", !6, i64 0, !15, i64 8, !15, i64 12, !15, i64 16}
!22 = !{!21, !6, i64 0}
!23 = !{!24, !6, i64 0}
!24 = !{!"s2n_test_iovecs", !6, i64 0, !10, i64 8}
!25 = !{!24, !10, i64 8}
!26 = !{!27, !10, i64 8}
!27 = !{!"iovec", !6, i64 0, !10, i64 8}
!28 = distinct !{!28, !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.s2n_debug_info = type { ptr, ptr }
%struct.s2n_blob = type { ptr, i32, i32, i8 }
%struct.iovec = type { ptr, i64 }

@_s2n_debug_info = external thread_local local_unnamed_addr global %struct.s2n_debug_info, align 8
@s2n_errno = external thread_local local_unnamed_addr global i32, align 4
@.str.1 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [100 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #0

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

declare i32 @s2n_calculate_stacktrace() local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @s2n_test_new_iovecs(ptr noundef %0, ptr noundef %1, ptr noundef readonly %2, i64 noundef %3) local_unnamed_addr #4 {
  %5 = alloca %struct.s2n_blob, align 8
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %6, label %14

6:                                                ; preds = %4
  %7 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.1, ptr %7, align 8, !tbaa !5
  %8 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.1, i64 21), i32 noundef 47) #8
  %.not46 = icmp eq ptr %8, null
  %9 = getelementptr inbounds i8, ptr %8, i64 1
  %10 = select i1 %.not46, ptr getelementptr inbounds (i8, ptr @.str.1, i64 21), ptr %9
  %11 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr %10, ptr %11, align 8, !tbaa !10
  %12 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %12, align 4, !tbaa !11
  %13 = tail call i32 @s2n_calculate_stacktrace() #9
  br label %101

14:                                               ; preds = %4
  %.not47 = icmp eq ptr %1, null
  br i1 %.not47, label %15, label %23

15:                                               ; preds = %14
  %16 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.2, ptr %16, align 8, !tbaa !5
  %17 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.2, i64 21), i32 noundef 47) #8
  %.not48 = icmp eq ptr %17, null
  %18 = getelementptr inbounds i8, ptr %17, i64 1
  %19 = select i1 %.not48, ptr getelementptr inbounds (i8, ptr @.str.2, i64 21), ptr %18
  %20 = getelementptr inbounds i8, ptr %16, i64 8
  store ptr %19, ptr %20, align 8, !tbaa !10
  %21 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %21, align 4, !tbaa !11
  %22 = tail call i32 @s2n_calculate_stacktrace() #9
  br label %101

23:                                               ; preds = %14
  %.not49 = icmp eq ptr %2, null
  br i1 %.not49, label %33, label %.preheader

.preheader:                                       ; preds = %23
  %.not59 = icmp eq i64 %3, 0
  br i1 %.not59, label %._crit_edge.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader
  %min.iters.check = icmp ult i64 %3, 4
  br i1 %min.iters.check, label %.lr.ph.preheader67, label %vector.ph

.lr.ph.preheader67:                               ; preds = %middle.block, %.lr.ph.preheader
  %.03554.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %.03653.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %29, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %3, -4
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %26, %vector.body ]
  %vec.phi65 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %27, %vector.body ]
  %24 = getelementptr inbounds i64, ptr %2, i64 %index
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %wide.load = load <2 x i64>, ptr %24, align 8, !tbaa !13
  %wide.load66 = load <2 x i64>, ptr %25, align 8, !tbaa !13
  %26 = add <2 x i64> %wide.load, %vec.phi
  %27 = add <2 x i64> %wide.load66, %vec.phi65
  %index.next = add nuw i64 %index, 4
  %28 = icmp eq i64 %index.next, %n.vec
  br i1 %28, label %middle.block, label %vector.body, !llvm.loop !15

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %27, %26
  %29 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %3
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader67

._crit_edge.thread:                               ; preds = %.preheader
  %30 = getelementptr inbounds i8, ptr %1, i64 8
  %31 = load i32, ptr %30, align 8, !tbaa !19
  %32 = zext i32 %31 to i64
  br label %56

33:                                               ; preds = %23
  %34 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.3, ptr %34, align 8, !tbaa !5
  %35 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.3, i64 21), i32 noundef 47) #8
  %.not50 = icmp eq ptr %35, null
  %36 = getelementptr inbounds i8, ptr %35, i64 1
  %37 = select i1 %.not50, ptr getelementptr inbounds (i8, ptr @.str.3, i64 21), ptr %36
  %38 = getelementptr inbounds i8, ptr %34, i64 8
  store ptr %37, ptr %38, align 8, !tbaa !10
  %39 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %39, align 4, !tbaa !11
  %40 = tail call i32 @s2n_calculate_stacktrace() #9
  br label %101

._crit_edge:                                      ; preds = %.lr.ph, %middle.block
  %.lcssa = phi i64 [ %29, %middle.block ], [ %46, %.lr.ph ]
  %41 = getelementptr inbounds i8, ptr %1, i64 8
  %42 = load i32, ptr %41, align 8, !tbaa !19
  %43 = zext i32 %42 to i64
  %.not51 = icmp ugt i64 %.lcssa, %43
  br i1 %.not51, label %48, label %56

.lr.ph:                                           ; preds = %.lr.ph.preheader67, %.lr.ph
  %.03554 = phi i64 [ %47, %.lr.ph ], [ %.03554.ph, %.lr.ph.preheader67 ]
  %.03653 = phi i64 [ %46, %.lr.ph ], [ %.03653.ph, %.lr.ph.preheader67 ]
  %44 = getelementptr inbounds i64, ptr %2, i64 %.03554
  %45 = load i64, ptr %44, align 8, !tbaa !13
  %46 = add i64 %45, %.03653
  %47 = add nuw i64 %.03554, 1
  %exitcond.not = icmp eq i64 %47, %3
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !21

48:                                               ; preds = %._crit_edge
  %49 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.4, ptr %49, align 8, !tbaa !5
  %50 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.4, i64 21), i32 noundef 47) #8
  %.not52 = icmp eq ptr %50, null
  %51 = getelementptr inbounds i8, ptr %50, i64 1
  %52 = select i1 %.not52, ptr getelementptr inbounds (i8, ptr @.str.4, i64 21), ptr %51
  %53 = getelementptr inbounds i8, ptr %49, i64 8
  store ptr %52, ptr %53, align 8, !tbaa !10
  %54 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653194, ptr %54, align 4, !tbaa !11
  %55 = tail call i32 @s2n_calculate_stacktrace() #9
  br label %101

56:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %57 = phi i64 [ %32, %._crit_edge.thread ], [ %43, %._crit_edge ]
  %58 = phi ptr [ %30, %._crit_edge.thread ], [ %41, %._crit_edge ]
  %.036.lcssa64 = phi i64 [ 0, %._crit_edge.thread ], [ %.lcssa, %._crit_edge ]
  %59 = icmp ult i64 %.036.lcssa64, %57
  %60 = zext i1 %59 to i64
  %spec.select = add i64 %60, %3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, i8 0, i64 24, i1 false)
  %.034.tr = trunc i64 %spec.select to i32
  %61 = shl i32 %.034.tr, 4
  %62 = call i32 @s2n_alloc(ptr noundef nonnull %5, i32 noundef %61) #9
  %63 = icmp sgt i32 %62, -1
  br i1 %63, label %64, label %100

64:                                               ; preds = %56
  %65 = call i32 @s2n_blob_zero(ptr noundef nonnull %5) #9
  %66 = icmp sgt i32 %65, -1
  br i1 %66, label %67, label %100

67:                                               ; preds = %64
  %68 = load ptr, ptr %5, align 8, !tbaa !22
  store ptr %68, ptr %0, align 8, !tbaa !23
  %69 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %spec.select, ptr %69, align 8, !tbaa !25
  br i1 %.not59, label %._crit_edge58, label %.lr.ph57.preheader

.lr.ph57.preheader:                               ; preds = %67
  %xtraiter = and i64 %3, 3
  %70 = icmp ult i64 %3, 4
  br i1 %70, label %._crit_edge58.loopexit.unr-lcssa, label %.lr.ph57.preheader.new

.lr.ph57.preheader.new:                           ; preds = %.lr.ph57.preheader
  %unroll_iter = and i64 %3, -4
  br label %.lr.ph57

._crit_edge58.loopexit.unr-lcssa:                 ; preds = %.lr.ph57, %.lr.ph57.preheader
  %.055.unr = phi i64 [ 0, %.lr.ph57.preheader ], [ %91, %.lr.ph57 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge58, label %.lr.ph57.epil

.lr.ph57.epil:                                    ; preds = %._crit_edge58.loopexit.unr-lcssa, %.lr.ph57.epil
  %.055.epil = phi i64 [ %74, %.lr.ph57.epil ], [ %.055.unr, %._crit_edge58.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph57.epil ], [ 0, %._crit_edge58.loopexit.unr-lcssa ]
  %71 = getelementptr inbounds i64, ptr %2, i64 %.055.epil
  %72 = load i64, ptr %71, align 8, !tbaa !13
  %73 = getelementptr inbounds %struct.iovec, ptr %68, i64 %.055.epil, i32 1
  store i64 %72, ptr %73, align 8, !tbaa !26
  %74 = add nuw i64 %.055.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge58, label %.lr.ph57.epil, !llvm.loop !28

._crit_edge58:                                    ; preds = %._crit_edge58.loopexit.unr-lcssa, %.lr.ph57.epil, %67
  %75 = icmp ugt i64 %spec.select, %3
  br i1 %75, label %92, label %97

.lr.ph57:                                         ; preds = %.lr.ph57, %.lr.ph57.preheader.new
  %.055 = phi i64 [ 0, %.lr.ph57.preheader.new ], [ %91, %.lr.ph57 ]
  %niter = phi i64 [ 0, %.lr.ph57.preheader.new ], [ %niter.next.3, %.lr.ph57 ]
  %76 = getelementptr inbounds i64, ptr %2, i64 %.055
  %77 = load i64, ptr %76, align 8, !tbaa !13
  %78 = getelementptr inbounds %struct.iovec, ptr %68, i64 %.055, i32 1
  store i64 %77, ptr %78, align 8, !tbaa !26
  %79 = or disjoint i64 %.055, 1
  %80 = getelementptr inbounds i64, ptr %2, i64 %79
  %81 = load i64, ptr %80, align 8, !tbaa !13
  %82 = getelementptr inbounds %struct.iovec, ptr %68, i64 %79, i32 1
  store i64 %81, ptr %82, align 8, !tbaa !26
  %83 = or disjoint i64 %.055, 2
  %84 = getelementptr inbounds i64, ptr %2, i64 %83
  %85 = load i64, ptr %84, align 8, !tbaa !13
  %86 = getelementptr inbounds %struct.iovec, ptr %68, i64 %83, i32 1
  store i64 %85, ptr %86, align 8, !tbaa !26
  %87 = or disjoint i64 %.055, 3
  %88 = getelementptr inbounds i64, ptr %2, i64 %87
  %89 = load i64, ptr %88, align 8, !tbaa !13
  %90 = getelementptr inbounds %struct.iovec, ptr %68, i64 %87, i32 1
  store i64 %89, ptr %90, align 8, !tbaa !26
  %91 = add nuw i64 %.055, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge58.loopexit.unr-lcssa, label %.lr.ph57, !llvm.loop !30

92:                                               ; preds = %._crit_edge58
  %93 = load i32, ptr %58, align 8, !tbaa !19
  %94 = zext i32 %93 to i64
  %95 = sub nsw i64 %94, %.036.lcssa64
  %96 = getelementptr inbounds %struct.iovec, ptr %68, i64 %3, i32 1
  store i64 %95, ptr %96, align 8, !tbaa !26
  br label %97

97:                                               ; preds = %._crit_edge58, %92
  %98 = call i32 @s2n_test_split_data(ptr noundef nonnull %0, ptr noundef nonnull %1)
  %99 = call zeroext i1 @s2n_result_is_ok(i32 %98)
  %not. = xor i1 %99, true
  %. = sext i1 %not. to i32
  br label %100

100:                                              ; preds = %97, %64, %56
  %.sroa.033.0 = phi i32 [ -1, %56 ], [ -1, %64 ], [ %., %97 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  br label %101

101:                                              ; preds = %48, %100, %33, %15, %6
  %.sroa.033.2 = phi i32 [ -1, %33 ], [ -1, %15 ], [ -1, %6 ], [ %.sroa.033.0, %100 ], [ -1, %48 ]
  ret i32 %.sroa.033.2
}

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

declare i32 @s2n_alloc(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @s2n_blob_zero(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @s2n_result_is_ok(i32) local_unnamed_addr #6

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #7

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"s2n_debug_info", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = distinct !{!15, !16, !17, !18}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = !{!20, !12, i64 8}
!20 = !{!"s2n_blob", !7, i64 0, !12, i64 8, !12, i64 12, !12, i64 16}
!21 = distinct !{!21, !16, !18, !17}
!22 = !{!20, !7, i64 0}
!23 = !{!24, !7, i64 0}
!24 = !{!"s2n_test_iovecs", !7, i64 0, !14, i64 8}
!25 = !{!24, !14, i64 8}
!26 = !{!27, !14, i64 8}
!27 = !{!"iovec", !7, i64 0, !14, i64 8}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.unroll.disable"}
!30 = distinct !{!30, !16}


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