; LLVM IR from buresjan/optim_lbm :: nomad/examples/advanced/library/c_api/example1 (example1_c_api)

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

@__const.main.granularity_values = external hidden unnamed_addr constant [10 x double], align 16
@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@__const.main.x0 = external hidden unnamed_addr constant [10 x double], align 16
@.str.8 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @example1_bb(i32 noundef, ptr noundef, i32 noundef, ptr noundef, 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
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca [10 x double], align 16
  %10 = alloca [10 x double], align 16
  %11 = alloca [10 x double], align 16
  %12 = alloca [10 x double], align 16
  %13 = alloca [10 x double], align 16
  %14 = alloca [10 x double], align 16
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 10, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 4, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %21 = load i32, ptr %6, align 4, !tbaa !5
  %22 = load i32, ptr %7, align 4, !tbaa !5
  %23 = call ptr @createNomadProblem(ptr noundef @example1_bb, i32 noundef %21, i32 noundef %22)
  store ptr %23, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 80, ptr %9) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.main.granularity_values, i64 80, i1 false)
  %24 = load ptr, ptr %8, align 8, !tbaa !9
  %25 = call zeroext i1 @addNomadParam(ptr noundef %24, ptr noundef @.str)
  %26 = load ptr, ptr %8, align 8, !tbaa !9
  %27 = getelementptr inbounds [10 x double], ptr %9, i64 0, i64 0
  %28 = call zeroext i1 @addNomadArrayOfDoubleParam(ptr noundef %26, ptr noundef @.str.1, ptr noundef %27)
  %29 = load ptr, ptr %8, align 8, !tbaa !9
  %30 = call zeroext i1 @addNomadParam(ptr noundef %29, ptr noundef @.str.2)
  %31 = load ptr, ptr %8, align 8, !tbaa !9
  %32 = call zeroext i1 @addNomadParam(ptr noundef %31, ptr noundef @.str.3)
  %33 = load ptr, ptr %8, align 8, !tbaa !9
  %34 = call zeroext i1 @addNomadParam(ptr noundef %33, ptr noundef @.str.4)
  %35 = load ptr, ptr %8, align 8, !tbaa !9
  %36 = call zeroext i1 @addNomadParam(ptr noundef %35, ptr noundef @.str.5)
  %37 = load ptr, ptr %8, align 8, !tbaa !9
  %38 = call zeroext i1 @addNomadValParam(ptr noundef %37, ptr noundef @.str.6, i32 noundef 1)
  %39 = load ptr, ptr %8, align 8, !tbaa !9
  %40 = call zeroext i1 @addNomadParam(ptr noundef %39, ptr noundef @.str.7)
  call void @llvm.lifetime.start.p0(i64 80, ptr %10) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.main.x0, i64 80, i1 false)
  call void @llvm.lifetime.start.p0(i64 80, ptr %11) #5
  call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 80, i1 false)
  call void @llvm.lifetime.start.p0(i64 80, ptr %12) #5
  call void @llvm.memset.p0.i64(ptr align 16 %12, i8 0, i64 80, i1 false)
  call void @llvm.lifetime.start.p0(i64 80, ptr %13) #5
  call void @llvm.memset.p0.i64(ptr align 16 %13, i8 0, i64 80, i1 false)
  call void @llvm.lifetime.start.p0(i64 80, ptr %14) #5
  call void @llvm.memset.p0.i64(ptr align 16 %14, i8 0, i64 80, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  store i8 0, ptr %16, align 1, !tbaa !11
  %41 = load ptr, ptr %8, align 8, !tbaa !9
  %42 = getelementptr inbounds [10 x double], ptr %10, i64 0, i64 0
  %43 = getelementptr inbounds [10 x double], ptr %11, i64 0, i64 0
  %44 = getelementptr inbounds [10 x double], ptr %13, i64 0, i64 0
  %45 = getelementptr inbounds [10 x double], ptr %12, i64 0, i64 0
  %46 = getelementptr inbounds [10 x double], ptr %14, i64 0, i64 0
  %47 = call zeroext i1 @solveNomadProblem(ptr noundef %41, i32 noundef 1, ptr noundef %42, ptr noundef %15, ptr noundef %43, ptr noundef %44, ptr noundef %16, ptr noundef %45, ptr noundef %46, ptr noundef null)
  %48 = load i8, ptr %15, align 1, !tbaa !11, !range !13, !noundef !14
  %49 = trunc i8 %48 to i1
  br i1 %49, label %50, label %73

50:                                               ; preds = %2
  %51 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %52 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %64, %50
  %54 = load i32, ptr %17, align 4, !tbaa !5
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %67

58:                                               ; preds = %53
  %59 = load i32, ptr %17, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [10 x double], ptr %11, i64 0, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !15
  %63 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, double noundef %62)
  br label %64

64:                                               ; preds = %58
  %65 = load i32, ptr %17, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %17, align 4, !tbaa !5
  br label %53, !llvm.loop !17

67:                                               ; preds = %57
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  %70 = getelementptr inbounds [10 x double], ptr %13, i64 0, i64 2
  %71 = load double, ptr %70, align 16, !tbaa !15
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, double noundef %71)
  br label %73

73:                                               ; preds = %67, %2
  %74 = load i8, ptr %16, align 1, !tbaa !11, !range !13, !noundef !14
  %75 = trunc i8 %74 to i1
  br i1 %75, label %76, label %99

76:                                               ; preds = %73
  %77 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %90, %76
  %80 = load i32, ptr %18, align 4, !tbaa !5
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %93

84:                                               ; preds = %79
  %85 = load i32, ptr %18, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [10 x double], ptr %12, i64 0, i64 %86
  %88 = load double, ptr %87, align 8, !tbaa !15
  %89 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, double noundef %88)
  br label %90

90:                                               ; preds = %84
  %91 = load i32, ptr %18, align 4, !tbaa !5
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %18, align 4, !tbaa !5
  br label %79, !llvm.loop !19

93:                                               ; preds = %83
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %95 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  %96 = getelementptr inbounds [10 x double], ptr %14, i64 0, i64 2
  %97 = load double, ptr %96, align 16, !tbaa !15
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, double noundef %97)
  br label %99

99:                                               ; preds = %93, %73
  %100 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  %101 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  %102 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  %103 = load ptr, ptr %8, align 8, !tbaa !9
  %104 = call zeroext i1 @addNomadBoolParam(ptr noundef %103, ptr noundef @.str.17, i1 noundef zeroext false)
  store i8 0, ptr %15, align 1, !tbaa !11
  store i8 0, ptr %16, align 1, !tbaa !11
  %105 = load ptr, ptr %8, align 8, !tbaa !9
  %106 = getelementptr inbounds [10 x double], ptr %10, i64 0, i64 0
  %107 = getelementptr inbounds [10 x double], ptr %11, i64 0, i64 0
  %108 = getelementptr inbounds [10 x double], ptr %13, i64 0, i64 0
  %109 = getelementptr inbounds [10 x double], ptr %12, i64 0, i64 0
  %110 = getelementptr inbounds [10 x double], ptr %14, i64 0, i64 0
  %111 = call zeroext i1 @solveNomadProblem(ptr noundef %105, i32 noundef 1, ptr noundef %106, ptr noundef %15, ptr noundef %107, ptr noundef %108, ptr noundef %16, ptr noundef %109, ptr noundef %110, ptr noundef null)
  %112 = load i8, ptr %15, align 1, !tbaa !11, !range !13, !noundef !14
  %113 = trunc i8 %112 to i1
  br i1 %113, label %114, label %137

114:                                              ; preds = %99
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %128, %114
  %118 = load i32, ptr %19, align 4, !tbaa !5
  %119 = load i32, ptr %6, align 4, !tbaa !5
  %120 = icmp slt i32 %118, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %131

122:                                              ; preds = %117
  %123 = load i32, ptr %19, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [10 x double], ptr %11, i64 0, i64 %124
  %126 = load double, ptr %125, align 8, !tbaa !15
  %127 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, double noundef %126)
  br label %128

128:                                              ; preds = %122
  %129 = load i32, ptr %19, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %19, align 4, !tbaa !5
  br label %117, !llvm.loop !20

131:                                              ; preds = %121
  %132 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %133 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  %134 = getelementptr inbounds [10 x double], ptr %13, i64 0, i64 2
  %135 = load double, ptr %134, align 16, !tbaa !15
  %136 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, double noundef %135)
  br label %137

137:                                              ; preds = %131, %99
  %138 = load i8, ptr %16, align 1, !tbaa !11, !range !13, !noundef !14
  %139 = trunc i8 %138 to i1
  br i1 %139, label %140, label %163

140:                                              ; preds = %137
  %141 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  %142 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %143

143:                                              ; preds = %154, %140
  %144 = load i32, ptr %20, align 4, !tbaa !5
  %145 = load i32, ptr %6, align 4, !tbaa !5
  %146 = icmp slt i32 %144, %145
  br i1 %146, label %148, label %147

147:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %157

148:                                              ; preds = %143
  %149 = load i32, ptr %20, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [10 x double], ptr %12, i64 0, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !15
  %153 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, double noundef %152)
  br label %154

154:                                              ; preds = %148
  %155 = load i32, ptr %20, align 4, !tbaa !5
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %20, align 4, !tbaa !5
  br label %143, !llvm.loop !21

157:                                              ; preds = %147
  %158 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  %159 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  %160 = getelementptr inbounds [10 x double], ptr %14, i64 0, i64 2
  %161 = load double, ptr %160, align 16, !tbaa !15
  %162 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, double noundef %161)
  br label %163

163:                                              ; preds = %157, %137
  %164 = load ptr, ptr %8, align 8, !tbaa !9
  call void @freeNomadProblem(ptr noundef %164)
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  ret i32 0
}

declare ptr @createNomadProblem(ptr noundef, i32 noundef, i32 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

declare zeroext i1 @addNomadParam(ptr noundef, ptr noundef) #2

declare zeroext i1 @addNomadArrayOfDoubleParam(ptr noundef, ptr noundef, ptr noundef) #2

declare zeroext i1 @addNomadValParam(ptr noundef, ptr noundef, i32 noundef) #2

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

declare zeroext i1 @solveNomadProblem(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

declare zeroext i1 @addNomadBoolParam(ptr noundef, ptr noundef, i1 noundef zeroext) #2

declare void @freeNomadProblem(ptr noundef) #2

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 = { 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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}


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

@__const.main.granularity_values = external hidden unnamed_addr constant [10 x double], align 16
@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@__const.main.x0 = external hidden unnamed_addr constant [10 x double], align 16
@.str.8 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @example1_bb(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #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
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca [10 x double], align 16
  %4 = alloca [10 x double], align 16
  %5 = alloca [10 x double], align 16
  %6 = alloca [10 x double], align 16
  %7 = alloca [10 x double], align 16
  %8 = alloca [10 x double], align 16
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = tail call ptr @createNomadProblem(ptr noundef nonnull @example1_bb, i32 noundef 10, i32 noundef 4) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(80) %3, ptr noundef nonnull align 16 dereferenceable(80) @__const.main.granularity_values, i64 80, i1 false)
  %12 = tail call zeroext i1 @addNomadParam(ptr noundef %11, ptr noundef nonnull @.str) #6
  %13 = call zeroext i1 @addNomadArrayOfDoubleParam(ptr noundef %11, ptr noundef nonnull @.str.1, ptr noundef nonnull %3) #6
  %14 = call zeroext i1 @addNomadParam(ptr noundef %11, ptr noundef nonnull @.str.2) #6
  %15 = call zeroext i1 @addNomadParam(ptr noundef %11, ptr noundef nonnull @.str.3) #6
  %16 = call zeroext i1 @addNomadParam(ptr noundef %11, ptr noundef nonnull @.str.4) #6
  %17 = call zeroext i1 @addNomadParam(ptr noundef %11, ptr noundef nonnull @.str.5) #6
  %18 = call zeroext i1 @addNomadValParam(ptr noundef %11, ptr noundef nonnull @.str.6, i32 noundef 1) #6
  %19 = call zeroext i1 @addNomadParam(ptr noundef %11, ptr noundef nonnull @.str.7) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(80) %4, ptr noundef nonnull align 16 dereferenceable(80) @__const.main.x0, i64 80, i1 false)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(80) %5, i8 0, i64 80, i1 false)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(80) %6, i8 0, i64 80, i1 false)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(80) %7, i8 0, i64 80, i1 false)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(80) %8, i8 0, i64 80, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  store i8 0, ptr %10, align 1, !tbaa !5
  %20 = call zeroext i1 @solveNomadProblem(ptr noundef %11, i32 noundef 1, ptr noundef nonnull %4, ptr noundef nonnull %9, ptr noundef nonnull %5, ptr noundef nonnull %7, ptr noundef nonnull %10, ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef null) #6
  %21 = load i8, ptr %9, align 1, !tbaa !5, !range !9, !noundef !10
  %22 = trunc nuw i8 %21 to i1
  br i1 %22, label %23, label %60

23:                                               ; preds = %2
  %24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %26 = load double, ptr %5, align 16, !tbaa !11
  %27 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %26)
  %28 = getelementptr inbounds i8, ptr %5, i64 8
  %29 = load double, ptr %28, align 8, !tbaa !11
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %29)
  %31 = getelementptr inbounds i8, ptr %5, i64 16
  %32 = load double, ptr %31, align 16, !tbaa !11
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %32)
  %34 = getelementptr inbounds i8, ptr %5, i64 24
  %35 = load double, ptr %34, align 8, !tbaa !11
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %35)
  %37 = getelementptr inbounds i8, ptr %5, i64 32
  %38 = load double, ptr %37, align 16, !tbaa !11
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %38)
  %40 = getelementptr inbounds i8, ptr %5, i64 40
  %41 = load double, ptr %40, align 8, !tbaa !11
  %42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %41)
  %43 = getelementptr inbounds i8, ptr %5, i64 48
  %44 = load double, ptr %43, align 16, !tbaa !11
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %44)
  %46 = getelementptr inbounds i8, ptr %5, i64 56
  %47 = load double, ptr %46, align 8, !tbaa !11
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %47)
  %49 = getelementptr inbounds i8, ptr %5, i64 64
  %50 = load double, ptr %49, align 16, !tbaa !11
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %50)
  %52 = getelementptr inbounds i8, ptr %5, i64 72
  %53 = load double, ptr %52, align 8, !tbaa !11
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %53)
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  %57 = getelementptr inbounds i8, ptr %7, i64 16
  %58 = load double, ptr %57, align 16, !tbaa !11
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, double noundef %58)
  br label %60

60:                                               ; preds = %23, %2
  %61 = load i8, ptr %10, align 1, !tbaa !5, !range !9, !noundef !10
  %62 = trunc nuw i8 %61 to i1
  br i1 %62, label %63, label %100

63:                                               ; preds = %60
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  %66 = load double, ptr %6, align 16, !tbaa !11
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %66)
  %68 = getelementptr inbounds i8, ptr %6, i64 8
  %69 = load double, ptr %68, align 8, !tbaa !11
  %70 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %69)
  %71 = getelementptr inbounds i8, ptr %6, i64 16
  %72 = load double, ptr %71, align 16, !tbaa !11
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %72)
  %74 = getelementptr inbounds i8, ptr %6, i64 24
  %75 = load double, ptr %74, align 8, !tbaa !11
  %76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %75)
  %77 = getelementptr inbounds i8, ptr %6, i64 32
  %78 = load double, ptr %77, align 16, !tbaa !11
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %78)
  %80 = getelementptr inbounds i8, ptr %6, i64 40
  %81 = load double, ptr %80, align 8, !tbaa !11
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %81)
  %83 = getelementptr inbounds i8, ptr %6, i64 48
  %84 = load double, ptr %83, align 16, !tbaa !11
  %85 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %84)
  %86 = getelementptr inbounds i8, ptr %6, i64 56
  %87 = load double, ptr %86, align 8, !tbaa !11
  %88 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %87)
  %89 = getelementptr inbounds i8, ptr %6, i64 64
  %90 = load double, ptr %89, align 16, !tbaa !11
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %90)
  %92 = getelementptr inbounds i8, ptr %6, i64 72
  %93 = load double, ptr %92, align 8, !tbaa !11
  %94 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %93)
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  %97 = getelementptr inbounds i8, ptr %8, i64 16
  %98 = load double, ptr %97, align 16, !tbaa !11
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, double noundef %98)
  br label %100

100:                                              ; preds = %63, %60
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %102 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  %103 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %104 = call zeroext i1 @addNomadBoolParam(ptr noundef %11, ptr noundef nonnull @.str.17, i1 noundef zeroext false) #6
  store i8 0, ptr %9, align 1, !tbaa !5
  store i8 0, ptr %10, align 1, !tbaa !5
  %105 = call zeroext i1 @solveNomadProblem(ptr noundef %11, i32 noundef 1, ptr noundef nonnull %4, ptr noundef nonnull %9, ptr noundef nonnull %5, ptr noundef nonnull %7, ptr noundef nonnull %10, ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef null) #6
  %106 = load i8, ptr %9, align 1, !tbaa !5, !range !9, !noundef !10
  %107 = trunc nuw i8 %106 to i1
  br i1 %107, label %108, label %145

108:                                              ; preds = %100
  %109 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %110 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %111 = load double, ptr %5, align 16, !tbaa !11
  %112 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %111)
  %113 = getelementptr inbounds i8, ptr %5, i64 8
  %114 = load double, ptr %113, align 8, !tbaa !11
  %115 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %114)
  %116 = getelementptr inbounds i8, ptr %5, i64 16
  %117 = load double, ptr %116, align 16, !tbaa !11
  %118 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %117)
  %119 = getelementptr inbounds i8, ptr %5, i64 24
  %120 = load double, ptr %119, align 8, !tbaa !11
  %121 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %120)
  %122 = getelementptr inbounds i8, ptr %5, i64 32
  %123 = load double, ptr %122, align 16, !tbaa !11
  %124 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %123)
  %125 = getelementptr inbounds i8, ptr %5, i64 40
  %126 = load double, ptr %125, align 8, !tbaa !11
  %127 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %126)
  %128 = getelementptr inbounds i8, ptr %5, i64 48
  %129 = load double, ptr %128, align 16, !tbaa !11
  %130 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %129)
  %131 = getelementptr inbounds i8, ptr %5, i64 56
  %132 = load double, ptr %131, align 8, !tbaa !11
  %133 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %132)
  %134 = getelementptr inbounds i8, ptr %5, i64 64
  %135 = load double, ptr %134, align 16, !tbaa !11
  %136 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %135)
  %137 = getelementptr inbounds i8, ptr %5, i64 72
  %138 = load double, ptr %137, align 8, !tbaa !11
  %139 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %138)
  %140 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %141 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  %142 = getelementptr inbounds i8, ptr %7, i64 16
  %143 = load double, ptr %142, align 16, !tbaa !11
  %144 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, double noundef %143)
  br label %145

145:                                              ; preds = %108, %100
  %146 = load i8, ptr %10, align 1, !tbaa !5, !range !9, !noundef !10
  %147 = trunc nuw i8 %146 to i1
  br i1 %147, label %148, label %185

148:                                              ; preds = %145
  %149 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18)
  %150 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  %151 = load double, ptr %6, align 16, !tbaa !11
  %152 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %151)
  %153 = getelementptr inbounds i8, ptr %6, i64 8
  %154 = load double, ptr %153, align 8, !tbaa !11
  %155 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %154)
  %156 = getelementptr inbounds i8, ptr %6, i64 16
  %157 = load double, ptr %156, align 16, !tbaa !11
  %158 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %157)
  %159 = getelementptr inbounds i8, ptr %6, i64 24
  %160 = load double, ptr %159, align 8, !tbaa !11
  %161 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %160)
  %162 = getelementptr inbounds i8, ptr %6, i64 32
  %163 = load double, ptr %162, align 16, !tbaa !11
  %164 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %163)
  %165 = getelementptr inbounds i8, ptr %6, i64 40
  %166 = load double, ptr %165, align 8, !tbaa !11
  %167 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %166)
  %168 = getelementptr inbounds i8, ptr %6, i64 48
  %169 = load double, ptr %168, align 16, !tbaa !11
  %170 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %169)
  %171 = getelementptr inbounds i8, ptr %6, i64 56
  %172 = load double, ptr %171, align 8, !tbaa !11
  %173 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %172)
  %174 = getelementptr inbounds i8, ptr %6, i64 64
  %175 = load double, ptr %174, align 16, !tbaa !11
  %176 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %175)
  %177 = getelementptr inbounds i8, ptr %6, i64 72
  %178 = load double, ptr %177, align 8, !tbaa !11
  %179 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %178)
  %180 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  %181 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19)
  %182 = getelementptr inbounds i8, ptr %8, i64 16
  %183 = load double, ptr %182, align 16, !tbaa !11
  %184 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, double noundef %183)
  br label %185

185:                                              ; preds = %148, %145
  call void @freeNomadProblem(ptr noundef %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #6
  ret i32 0
}

declare ptr @createNomadProblem(ptr noundef, i32 noundef, i32 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

declare zeroext i1 @addNomadParam(ptr noundef, ptr noundef) local_unnamed_addr #2

declare zeroext i1 @addNomadArrayOfDoubleParam(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare zeroext i1 @addNomadValParam(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

declare zeroext i1 @solveNomadProblem(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare zeroext i1 @addNomadBoolParam(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @freeNomadProblem(ptr noundef) local_unnamed_addr #2

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"_Bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass