; LLVM IR from jovanlanik/wip :: src (wip_mdl)

; 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.msh_ply_desc = type { ptr, ptr, i16, i32, i32, ptr, ptr, ptr, i8 }
%struct.wip_ply_t = type { i32, i32, ptr, ptr, ptr, ptr, ptr }
%struct.msh_ply_element = type { [64 x i8], i32, ptr, i64, ptr, i64 }

@.str.15 = external hidden unnamed_addr constant [29 x i8], align 1
@__func__.wip_readModel = external hidden unnamed_addr constant [14 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1
@constinit = external hidden constant [3 x ptr], align 8
@constinit.23 = external hidden constant [3 x ptr], align 8
@.str.24 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1
@constinit.30 = external hidden constant [4 x ptr], align 8
@.str.31 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @msh_ply_error_msg(i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @msh_ply_find_element(ptr noundef, ptr noundef) #0

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @msh_ply_has_properties(ptr noundef, ptr noundef) #0

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @msh_ply_parse_header(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @msh_ply_read(ptr noundef) #0

declare ptr @_wip_alloc(i64 noundef, ptr noundef) #2

declare void @_wip_free(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @msh_ply_open(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @msh_ply_close(ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local ptr @wip_readModel(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.msh_ply_desc, align 8
  %7 = alloca [3 x ptr], align 8
  %8 = alloca %struct.msh_ply_desc, align 8
  %9 = alloca [3 x ptr], align 8
  %10 = alloca %struct.msh_ply_desc, align 8
  %11 = alloca [2 x ptr], align 8
  %12 = alloca %struct.msh_ply_desc, align 8
  %13 = alloca [4 x ptr], align 8
  %14 = alloca %struct.msh_ply_desc, align 8
  %15 = alloca [1 x ptr], align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca [3 x float], align 4
  %28 = alloca ptr, align 8
  %29 = alloca [3 x float], align 4
  %30 = alloca ptr, align 8
  %31 = alloca [4 x i8], align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  call void (i32, ptr, ...) @wip_log(i32 noundef 0, ptr noundef @.str.15, ptr noundef @__func__.wip_readModel, ptr noundef %32)
  call void @llvm.lifetime.start.p0(i64 64, ptr %6) #4
  %33 = getelementptr inbounds %struct.msh_ply_desc, ptr %6, i32 0, i32 0
  store ptr @.str.16, ptr %33, align 8, !tbaa !9
  %34 = getelementptr inbounds %struct.msh_ply_desc, ptr %6, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 @constinit, i64 24, i1 false), !tbaa.struct !13
  %35 = getelementptr inbounds [3 x ptr], ptr %7, i64 0, i64 0
  store ptr %35, ptr %34, align 8, !tbaa !15
  %36 = getelementptr inbounds %struct.msh_ply_desc, ptr %6, i32 0, i32 2
  store i16 3, ptr %36, align 8, !tbaa !16
  %37 = getelementptr inbounds %struct.msh_ply_desc, ptr %6, i32 0, i32 3
  store i32 7, ptr %37, align 4, !tbaa !17
  %38 = getelementptr inbounds %struct.msh_ply_desc, ptr %6, i32 0, i32 4
  store i32 0, ptr %38, align 8, !tbaa !18
  %39 = getelementptr inbounds %struct.msh_ply_desc, ptr %6, i32 0, i32 5
  store ptr null, ptr %39, align 8, !tbaa !19
  %40 = getelementptr inbounds %struct.msh_ply_desc, ptr %6, i32 0, i32 6
  store ptr null, ptr %40, align 8, !tbaa !20
  %41 = getelementptr inbounds %struct.msh_ply_desc, ptr %6, i32 0, i32 7
  store ptr null, ptr %41, align 8, !tbaa !21
  %42 = getelementptr inbounds %struct.msh_ply_desc, ptr %6, i32 0, i32 8
  store i8 0, ptr %42, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 64, ptr %8) #4
  %43 = getelementptr inbounds %struct.msh_ply_desc, ptr %8, i32 0, i32 0
  store ptr @.str.16, ptr %43, align 8, !tbaa !9
  %44 = getelementptr inbounds %struct.msh_ply_desc, ptr %8, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 @constinit.23, i64 24, i1 false), !tbaa.struct !13
  %45 = getelementptr inbounds [3 x ptr], ptr %9, i64 0, i64 0
  store ptr %45, ptr %44, align 8, !tbaa !15
  %46 = getelementptr inbounds %struct.msh_ply_desc, ptr %8, i32 0, i32 2
  store i16 3, ptr %46, align 8, !tbaa !16
  %47 = getelementptr inbounds %struct.msh_ply_desc, ptr %8, i32 0, i32 3
  store i32 7, ptr %47, align 4, !tbaa !17
  %48 = getelementptr inbounds %struct.msh_ply_desc, ptr %8, i32 0, i32 4
  store i32 0, ptr %48, align 8, !tbaa !18
  %49 = getelementptr inbounds %struct.msh_ply_desc, ptr %8, i32 0, i32 5
  store ptr null, ptr %49, align 8, !tbaa !19
  %50 = getelementptr inbounds %struct.msh_ply_desc, ptr %8, i32 0, i32 6
  store ptr null, ptr %50, align 8, !tbaa !20
  %51 = getelementptr inbounds %struct.msh_ply_desc, ptr %8, i32 0, i32 7
  store ptr null, ptr %51, align 8, !tbaa !21
  %52 = getelementptr inbounds %struct.msh_ply_desc, ptr %8, i32 0, i32 8
  store i8 0, ptr %52, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #4
  %53 = getelementptr inbounds %struct.msh_ply_desc, ptr %10, i32 0, i32 0
  store ptr @.str.16, ptr %53, align 8, !tbaa !9
  %54 = getelementptr inbounds %struct.msh_ply_desc, ptr %10, i32 0, i32 1
  store ptr @.str.24, ptr %11, align 8, !tbaa !5
  %55 = getelementptr inbounds ptr, ptr %11, i64 1
  store ptr @.str.25, ptr %55, align 8, !tbaa !5
  %56 = getelementptr inbounds [2 x ptr], ptr %11, i64 0, i64 0
  store ptr %56, ptr %54, align 8, !tbaa !15
  %57 = getelementptr inbounds %struct.msh_ply_desc, ptr %10, i32 0, i32 2
  store i16 2, ptr %57, align 8, !tbaa !16
  %58 = getelementptr inbounds %struct.msh_ply_desc, ptr %10, i32 0, i32 3
  store i32 7, ptr %58, align 4, !tbaa !17
  %59 = getelementptr inbounds %struct.msh_ply_desc, ptr %10, i32 0, i32 4
  store i32 0, ptr %59, align 8, !tbaa !18
  %60 = getelementptr inbounds %struct.msh_ply_desc, ptr %10, i32 0, i32 5
  store ptr null, ptr %60, align 8, !tbaa !19
  %61 = getelementptr inbounds %struct.msh_ply_desc, ptr %10, i32 0, i32 6
  store ptr null, ptr %61, align 8, !tbaa !20
  %62 = getelementptr inbounds %struct.msh_ply_desc, ptr %10, i32 0, i32 7
  store ptr null, ptr %62, align 8, !tbaa !21
  %63 = getelementptr inbounds %struct.msh_ply_desc, ptr %10, i32 0, i32 8
  store i8 0, ptr %63, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #4
  %64 = getelementptr inbounds %struct.msh_ply_desc, ptr %12, i32 0, i32 0
  store ptr @.str.16, ptr %64, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct.msh_ply_desc, ptr %12, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 @constinit.30, i64 32, i1 false), !tbaa.struct !23
  %66 = getelementptr inbounds [4 x ptr], ptr %13, i64 0, i64 0
  store ptr %66, ptr %65, align 8, !tbaa !15
  %67 = getelementptr inbounds %struct.msh_ply_desc, ptr %12, i32 0, i32 2
  store i16 4, ptr %67, align 8, !tbaa !16
  %68 = getelementptr inbounds %struct.msh_ply_desc, ptr %12, i32 0, i32 3
  store i32 2, ptr %68, align 4, !tbaa !17
  %69 = getelementptr inbounds %struct.msh_ply_desc, ptr %12, i32 0, i32 4
  store i32 0, ptr %69, align 8, !tbaa !18
  %70 = getelementptr inbounds %struct.msh_ply_desc, ptr %12, i32 0, i32 5
  store ptr null, ptr %70, align 8, !tbaa !19
  %71 = getelementptr inbounds %struct.msh_ply_desc, ptr %12, i32 0, i32 6
  store ptr null, ptr %71, align 8, !tbaa !20
  %72 = getelementptr inbounds %struct.msh_ply_desc, ptr %12, i32 0, i32 7
  store ptr null, ptr %72, align 8, !tbaa !21
  %73 = getelementptr inbounds %struct.msh_ply_desc, ptr %12, i32 0, i32 8
  store i8 0, ptr %73, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #4
  %74 = getelementptr inbounds %struct.msh_ply_desc, ptr %14, i32 0, i32 0
  store ptr @.str.31, ptr %74, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct.msh_ply_desc, ptr %14, i32 0, i32 1
  store ptr @.str.32, ptr %15, align 8, !tbaa !5
  %76 = getelementptr inbounds [1 x ptr], ptr %15, i64 0, i64 0
  store ptr %76, ptr %75, align 8, !tbaa !15
  %77 = getelementptr inbounds %struct.msh_ply_desc, ptr %14, i32 0, i32 2
  store i16 1, ptr %77, align 8, !tbaa !16
  %78 = getelementptr inbounds %struct.msh_ply_desc, ptr %14, i32 0, i32 3
  store i32 6, ptr %78, align 4, !tbaa !17
  %79 = getelementptr inbounds %struct.msh_ply_desc, ptr %14, i32 0, i32 4
  store i32 2, ptr %79, align 8, !tbaa !18
  %80 = getelementptr inbounds %struct.msh_ply_desc, ptr %14, i32 0, i32 5
  store ptr null, ptr %80, align 8, !tbaa !19
  %81 = getelementptr inbounds %struct.msh_ply_desc, ptr %14, i32 0, i32 6
  store ptr null, ptr %81, align 8, !tbaa !20
  %82 = getelementptr inbounds %struct.msh_ply_desc, ptr %14, i32 0, i32 7
  store ptr null, ptr %82, align 8, !tbaa !21
  %83 = getelementptr inbounds %struct.msh_ply_desc, ptr %14, i32 0, i32 8
  store i8 3, ptr %83, align 8, !tbaa !22
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.wip_ply_t, ptr %84, i32 0, i32 2
  %86 = getelementptr inbounds %struct.msh_ply_desc, ptr %6, i32 0, i32 5
  store ptr %85, ptr %86, align 8, !tbaa !19
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.wip_ply_t, ptr %87, i32 0, i32 0
  %89 = getelementptr inbounds %struct.msh_ply_desc, ptr %6, i32 0, i32 7
  store ptr %88, ptr %89, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.wip_ply_t, ptr %90, i32 0, i32 3
  %92 = getelementptr inbounds %struct.msh_ply_desc, ptr %8, i32 0, i32 5
  store ptr %91, ptr %92, align 8, !tbaa !19
  %93 = getelementptr inbounds %struct.msh_ply_desc, ptr %8, i32 0, i32 7
  store ptr %16, ptr %93, align 8, !tbaa !21
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.wip_ply_t, ptr %94, i32 0, i32 4
  %96 = getelementptr inbounds %struct.msh_ply_desc, ptr %10, i32 0, i32 5
  store ptr %95, ptr %96, align 8, !tbaa !19
  %97 = getelementptr inbounds %struct.msh_ply_desc, ptr %10, i32 0, i32 7
  store ptr %17, ptr %97, align 8, !tbaa !21
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.wip_ply_t, ptr %98, i32 0, i32 5
  %100 = getelementptr inbounds %struct.msh_ply_desc, ptr %12, i32 0, i32 5
  store ptr %99, ptr %100, align 8, !tbaa !19
  %101 = getelementptr inbounds %struct.msh_ply_desc, ptr %12, i32 0, i32 7
  store ptr %18, ptr %101, align 8, !tbaa !21
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.wip_ply_t, ptr %102, i32 0, i32 6
  %104 = getelementptr inbounds %struct.msh_ply_desc, ptr %14, i32 0, i32 5
  store ptr %103, ptr %104, align 8, !tbaa !19
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.wip_ply_t, ptr %105, i32 0, i32 1
  %107 = getelementptr inbounds %struct.msh_ply_desc, ptr %14, i32 0, i32 7
  store ptr %106, ptr %107, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #4
  store i8 1, ptr %19, align 1, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #4
  store i8 1, ptr %20, align 1, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #4
  store i8 1, ptr %21, align 1, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 0, ptr %22, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = call ptr @msh_ply_open(ptr noundef %108, ptr noundef @.str.33)
  store ptr %109, ptr %23, align 8, !tbaa !5
  %110 = load ptr, ptr %23, align 8, !tbaa !5
  %111 = icmp ne ptr %110, null
  br i1 %111, label %114, label %112

112:                                              ; preds = %2
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  call void (i32, ptr, ...) @wip_log(i32 noundef 2, ptr noundef @.str.34, ptr noundef @__func__.wip_readModel, ptr noundef %113)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %24, align 4
  br label %275

114:                                              ; preds = %2
  %115 = load ptr, ptr %23, align 8, !tbaa !5
  %116 = call i32 @msh_ply_parse_header(ptr noundef %115)
  store i32 %116, ptr %22, align 4, !tbaa !26
  %117 = load i32, ptr %22, align 4, !tbaa !26
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %122

119:                                              ; preds = %114
  %120 = load i32, ptr %22, align 4, !tbaa !26
  %121 = call ptr @msh_ply_error_msg(i32 noundef %120)
  call void (i32, ptr, ...) @wip_log(i32 noundef 2, ptr noundef @.str.35, ptr noundef @__func__.wip_readModel, ptr noundef %121)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %24, align 4
  br label %275

122:                                              ; preds = %114
  %123 = load ptr, ptr %23, align 8, !tbaa !5
  %124 = call i32 @msh_ply_add_descriptor(ptr noundef %123, ptr noundef %6)
  store i32 %124, ptr %22, align 4, !tbaa !26
  %125 = load i32, ptr %22, align 4, !tbaa !26
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %130

127:                                              ; preds = %122
  %128 = load i32, ptr %22, align 4, !tbaa !26
  %129 = call ptr @msh_ply_error_msg(i32 noundef %128)
  call void (i32, ptr, ...) @wip_log(i32 noundef 2, ptr noundef @.str.36, ptr noundef @__func__.wip_readModel, ptr noundef %129)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %24, align 4
  br label %275

130:                                              ; preds = %122
  %131 = load ptr, ptr %23, align 8, !tbaa !5
  %132 = call zeroext i1 @msh_ply_has_properties(ptr noundef %131, ptr noundef %8)
  br i1 %132, label %133, label %136

133:                                              ; preds = %130
  %134 = load ptr, ptr %23, align 8, !tbaa !5
  %135 = call i32 @msh_ply_add_descriptor(ptr noundef %134, ptr noundef %8)
  br label %137

136:                                              ; preds = %130
  store i8 0, ptr %19, align 1, !tbaa !24
  br label %137

137:                                              ; preds = %136, %133
  %138 = load ptr, ptr %23, align 8, !tbaa !5
  %139 = call zeroext i1 @msh_ply_has_properties(ptr noundef %138, ptr noundef %10)
  br i1 %139, label %140, label %143

140:                                              ; preds = %137
  %141 = load ptr, ptr %23, align 8, !tbaa !5
  %142 = call i32 @msh_ply_add_descriptor(ptr noundef %141, ptr noundef %10)
  br label %144

143:                                              ; preds = %137
  store i8 0, ptr %20, align 1, !tbaa !24
  br label %144

144:                                              ; preds = %143, %140
  %145 = load ptr, ptr %23, align 8, !tbaa !5
  %146 = call zeroext i1 @msh_ply_has_properties(ptr noundef %145, ptr noundef %12)
  br i1 %146, label %147, label %150

147:                                              ; preds = %144
  %148 = load ptr, ptr %23, align 8, !tbaa !5
  %149 = call i32 @msh_ply_add_descriptor(ptr noundef %148, ptr noundef %12)
  br label %151

150:                                              ; preds = %144
  store i8 0, ptr %21, align 1, !tbaa !24
  br label %151

151:                                              ; preds = %150, %147
  %152 = load ptr, ptr %23, align 8, !tbaa !5
  %153 = call i32 @msh_ply_add_descriptor(ptr noundef %152, ptr noundef %14)
  store i32 %153, ptr %22, align 4, !tbaa !26
  %154 = load i32, ptr %22, align 4, !tbaa !26
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %159

156:                                              ; preds = %151
  %157 = load i32, ptr %22, align 4, !tbaa !26
  %158 = call ptr @msh_ply_error_msg(i32 noundef %157)
  call void (i32, ptr, ...) @wip_log(i32 noundef 2, ptr noundef @.str.36, ptr noundef @__func__.wip_readModel, ptr noundef %158)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %24, align 4
  br label %275

159:                                              ; preds = %151
  %160 = load ptr, ptr %23, align 8, !tbaa !5
  %161 = call i32 @msh_ply_read(ptr noundef %160)
  store i32 %161, ptr %22, align 4, !tbaa !26
  %162 = load i32, ptr %22, align 4, !tbaa !26
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %164, label %167

164:                                              ; preds = %159
  %165 = load i32, ptr %22, align 4, !tbaa !26
  %166 = call ptr @msh_ply_error_msg(i32 noundef %165)
  call void (i32, ptr, ...) @wip_log(i32 noundef 2, ptr noundef @.str.36, ptr noundef @__func__.wip_readModel, ptr noundef %166)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %24, align 4
  br label %275

167:                                              ; preds = %159
  %168 = load ptr, ptr %23, align 8, !tbaa !5
  %169 = call ptr @msh_ply_find_element(ptr noundef %168, ptr noundef @.str.16)
  %170 = getelementptr inbounds %struct.msh_ply_element, ptr %169, i32 0, i32 4
  %171 = load ptr, ptr %170, align 8, !tbaa !27
  call void @_wip_free(ptr noundef %171, ptr noundef @__func__.wip_readModel)
  %172 = load ptr, ptr %23, align 8, !tbaa !5
  %173 = call ptr @msh_ply_find_element(ptr noundef %172, ptr noundef @.str.31)
  %174 = getelementptr inbounds %struct.msh_ply_element, ptr %173, i32 0, i32 4
  %175 = load ptr, ptr %174, align 8, !tbaa !27
  call void @_wip_free(ptr noundef %175, ptr noundef @__func__.wip_readModel)
  %176 = load ptr, ptr %23, align 8, !tbaa !5
  call void @msh_ply_close(ptr noundef %176)
  %177 = load i8, ptr %19, align 1, !tbaa !24, !range !30, !noundef !31
  %178 = trunc i8 %177 to i1
  br i1 %178, label %189, label %179

179:                                              ; preds = %167
  call void (i32, ptr, ...) @wip_log(i32 noundef 1, ptr noundef @.str.37, ptr noundef @__func__.wip_readModel)
  %180 = getelementptr inbounds %struct.msh_ply_desc, ptr %6, i32 0, i32 7
  %181 = load ptr, ptr %180, align 8, !tbaa !21
  %182 = load i32, ptr %181, align 4, !tbaa !26
  %183 = mul nsw i32 %182, 3
  %184 = sext i32 %183 to i64
  %185 = mul i64 %184, 4
  %186 = call ptr @_wip_alloc(i64 noundef %185, ptr noundef @__func__.wip_readModel)
  %187 = getelementptr inbounds %struct.msh_ply_desc, ptr %8, i32 0, i32 5
  %188 = load ptr, ptr %187, align 8, !tbaa !19
  store ptr %186, ptr %188, align 8, !tbaa !5
  br label %189

189:                                              ; preds = %179, %167
  %190 = load i8, ptr %20, align 1, !tbaa !24, !range !30, !noundef !31
  %191 = trunc i8 %190 to i1
  br i1 %191, label %202, label %192

192:                                              ; preds = %189
  call void (i32, ptr, ...) @wip_log(i32 noundef 1, ptr noundef @.str.38, ptr noundef @__func__.wip_readModel)
  %193 = getelementptr inbounds %struct.msh_ply_desc, ptr %6, i32 0, i32 7
  %194 = load ptr, ptr %193, align 8, !tbaa !21
  %195 = load i32, ptr %194, align 4, !tbaa !26
  %196 = mul nsw i32 %195, 2
  %197 = sext i32 %196 to i64
  %198 = mul i64 %197, 4
  %199 = call ptr @_wip_alloc(i64 noundef %198, ptr noundef @__func__.wip_readModel)
  %200 = getelementptr inbounds %struct.msh_ply_desc, ptr %10, i32 0, i32 5
  %201 = load ptr, ptr %200, align 8, !tbaa !19
  store ptr %199, ptr %201, align 8, !tbaa !5
  br label %202

202:                                              ; preds = %192, %189
  %203 = load i8, ptr %21, align 1, !tbaa !24, !range !30, !noundef !31
  %204 = trunc i8 %203 to i1
  br i1 %204, label %215, label %205

205:                                              ; preds = %202
  call void (i32, ptr, ...) @wip_log(i32 noundef 1, ptr noundef @.str.39, ptr noundef @__func__.wip_readModel)
  %206 = getelementptr inbounds %struct.msh_ply_desc, ptr %6, i32 0, i32 7
  %207 = load ptr, ptr %206, align 8, !tbaa !21
  %208 = load i32, ptr %207, align 4, !tbaa !26
  %209 = mul nsw i32 %208, 4
  %210 = sext i32 %209 to i64
  %211 = mul i64 %210, 1
  %212 = call ptr @_wip_alloc(i64 noundef %211, ptr noundef @__func__.wip_readModel)
  %213 = getelementptr inbounds %struct.msh_ply_desc, ptr %12, i32 0, i32 5
  %214 = load ptr, ptr %213, align 8, !tbaa !19
  store ptr %212, ptr %214, align 8, !tbaa !5
  br label %215

215:                                              ; preds = %205, %202
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  store i32 0, ptr %25, align 4, !tbaa !26
  br label %216

216:                                              ; preds = %270, %215
  %217 = load i32, ptr %25, align 4, !tbaa !26
  %218 = getelementptr inbounds %struct.msh_ply_desc, ptr %6, i32 0, i32 7
  %219 = load ptr, ptr %218, align 8, !tbaa !21
  %220 = load i32, ptr %219, align 4, !tbaa !26
  %221 = icmp slt i32 %217, %220
  br i1 %221, label %223, label %222

222:                                              ; preds = %216
  store i32 2, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  br label %273

223:                                              ; preds = %216
  %224 = load i8, ptr %19, align 1, !tbaa !24, !range !30, !noundef !31
  %225 = trunc i8 %224 to i1
  br i1 %225, label %238, label %226

226:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %227 = getelementptr inbounds %struct.msh_ply_desc, ptr %8, i32 0, i32 5
  %228 = load ptr, ptr %227, align 8, !tbaa !19
  %229 = load ptr, ptr %228, align 8, !tbaa !5
  store ptr %229, ptr %26, align 8, !tbaa !5
  %230 = load ptr, ptr %26, align 8, !tbaa !5
  %231 = load i32, ptr %25, align 4, !tbaa !26
  %232 = mul nsw i32 3, %231
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds float, ptr %230, i64 %233
  store float 0.000000e+00, ptr %27, align 4, !tbaa !32
  %235 = getelementptr inbounds float, ptr %27, i64 1
  store float 0.000000e+00, ptr %235, align 4, !tbaa !32
  %236 = getelementptr inbounds float, ptr %27, i64 2
  store float 0.000000e+00, ptr %236, align 4, !tbaa !32
  %237 = getelementptr inbounds [3 x float], ptr %27, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %234, ptr align 4 %237, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  br label %238

238:                                              ; preds = %226, %223
  %239 = load i8, ptr %20, align 1, !tbaa !24, !range !30, !noundef !31
  %240 = trunc i8 %239 to i1
  br i1 %240, label %253, label %241

241:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %242 = getelementptr inbounds %struct.msh_ply_desc, ptr %10, i32 0, i32 5
  %243 = load ptr, ptr %242, align 8, !tbaa !19
  %244 = load ptr, ptr %243, align 8, !tbaa !5
  store ptr %244, ptr %28, align 8, !tbaa !5
  %245 = load ptr, ptr %28, align 8, !tbaa !5
  %246 = load i32, ptr %25, align 4, !tbaa !26
  %247 = mul nsw i32 2, %246
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds float, ptr %245, i64 %248
  store float 0.000000e+00, ptr %29, align 4, !tbaa !32
  %250 = getelementptr inbounds float, ptr %29, i64 1
  store float 0.000000e+00, ptr %250, align 4, !tbaa !32
  %251 = getelementptr inbounds float, ptr %29, i64 2
  store float 0.000000e+00, ptr %251, align 4, !tbaa !32
  %252 = getelementptr inbounds [3 x float], ptr %29, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %249, ptr align 4 %252, i64 8, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  br label %253

253:                                              ; preds = %241, %238
  %254 = load i8, ptr %21, align 1, !tbaa !24, !range !30, !noundef !31
  %255 = trunc i8 %254 to i1
  br i1 %255, label %269, label %256

256:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %257 = getelementptr inbounds %struct.msh_ply_desc, ptr %12, i32 0, i32 5
  %258 = load ptr, ptr %257, align 8, !tbaa !19
  %259 = load ptr, ptr %258, align 8, !tbaa !5
  store ptr %259, ptr %30, align 8, !tbaa !5
  %260 = load ptr, ptr %30, align 8, !tbaa !5
  %261 = load i32, ptr %25, align 4, !tbaa !26
  %262 = mul nsw i32 4, %261
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds i8, ptr %260, i64 %263
  store i8 -1, ptr %31, align 1, !tbaa !14
  %265 = getelementptr inbounds i8, ptr %31, i64 1
  store i8 -1, ptr %265, align 1, !tbaa !14
  %266 = getelementptr inbounds i8, ptr %31, i64 2
  store i8 -1, ptr %266, align 1, !tbaa !14
  %267 = getelementptr inbounds i8, ptr %31, i64 3
  store i8 -1, ptr %267, align 1, !tbaa !14
  %268 = getelementptr inbounds [4 x i8], ptr %31, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %264, ptr align 1 %268, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  br label %269

269:                                              ; preds = %256, %253
  br label %270

270:                                              ; preds = %269
  %271 = load i32, ptr %25, align 4, !tbaa !26
  %272 = add nsw i32 %271, 1
  store i32 %272, ptr %25, align 4, !tbaa !26
  br label %216, !llvm.loop !34

273:                                              ; preds = %222
  call void (i32, ptr, ...) @wip_log(i32 noundef 0, ptr noundef @.str.40, ptr noundef @__func__.wip_readModel)
  %274 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %274, ptr %3, align 8
  store i32 1, ptr %24, align 4
  br label %275

275:                                              ; preds = %273, %164, %156, %127, %119, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #4
  %276 = load ptr, ptr %3, align 8
  ret ptr %276
}

declare void @wip_log(i32 noundef, ptr noundef, ...) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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 = { "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 nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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, !6, i64 0}
!10 = !{!"msh_ply_desc", !6, i64 0, !6, i64 8, !11, i64 16, !12, i64 20, !12, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !7, i64 56}
!11 = !{!"short", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 24, !14}
!14 = !{!7, !7, i64 0}
!15 = !{!10, !6, i64 8}
!16 = !{!10, !11, i64 16}
!17 = !{!10, !12, i64 20}
!18 = !{!10, !12, i64 24}
!19 = !{!10, !6, i64 32}
!20 = !{!10, !6, i64 40}
!21 = !{!10, !6, i64 48}
!22 = !{!10, !7, i64 56}
!23 = !{i64 0, i64 32, !14}
!24 = !{!25, !25, i64 0}
!25 = !{!"_Bool", !7, i64 0}
!26 = !{!12, !12, i64 0}
!27 = !{!28, !6, i64 88}
!28 = !{!"msh_ply_element", !7, i64 0, !12, i64 64, !6, i64 72, !29, i64 80, !6, i64 88, !29, i64 96}
!29 = !{!"long", !7, i64 0}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!33, !33, i64 0}
!33 = !{!"float", !7, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}


; 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.msh_ply_desc = type { ptr, ptr, i16, i32, i32, ptr, ptr, ptr, i8 }

@.str.15 = external hidden unnamed_addr constant [29 x i8], align 1
@__func__.wip_readModel = external hidden unnamed_addr constant [14 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [7 x i8], align 1
@constinit = external hidden local_unnamed_addr constant [3 x ptr], align 8
@constinit.23 = external hidden local_unnamed_addr constant [3 x ptr], align 8
@.str.24 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1
@constinit.30 = external hidden local_unnamed_addr constant [4 x ptr], align 8
@.str.31 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [10 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @msh_ply_find_element(ptr noundef, ptr noundef) local_unnamed_addr #0

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @msh_ply_has_properties(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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

declare ptr @_wip_alloc(i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @_wip_free(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @msh_ply_open(ptr noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @wip_readModel(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca %struct.msh_ply_desc, align 8
  %4 = alloca [3 x ptr], align 8
  %5 = alloca %struct.msh_ply_desc, align 8
  %6 = alloca [3 x ptr], align 8
  %7 = alloca %struct.msh_ply_desc, align 8
  %8 = alloca [2 x ptr], align 8
  %9 = alloca %struct.msh_ply_desc, align 8
  %10 = alloca [4 x ptr], align 8
  %11 = alloca %struct.msh_ply_desc, align 8
  %12 = alloca [1 x ptr], align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  tail call void (i32, ptr, ...) @wip_log(i32 noundef 0, ptr noundef nonnull @.str.15, ptr noundef nonnull @__func__.wip_readModel, ptr noundef %1) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #5
  store ptr @.str.16, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %3, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) @constinit, i64 24, i1 false), !tbaa.struct !12
  store ptr %4, ptr %16, align 8, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %3, i64 16
  store i16 3, ptr %17, align 8, !tbaa !15
  %18 = getelementptr inbounds i8, ptr %3, i64 20
  store i32 7, ptr %18, align 4, !tbaa !16
  %19 = getelementptr inbounds i8, ptr %3, i64 24
  store i32 0, ptr %19, align 8, !tbaa !17
  %20 = getelementptr inbounds i8, ptr %3, i64 32
  %21 = getelementptr inbounds i8, ptr %3, i64 48
  %22 = getelementptr inbounds i8, ptr %3, i64 40
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(17) %22, i8 0, i64 17, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #5
  store ptr @.str.16, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %5, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) @constinit.23, i64 24, i1 false), !tbaa.struct !12
  store ptr %6, ptr %23, align 8, !tbaa !14
  %24 = getelementptr inbounds i8, ptr %5, i64 16
  store i16 3, ptr %24, align 8, !tbaa !15
  %25 = getelementptr inbounds i8, ptr %5, i64 20
  store i32 7, ptr %25, align 4, !tbaa !16
  %26 = getelementptr inbounds i8, ptr %5, i64 24
  store i32 0, ptr %26, align 8, !tbaa !17
  %27 = getelementptr inbounds i8, ptr %5, i64 32
  %28 = getelementptr inbounds i8, ptr %5, i64 48
  %29 = getelementptr inbounds i8, ptr %5, i64 40
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(17) %29, i8 0, i64 17, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #5
  store ptr @.str.16, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr @.str.24, ptr %8, align 8, !tbaa !18
  %31 = getelementptr inbounds i8, ptr %8, i64 8
  store ptr @.str.25, ptr %31, align 8, !tbaa !18
  store ptr %8, ptr %30, align 8, !tbaa !14
  %32 = getelementptr inbounds i8, ptr %7, i64 16
  store i16 2, ptr %32, align 8, !tbaa !15
  %33 = getelementptr inbounds i8, ptr %7, i64 20
  store i32 7, ptr %33, align 4, !tbaa !16
  %34 = getelementptr inbounds i8, ptr %7, i64 24
  store i32 0, ptr %34, align 8, !tbaa !17
  %35 = getelementptr inbounds i8, ptr %7, i64 32
  %36 = getelementptr inbounds i8, ptr %7, i64 48
  %37 = getelementptr inbounds i8, ptr %7, i64 40
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(17) %37, i8 0, i64 17, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  store ptr @.str.16, ptr %9, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %9, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) @constinit.30, i64 32, i1 false), !tbaa.struct !19
  store ptr %10, ptr %38, align 8, !tbaa !14
  %39 = getelementptr inbounds i8, ptr %9, i64 16
  store i16 4, ptr %39, align 8, !tbaa !15
  %40 = getelementptr inbounds i8, ptr %9, i64 20
  store i32 2, ptr %40, align 4, !tbaa !16
  %41 = getelementptr inbounds i8, ptr %9, i64 24
  store i32 0, ptr %41, align 8, !tbaa !17
  %42 = getelementptr inbounds i8, ptr %9, i64 32
  %43 = getelementptr inbounds i8, ptr %9, i64 48
  %44 = getelementptr inbounds i8, ptr %9, i64 40
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(17) %44, i8 0, i64 17, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #5
  store ptr @.str.31, ptr %11, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %11, i64 8
  store ptr @.str.32, ptr %12, align 8, !tbaa !18
  store ptr %12, ptr %45, align 8, !tbaa !14
  %46 = getelementptr inbounds i8, ptr %11, i64 16
  store i16 1, ptr %46, align 8, !tbaa !15
  %47 = getelementptr inbounds i8, ptr %11, i64 20
  store i32 6, ptr %47, align 4, !tbaa !16
  %48 = getelementptr inbounds i8, ptr %11, i64 24
  store i32 2, ptr %48, align 8, !tbaa !17
  %49 = getelementptr inbounds i8, ptr %11, i64 32
  %50 = getelementptr inbounds i8, ptr %11, i64 48
  %51 = getelementptr inbounds i8, ptr %11, i64 56
  %52 = getelementptr inbounds i8, ptr %11, i64 40
  store i64 0, ptr %52, align 8
  store i8 3, ptr %51, align 8, !tbaa !20
  %53 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %53, ptr %20, align 8, !tbaa !21
  store ptr %0, ptr %21, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  %54 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %54, ptr %27, align 8, !tbaa !21
  store ptr %13, ptr %28, align 8, !tbaa !22
  %55 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %55, ptr %35, align 8, !tbaa !21
  store ptr %14, ptr %36, align 8, !tbaa !22
  %56 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %56, ptr %42, align 8, !tbaa !21
  store ptr %15, ptr %43, align 8, !tbaa !22
  %57 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %57, ptr %49, align 8, !tbaa !21
  %58 = getelementptr inbounds i8, ptr %0, i64 4
  store ptr %58, ptr %50, align 8, !tbaa !22
  %59 = call ptr @msh_ply_open(ptr noundef %1, ptr noundef nonnull @.str.33)
  %.not = icmp eq ptr %59, null
  br i1 %.not, label %60, label %61

60:                                               ; preds = %2
  call void (i32, ptr, ...) @wip_log(i32 noundef 2, ptr noundef nonnull @.str.34, ptr noundef nonnull @__func__.wip_readModel, ptr noundef %1) #5
  br label %195

61:                                               ; preds = %2
  %62 = call i32 @msh_ply_parse_header(ptr noundef nonnull %59)
  %.not62 = icmp eq i32 %62, 0
  br i1 %.not62, label %65, label %63

63:                                               ; preds = %61
  %64 = call ptr @msh_ply_error_msg(i32 noundef %62)
  call void (i32, ptr, ...) @wip_log(i32 noundef 2, ptr noundef nonnull @.str.35, ptr noundef nonnull @__func__.wip_readModel, ptr noundef %64) #5
  br label %195

65:                                               ; preds = %61
  %66 = call i32 @msh_ply_add_descriptor(ptr noundef nonnull %59, ptr noundef nonnull %3)
  %.not63 = icmp eq i32 %66, 0
  br i1 %.not63, label %69, label %67

67:                                               ; preds = %65
  %68 = call ptr @msh_ply_error_msg(i32 noundef %66)
  call void (i32, ptr, ...) @wip_log(i32 noundef 2, ptr noundef nonnull @.str.36, ptr noundef nonnull @__func__.wip_readModel, ptr noundef %68) #5
  br label %195

69:                                               ; preds = %65
  %70 = call zeroext i1 @msh_ply_has_properties(ptr noundef nonnull %59, ptr noundef nonnull %5)
  br i1 %70, label %71, label %73

71:                                               ; preds = %69
  %72 = call i32 @msh_ply_add_descriptor(ptr noundef nonnull %59, ptr noundef nonnull %5)
  br label %73

73:                                               ; preds = %69, %71
  %74 = call zeroext i1 @msh_ply_has_properties(ptr noundef nonnull %59, ptr noundef nonnull %7)
  br i1 %74, label %75, label %77

75:                                               ; preds = %73
  %76 = call i32 @msh_ply_add_descriptor(ptr noundef nonnull %59, ptr noundef nonnull %7)
  br label %77

77:                                               ; preds = %73, %75
  %78 = call zeroext i1 @msh_ply_has_properties(ptr noundef nonnull %59, ptr noundef nonnull %9)
  br i1 %78, label %79, label %81

79:                                               ; preds = %77
  %80 = call i32 @msh_ply_add_descriptor(ptr noundef nonnull %59, ptr noundef nonnull %9)
  br label %81

81:                                               ; preds = %77, %79
  %82 = call i32 @msh_ply_add_descriptor(ptr noundef nonnull %59, ptr noundef nonnull %11)
  %.not64 = icmp eq i32 %82, 0
  br i1 %.not64, label %85, label %83

83:                                               ; preds = %81
  %84 = call ptr @msh_ply_error_msg(i32 noundef %82)
  call void (i32, ptr, ...) @wip_log(i32 noundef 2, ptr noundef nonnull @.str.36, ptr noundef nonnull @__func__.wip_readModel, ptr noundef %84) #5
  br label %195

85:                                               ; preds = %81
  %86 = call i32 @msh_ply_read(ptr noundef nonnull %59)
  %.not65 = icmp eq i32 %86, 0
  br i1 %.not65, label %89, label %87

87:                                               ; preds = %85
  %88 = call ptr @msh_ply_error_msg(i32 noundef %86)
  call void (i32, ptr, ...) @wip_log(i32 noundef 2, ptr noundef nonnull @.str.36, ptr noundef nonnull @__func__.wip_readModel, ptr noundef %88) #5
  br label %195

89:                                               ; preds = %85
  %90 = call ptr @msh_ply_find_element(ptr noundef nonnull %59, ptr noundef nonnull @.str.16)
  %91 = getelementptr inbounds i8, ptr %90, i64 88
  %92 = load ptr, ptr %91, align 8, !tbaa !23
  call void @_wip_free(ptr noundef %92, ptr noundef nonnull @__func__.wip_readModel) #5
  %93 = call ptr @msh_ply_find_element(ptr noundef nonnull %59, ptr noundef nonnull @.str.31)
  %94 = getelementptr inbounds i8, ptr %93, i64 88
  %95 = load ptr, ptr %94, align 8, !tbaa !23
  call void @_wip_free(ptr noundef %95, ptr noundef nonnull @__func__.wip_readModel) #5
  call void @msh_ply_close(ptr noundef nonnull %59)
  br i1 %70, label %104, label %96

96:                                               ; preds = %89
  call void (i32, ptr, ...) @wip_log(i32 noundef 1, ptr noundef nonnull @.str.37, ptr noundef nonnull @__func__.wip_readModel) #5
  %97 = load ptr, ptr %21, align 8, !tbaa !22
  %98 = load i32, ptr %97, align 4, !tbaa !26
  %99 = mul nsw i32 %98, 3
  %100 = sext i32 %99 to i64
  %101 = shl nsw i64 %100, 2
  %102 = call ptr @_wip_alloc(i64 noundef %101, ptr noundef nonnull @__func__.wip_readModel) #5
  %103 = load ptr, ptr %27, align 8, !tbaa !21
  store ptr %102, ptr %103, align 8, !tbaa !18
  br label %104

104:                                              ; preds = %96, %89
  br i1 %74, label %113, label %105

105:                                              ; preds = %104
  call void (i32, ptr, ...) @wip_log(i32 noundef 1, ptr noundef nonnull @.str.38, ptr noundef nonnull @__func__.wip_readModel) #5
  %106 = load ptr, ptr %21, align 8, !tbaa !22
  %107 = load i32, ptr %106, align 4, !tbaa !26
  %108 = shl nsw i32 %107, 1
  %109 = sext i32 %108 to i64
  %110 = shl nsw i64 %109, 2
  %111 = call ptr @_wip_alloc(i64 noundef %110, ptr noundef nonnull @__func__.wip_readModel) #5
  %112 = load ptr, ptr %35, align 8, !tbaa !21
  store ptr %111, ptr %112, align 8, !tbaa !18
  br label %113

113:                                              ; preds = %105, %104
  br i1 %78, label %114, label %.thread

114:                                              ; preds = %113
  %115 = load ptr, ptr %21, align 8, !tbaa !22
  %116 = load i32, ptr %115, align 4, !tbaa !26
  %117 = icmp sgt i32 %116, 0
  br i1 %117, label %.lr.ph.split.us, label %._crit_edge

.thread:                                          ; preds = %113
  call void (i32, ptr, ...) @wip_log(i32 noundef 1, ptr noundef nonnull @.str.39, ptr noundef nonnull @__func__.wip_readModel) #5
  %118 = load ptr, ptr %21, align 8, !tbaa !22
  %119 = load i32, ptr %118, align 4, !tbaa !26
  %120 = shl nsw i32 %119, 2
  %121 = sext i32 %120 to i64
  %122 = call ptr @_wip_alloc(i64 noundef %121, ptr noundef nonnull @__func__.wip_readModel) #5
  %123 = load ptr, ptr %42, align 8, !tbaa !21
  store ptr %122, ptr %123, align 8, !tbaa !18
  %124 = load ptr, ptr %21, align 8, !tbaa !22
  %125 = load i32, ptr %124, align 4, !tbaa !26
  %126 = icmp sgt i32 %125, 0
  br i1 %126, label %.lr.ph.split, label %._crit_edge

.lr.ph.split.us:                                  ; preds = %114
  br i1 %70, label %.lr.ph.split.us.split.us, label %.lr.ph.split.us.split

.lr.ph.split.us.split.us:                         ; preds = %.lr.ph.split.us
  br i1 %74, label %._crit_edge, label %.lr.ph.split.us.split.us.split

.lr.ph.split.us.split.us.split:                   ; preds = %.lr.ph.split.us.split.us, %.lr.ph.split.us.split.us.split
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %.lr.ph.split.us.split.us.split ], [ 0, %.lr.ph.split.us.split.us ]
  %127 = load ptr, ptr %35, align 8, !tbaa !21
  %128 = load ptr, ptr %127, align 8, !tbaa !18
  %.idx108 = shl nsw i64 %indvars.iv99, 3
  %129 = getelementptr inbounds i8, ptr %128, i64 %.idx108
  store <2 x float> zeroinitializer, ptr %129, align 4
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %130 = load ptr, ptr %21, align 8, !tbaa !22
  %131 = load i32, ptr %130, align 4, !tbaa !26
  %132 = sext i32 %131 to i64
  %133 = icmp slt i64 %indvars.iv.next100, %132
  br i1 %133, label %.lr.ph.split.us.split.us.split, label %._crit_edge, !llvm.loop !27

.lr.ph.split.us.split:                            ; preds = %.lr.ph.split.us
  br i1 %74, label %.lr.ph.split.us.split.split.us, label %.lr.ph.split.us.split.split

.lr.ph.split.us.split.split.us:                   ; preds = %.lr.ph.split.us.split, %.lr.ph.split.us.split.split.us
  %indvars.iv96 = phi i64 [ %indvars.iv.next97, %.lr.ph.split.us.split.split.us ], [ 0, %.lr.ph.split.us.split ]
  %134 = load ptr, ptr %27, align 8, !tbaa !21
  %135 = load ptr, ptr %134, align 8, !tbaa !18
  %.idx107 = mul i64 %indvars.iv96, 12
  %136 = getelementptr inbounds i8, ptr %135, i64 %.idx107
  store <2 x float> zeroinitializer, ptr %136, align 4
  %.sroa.37.0..sroa_idx.us.us = getelementptr inbounds i8, ptr %136, i64 8
  store float 0.000000e+00, ptr %.sroa.37.0..sroa_idx.us.us, align 4
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %137 = load ptr, ptr %21, align 8, !tbaa !22
  %138 = load i32, ptr %137, align 4, !tbaa !26
  %139 = sext i32 %138 to i64
  %140 = icmp slt i64 %indvars.iv.next97, %139
  br i1 %140, label %.lr.ph.split.us.split.split.us, label %._crit_edge, !llvm.loop !27

.lr.ph.split.us.split.split:                      ; preds = %.lr.ph.split.us.split, %.lr.ph.split.us.split.split
  %indvars.iv93 = phi i64 [ %indvars.iv.next94, %.lr.ph.split.us.split.split ], [ 0, %.lr.ph.split.us.split ]
  %141 = load ptr, ptr %27, align 8, !tbaa !21
  %142 = load ptr, ptr %141, align 8, !tbaa !18
  %.idx105 = mul i64 %indvars.iv93, 12
  %143 = getelementptr inbounds i8, ptr %142, i64 %.idx105
  store <2 x float> zeroinitializer, ptr %143, align 4
  %.sroa.37.0..sroa_idx.us = getelementptr inbounds i8, ptr %143, i64 8
  store float 0.000000e+00, ptr %.sroa.37.0..sroa_idx.us, align 4
  %144 = load ptr, ptr %35, align 8, !tbaa !21
  %145 = load ptr, ptr %144, align 8, !tbaa !18
  %.idx106 = shl nsw i64 %indvars.iv93, 3
  %146 = getelementptr inbounds i8, ptr %145, i64 %.idx106
  store <2 x float> zeroinitializer, ptr %146, align 4
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %147 = load ptr, ptr %21, align 8, !tbaa !22
  %148 = load i32, ptr %147, align 4, !tbaa !26
  %149 = sext i32 %148 to i64
  %150 = icmp slt i64 %indvars.iv.next94, %149
  br i1 %150, label %.lr.ph.split.us.split.split, label %._crit_edge, !llvm.loop !27

.lr.ph.split:                                     ; preds = %.thread
  br i1 %70, label %.lr.ph.split.split.us, label %.lr.ph.split.split

.lr.ph.split.split.us:                            ; preds = %.lr.ph.split
  br i1 %74, label %.lr.ph.split.split.us.split.us, label %.lr.ph.split.split.us.split

.lr.ph.split.split.us.split.us:                   ; preds = %.lr.ph.split.split.us, %.lr.ph.split.split.us.split.us
  %indvars.iv90 = phi i64 [ %indvars.iv.next91, %.lr.ph.split.split.us.split.us ], [ 0, %.lr.ph.split.split.us ]
  %151 = load ptr, ptr %42, align 8, !tbaa !21
  %152 = load ptr, ptr %151, align 8, !tbaa !18
  %153 = shl nsw i64 %indvars.iv90, 2
  %154 = getelementptr inbounds i8, ptr %152, i64 %153
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  store i32 -1, ptr %154, align 1
  %155 = load ptr, ptr %21, align 8, !tbaa !22
  %156 = load i32, ptr %155, align 4, !tbaa !26
  %157 = sext i32 %156 to i64
  %158 = icmp slt i64 %indvars.iv.next91, %157
  br i1 %158, label %.lr.ph.split.split.us.split.us, label %._crit_edge, !llvm.loop !27

.lr.ph.split.split.us.split:                      ; preds = %.lr.ph.split.split.us, %.lr.ph.split.split.us.split
  %indvars.iv87 = phi i64 [ %indvars.iv.next88, %.lr.ph.split.split.us.split ], [ 0, %.lr.ph.split.split.us ]
  %159 = load ptr, ptr %35, align 8, !tbaa !21
  %160 = load ptr, ptr %159, align 8, !tbaa !18
  %.idx104 = shl nsw i64 %indvars.iv87, 3
  %161 = getelementptr inbounds i8, ptr %160, i64 %.idx104
  store <2 x float> zeroinitializer, ptr %161, align 4
  %162 = load ptr, ptr %42, align 8, !tbaa !21
  %163 = load ptr, ptr %162, align 8, !tbaa !18
  %164 = shl nsw i64 %indvars.iv87, 2
  %165 = getelementptr inbounds i8, ptr %163, i64 %164
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  store i32 -1, ptr %165, align 1
  %166 = load ptr, ptr %21, align 8, !tbaa !22
  %167 = load i32, ptr %166, align 4, !tbaa !26
  %168 = sext i32 %167 to i64
  %169 = icmp slt i64 %indvars.iv.next88, %168
  br i1 %169, label %.lr.ph.split.split.us.split, label %._crit_edge, !llvm.loop !27

.lr.ph.split.split:                               ; preds = %.lr.ph.split
  br i1 %74, label %.lr.ph.split.split.split.us, label %.lr.ph.split.split.split

.lr.ph.split.split.split.us:                      ; preds = %.lr.ph.split.split, %.lr.ph.split.split.split.us
  %indvars.iv84 = phi i64 [ %indvars.iv.next85, %.lr.ph.split.split.split.us ], [ 0, %.lr.ph.split.split ]
  %170 = load ptr, ptr %27, align 8, !tbaa !21
  %171 = load ptr, ptr %170, align 8, !tbaa !18
  %.idx103 = mul i64 %indvars.iv84, 12
  %172 = getelementptr inbounds i8, ptr %171, i64 %.idx103
  store <2 x float> zeroinitializer, ptr %172, align 4
  %.sroa.37.0..sroa_idx.us71 = getelementptr inbounds i8, ptr %172, i64 8
  store float 0.000000e+00, ptr %.sroa.37.0..sroa_idx.us71, align 4
  %173 = load ptr, ptr %42, align 8, !tbaa !21
  %174 = load ptr, ptr %173, align 8, !tbaa !18
  %175 = shl nsw i64 %indvars.iv84, 2
  %176 = getelementptr inbounds i8, ptr %174, i64 %175
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  store i32 -1, ptr %176, align 1
  %177 = load ptr, ptr %21, align 8, !tbaa !22
  %178 = load i32, ptr %177, align 4, !tbaa !26
  %179 = sext i32 %178 to i64
  %180 = icmp slt i64 %indvars.iv.next85, %179
  br i1 %180, label %.lr.ph.split.split.split.us, label %._crit_edge, !llvm.loop !27

._crit_edge:                                      ; preds = %.lr.ph.split.split.split, %.lr.ph.split.split.split.us, %.lr.ph.split.split.us.split, %.lr.ph.split.split.us.split.us, %.lr.ph.split.us.split.split, %.lr.ph.split.us.split.split.us, %.lr.ph.split.us.split.us.split, %.lr.ph.split.us.split.us, %.thread, %114
  call void (i32, ptr, ...) @wip_log(i32 noundef 0, ptr noundef nonnull @.str.40, ptr noundef nonnull @__func__.wip_readModel) #5
  br label %195

.lr.ph.split.split.split:                         ; preds = %.lr.ph.split.split, %.lr.ph.split.split.split
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph.split.split.split ], [ 0, %.lr.ph.split.split ]
  %181 = load ptr, ptr %27, align 8, !tbaa !21
  %182 = load ptr, ptr %181, align 8, !tbaa !18
  %.idx = mul i64 %indvars.iv, 12
  %183 = getelementptr inbounds i8, ptr %182, i64 %.idx
  store <2 x float> zeroinitializer, ptr %183, align 4
  %.sroa.37.0..sroa_idx = getelementptr inbounds i8, ptr %183, i64 8
  store float 0.000000e+00, ptr %.sroa.37.0..sroa_idx, align 4
  %184 = load ptr, ptr %35, align 8, !tbaa !21
  %185 = load ptr, ptr %184, align 8, !tbaa !18
  %.idx102 = shl nsw i64 %indvars.iv, 3
  %186 = getelementptr inbounds i8, ptr %185, i64 %.idx102
  store <2 x float> zeroinitializer, ptr %186, align 4
  %187 = load ptr, ptr %42, align 8, !tbaa !21
  %188 = load ptr, ptr %187, align 8, !tbaa !18
  %189 = shl nsw i64 %indvars.iv, 2
  %190 = getelementptr inbounds i8, ptr %188, i64 %189
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  store i32 -1, ptr %190, align 1
  %191 = load ptr, ptr %21, align 8, !tbaa !22
  %192 = load i32, ptr %191, align 4, !tbaa !26
  %193 = sext i32 %192 to i64
  %194 = icmp slt i64 %indvars.iv.next, %193
  br i1 %194, label %.lr.ph.split.split.split, label %._crit_edge, !llvm.loop !27

195:                                              ; preds = %._crit_edge, %87, %83, %67, %63, %60
  %.0 = phi ptr [ null, %63 ], [ null, %67 ], [ null, %83 ], [ null, %87 ], [ %0, %._crit_edge ], [ null, %60 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #5
  ret ptr %.0
}

declare void @wip_log(i32 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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 = { "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 nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = !{!"msh_ply_desc", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 20, !11, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !8, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{i64 0, i64 24, !13}
!13 = !{!8, !8, i64 0}
!14 = !{!6, !7, i64 8}
!15 = !{!6, !10, i64 16}
!16 = !{!6, !11, i64 20}
!17 = !{!6, !11, i64 24}
!18 = !{!7, !7, i64 0}
!19 = !{i64 0, i64 32, !13}
!20 = !{!6, !8, i64 56}
!21 = !{!6, !7, i64 32}
!22 = !{!6, !7, i64 48}
!23 = !{!24, !7, i64 88}
!24 = !{!"msh_ply_element", !8, i64 0, !11, i64 64, !7, i64 72, !25, i64 80, !7, i64 88, !25, i64 96}
!25 = !{!"long", !8, i64 0}
!26 = !{!11, !11, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass