; LLVM IR from introlab/odas :: src/signal (mixture)

; 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.mixture_obj = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.assignations_obj = type { i32, i32, ptr }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [24 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @mixture_printf(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %8

8:                                                ; preds = %29, %1
  %9 = load i32, ptr %5, align 4, !tbaa !9
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.mixture_obj, ptr %10, i32 0, i32 0
  %12 = load i32, ptr %11, align 8, !tbaa !11
  %13 = icmp ult i32 %9, %12
  br i1 %13, label %14, label %32

14:                                               ; preds = %8
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.mixture_obj, ptr %15, i32 0, i32 5
  %17 = load ptr, ptr %16, align 8, !tbaa !13
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.mixture_obj, ptr %18, i32 0, i32 0
  %20 = load i32, ptr %19, align 8, !tbaa !11
  %21 = mul i32 0, %20
  %22 = load i32, ptr %5, align 4, !tbaa !9
  %23 = add i32 %21, %22
  %24 = zext i32 %23 to i64
  %25 = getelementptr inbounds float, ptr %17, i64 %24
  %26 = load float, ptr %25, align 4, !tbaa !14
  %27 = fpext float %26 to double
  %28 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %27)
  br label %29

29:                                               ; preds = %14
  %30 = load i32, ptr %5, align 4, !tbaa !9
  %31 = add i32 %30, 1
  store i32 %31, ptr %5, align 4, !tbaa !9
  br label %8, !llvm.loop !16

32:                                               ; preds = %8
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %56, %32
  %36 = load i32, ptr %5, align 4, !tbaa !9
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.mixture_obj, ptr %37, i32 0, i32 0
  %39 = load i32, ptr %38, align 8, !tbaa !11
  %40 = icmp ult i32 %36, %39
  br i1 %40, label %41, label %59

41:                                               ; preds = %35
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.mixture_obj, ptr %42, i32 0, i32 5
  %44 = load ptr, ptr %43, align 8, !tbaa !13
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.mixture_obj, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 8, !tbaa !11
  %48 = mul i32 1, %47
  %49 = load i32, ptr %5, align 4, !tbaa !9
  %50 = add i32 %48, %49
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds float, ptr %44, i64 %51
  %53 = load float, ptr %52, align 4, !tbaa !14
  %54 = fpext float %53 to double
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %54)
  br label %56

56:                                               ; preds = %41
  %57 = load i32, ptr %5, align 4, !tbaa !9
  %58 = add i32 %57, 1
  store i32 %58, ptr %5, align 4, !tbaa !9
  br label %35, !llvm.loop !18

59:                                               ; preds = %35
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %61 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %83, %59
  %63 = load i32, ptr %5, align 4, !tbaa !9
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.mixture_obj, ptr %64, i32 0, i32 0
  %66 = load i32, ptr %65, align 8, !tbaa !11
  %67 = icmp ult i32 %63, %66
  br i1 %67, label %68, label %86

68:                                               ; preds = %62
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.mixture_obj, ptr %69, i32 0, i32 5
  %71 = load ptr, ptr %70, align 8, !tbaa !13
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.mixture_obj, ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 8, !tbaa !11
  %75 = mul i32 2, %74
  %76 = load i32, ptr %5, align 4, !tbaa !9
  %77 = add i32 %75, %76
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds float, ptr %71, i64 %78
  %80 = load float, ptr %79, align 4, !tbaa !14
  %81 = fpext float %80 to double
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %81)
  br label %83

83:                                               ; preds = %68
  %84 = load i32, ptr %5, align 4, !tbaa !9
  %85 = add i32 %84, 1
  store i32 %85, ptr %5, align 4, !tbaa !9
  br label %62, !llvm.loop !19

86:                                               ; preds = %62
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %123, %86
  %89 = load i32, ptr %3, align 4, !tbaa !9
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.mixture_obj, ptr %90, i32 0, i32 1
  %92 = load i32, ptr %91, align 4, !tbaa !20
  %93 = icmp ult i32 %89, %92
  br i1 %93, label %94, label %126

94:                                               ; preds = %88
  %95 = load i32, ptr %3, align 4, !tbaa !9
  %96 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %95)
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %118, %94
  %98 = load i32, ptr %5, align 4, !tbaa !9
  %99 = load ptr, ptr %2, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.mixture_obj, ptr %99, i32 0, i32 0
  %101 = load i32, ptr %100, align 8, !tbaa !11
  %102 = icmp ult i32 %98, %101
  br i1 %102, label %103, label %121

103:                                              ; preds = %97
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.mixture_obj, ptr %104, i32 0, i32 5
  %106 = load ptr, ptr %105, align 8, !tbaa !13
  %107 = load ptr, ptr %2, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.mixture_obj, ptr %107, i32 0, i32 0
  %109 = load i32, ptr %108, align 8, !tbaa !11
  %110 = mul i32 3, %109
  %111 = load i32, ptr %5, align 4, !tbaa !9
  %112 = add i32 %110, %111
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds float, ptr %106, i64 %113
  %115 = load float, ptr %114, align 4, !tbaa !14
  %116 = fpext float %115 to double
  %117 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %116)
  br label %118

118:                                              ; preds = %103
  %119 = load i32, ptr %5, align 4, !tbaa !9
  %120 = add i32 %119, 1
  store i32 %120, ptr %5, align 4, !tbaa !9
  br label %97, !llvm.loop !21

121:                                              ; preds = %97
  %122 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %123

123:                                              ; preds = %121
  %124 = load i32, ptr %3, align 4, !tbaa !9
  %125 = add i32 %124, 1
  store i32 %125, ptr %3, align 4, !tbaa !9
  br label %88, !llvm.loop !22

126:                                              ; preds = %88
  %127 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %128 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %166, %126
  %130 = load i32, ptr %4, align 4, !tbaa !9
  %131 = load ptr, ptr %2, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.mixture_obj, ptr %131, i32 0, i32 2
  %133 = load i32, ptr %132, align 8, !tbaa !23
  %134 = icmp ult i32 %130, %133
  br i1 %134, label %135, label %169

135:                                              ; preds = %129
  %136 = load i32, ptr %4, align 4, !tbaa !9
  %137 = sub i32 %136, 2
  %138 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %137)
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %161, %135
  %140 = load i32, ptr %5, align 4, !tbaa !9
  %141 = load ptr, ptr %2, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.mixture_obj, ptr %141, i32 0, i32 0
  %143 = load i32, ptr %142, align 8, !tbaa !11
  %144 = icmp ult i32 %140, %143
  br i1 %144, label %145, label %164

145:                                              ; preds = %139
  %146 = load ptr, ptr %2, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.mixture_obj, ptr %146, i32 0, i32 6
  %148 = load ptr, ptr %147, align 8, !tbaa !24
  %149 = load i32, ptr %4, align 4, !tbaa !9
  %150 = load ptr, ptr %2, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.mixture_obj, ptr %150, i32 0, i32 0
  %152 = load i32, ptr %151, align 8, !tbaa !11
  %153 = mul i32 %149, %152
  %154 = load i32, ptr %5, align 4, !tbaa !9
  %155 = add i32 %153, %154
  %156 = zext i32 %155 to i64
  %157 = getelementptr inbounds float, ptr %148, i64 %156
  %158 = load float, ptr %157, align 4, !tbaa !14
  %159 = fpext float %158 to double
  %160 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %159)
  br label %161

161:                                              ; preds = %145
  %162 = load i32, ptr %5, align 4, !tbaa !9
  %163 = add i32 %162, 1
  store i32 %163, ptr %5, align 4, !tbaa !9
  br label %139, !llvm.loop !25

164:                                              ; preds = %139
  %165 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %166

166:                                              ; preds = %164
  %167 = load i32, ptr %4, align 4, !tbaa !9
  %168 = add i32 %167, 1
  store i32 %168, ptr %4, align 4, !tbaa !9
  br label %129, !llvm.loop !26

169:                                              ; preds = %129
  %170 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %171 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %209, %169
  %173 = load i32, ptr %4, align 4, !tbaa !9
  %174 = load ptr, ptr %2, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.mixture_obj, ptr %174, i32 0, i32 2
  %176 = load i32, ptr %175, align 8, !tbaa !23
  %177 = icmp ult i32 %173, %176
  br i1 %177, label %178, label %212

178:                                              ; preds = %172
  %179 = load i32, ptr %4, align 4, !tbaa !9
  %180 = sub i32 %179, 2
  %181 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %180)
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %182

182:                                              ; preds = %204, %178
  %183 = load i32, ptr %5, align 4, !tbaa !9
  %184 = load ptr, ptr %2, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.mixture_obj, ptr %184, i32 0, i32 0
  %186 = load i32, ptr %185, align 8, !tbaa !11
  %187 = icmp ult i32 %183, %186
  br i1 %187, label %188, label %207

188:                                              ; preds = %182
  %189 = load ptr, ptr %2, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.mixture_obj, ptr %189, i32 0, i32 7
  %191 = load ptr, ptr %190, align 8, !tbaa !27
  %192 = load i32, ptr %4, align 4, !tbaa !9
  %193 = load ptr, ptr %2, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.mixture_obj, ptr %193, i32 0, i32 0
  %195 = load i32, ptr %194, align 8, !tbaa !11
  %196 = mul i32 %192, %195
  %197 = load i32, ptr %5, align 4, !tbaa !9
  %198 = add i32 %196, %197
  %199 = zext i32 %198 to i64
  %200 = getelementptr inbounds float, ptr %191, i64 %199
  %201 = load float, ptr %200, align 4, !tbaa !14
  %202 = fpext float %201 to double
  %203 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %202)
  br label %204

204:                                              ; preds = %188
  %205 = load i32, ptr %5, align 4, !tbaa !9
  %206 = add i32 %205, 1
  store i32 %206, ptr %5, align 4, !tbaa !9
  br label %182, !llvm.loop !28

207:                                              ; preds = %182
  %208 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %209

209:                                              ; preds = %207
  %210 = load i32, ptr %4, align 4, !tbaa !9
  %211 = add i32 %210, 1
  store i32 %211, ptr %4, align 4, !tbaa !9
  br label %172, !llvm.loop !29

212:                                              ; preds = %172
  %213 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %214 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %215

215:                                              ; preds = %275, %212
  %216 = load i32, ptr %6, align 4, !tbaa !9
  %217 = load ptr, ptr %2, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.mixture_obj, ptr %217, i32 0, i32 3
  %219 = load i32, ptr %218, align 4, !tbaa !30
  %220 = icmp ult i32 %216, %219
  br i1 %220, label %221, label %278

221:                                              ; preds = %215
  %222 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %223

223:                                              ; preds = %246, %221
  %224 = load i32, ptr %5, align 4, !tbaa !9
  %225 = load ptr, ptr %2, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.mixture_obj, ptr %225, i32 0, i32 0
  %227 = load i32, ptr %226, align 8, !tbaa !11
  %228 = icmp ult i32 %224, %227
  br i1 %228, label %229, label %249

229:                                              ; preds = %223
  %230 = load ptr, ptr %2, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.mixture_obj, ptr %230, i32 0, i32 4
  %232 = load ptr, ptr %231, align 8, !tbaa !31
  %233 = getelementptr inbounds %struct.assignations_obj, ptr %232, i32 0, i32 2
  %234 = load ptr, ptr %233, align 8, !tbaa !32
  %235 = load i32, ptr %6, align 4, !tbaa !9
  %236 = load ptr, ptr %2, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.mixture_obj, ptr %236, i32 0, i32 0
  %238 = load i32, ptr %237, align 8, !tbaa !11
  %239 = mul i32 %235, %238
  %240 = load i32, ptr %5, align 4, !tbaa !9
  %241 = add i32 %239, %240
  %242 = zext i32 %241 to i64
  %243 = getelementptr inbounds i32, ptr %234, i64 %242
  %244 = load i32, ptr %243, align 4, !tbaa !9
  %245 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %244)
  br label %246

246:                                              ; preds = %229
  %247 = load i32, ptr %5, align 4, !tbaa !9
  %248 = add i32 %247, 1
  store i32 %248, ptr %5, align 4, !tbaa !9
  br label %223, !llvm.loop !34

249:                                              ; preds = %223
  %250 = load ptr, ptr %2, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.mixture_obj, ptr %250, i32 0, i32 8
  %252 = load ptr, ptr %251, align 8, !tbaa !35
  %253 = load i32, ptr %6, align 4, !tbaa !9
  %254 = zext i32 %253 to i64
  %255 = getelementptr inbounds float, ptr %252, i64 %254
  %256 = load float, ptr %255, align 4, !tbaa !14
  %257 = fpext float %256 to double
  %258 = load ptr, ptr %2, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.mixture_obj, ptr %258, i32 0, i32 9
  %260 = load ptr, ptr %259, align 8, !tbaa !36
  %261 = load i32, ptr %6, align 4, !tbaa !9
  %262 = zext i32 %261 to i64
  %263 = getelementptr inbounds float, ptr %260, i64 %262
  %264 = load float, ptr %263, align 4, !tbaa !14
  %265 = fpext float %264 to double
  %266 = load ptr, ptr %2, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.mixture_obj, ptr %266, i32 0, i32 10
  %268 = load ptr, ptr %267, align 8, !tbaa !37
  %269 = load i32, ptr %6, align 4, !tbaa !9
  %270 = zext i32 %269 to i64
  %271 = getelementptr inbounds float, ptr %268, i64 %270
  %272 = load float, ptr %271, align 4, !tbaa !14
  %273 = fpext float %272 to double
  %274 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef %257, double noundef %265, double noundef %273)
  br label %275

275:                                              ; preds = %249
  %276 = load i32, ptr %6, align 4, !tbaa !9
  %277 = add i32 %276, 1
  store i32 %277, ptr %6, align 4, !tbaa !9
  br label %215, !llvm.loop !38

278:                                              ; preds = %215
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"mixture_obj", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64}
!13 = !{!12, !6, i64 24}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = !{!12, !10, i64 4}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = !{!12, !10, i64 8}
!24 = !{!12, !6, i64 32}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}
!27 = !{!12, !6, i64 40}
!28 = distinct !{!28, !17}
!29 = distinct !{!29, !17}
!30 = !{!12, !10, i64 12}
!31 = !{!12, !6, i64 16}
!32 = !{!33, !6, i64 8}
!33 = !{!"assignations_obj", !10, i64 0, !10, i64 4, !6, i64 8}
!34 = distinct !{!34, !17}
!35 = !{!12, !6, i64 48}
!36 = !{!12, !6, i64 56}
!37 = !{!12, !6, i64 64}
!38 = distinct !{!38, !17}


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

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local void @mixture_printf(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %3 = load i32, ptr %0, align 8, !tbaa !5
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  br label %5

5:                                                ; preds = %.lr.ph, %5
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %5 ]
  %6 = load ptr, ptr %4, align 8, !tbaa !11
  %7 = getelementptr inbounds float, ptr %6, i64 %indvars.iv
  %8 = load float, ptr %7, align 4, !tbaa !12
  %9 = fpext float %8 to double
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %9)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %11 = load i32, ptr %0, align 8, !tbaa !5
  %12 = zext i32 %11 to i64
  %13 = icmp ult i64 %indvars.iv.next, %12
  br i1 %13, label %5, label %._crit_edge, !llvm.loop !14

._crit_edge:                                      ; preds = %5, %1
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %16 = load i32, ptr %0, align 8, !tbaa !5
  %.not116 = icmp eq i32 %16, 0
  br i1 %.not116, label %._crit_edge79, label %.lr.ph78

.lr.ph78:                                         ; preds = %._crit_edge
  %17 = getelementptr inbounds i8, ptr %0, i64 24
  br label %18

18:                                               ; preds = %.lr.ph78, %18
  %19 = phi i32 [ %16, %.lr.ph78 ], [ %28, %18 ]
  %.176 = phi i32 [ 0, %.lr.ph78 ], [ %27, %18 ]
  %20 = load ptr, ptr %17, align 8, !tbaa !11
  %21 = add i32 %19, %.176
  %22 = zext i32 %21 to i64
  %23 = getelementptr inbounds float, ptr %20, i64 %22
  %24 = load float, ptr %23, align 4, !tbaa !12
  %25 = fpext float %24 to double
  %26 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %25)
  %27 = add nuw i32 %.176, 1
  %28 = load i32, ptr %0, align 8, !tbaa !5
  %29 = icmp ult i32 %27, %28
  br i1 %29, label %18, label %._crit_edge79, !llvm.loop !16

._crit_edge79:                                    ; preds = %18, %._crit_edge
  %30 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %32 = load i32, ptr %0, align 8, !tbaa !5
  %.not117 = icmp eq i32 %32, 0
  br i1 %.not117, label %._crit_edge83, label %.lr.ph82

.lr.ph82:                                         ; preds = %._crit_edge79
  %33 = getelementptr inbounds i8, ptr %0, i64 24
  br label %34

34:                                               ; preds = %.lr.ph82, %34
  %35 = phi i32 [ %32, %.lr.ph82 ], [ %45, %34 ]
  %.280 = phi i32 [ 0, %.lr.ph82 ], [ %44, %34 ]
  %36 = load ptr, ptr %33, align 8, !tbaa !11
  %37 = shl i32 %35, 1
  %38 = add i32 %37, %.280
  %39 = zext i32 %38 to i64
  %40 = getelementptr inbounds float, ptr %36, i64 %39
  %41 = load float, ptr %40, align 4, !tbaa !12
  %42 = fpext float %41 to double
  %43 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %42)
  %44 = add nuw i32 %.280, 1
  %45 = load i32, ptr %0, align 8, !tbaa !5
  %46 = icmp ult i32 %44, %45
  br i1 %46, label %34, label %._crit_edge83, !llvm.loop !17

._crit_edge83:                                    ; preds = %34, %._crit_edge79
  %47 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %48 = getelementptr inbounds i8, ptr %0, i64 4
  %49 = load i32, ptr %48, align 4, !tbaa !18
  %.not118 = icmp eq i32 %49, 0
  br i1 %.not118, label %._crit_edge91, label %.lr.ph90

.lr.ph90:                                         ; preds = %._crit_edge83
  %50 = getelementptr inbounds i8, ptr %0, i64 24
  br label %51

51:                                               ; preds = %.lr.ph90, %._crit_edge87
  %.06888 = phi i32 [ 0, %.lr.ph90 ], [ %67, %._crit_edge87 ]
  %52 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %.06888)
  %53 = load i32, ptr %0, align 8, !tbaa !5
  %.not119 = icmp eq i32 %53, 0
  br i1 %.not119, label %._crit_edge87, label %.lr.ph86

.lr.ph86:                                         ; preds = %51, %.lr.ph86
  %54 = phi i32 [ %64, %.lr.ph86 ], [ %53, %51 ]
  %.384 = phi i32 [ %63, %.lr.ph86 ], [ 0, %51 ]
  %55 = load ptr, ptr %50, align 8, !tbaa !11
  %56 = mul i32 %54, 3
  %57 = add i32 %56, %.384
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds float, ptr %55, i64 %58
  %60 = load float, ptr %59, align 4, !tbaa !12
  %61 = fpext float %60 to double
  %62 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %61)
  %63 = add nuw i32 %.384, 1
  %64 = load i32, ptr %0, align 8, !tbaa !5
  %65 = icmp ult i32 %63, %64
  br i1 %65, label %.lr.ph86, label %._crit_edge87, !llvm.loop !19

._crit_edge87:                                    ; preds = %.lr.ph86, %51
  %66 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %67 = add nuw i32 %.06888, 1
  %68 = load i32, ptr %48, align 4, !tbaa !18
  %69 = icmp ult i32 %67, %68
  br i1 %69, label %51, label %._crit_edge91, !llvm.loop !20

._crit_edge91:                                    ; preds = %._crit_edge87, %._crit_edge83
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %71 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %72 = getelementptr inbounds i8, ptr %0, i64 8
  %73 = load i32, ptr %72, align 8, !tbaa !21
  %.not120 = icmp eq i32 %73, 0
  br i1 %.not120, label %._crit_edge99, label %.lr.ph98

.lr.ph98:                                         ; preds = %._crit_edge91
  %74 = getelementptr inbounds i8, ptr %0, i64 32
  br label %75

75:                                               ; preds = %.lr.ph98, %._crit_edge95
  %.06696 = phi i32 [ 0, %.lr.ph98 ], [ %92, %._crit_edge95 ]
  %76 = add i32 %.06696, -2
  %77 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %76)
  %78 = load i32, ptr %0, align 8, !tbaa !5
  %.not121 = icmp eq i32 %78, 0
  br i1 %.not121, label %._crit_edge95, label %.lr.ph94

.lr.ph94:                                         ; preds = %75, %.lr.ph94
  %79 = phi i32 [ %89, %.lr.ph94 ], [ %78, %75 ]
  %.492 = phi i32 [ %88, %.lr.ph94 ], [ 0, %75 ]
  %80 = load ptr, ptr %74, align 8, !tbaa !22
  %81 = mul i32 %79, %.06696
  %82 = add i32 %81, %.492
  %83 = zext i32 %82 to i64
  %84 = getelementptr inbounds float, ptr %80, i64 %83
  %85 = load float, ptr %84, align 4, !tbaa !12
  %86 = fpext float %85 to double
  %87 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %86)
  %88 = add nuw i32 %.492, 1
  %89 = load i32, ptr %0, align 8, !tbaa !5
  %90 = icmp ult i32 %88, %89
  br i1 %90, label %.lr.ph94, label %._crit_edge95, !llvm.loop !23

._crit_edge95:                                    ; preds = %.lr.ph94, %75
  %91 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %92 = add nuw i32 %.06696, 1
  %93 = load i32, ptr %72, align 8, !tbaa !21
  %94 = icmp ult i32 %92, %93
  br i1 %94, label %75, label %._crit_edge99, !llvm.loop !24

._crit_edge99:                                    ; preds = %._crit_edge95, %._crit_edge91
  %95 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %96 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %97 = load i32, ptr %72, align 8, !tbaa !21
  %.not122 = icmp eq i32 %97, 0
  br i1 %.not122, label %._crit_edge107, label %.lr.ph106

.lr.ph106:                                        ; preds = %._crit_edge99
  %98 = getelementptr inbounds i8, ptr %0, i64 40
  br label %99

99:                                               ; preds = %.lr.ph106, %._crit_edge103
  %.167104 = phi i32 [ 0, %.lr.ph106 ], [ %116, %._crit_edge103 ]
  %100 = add i32 %.167104, -2
  %101 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %100)
  %102 = load i32, ptr %0, align 8, !tbaa !5
  %.not123 = icmp eq i32 %102, 0
  br i1 %.not123, label %._crit_edge103, label %.lr.ph102

.lr.ph102:                                        ; preds = %99, %.lr.ph102
  %103 = phi i32 [ %113, %.lr.ph102 ], [ %102, %99 ]
  %.5100 = phi i32 [ %112, %.lr.ph102 ], [ 0, %99 ]
  %104 = load ptr, ptr %98, align 8, !tbaa !25
  %105 = mul i32 %103, %.167104
  %106 = add i32 %105, %.5100
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds float, ptr %104, i64 %107
  %109 = load float, ptr %108, align 4, !tbaa !12
  %110 = fpext float %109 to double
  %111 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %110)
  %112 = add nuw i32 %.5100, 1
  %113 = load i32, ptr %0, align 8, !tbaa !5
  %114 = icmp ult i32 %112, %113
  br i1 %114, label %.lr.ph102, label %._crit_edge103, !llvm.loop !26

._crit_edge103:                                   ; preds = %.lr.ph102, %99
  %115 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %116 = add nuw i32 %.167104, 1
  %117 = load i32, ptr %72, align 8, !tbaa !21
  %118 = icmp ult i32 %116, %117
  br i1 %118, label %99, label %._crit_edge107, !llvm.loop !27

._crit_edge107:                                   ; preds = %._crit_edge103, %._crit_edge99
  %119 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %120 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %121 = getelementptr inbounds i8, ptr %0, i64 12
  %122 = load i32, ptr %121, align 4, !tbaa !28
  %.not124 = icmp eq i32 %122, 0
  br i1 %.not124, label %._crit_edge115, label %.lr.ph114

.lr.ph114:                                        ; preds = %._crit_edge107
  %123 = getelementptr inbounds i8, ptr %0, i64 16
  %124 = getelementptr inbounds i8, ptr %0, i64 48
  %125 = getelementptr inbounds i8, ptr %0, i64 56
  %126 = getelementptr inbounds i8, ptr %0, i64 64
  br label %127

127:                                              ; preds = %.lr.ph114, %._crit_edge111
  %indvars.iv127 = phi i64 [ 0, %.lr.ph114 ], [ %indvars.iv.next128, %._crit_edge111 ]
  %128 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %129 = load i32, ptr %0, align 8, !tbaa !5
  %.not125 = icmp eq i32 %129, 0
  br i1 %.not125, label %._crit_edge111, label %.lr.ph110.preheader

.lr.ph110.preheader:                              ; preds = %127
  %130 = trunc nuw i64 %indvars.iv127 to i32
  br label %.lr.ph110

.lr.ph110:                                        ; preds = %.lr.ph110.preheader, %.lr.ph110
  %131 = phi i32 [ %142, %.lr.ph110 ], [ %129, %.lr.ph110.preheader ]
  %.6108 = phi i32 [ %141, %.lr.ph110 ], [ 0, %.lr.ph110.preheader ]
  %132 = load ptr, ptr %123, align 8, !tbaa !29
  %133 = getelementptr inbounds i8, ptr %132, i64 8
  %134 = load ptr, ptr %133, align 8, !tbaa !30
  %135 = mul i32 %131, %130
  %136 = add i32 %135, %.6108
  %137 = zext i32 %136 to i64
  %138 = getelementptr inbounds i32, ptr %134, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !32
  %140 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %139)
  %141 = add nuw i32 %.6108, 1
  %142 = load i32, ptr %0, align 8, !tbaa !5
  %143 = icmp ult i32 %141, %142
  br i1 %143, label %.lr.ph110, label %._crit_edge111, !llvm.loop !33

._crit_edge111:                                   ; preds = %.lr.ph110, %127
  %144 = load ptr, ptr %124, align 8, !tbaa !34
  %145 = getelementptr inbounds float, ptr %144, i64 %indvars.iv127
  %146 = load float, ptr %145, align 4, !tbaa !12
  %147 = fpext float %146 to double
  %148 = load ptr, ptr %125, align 8, !tbaa !35
  %149 = getelementptr inbounds float, ptr %148, i64 %indvars.iv127
  %150 = load float, ptr %149, align 4, !tbaa !12
  %151 = fpext float %150 to double
  %152 = load ptr, ptr %126, align 8, !tbaa !36
  %153 = getelementptr inbounds float, ptr %152, i64 %indvars.iv127
  %154 = load float, ptr %153, align 4, !tbaa !12
  %155 = fpext float %154 to double
  %156 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, double noundef %147, double noundef %151, double noundef %155)
  %indvars.iv.next128 = add nuw nsw i64 %indvars.iv127, 1
  %157 = load i32, ptr %121, align 4, !tbaa !28
  %158 = zext i32 %157 to i64
  %159 = icmp ult i64 %indvars.iv.next128, %158
  br i1 %159, label %127, label %._crit_edge115, !llvm.loop !37

._crit_edge115:                                   ; preds = %._crit_edge111, %._crit_edge107
  ret void
}

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

attributes #0 = { nofree 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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!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 = !{!"mixture_obj", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 24}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = !{!6, !7, i64 4}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = !{!6, !7, i64 8}
!22 = !{!6, !10, i64 32}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}
!25 = !{!6, !10, i64 40}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}
!28 = !{!6, !7, i64 12}
!29 = !{!6, !10, i64 16}
!30 = !{!31, !10, i64 8}
!31 = !{!"assignations_obj", !7, i64 0, !7, i64 4, !10, i64 8}
!32 = !{!7, !7, i64 0}
!33 = distinct !{!33, !15}
!34 = !{!6, !10, i64 48}
!35 = !{!6, !10, i64 56}
!36 = !{!6, !10, i64 64}
!37 = distinct !{!37, !15}


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