#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
unsigned int V4L2_CAP_ASYNCIO;
unsigned int V4L2_CAP_AUDIO;
unsigned int V4L2_CAP_RADIO;
unsigned int V4L2_CAP_READWRITE;
unsigned int V4L2_CAP_SLICED_VBI_CAPTURE;
unsigned int V4L2_CAP_SLICED_VBI_OUTPUT;
unsigned int V4L2_CAP_STREAMING;
unsigned int V4L2_CAP_TUNER;
unsigned int V4L2_CAP_VBI_CAPTURE;
unsigned int V4L2_CAP_VBI_OUTPUT;
unsigned int V4L2_CAP_VIDEO_CAPTURE;
unsigned int V4L2_CAP_VIDEO_OUTPUT;
unsigned int V4L2_CAP_VIDEO_OUTPUT_OVERLAY;
unsigned int V4L2_CAP_VIDEO_OVERLAY;
void support_format(unsigned int format) {
  if (format & V4L2_CAP_VIDEO_CAPTURE)
    ("\t\t\t V4L2_CAP_VIDEO_CAPTURE\n");
  if (format & V4L2_CAP_VIDEO_OUTPUT)
    ("\t\t\t V4L2_CAP_VIDEO_OUTPUT\n");
  if (format & V4L2_CAP_VIDEO_OVERLAY)
    ("\t\t\t V4L2_CAP_VIDEO_OVERLAY\n");
  if (format & V4L2_CAP_VBI_CAPTURE)
    ("\t\t\t V4L2_CAP_VBI_CAPTURE\n");
  if (format & V4L2_CAP_VBI_OUTPUT)
    ("\t\t\t V4L2_CAP_VBI_OUTPUT\n");
  if (format & V4L2_CAP_SLICED_VBI_CAPTURE)
    ("\t\t\t V4L2_CAP_SLICED_VBI_CAPTURE\n");
  if (format & V4L2_CAP_SLICED_VBI_OUTPUT)
    ("\t\t\t V4L2_CAP_SLICED_VBI_OUTPUT\n");
  if (format & V4L2_CAP_VIDEO_OUTPUT_OVERLAY)
    ("\t\t\t V4L2_CAP_VIDEO_OUTPUT_OVERLAY\n");
  if (format & V4L2_CAP_TUNER)
    ("\t\t\t V4L2_CAP_TUNER \n");
  if (format & V4L2_CAP_AUDIO)
    ("\t\t\t V4L2_CAP_AUDIO\n");
  if (format & V4L2_CAP_RADIO)
    ("\t\t\t V4L2_CAP_RADIO\n");
  if (format & V4L2_CAP_READWRITE)
    ("\t\t\t V4L2_CAP_READWRITE\n");
  if (format & V4L2_CAP_ASYNCIO)
    ("\t\t\t V4L2_CAP_ASYNCIO\n");
  if (format & V4L2_CAP_STREAMING)
    ("\t\t\t V4L2_CAP_STREAMING\n");
}


x86 assembly (clang, -O0):
<support_format>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    0x2ebf(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1121 <support_format+0x21>
jmp    1121 <support_format+0x21>
mov    -0x4(%rbp),%eax
mov    0x2e9d(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     113b <support_format+0x3b>
jmp    113b <support_format+0x3b>
mov    -0x4(%rbp),%eax
mov    0x2e43(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1155 <support_format+0x55>
jmp    1155 <support_format+0x55>
mov    -0x4(%rbp),%eax
mov    0x2e91(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     116f <support_format+0x6f>
jmp    116f <support_format+0x6f>
mov    -0x4(%rbp),%eax
mov    0x2e17(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1189 <support_format+0x89>
jmp    1189 <support_format+0x89>
mov    -0x4(%rbp),%eax
mov    0x2e05(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     11a3 <support_format+0xa3>
jmp    11a3 <support_format+0xa3>
mov    -0x4(%rbp),%eax
mov    0x2df3(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     11bd <support_format+0xbd>
jmp    11bd <support_format+0xbd>
mov    -0x4(%rbp),%eax
mov    0x2da9(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     11d7 <support_format+0xd7>
jmp    11d7 <support_format+0xd7>
mov    -0x4(%rbp),%eax
mov    0x2ddf(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     11f1 <support_format+0xf1>
jmp    11f1 <support_format+0xf1>
mov    -0x4(%rbp),%eax
mov    0x2d85(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     120b <support_format+0x10b>
jmp    120b <support_format+0x10b>
mov    -0x4(%rbp),%eax
mov    0x2dc3(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1225 <support_format+0x125>
jmp    1225 <support_format+0x125>
mov    -0x4(%rbp),%eax
mov    0x2db1(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     123f <support_format+0x13f>
jmp    123f <support_format+0x13f>
mov    -0x4(%rbp),%eax
mov    0x2d67(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1259 <support_format+0x159>
jmp    1259 <support_format+0x159>
mov    -0x4(%rbp),%eax
mov    0x2d55(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1273 <support_format+0x173>
jmp    1273 <support_format+0x173>
pop    %rbp
ret

x86 assembly (clang, -O2):
<support_format>:
ret

LLVM IR (-O0):
@V4L2_CAP_VIDEO_CAPTURE = global i32 0
@.str = [28 x i8] c"\09\09\09 V4L2_CAP_VIDEO_CAPTURE\0A\00"
@V4L2_CAP_VIDEO_OUTPUT = global i32 0
@.str.1 = [27 x i8] c"\09\09\09 V4L2_CAP_VIDEO_OUTPUT\0A\00"
@V4L2_CAP_VIDEO_OVERLAY = global i32 0
@.str.2 = [28 x i8] c"\09\09\09 V4L2_CAP_VIDEO_OVERLAY\0A\00"
@V4L2_CAP_VBI_CAPTURE = global i32 0
@.str.3 = [26 x i8] c"\09\09\09 V4L2_CAP_VBI_CAPTURE\0A\00"
@V4L2_CAP_VBI_OUTPUT = global i32 0
@.str.4 = [25 x i8] c"\09\09\09 V4L2_CAP_VBI_OUTPUT\0A\00"
@V4L2_CAP_SLICED_VBI_CAPTURE = global i32 0
@.str.5 = [33 x i8] c"\09\09\09 V4L2_CAP_SLICED_VBI_CAPTURE\0A\00"
@V4L2_CAP_SLICED_VBI_OUTPUT = global i32 0
@.str.6 = [32 x i8] c"\09\09\09 V4L2_CAP_SLICED_VBI_OUTPUT\0A\00"
@V4L2_CAP_VIDEO_OUTPUT_OVERLAY = global i32 0
@.str.7 = [35 x i8] c"\09\09\09 V4L2_CAP_VIDEO_OUTPUT_OVERLAY\0A\00"
@V4L2_CAP_TUNER = global i32 0
@.str.8 = [21 x i8] c"\09\09\09 V4L2_CAP_TUNER \0A\00"
@V4L2_CAP_AUDIO = global i32 0
@.str.9 = [20 x i8] c"\09\09\09 V4L2_CAP_AUDIO\0A\00"
@V4L2_CAP_RADIO = global i32 0
@.str.10 = [20 x i8] c"\09\09\09 V4L2_CAP_RADIO\0A\00"
@V4L2_CAP_READWRITE = global i32 0
@.str.11 = [24 x i8] c"\09\09\09 V4L2_CAP_READWRITE\0A\00"
@V4L2_CAP_ASYNCIO = global i32 0
@.str.12 = [22 x i8] c"\09\09\09 V4L2_CAP_ASYNCIO\0A\00"
@V4L2_CAP_STREAMING = global i32 0
@.str.13 = [24 x i8] c"\09\09\09 V4L2_CAP_STREAMING\0A\00"
define void @support_format(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @V4L2_CAP_VIDEO_CAPTURE
%5 = and i32 %3, %4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
br label %8
8: ; preds = %7, %1
%9 = load i32, i32* %2
%10 = load i32, i32* @V4L2_CAP_VIDEO_OUTPUT
%11 = and i32 %9, %10
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %8
br label %14
14: ; preds = %13, %8
%15 = load i32, i32* %2
%16 = load i32, i32* @V4L2_CAP_VIDEO_OVERLAY
%17 = and i32 %15, %16
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %14
br label %20
20: ; preds = %19, %14
%21 = load i32, i32* %2
%22 = load i32, i32* @V4L2_CAP_VBI_CAPTURE
%23 = and i32 %21, %22
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %20
br label %26
26: ; preds = %25, %20
%27 = load i32, i32* %2
%28 = load i32, i32* @V4L2_CAP_VBI_OUTPUT
%29 = and i32 %27, %28
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %26
br label %32
32: ; preds = %31, %26
%33 = load i32, i32* %2
%34 = load i32, i32* @V4L2_CAP_SLICED_VBI_CAPTURE
%35 = and i32 %33, %34
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %32
br label %38
38: ; preds = %37, %32
%39 = load i32, i32* %2
%40 = load i32, i32* @V4L2_CAP_SLICED_VBI_OUTPUT
%41 = and i32 %39, %40
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %38
br label %44
44: ; preds = %43, %38
%45 = load i32, i32* %2
%46 = load i32, i32* @V4L2_CAP_VIDEO_OUTPUT_OVERLAY
%47 = and i32 %45, %46
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %44
br label %50
50: ; preds = %49, %44
%51 = load i32, i32* %2
%52 = load i32, i32* @V4L2_CAP_TUNER
%53 = and i32 %51, %52
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %56
55: ; preds = %50
br label %56
56: ; preds = %55, %50
%57 = load i32, i32* %2
%58 = load i32, i32* @V4L2_CAP_AUDIO
%59 = and i32 %57, %58
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %56
br label %62
62: ; preds = %61, %56
%63 = load i32, i32* %2
%64 = load i32, i32* @V4L2_CAP_RADIO
%65 = and i32 %63, %64
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %68
67: ; preds = %62
br label %68
68: ; preds = %67, %62
%69 = load i32, i32* %2
%70 = load i32, i32* @V4L2_CAP_READWRITE
%71 = and i32 %69, %70
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %74
73: ; preds = %68
br label %74
74: ; preds = %73, %68
%75 = load i32, i32* %2
%76 = load i32, i32* @V4L2_CAP_ASYNCIO
%77 = and i32 %75, %76
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %80
79: ; preds = %74
br label %80
80: ; preds = %79, %74
%81 = load i32, i32* %2
%82 = load i32, i32* @V4L2_CAP_STREAMING
%83 = and i32 %81, %82
%84 = icmp ne i32 %83, 0
br i1 %84, label %85, label %86
85: ; preds = %80
br label %86
86: ; preds = %85, %80
ret void
}

LLVM IR (-O2):
@V4L2_CAP_VIDEO_CAPTURE = global i32 0
@V4L2_CAP_VIDEO_OUTPUT = global i32 0
@V4L2_CAP_VIDEO_OVERLAY = global i32 0
@V4L2_CAP_VBI_CAPTURE = global i32 0
@V4L2_CAP_VBI_OUTPUT = global i32 0
@V4L2_CAP_SLICED_VBI_CAPTURE = global i32 0
@V4L2_CAP_SLICED_VBI_OUTPUT = global i32 0
@V4L2_CAP_VIDEO_OUTPUT_OVERLAY = global i32 0
@V4L2_CAP_TUNER = global i32 0
@V4L2_CAP_AUDIO = global i32 0
@V4L2_CAP_RADIO = global i32 0
@V4L2_CAP_READWRITE = global i32 0
@V4L2_CAP_ASYNCIO = global i32 0
@V4L2_CAP_STREAMING = global i32 0
define void @support_format(i32 %0) {
ret void
}