; LLVM IR from greensoftwarelab/Energy-Languages :: C/chameneos-redux/chameneosredux.gcc-5 (init_and_start)

; 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.meeting_place_t = type { i64 }
%struct.chameneos_t = type { i32, i64, i64, i32, ptr, ptr, i64, i32, i64, %union.pthread_attr_t }
%union.pthread_attr_t = type { i64, [48 x i8] }

; Function Attrs: nounwind uwtable
declare dso_local ptr @cache_aligned_malloc(i64 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: noreturn nounwind
declare void @exit(i32 noundef) #2

; 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 ptr @chameneos_func(ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @init_and_start(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, i32 noundef %5, ptr noundef %6) #0 {
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i64 %4, ptr %12, align 8, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !11
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %16 = call ptr @cache_aligned_malloc(i64 noundef 8)
  %17 = load ptr, ptr %10, align 8, !tbaa !5
  %18 = getelementptr inbounds ptr, ptr %17, i64 0
  store ptr %16, ptr %18, align 8, !tbaa !5
  %19 = load i64, ptr %12, align 8, !tbaa !9
  %20 = shl i64 %19, 8
  %21 = load ptr, ptr %10, align 8, !tbaa !5
  %22 = getelementptr inbounds ptr, ptr %21, i64 0
  %23 = load ptr, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.meeting_place_t, ptr %23, i32 0, i32 0
  store volatile i64 %20, ptr %24, align 8, !tbaa !13
  %25 = load i64, ptr %9, align 8, !tbaa !9
  %26 = mul i64 %25, 8
  %27 = call ptr @cache_aligned_malloc(i64 noundef %26)
  %28 = load ptr, ptr %11, align 8, !tbaa !5
  %29 = getelementptr inbounds ptr, ptr %28, i64 0
  store ptr %27, ptr %29, align 8, !tbaa !5
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %30

30:                                               ; preds = %158, %7
  %31 = load i64, ptr %15, align 8, !tbaa !9
  %32 = load i64, ptr %9, align 8, !tbaa !9
  %33 = icmp ne i64 %31, %32
  br i1 %33, label %34, label %161

34:                                               ; preds = %30
  %35 = call ptr @cache_aligned_malloc(i64 noundef 128)
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  %37 = getelementptr inbounds ptr, ptr %36, i64 0
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = load i64, ptr %15, align 8, !tbaa !9
  %40 = getelementptr inbounds ptr, ptr %38, i64 %39
  store ptr %35, ptr %40, align 8, !tbaa !5
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  %42 = getelementptr inbounds ptr, ptr %41, i64 0
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = getelementptr inbounds ptr, ptr %44, i64 0
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = load i64, ptr %15, align 8, !tbaa !9
  %48 = getelementptr inbounds ptr, ptr %46, i64 %47
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.chameneos_t, ptr %49, i32 0, i32 4
  store ptr %43, ptr %50, align 8, !tbaa !15
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = getelementptr inbounds ptr, ptr %51, i64 0
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = getelementptr inbounds ptr, ptr %54, i64 0
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = load i64, ptr %15, align 8, !tbaa !9
  %58 = getelementptr inbounds ptr, ptr %56, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.chameneos_t, ptr %59, i32 0, i32 5
  store ptr %53, ptr %60, align 8, !tbaa !17
  %61 = load i64, ptr %15, align 8, !tbaa !9
  %62 = add i64 %61, 1
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = getelementptr inbounds ptr, ptr %63, i64 0
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = load i64, ptr %15, align 8, !tbaa !9
  %67 = getelementptr inbounds ptr, ptr %65, i64 %66
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.chameneos_t, ptr %68, i32 0, i32 6
  store i64 %62, ptr %69, align 8, !tbaa !18
  %70 = load i32, ptr %13, align 4, !tbaa !11
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = getelementptr inbounds ptr, ptr %71, i64 0
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = load i64, ptr %15, align 8, !tbaa !9
  %75 = getelementptr inbounds ptr, ptr %73, i64 %74
  %76 = load ptr, ptr %75, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.chameneos_t, ptr %76, i32 0, i32 7
  store i32 %70, ptr %77, align 8, !tbaa !19
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = getelementptr inbounds ptr, ptr %78, i64 0
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = load i64, ptr %15, align 8, !tbaa !9
  %82 = getelementptr inbounds ptr, ptr %80, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.chameneos_t, ptr %83, i32 0, i32 1
  store i64 0, ptr %84, align 8, !tbaa !20
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = getelementptr inbounds ptr, ptr %85, i64 0
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %88 = load i64, ptr %15, align 8, !tbaa !9
  %89 = getelementptr inbounds ptr, ptr %87, i64 %88
  %90 = load ptr, ptr %89, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.chameneos_t, ptr %90, i32 0, i32 2
  store i64 0, ptr %91, align 8, !tbaa !21
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = load i64, ptr %15, align 8, !tbaa !9
  %94 = getelementptr inbounds i32, ptr %92, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !11
  %96 = load ptr, ptr %11, align 8, !tbaa !5
  %97 = getelementptr inbounds ptr, ptr %96, i64 0
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  %99 = load i64, ptr %15, align 8, !tbaa !9
  %100 = getelementptr inbounds ptr, ptr %98, i64 %99
  %101 = load ptr, ptr %100, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.chameneos_t, ptr %101, i32 0, i32 0
  store i32 %95, ptr %102, align 8, !tbaa !22
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = getelementptr inbounds ptr, ptr %103, i64 0
  %105 = load ptr, ptr %104, align 8, !tbaa !5
  %106 = load i64, ptr %15, align 8, !tbaa !9
  %107 = getelementptr inbounds ptr, ptr %105, i64 %106
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.chameneos_t, ptr %108, i32 0, i32 3
  store volatile i32 0, ptr %109, align 8, !tbaa !23
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  %111 = getelementptr inbounds ptr, ptr %110, i64 0
  %112 = load ptr, ptr %111, align 8, !tbaa !5
  %113 = load i64, ptr %15, align 8, !tbaa !9
  %114 = getelementptr inbounds ptr, ptr %112, i64 %113
  %115 = load ptr, ptr %114, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.chameneos_t, ptr %115, i32 0, i32 9
  %117 = call i32 @pthread_attr_init(ptr noundef %116) #4
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %120

119:                                              ; preds = %34
  call void @exit(i32 noundef 1) #5
  unreachable

120:                                              ; preds = %34
  %121 = load i32, ptr %13, align 4, !tbaa !11
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %133

123:                                              ; preds = %120
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = getelementptr inbounds ptr, ptr %124, i64 0
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = load i64, ptr %15, align 8, !tbaa !9
  %128 = getelementptr inbounds ptr, ptr %126, i64 %127
  %129 = load ptr, ptr %128, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.chameneos_t, ptr %129, i32 0, i32 9
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  %132 = call i32 @pthread_attr_setaffinity_np(ptr noundef %130, i64 noundef 128, ptr noundef %131) #4
  br label %133

133:                                              ; preds = %123, %120
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  %135 = getelementptr inbounds ptr, ptr %134, i64 0
  %136 = load ptr, ptr %135, align 8, !tbaa !5
  %137 = load i64, ptr %15, align 8, !tbaa !9
  %138 = getelementptr inbounds ptr, ptr %136, i64 %137
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.chameneos_t, ptr %139, i32 0, i32 8
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = getelementptr inbounds ptr, ptr %141, i64 0
  %143 = load ptr, ptr %142, align 8, !tbaa !5
  %144 = load i64, ptr %15, align 8, !tbaa !9
  %145 = getelementptr inbounds ptr, ptr %143, i64 %144
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.chameneos_t, ptr %146, i32 0, i32 9
  %148 = load ptr, ptr %11, align 8, !tbaa !5
  %149 = getelementptr inbounds ptr, ptr %148, i64 0
  %150 = load ptr, ptr %149, align 8, !tbaa !5
  %151 = load i64, ptr %15, align 8, !tbaa !9
  %152 = getelementptr inbounds ptr, ptr %150, i64 %151
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  %154 = call i32 @pthread_create(ptr noundef %140, ptr noundef %147, ptr noundef @chameneos_func, ptr noundef %153) #4
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %157

156:                                              ; preds = %133
  call void @exit(i32 noundef 1) #5
  unreachable

157:                                              ; preds = %133
  br label %158

158:                                              ; preds = %157
  %159 = load i64, ptr %15, align 8, !tbaa !9
  %160 = add i64 %159, 1
  store i64 %160, ptr %15, align 8, !tbaa !9
  br label %30, !llvm.loop !24

161:                                              ; preds = %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  ret void
}

; Function Attrs: nounwind
declare i32 @pthread_attr_init(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @pthread_attr_setaffinity_np(ptr noundef, i64 noundef, ptr noundef) #3

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"meeting_place_t", !10, i64 0}
!15 = !{!16, !6, i64 32}
!16 = !{!"chameneos_t", !12, i64 0, !10, i64 8, !10, i64 16, !12, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !12, i64 56, !10, i64 64, !7, i64 72}
!17 = !{!16, !6, i64 40}
!18 = !{!16, !10, i64 48}
!19 = !{!16, !12, i64 56}
!20 = !{!16, !10, i64 8}
!21 = !{!16, !10, i64 16}
!22 = !{!16, !12, i64 0}
!23 = !{!16, !12, i64 24}
!24 = distinct !{!24, !25}
!25 = !{!"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"

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @init_and_start(ptr nocapture noundef readonly %0, i64 noundef %1, ptr nocapture noundef %2, ptr nocapture noundef %3, i64 noundef %4, i32 noundef %5, ptr noundef %6) local_unnamed_addr #0 {
  %8 = tail call ptr @cache_aligned_malloc(i64 noundef 8)
  store ptr %8, ptr %2, align 8, !tbaa !5
  %9 = shl i64 %4, 8
  store volatile i64 %9, ptr %8, align 8, !tbaa !9
  %10 = shl i64 %1, 3
  %11 = tail call ptr @cache_aligned_malloc(i64 noundef %10)
  store ptr %11, ptr %3, align 8, !tbaa !5
  %.not44 = icmp eq i32 %5, 0
  br i1 %.not44, label %.split.us, label %.split

.split.us:                                        ; preds = %7, %35
  %.0.us = phi i64 [ %25, %35 ], [ 0, %7 ]
  %.not.us = icmp eq i64 %.0.us, %1
  br i1 %.not.us, label %.split47.us, label %12

12:                                               ; preds = %.split.us
  %13 = tail call ptr @cache_aligned_malloc(i64 noundef 128)
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds ptr, ptr %14, i64 %.0.us
  store ptr %13, ptr %15, align 8, !tbaa !5
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds ptr, ptr %17, i64 %.0.us
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %19, i64 32
  store ptr %16, ptr %20, align 8, !tbaa !12
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds ptr, ptr %21, i64 %.0.us
  %23 = load ptr, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 40
  store ptr %21, ptr %24, align 8, !tbaa !15
  %25 = add i64 %.0.us, 1
  %26 = load ptr, ptr %22, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 48
  store i64 %25, ptr %27, align 8, !tbaa !16
  %28 = getelementptr inbounds i8, ptr %26, i64 56
  store i32 0, ptr %28, align 8, !tbaa !17
  %29 = getelementptr inbounds i8, ptr %26, i64 8
  %30 = getelementptr inbounds i32, ptr %0, i64 %.0.us
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %29, i8 0, i64 16, i1 false)
  %31 = load i32, ptr %30, align 4, !tbaa !18
  store i32 %31, ptr %26, align 8, !tbaa !19
  %32 = getelementptr inbounds i8, ptr %26, i64 24
  store volatile i32 0, ptr %32, align 8, !tbaa !20
  %33 = getelementptr inbounds i8, ptr %26, i64 72
  %34 = tail call i32 @pthread_attr_init(ptr noundef nonnull %33) #4
  %.not43.us = icmp eq i32 %34, 0
  br i1 %.not43.us, label %35, label %.split49.us

35:                                               ; preds = %12
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds ptr, ptr %36, i64 %.0.us
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 64
  %40 = getelementptr inbounds i8, ptr %38, i64 72
  %41 = tail call i32 @pthread_create(ptr noundef nonnull %39, ptr noundef nonnull %40, ptr noundef nonnull @chameneos_func, ptr noundef %38) #4
  %.not45.us = icmp eq i32 %41, 0
  br i1 %.not45.us, label %.split.us, label %.split51.us, !llvm.loop !21

.split:                                           ; preds = %7, %65
  %.0 = phi i64 [ %55, %65 ], [ 0, %7 ]
  %.not = icmp eq i64 %.0, %1
  br i1 %.not, label %.split47.us, label %42

42:                                               ; preds = %.split
  %43 = tail call ptr @cache_aligned_malloc(i64 noundef 128)
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds ptr, ptr %44, i64 %.0
  store ptr %43, ptr %45, align 8, !tbaa !5
  %46 = load ptr, ptr %2, align 8, !tbaa !5
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds ptr, ptr %47, i64 %.0
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i64 32
  store ptr %46, ptr %50, align 8, !tbaa !12
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds ptr, ptr %51, i64 %.0
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %53, i64 40
  store ptr %51, ptr %54, align 8, !tbaa !15
  %55 = add i64 %.0, 1
  %56 = load ptr, ptr %52, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %56, i64 48
  store i64 %55, ptr %57, align 8, !tbaa !16
  %58 = getelementptr inbounds i8, ptr %56, i64 56
  store i32 %5, ptr %58, align 8, !tbaa !17
  %59 = getelementptr inbounds i8, ptr %56, i64 8
  %60 = getelementptr inbounds i32, ptr %0, i64 %.0
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %59, i8 0, i64 16, i1 false)
  %61 = load i32, ptr %60, align 4, !tbaa !18
  store i32 %61, ptr %56, align 8, !tbaa !19
  %62 = getelementptr inbounds i8, ptr %56, i64 24
  store volatile i32 0, ptr %62, align 8, !tbaa !20
  %63 = getelementptr inbounds i8, ptr %56, i64 72
  %64 = tail call i32 @pthread_attr_init(ptr noundef nonnull %63) #4
  %.not43 = icmp eq i32 %64, 0
  br i1 %.not43, label %65, label %.split49.us

.split49.us:                                      ; preds = %42, %12
  tail call void @exit(i32 noundef 1) #5
  unreachable

65:                                               ; preds = %42
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds ptr, ptr %66, i64 %.0
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %68, i64 72
  %70 = tail call i32 @pthread_attr_setaffinity_np(ptr noundef nonnull %69, i64 noundef 128, ptr noundef %6) #4
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds ptr, ptr %71, i64 %.0
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 64
  %75 = getelementptr inbounds i8, ptr %73, i64 72
  %76 = tail call i32 @pthread_create(ptr noundef nonnull %74, ptr noundef nonnull %75, ptr noundef nonnull @chameneos_func, ptr noundef %73) #4
  %.not45 = icmp eq i32 %76, 0
  br i1 %.not45, label %.split, label %.split51.us, !llvm.loop !21

.split51.us:                                      ; preds = %65, %35
  tail call void @exit(i32 noundef 1) #5
  unreachable

.split47.us:                                      ; preds = %.split, %.split.us
  ret void
}

; Function Attrs: nounwind
declare i32 @pthread_attr_init(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @pthread_attr_setaffinity_np(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, 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 = { noreturn 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 #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }
attributes #5 = { noreturn 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, !11, i64 0}
!10 = !{!"meeting_place_t", !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !6, i64 32}
!13 = !{!"chameneos_t", !14, i64 0, !11, i64 8, !11, i64 16, !14, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !14, i64 56, !11, i64 64, !7, i64 72}
!14 = !{!"int", !7, i64 0}
!15 = !{!13, !6, i64 40}
!16 = !{!13, !11, i64 48}
!17 = !{!13, !14, i64 56}
!18 = !{!14, !14, i64 0}
!19 = !{!13, !14, i64 0}
!20 = !{!13, !14, i64 24}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


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