#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 */
short IFF_ALLMULTI;
short IFF_AUTOMEDIA;
short IFF_BROADCAST;
short IFF_DEBUG;
short IFF_DYNAMIC;
short IFF_LOOPBACK;
short IFF_MASTER;
short IFF_MULTICAST;
short IFF_NOARP;
short IFF_NOTRAILERS;
short IFF_POINTOPOINT;
short IFF_PORTSEL;
short IFF_PROMISC;
short IFF_RUNNING;
short IFF_SLAVE;
short IFF_UP;
int /*<<< orphan*/ get_IFACE_flags(short *, char *);
int /*<<< orphan*/ printf(char *, ...);
int check_FLAGS(short *FLAGS, char *name) {
  printf("\nInterface: %s\n", name);
  get_IFACE_flags(FLAGS, name);
  if (*FLAGS & IFF_UP)
    printf("IFF_UP ");
  if (*FLAGS & IFF_BROADCAST)
    printf("IFF_BROADCAST ");
  if (*FLAGS & IFF_DEBUG)
    printf("IFF_DEBUG ");
  if (*FLAGS & IFF_LOOPBACK)
    printf("IFF_LOOPBACK ");
  if (*FLAGS & IFF_POINTOPOINT)
    printf("IFF_POINTOPOINT ");
  if (*FLAGS & IFF_NOTRAILERS)
    printf("IFF_NOTRAILERS ");
  if (*FLAGS & IFF_RUNNING)
    printf("IFF_RUNNING ");
  if (*FLAGS & IFF_NOARP)
    printf("IFF_NOARP ");
  if (*FLAGS & IFF_PROMISC)
    printf("IFF_PROMISC ");
  if (*FLAGS & IFF_ALLMULTI)
    printf("IFF_ALLMULTI ");
  if (*FLAGS & IFF_MASTER)
    printf("IFF_MASTER ");
  if (*FLAGS & IFF_SLAVE)
    printf("IFF_SLAVE ");
  if (*FLAGS & IFF_MULTICAST)
    printf("IFF_MULTICAST ");
  if (*FLAGS & IFF_PORTSEL)
    printf("IFF_PORTSEL ");
  if (*FLAGS & IFF_AUTOMEDIA)
    printf("IFF_AUTOMEDIA ");
  if (*FLAGS & IFF_DYNAMIC)
    printf("IFF_DYNAMIC ");
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<check_FLAGS>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xec5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <get_IFACE_flags@plt>
mov    -0x8(%rbp),%rax
movswl (%rax),%eax
mov    0x2e63(%rip),%rcx
movswl (%rcx),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1179 <check_FLAGS+0x59>
lea    0xe9e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
movswl (%rax),%eax
mov    0x2e01(%rip),%rcx
movswl (%rcx),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     11a3 <check_FLAGS+0x83>
lea    0xe7c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
movswl (%rax),%eax
mov    0x2df7(%rip),%rcx
movswl (%rcx),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     11cd <check_FLAGS+0xad>
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
movswl (%rax),%eax
mov    0x2e1d(%rip),%rcx
movswl (%rcx),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     11f7 <check_FLAGS+0xd7>
lea    0xe42(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
movswl (%rax),%eax
mov    0x2dcb(%rip),%rcx
movswl (%rcx),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1221 <check_FLAGS+0x101>
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
movswl (%rax),%eax
mov    0x2d31(%rip),%rcx
movswl (%rcx),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     124b <check_FLAGS+0x12b>
lea    0xe0d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
movswl (%rax),%eax
mov    0x2d6f(%rip),%rcx
movswl (%rcx),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1275 <check_FLAGS+0x155>
lea    0xdf3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
movswl (%rax),%eax
mov    0x2d5d(%rip),%rcx
movswl (%rcx),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     129f <check_FLAGS+0x17f>
lea    0xdd6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
movswl (%rax),%eax
mov    0x2ccb(%rip),%rcx
movswl (%rcx),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     12c9 <check_FLAGS+0x1a9>
lea    0xdb7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
movswl (%rax),%eax
mov    0x2cb9(%rip),%rcx
movswl (%rcx),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     12f3 <check_FLAGS+0x1d3>
lea    0xd9a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
movswl (%rax),%eax
mov    0x2c7f(%rip),%rcx
movswl (%rcx),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     131d <check_FLAGS+0x1fd>
lea    0xd7e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
movswl (%rax),%eax
mov    0x2c8d(%rip),%rcx
movswl (%rcx),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1347 <check_FLAGS+0x227>
lea    0xd60(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
movswl (%rax),%eax
mov    0x2c83(%rip),%rcx
movswl (%rcx),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1371 <check_FLAGS+0x251>
lea    0xd41(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
movswl (%rax),%eax
mov    0x2bf1(%rip),%rcx
movswl (%rcx),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     139b <check_FLAGS+0x27b>
lea    0xd26(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
movswl (%rax),%eax
mov    0x2bef(%rip),%rcx
movswl (%rcx),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     13c5 <check_FLAGS+0x2a5>
lea    0xd09(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rax
movswl (%rax),%eax
mov    0x2bdd(%rip),%rcx
movswl (%rcx),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     13ef <check_FLAGS+0x2cf>
lea    0xcee(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc18(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_FLAGS>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
lea    0xebf(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <get_IFACE_flags@plt>
movzwl (%r14),%eax
mov    0x2e62(%rip),%rcx
test   %ax,(%rcx)
je     1175 <check_FLAGS+0x45>
lea    0xea6(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzwl (%r14),%eax
mov    0x2e0c(%rip),%rcx
test   %ax,(%rcx)
je     1193 <check_FLAGS+0x63>
lea    0xe90(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzwl (%r14),%eax
mov    0x2e0e(%rip),%rcx
test   %ax,(%rcx)
je     11b1 <check_FLAGS+0x81>
lea    0xe81(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzwl (%r14),%eax
mov    0x2e40(%rip),%rcx
test   %ax,(%rcx)
je     11cf <check_FLAGS+0x9f>
lea    0xe6e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzwl (%r14),%eax
mov    0x2dfa(%rip),%rcx
test   %ax,(%rcx)
je     11ed <check_FLAGS+0xbd>
lea    0xe5e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzwl (%r14),%eax
mov    0x2d6c(%rip),%rcx
test   %ax,(%rcx)
je     120b <check_FLAGS+0xdb>
lea    0xe51(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzwl (%r14),%eax
mov    0x2db6(%rip),%rcx
test   %ax,(%rcx)
je     1229 <check_FLAGS+0xf9>
lea    0xe43(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzwl (%r14),%eax
mov    0x2db0(%rip),%rcx
test   %ax,(%rcx)
je     1247 <check_FLAGS+0x117>
lea    0xe32(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzwl (%r14),%eax
mov    0x2d2a(%rip),%rcx
test   %ax,(%rcx)
je     1265 <check_FLAGS+0x135>
lea    0xe1f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzwl (%r14),%eax
mov    0x2d24(%rip),%rcx
test   %ax,(%rcx)
je     1283 <check_FLAGS+0x153>
lea    0xe0e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzwl (%r14),%eax
mov    0x2cf6(%rip),%rcx
test   %ax,(%rcx)
je     12a1 <check_FLAGS+0x171>
lea    0xdfe(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzwl (%r14),%eax
mov    0x2d10(%rip),%rcx
test   %ax,(%rcx)
je     12bf <check_FLAGS+0x18f>
lea    0xdec(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzwl (%r14),%eax
mov    0x2d12(%rip),%rcx
test   %ax,(%rcx)
je     12dd <check_FLAGS+0x1ad>
lea    0xdd9(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzwl (%r14),%eax
mov    0x2c8c(%rip),%rcx
test   %ax,(%rcx)
je     12fb <check_FLAGS+0x1cb>
lea    0xdca(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzwl (%r14),%eax
mov    0x2c96(%rip),%rcx
test   %ax,(%rcx)
je     1319 <check_FLAGS+0x1e9>
lea    0xdb9(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzwl (%r14),%eax
mov    0x2c90(%rip),%rcx
test   %ax,(%rcx)
je     1333 <check_FLAGS+0x203>
lea    0xdaa(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [16 x i8] c"\0AInterface: %s\0A\00"
@IFF_UP = global i16 0
@.str.1 = [8 x i8] c"IFF_UP \00"
@IFF_BROADCAST = global i16 0
@.str.2 = [15 x i8] c"IFF_BROADCAST \00"
@IFF_DEBUG = global i16 0
@.str.3 = [11 x i8] c"IFF_DEBUG \00"
@IFF_LOOPBACK = global i16 0
@.str.4 = [14 x i8] c"IFF_LOOPBACK \00"
@IFF_POINTOPOINT = global i16 0
@.str.5 = [17 x i8] c"IFF_POINTOPOINT \00"
@IFF_NOTRAILERS = global i16 0
@.str.6 = [16 x i8] c"IFF_NOTRAILERS \00"
@IFF_RUNNING = global i16 0
@.str.7 = [13 x i8] c"IFF_RUNNING \00"
@IFF_NOARP = global i16 0
@.str.8 = [11 x i8] c"IFF_NOARP \00"
@IFF_PROMISC = global i16 0
@.str.9 = [13 x i8] c"IFF_PROMISC \00"
@IFF_ALLMULTI = global i16 0
@.str.10 = [14 x i8] c"IFF_ALLMULTI \00"
@IFF_MASTER = global i16 0
@.str.11 = [12 x i8] c"IFF_MASTER \00"
@IFF_SLAVE = global i16 0
@.str.12 = [11 x i8] c"IFF_SLAVE \00"
@IFF_MULTICAST = global i16 0
@.str.13 = [15 x i8] c"IFF_MULTICAST \00"
@IFF_PORTSEL = global i16 0
@.str.14 = [13 x i8] c"IFF_PORTSEL \00"
@IFF_AUTOMEDIA = global i16 0
@.str.15 = [15 x i8] c"IFF_AUTOMEDIA \00"
@IFF_DYNAMIC = global i16 0
@.str.16 = [13 x i8] c"IFF_DYNAMIC \00"
@.str.17 = [2 x i8] c"\0A\00"
define i32 @check_FLAGS(i16* %0, i8* %1) {
%3 = alloca i16*
%4 = alloca i8*
store i16* %0, i16** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = load i16*, i16** %3
%8 = load i8*, i8** %4
%9 = call i32 @get_IFACE_flags(i16* %7, i8* %8)
%10 = load i16*, i16** %3
%11 = load i16, i16* %10
%12 = sext i16 %11 to i32
%13 = load i16, i16* @IFF_UP
%14 = sext i16 %13 to i32
%15 = and i32 %12, %14
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %19
19: ; preds = %17, %2
%20 = load i16*, i16** %3
%21 = load i16, i16* %20
%22 = sext i16 %21 to i32
%23 = load i16, i16* @IFF_BROADCAST
%24 = sext i16 %23 to i32
%25 = and i32 %22, %24
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %19
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
br label %29
29: ; preds = %27, %19
%30 = load i16*, i16** %3
%31 = load i16, i16* %30
%32 = sext i16 %31 to i32
%33 = load i16, i16* @IFF_DEBUG
%34 = sext i16 %33 to i32
%35 = and i32 %32, %34
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %29
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
br label %39
39: ; preds = %37, %29
%40 = load i16*, i16** %3
%41 = load i16, i16* %40
%42 = sext i16 %41 to i32
%43 = load i16, i16* @IFF_LOOPBACK
%44 = sext i16 %43 to i32
%45 = and i32 %42, %44
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %39
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
br label %49
49: ; preds = %47, %39
%50 = load i16*, i16** %3
%51 = load i16, i16* %50
%52 = sext i16 %51 to i32
%53 = load i16, i16* @IFF_POINTOPOINT
%54 = sext i16 %53 to i32
%55 = and i32 %52, %54
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %49
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
br label %59
59: ; preds = %57, %49
%60 = load i16*, i16** %3
%61 = load i16, i16* %60
%62 = sext i16 %61 to i32
%63 = load i16, i16* @IFF_NOTRAILERS
%64 = sext i16 %63 to i32
%65 = and i32 %62, %64
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %59
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
br label %69
69: ; preds = %67, %59
%70 = load i16*, i16** %3
%71 = load i16, i16* %70
%72 = sext i16 %71 to i32
%73 = load i16, i16* @IFF_RUNNING
%74 = sext i16 %73 to i32
%75 = and i32 %72, %74
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %79
77: ; preds = %69
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
br label %79
79: ; preds = %77, %69
%80 = load i16*, i16** %3
%81 = load i16, i16* %80
%82 = sext i16 %81 to i32
%83 = load i16, i16* @IFF_NOARP
%84 = sext i16 %83 to i32
%85 = and i32 %82, %84
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %89
87: ; preds = %79
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
br label %89
89: ; preds = %87, %79
%90 = load i16*, i16** %3
%91 = load i16, i16* %90
%92 = sext i16 %91 to i32
%93 = load i16, i16* @IFF_PROMISC
%94 = sext i16 %93 to i32
%95 = and i32 %92, %94
%96 = icmp ne i32 %95, 0
br i1 %96, label %97, label %99
97: ; preds = %89
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
br label %99
99: ; preds = %97, %89
%100 = load i16*, i16** %3
%101 = load i16, i16* %100
%102 = sext i16 %101 to i32
%103 = load i16, i16* @IFF_ALLMULTI
%104 = sext i16 %103 to i32
%105 = and i32 %102, %104
%106 = icmp ne i32 %105, 0
br i1 %106, label %107, label %109
107: ; preds = %99
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0))
br label %109
109: ; preds = %107, %99
%110 = load i16*, i16** %3
%111 = load i16, i16* %110
%112 = sext i16 %111 to i32
%113 = load i16, i16* @IFF_MASTER
%114 = sext i16 %113 to i32
%115 = and i32 %112, %114
%116 = icmp ne i32 %115, 0
br i1 %116, label %117, label %119
117: ; preds = %109
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0))
br label %119
119: ; preds = %117, %109
%120 = load i16*, i16** %3
%121 = load i16, i16* %120
%122 = sext i16 %121 to i32
%123 = load i16, i16* @IFF_SLAVE
%124 = sext i16 %123 to i32
%125 = and i32 %122, %124
%126 = icmp ne i32 %125, 0
br i1 %126, label %127, label %129
127: ; preds = %119
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0))
br label %129
129: ; preds = %127, %119
%130 = load i16*, i16** %3
%131 = load i16, i16* %130
%132 = sext i16 %131 to i32
%133 = load i16, i16* @IFF_MULTICAST
%134 = sext i16 %133 to i32
%135 = and i32 %132, %134
%136 = icmp ne i32 %135, 0
br i1 %136, label %137, label %139
137: ; preds = %129
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0))
br label %139
139: ; preds = %137, %129
%140 = load i16*, i16** %3
%141 = load i16, i16* %140
%142 = sext i16 %141 to i32
%143 = load i16, i16* @IFF_PORTSEL
%144 = sext i16 %143 to i32
%145 = and i32 %142, %144
%146 = icmp ne i32 %145, 0
br i1 %146, label %147, label %149
147: ; preds = %139
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0))
br label %149
149: ; preds = %147, %139
%150 = load i16*, i16** %3
%151 = load i16, i16* %150
%152 = sext i16 %151 to i32
%153 = load i16, i16* @IFF_AUTOMEDIA
%154 = sext i16 %153 to i32
%155 = and i32 %152, %154
%156 = icmp ne i32 %155, 0
br i1 %156, label %157, label %159
157: ; preds = %149
%158 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0))
br label %159
159: ; preds = %157, %149
%160 = load i16*, i16** %3
%161 = load i16, i16* %160
%162 = sext i16 %161 to i32
%163 = load i16, i16* @IFF_DYNAMIC
%164 = sext i16 %163 to i32
%165 = and i32 %162, %164
%166 = icmp ne i32 %165, 0
br i1 %166, label %167, label %169
167: ; preds = %159
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0))
br label %169
169: ; preds = %167, %159
%170 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [16 x i8] c"\0AInterface: %s\0A\00"
@IFF_UP = global i16 0
@.str.1 = [8 x i8] c"IFF_UP \00"
@IFF_BROADCAST = global i16 0
@.str.2 = [15 x i8] c"IFF_BROADCAST \00"
@IFF_DEBUG = global i16 0
@.str.3 = [11 x i8] c"IFF_DEBUG \00"
@IFF_LOOPBACK = global i16 0
@.str.4 = [14 x i8] c"IFF_LOOPBACK \00"
@IFF_POINTOPOINT = global i16 0
@.str.5 = [17 x i8] c"IFF_POINTOPOINT \00"
@IFF_NOTRAILERS = global i16 0
@.str.6 = [16 x i8] c"IFF_NOTRAILERS \00"
@IFF_RUNNING = global i16 0
@.str.7 = [13 x i8] c"IFF_RUNNING \00"
@IFF_NOARP = global i16 0
@.str.8 = [11 x i8] c"IFF_NOARP \00"
@IFF_PROMISC = global i16 0
@.str.9 = [13 x i8] c"IFF_PROMISC \00"
@IFF_ALLMULTI = global i16 0
@.str.10 = [14 x i8] c"IFF_ALLMULTI \00"
@IFF_MASTER = global i16 0
@.str.11 = [12 x i8] c"IFF_MASTER \00"
@IFF_SLAVE = global i16 0
@.str.12 = [11 x i8] c"IFF_SLAVE \00"
@IFF_MULTICAST = global i16 0
@.str.13 = [15 x i8] c"IFF_MULTICAST \00"
@IFF_PORTSEL = global i16 0
@.str.14 = [13 x i8] c"IFF_PORTSEL \00"
@IFF_AUTOMEDIA = global i16 0
@.str.15 = [15 x i8] c"IFF_AUTOMEDIA \00"
@IFF_DYNAMIC = global i16 0
@.str.16 = [13 x i8] c"IFF_DYNAMIC \00"
define i32 @check_FLAGS(i16* %0, i8* %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %1)
%4 = tail call i32 @get_IFACE_flags(i16* %0, i8* %1)
%5 = load i16, i16* %0
%6 = load i16, i16* @IFF_UP
%7 = and i16 %6, %5
%8 = icmp eq i16 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %2
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%11 = load i16, i16* %0
br label %12
12: ; preds = %9, %2
%13 = phi i16 [ %11, %9 ], [ %5, %2 ]
%14 = load i16, i16* @IFF_BROADCAST
%15 = and i16 %14, %13
%16 = icmp eq i16 %15, 0
br i1 %16, label %20, label %17
17: ; preds = %12
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%19 = load i16, i16* %0
br label %20
20: ; preds = %17, %12
%21 = phi i16 [ %19, %17 ], [ %13, %12 ]
%22 = load i16, i16* @IFF_DEBUG
%23 = and i16 %22, %21
%24 = icmp eq i16 %23, 0
br i1 %24, label %28, label %25
25: ; preds = %20
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%27 = load i16, i16* %0
br label %28
28: ; preds = %25, %20
%29 = phi i16 [ %27, %25 ], [ %21, %20 ]
%30 = load i16, i16* @IFF_LOOPBACK
%31 = and i16 %30, %29
%32 = icmp eq i16 %31, 0
br i1 %32, label %36, label %33
33: ; preds = %28
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%35 = load i16, i16* %0
br label %36
36: ; preds = %33, %28
%37 = phi i16 [ %35, %33 ], [ %29, %28 ]
%38 = load i16, i16* @IFF_POINTOPOINT
%39 = and i16 %38, %37
%40 = icmp eq i16 %39, 0
br i1 %40, label %44, label %41
41: ; preds = %36
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%43 = load i16, i16* %0
br label %44
44: ; preds = %41, %36
%45 = phi i16 [ %43, %41 ], [ %37, %36 ]
%46 = load i16, i16* @IFF_NOTRAILERS
%47 = and i16 %46, %45
%48 = icmp eq i16 %47, 0
br i1 %48, label %52, label %49
49: ; preds = %44
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
%51 = load i16, i16* %0
br label %52
52: ; preds = %49, %44
%53 = phi i16 [ %51, %49 ], [ %45, %44 ]
%54 = load i16, i16* @IFF_RUNNING
%55 = and i16 %54, %53
%56 = icmp eq i16 %55, 0
br i1 %56, label %60, label %57
57: ; preds = %52
%58 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%59 = load i16, i16* %0
br label %60
60: ; preds = %57, %52
%61 = phi i16 [ %59, %57 ], [ %53, %52 ]
%62 = load i16, i16* @IFF_NOARP
%63 = and i16 %62, %61
%64 = icmp eq i16 %63, 0
br i1 %64, label %68, label %65
65: ; preds = %60
%66 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
%67 = load i16, i16* %0
br label %68
68: ; preds = %65, %60
%69 = phi i16 [ %67, %65 ], [ %61, %60 ]
%70 = load i16, i16* @IFF_PROMISC
%71 = and i16 %70, %69
%72 = icmp eq i16 %71, 0
br i1 %72, label %76, label %73
73: ; preds = %68
%74 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%75 = load i16, i16* %0
br label %76
76: ; preds = %73, %68
%77 = phi i16 [ %75, %73 ], [ %69, %68 ]
%78 = load i16, i16* @IFF_ALLMULTI
%79 = and i16 %78, %77
%80 = icmp eq i16 %79, 0
br i1 %80, label %84, label %81
81: ; preds = %76
%82 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0))
%83 = load i16, i16* %0
br label %84
84: ; preds = %81, %76
%85 = phi i16 [ %83, %81 ], [ %77, %76 ]
%86 = load i16, i16* @IFF_MASTER
%87 = and i16 %86, %85
%88 = icmp eq i16 %87, 0
br i1 %88, label %92, label %89
89: ; preds = %84
%90 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0))
%91 = load i16, i16* %0
br label %92
92: ; preds = %89, %84
%93 = phi i16 [ %91, %89 ], [ %85, %84 ]
%94 = load i16, i16* @IFF_SLAVE
%95 = and i16 %94, %93
%96 = icmp eq i16 %95, 0
br i1 %96, label %100, label %97
97: ; preds = %92
%98 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0))
%99 = load i16, i16* %0
br label %100
100: ; preds = %97, %92
%101 = phi i16 [ %99, %97 ], [ %93, %92 ]
%102 = load i16, i16* @IFF_MULTICAST
%103 = and i16 %102, %101
%104 = icmp eq i16 %103, 0
br i1 %104, label %108, label %105
105: ; preds = %100
%106 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0))
%107 = load i16, i16* %0
br label %108
108: ; preds = %105, %100
%109 = phi i16 [ %107, %105 ], [ %101, %100 ]
%110 = load i16, i16* @IFF_PORTSEL
%111 = and i16 %110, %109
%112 = icmp eq i16 %111, 0
br i1 %112, label %116, label %113
113: ; preds = %108
%114 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0))
%115 = load i16, i16* %0
br label %116
116: ; preds = %113, %108
%117 = phi i16 [ %115, %113 ], [ %109, %108 ]
%118 = load i16, i16* @IFF_AUTOMEDIA
%119 = and i16 %118, %117
%120 = icmp eq i16 %119, 0
br i1 %120, label %124, label %121
121: ; preds = %116
%122 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.15, i64 0, i64 0))
%123 = load i16, i16* %0
br label %124
124: ; preds = %121, %116
%125 = phi i16 [ %123, %121 ], [ %117, %116 ]
%126 = load i16, i16* @IFF_DYNAMIC
%127 = and i16 %126, %125
%128 = icmp eq i16 %127, 0
br i1 %128, label %131, label %129
129: ; preds = %124
%130 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0))
br label %131
131: ; preds = %129, %124
%132 = tail call i32 @putchar(i32 10)
ret i32 0
}