; LLVM IR from cyberbotics/epuck_ros2 :: epuck_ros2_camera/src (pipuck_v4l2)

; 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.v4l2_buffer = type { i32, i32, i32, i32, i32, %struct.timeval, %struct.v4l2_timecode, i32, i32, %union.anon.2, i32, i32, %union.anon.3 }
%struct.timeval = type { i64, i64 }
%struct.v4l2_timecode = type { i32, i32, i8, i8, i8, i8, [4 x i8] }
%union.anon.2 = type { i64 }
%union.anon.3 = type { i32 }
%struct.v4l2_capability = type { [16 x i8], [32 x i8], [32 x i8], i32, i32, i32, [3 x i32] }
%struct.v4l2_format = type { i32, %union.anon }
%union.anon = type { %struct.v4l2_window, [144 x i8] }
%struct.v4l2_window = type { %struct.v4l2_rect, i32, i32, ptr, i32, ptr, i8 }
%struct.v4l2_rect = type { i32, i32, i32, i32 }
%struct.v4l2_requestbuffers = type { i32, i32, i32, i32, [1 x i32] }
%struct.v4l2_pix_format = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, %union.anon.0, i32, i32 }
%union.anon.0 = type { i32 }

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@f = external hidden global i32, align 4
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [92 x i8], align 1
@__PRETTY_FUNCTION__.pipuck_v4l2_init = external hidden unnamed_addr constant [24 x i8], align 1
@status = external hidden global i32, align 4
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@querybuffer = external hidden global %struct.v4l2_buffer, align 8
@buffer = external hidden global ptr, align 8
@bufferinfo = external hidden global %struct.v4l2_buffer, align 8

; Function Attrs: nounwind uwtable
define dso_local void @pipuck_v4l2_init() #0 {
  %1 = alloca %struct.v4l2_capability, align 4
  %2 = alloca %struct.v4l2_format, align 8
  %3 = alloca %struct.v4l2_requestbuffers, align 4
  %4 = call i32 (ptr, i32, ...) @open(ptr noundef @.str, i32 noundef 2)
  store i32 %4, ptr @f, align 4, !tbaa !5
  %5 = load i32, ptr @f, align 4, !tbaa !5
  %6 = icmp ne i32 %5, 0
  br i1 %6, label %7, label %8

7:                                                ; preds = %0
  br label %9

8:                                                ; preds = %0
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 37, ptr noundef @__PRETTY_FUNCTION__.pipuck_v4l2_init) #6
  unreachable

9:                                                ; preds = %7
  call void @llvm.lifetime.start.p0(i64 104, ptr %1) #7
  %10 = load i32, ptr @f, align 4, !tbaa !5
  %11 = call i32 (i32, i64, ...) @ioctl(i32 noundef %10, i64 noundef 2154321408, ptr noundef %1) #7
  store i32 %11, ptr @status, align 4, !tbaa !5
  %12 = load i32, ptr @status, align 4, !tbaa !5
  %13 = icmp sge i32 %12, 0
  br i1 %13, label %14, label %15

14:                                               ; preds = %9
  br label %16

15:                                               ; preds = %9
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 42, ptr noundef @__PRETTY_FUNCTION__.pipuck_v4l2_init) #6
  unreachable

16:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 208, ptr %2) #7
  %17 = getelementptr inbounds %struct.v4l2_format, ptr %2, i32 0, i32 0
  store i32 1, ptr %17, align 8, !tbaa !9
  %18 = getelementptr inbounds %struct.v4l2_format, ptr %2, i32 0, i32 1
  %19 = getelementptr inbounds %struct.v4l2_pix_format, ptr %18, i32 0, i32 0
  store i32 640, ptr %19, align 8, !tbaa !11
  %20 = getelementptr inbounds %struct.v4l2_format, ptr %2, i32 0, i32 1
  %21 = getelementptr inbounds %struct.v4l2_pix_format, ptr %20, i32 0, i32 1
  store i32 480, ptr %21, align 4, !tbaa !11
  %22 = getelementptr inbounds %struct.v4l2_format, ptr %2, i32 0, i32 1
  %23 = getelementptr inbounds %struct.v4l2_pix_format, ptr %22, i32 0, i32 2
  store i32 1345466932, ptr %23, align 8, !tbaa !11
  %24 = getelementptr inbounds %struct.v4l2_format, ptr %2, i32 0, i32 1
  %25 = getelementptr inbounds %struct.v4l2_pix_format, ptr %24, i32 0, i32 3
  store i32 1, ptr %25, align 4, !tbaa !11
  %26 = load i32, ptr @f, align 4, !tbaa !5
  %27 = call i32 (i32, i64, ...) @ioctl(i32 noundef %26, i64 noundef 3234878981, ptr noundef %2) #7
  store i32 %27, ptr @status, align 4, !tbaa !5
  %28 = load i32, ptr @status, align 4, !tbaa !5
  %29 = icmp sge i32 %28, 0
  br i1 %29, label %30, label %31

30:                                               ; preds = %16
  br label %32

31:                                               ; preds = %16
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 52, ptr noundef @__PRETTY_FUNCTION__.pipuck_v4l2_init) #6
  unreachable

32:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 20, ptr %3) #7
  %33 = getelementptr inbounds %struct.v4l2_requestbuffers, ptr %3, i32 0, i32 0
  store i32 1, ptr %33, align 4, !tbaa !12
  %34 = getelementptr inbounds %struct.v4l2_requestbuffers, ptr %3, i32 0, i32 1
  store i32 1, ptr %34, align 4, !tbaa !14
  %35 = getelementptr inbounds %struct.v4l2_requestbuffers, ptr %3, i32 0, i32 2
  store i32 1, ptr %35, align 4, !tbaa !15
  %36 = load i32, ptr @f, align 4, !tbaa !5
  %37 = call i32 (i32, i64, ...) @ioctl(i32 noundef %36, i64 noundef 3222558216, ptr noundef %3) #7
  store i32 %37, ptr @status, align 4, !tbaa !5
  %38 = load i32, ptr @status, align 4, !tbaa !5
  %39 = icmp sge i32 %38, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %32
  br label %42

41:                                               ; preds = %32
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 60, ptr noundef @__PRETTY_FUNCTION__.pipuck_v4l2_init) #6
  unreachable

42:                                               ; preds = %40
  store i32 1, ptr getelementptr inbounds (%struct.v4l2_buffer, ptr @querybuffer, i32 0, i32 1), align 4, !tbaa !16
  store i32 1, ptr getelementptr inbounds (%struct.v4l2_buffer, ptr @querybuffer, i32 0, i32 8), align 4, !tbaa !21
  store i32 0, ptr @querybuffer, align 8, !tbaa !22
  %43 = load i32, ptr @f, align 4, !tbaa !5
  %44 = call i32 (i32, i64, ...) @ioctl(i32 noundef %43, i64 noundef 3227014665, ptr noundef @querybuffer) #7
  store i32 %44, ptr @status, align 4, !tbaa !5
  %45 = load i32, ptr @status, align 4, !tbaa !5
  %46 = icmp sge i32 %45, 0
  br i1 %46, label %47, label %48

47:                                               ; preds = %42
  br label %49

48:                                               ; preds = %42
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 67, ptr noundef @__PRETTY_FUNCTION__.pipuck_v4l2_init) #6
  unreachable

49:                                               ; preds = %47
  %50 = load i32, ptr getelementptr inbounds (%struct.v4l2_buffer, ptr @querybuffer, i32 0, i32 10), align 8, !tbaa !23
  %51 = zext i32 %50 to i64
  %52 = load i32, ptr @f, align 4, !tbaa !5
  %53 = load i32, ptr getelementptr inbounds (%struct.v4l2_buffer, ptr @querybuffer, i32 0, i32 9), align 8, !tbaa !11
  %54 = zext i32 %53 to i64
  %55 = call ptr @mmap(ptr noundef null, i64 noundef %51, i32 noundef 3, i32 noundef 1, i32 noundef %52, i64 noundef %54) #7
  store ptr %55, ptr @buffer, align 8, !tbaa !24
  %56 = load ptr, ptr @buffer, align 8, !tbaa !24
  %57 = load i32, ptr getelementptr inbounds (%struct.v4l2_buffer, ptr @querybuffer, i32 0, i32 10), align 8, !tbaa !23
  %58 = zext i32 %57 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %56, i8 0, i64 %58, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 @bufferinfo, i8 0, i64 88, i1 false)
  store i32 1, ptr getelementptr inbounds (%struct.v4l2_buffer, ptr @bufferinfo, i32 0, i32 1), align 4, !tbaa !16
  store i32 1, ptr getelementptr inbounds (%struct.v4l2_buffer, ptr @bufferinfo, i32 0, i32 8), align 4, !tbaa !21
  store i32 0, ptr @bufferinfo, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 20, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 208, ptr %2) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr %1) #7
  ret void
}

declare i32 @open(ptr noundef, i32 noundef, ...) #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

; Function Attrs: nounwind
declare i32 @ioctl(i32 noundef, i64 noundef, ...) #4

; Function Attrs: nounwind
declare ptr @mmap(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef) #4

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { "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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { noreturn nounwind }
attributes #7 = { 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, !6, i64 0}
!10 = !{!"v4l2_format", !6, i64 0, !7, i64 8}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"v4l2_requestbuffers", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !7, i64 16}
!14 = !{!13, !6, i64 4}
!15 = !{!13, !6, i64 8}
!16 = !{!17, !6, i64 4}
!17 = !{!"v4l2_buffer", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !18, i64 24, !20, i64 40, !6, i64 56, !6, i64 60, !7, i64 64, !6, i64 72, !6, i64 76, !7, i64 80}
!18 = !{!"timeval", !19, i64 0, !19, i64 8}
!19 = !{!"long", !7, i64 0}
!20 = !{!"v4l2_timecode", !6, i64 0, !6, i64 4, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !7, i64 12}
!21 = !{!17, !6, i64 60}
!22 = !{!17, !6, i64 0}
!23 = !{!17, !6, i64 72}
!24 = !{!25, !25, i64 0}
!25 = !{!"any pointer", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.v4l2_buffer = type { i32, i32, i32, i32, i32, %struct.timeval, %struct.v4l2_timecode, i32, i32, %union.anon.2, i32, i32, %union.anon.3 }
%struct.timeval = type { i64, i64 }
%struct.v4l2_timecode = type { i32, i32, i8, i8, i8, i8, [4 x i8] }
%union.anon.2 = type { i64 }
%union.anon.3 = type { i32 }
%struct.v4l2_capability = type { [16 x i8], [32 x i8], [32 x i8], i32, i32, i32, [3 x i32] }
%struct.v4l2_format = type { i32, %union.anon }
%union.anon = type { %struct.v4l2_window, [144 x i8] }
%struct.v4l2_window = type { %struct.v4l2_rect, i32, i32, ptr, i32, ptr, i8 }
%struct.v4l2_rect = type { i32, i32, i32, i32 }
%struct.v4l2_requestbuffers = type { i32, i32, i32, i32, [1 x i32] }

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@f = external hidden local_unnamed_addr global i32, align 4
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [92 x i8], align 1
@__PRETTY_FUNCTION__.pipuck_v4l2_init = external hidden unnamed_addr constant [24 x i8], align 1
@status = external hidden local_unnamed_addr global i32, align 4
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@querybuffer = external hidden global %struct.v4l2_buffer, align 8
@buffer = external hidden local_unnamed_addr global ptr, align 8
@bufferinfo = external hidden local_unnamed_addr global %struct.v4l2_buffer, align 8

; Function Attrs: nounwind uwtable
define dso_local void @pipuck_v4l2_init() local_unnamed_addr #0 {
  %1 = alloca %struct.v4l2_capability, align 4
  %2 = alloca %struct.v4l2_format, align 8
  %3 = alloca %struct.v4l2_requestbuffers, align 4
  %4 = tail call i32 (ptr, i32, ...) @open(ptr noundef nonnull @.str, i32 noundef 2) #6
  store i32 %4, ptr @f, align 4, !tbaa !5
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %5, label %6

5:                                                ; preds = %0
  tail call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 37, ptr noundef nonnull @__PRETTY_FUNCTION__.pipuck_v4l2_init) #7
  unreachable

6:                                                ; preds = %0
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %1) #6
  %7 = call i32 (i32, i64, ...) @ioctl(i32 noundef %4, i64 noundef 2154321408, ptr noundef nonnull %1) #6
  store i32 %7, ptr @status, align 4, !tbaa !5
  %8 = icmp sgt i32 %7, -1
  br i1 %8, label %10, label %9

9:                                                ; preds = %6
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 42, ptr noundef nonnull @__PRETTY_FUNCTION__.pipuck_v4l2_init) #7
  unreachable

10:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %2) #6
  store i32 1, ptr %2, align 8, !tbaa !9
  %11 = getelementptr inbounds i8, ptr %2, i64 8
  store <4 x i32> <i32 640, i32 480, i32 1345466932, i32 1>, ptr %11, align 8, !tbaa !11
  %12 = load i32, ptr @f, align 4, !tbaa !5
  %13 = call i32 (i32, i64, ...) @ioctl(i32 noundef %12, i64 noundef 3234878981, ptr noundef nonnull %2) #6
  store i32 %13, ptr @status, align 4, !tbaa !5
  %14 = icmp sgt i32 %13, -1
  br i1 %14, label %16, label %15

15:                                               ; preds = %10
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 52, ptr noundef nonnull @__PRETTY_FUNCTION__.pipuck_v4l2_init) #7
  unreachable

16:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #6
  store i32 1, ptr %3, align 4, !tbaa !12
  %17 = getelementptr inbounds i8, ptr %3, i64 4
  store i32 1, ptr %17, align 4, !tbaa !14
  %18 = getelementptr inbounds i8, ptr %3, i64 8
  store i32 1, ptr %18, align 4, !tbaa !15
  %19 = load i32, ptr @f, align 4, !tbaa !5
  %20 = call i32 (i32, i64, ...) @ioctl(i32 noundef %19, i64 noundef 3222558216, ptr noundef nonnull %3) #6
  store i32 %20, ptr @status, align 4, !tbaa !5
  %21 = icmp sgt i32 %20, -1
  br i1 %21, label %23, label %22

22:                                               ; preds = %16
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 60, ptr noundef nonnull @__PRETTY_FUNCTION__.pipuck_v4l2_init) #7
  unreachable

23:                                               ; preds = %16
  store i32 1, ptr getelementptr inbounds (i8, ptr @querybuffer, i64 4), align 4, !tbaa !16
  store i32 1, ptr getelementptr inbounds (i8, ptr @querybuffer, i64 60), align 4, !tbaa !21
  store i32 0, ptr @querybuffer, align 8, !tbaa !22
  %24 = load i32, ptr @f, align 4, !tbaa !5
  %25 = call i32 (i32, i64, ...) @ioctl(i32 noundef %24, i64 noundef 3227014665, ptr noundef nonnull @querybuffer) #6
  store i32 %25, ptr @status, align 4, !tbaa !5
  %26 = icmp sgt i32 %25, -1
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 67, ptr noundef nonnull @__PRETTY_FUNCTION__.pipuck_v4l2_init) #7
  unreachable

28:                                               ; preds = %23
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @querybuffer, i64 72), align 8, !tbaa !23
  %30 = zext i32 %29 to i64
  %31 = load i32, ptr @f, align 4, !tbaa !5
  %32 = load i32, ptr getelementptr inbounds (i8, ptr @querybuffer, i64 64), align 8, !tbaa !11
  %33 = zext i32 %32 to i64
  %34 = call ptr @mmap(ptr noundef null, i64 noundef %30, i32 noundef 3, i32 noundef 1, i32 noundef %31, i64 noundef %33) #6
  store ptr %34, ptr @buffer, align 8, !tbaa !24
  %35 = load i32, ptr getelementptr inbounds (i8, ptr @querybuffer, i64 72), align 8, !tbaa !23
  %36 = zext i32 %35 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %34, i8 0, i64 %36, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(88) getelementptr inbounds (i8, ptr @bufferinfo, i64 8), i8 0, i64 80, i1 false)
  store i32 1, ptr getelementptr inbounds (i8, ptr @bufferinfo, i64 4), align 4, !tbaa !16
  store i32 1, ptr getelementptr inbounds (i8, ptr @bufferinfo, i64 60), align 4, !tbaa !21
  store i32 0, ptr @bufferinfo, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %1) #6
  ret void
}

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

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

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

; Function Attrs: nounwind
declare i32 @ioctl(i32 noundef, i64 noundef, ...) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { nofree "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 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"v4l2_format", !6, i64 0, !7, i64 8}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"v4l2_requestbuffers", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !7, i64 16}
!14 = !{!13, !6, i64 4}
!15 = !{!13, !6, i64 8}
!16 = !{!17, !6, i64 4}
!17 = !{!"v4l2_buffer", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !18, i64 24, !20, i64 40, !6, i64 56, !6, i64 60, !7, i64 64, !6, i64 72, !6, i64 76, !7, i64 80}
!18 = !{!"timeval", !19, i64 0, !19, i64 8}
!19 = !{!"long", !7, i64 0}
!20 = !{!"v4l2_timecode", !6, i64 0, !6, i64 4, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !7, i64 12}
!21 = !{!17, !6, i64 60}
!22 = !{!17, !6, i64 0}
!23 = !{!17, !6, i64 72}
!24 = !{!25, !25, i64 0}
!25 = !{!"any pointer", !7, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SimplifyCFGPass,TailCallElimPass