#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 */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char *, char *,
                           char *);
int getbits(int);
int /*<<< orphan*/ printf(char *, int, int, int, int, ...);
int setbits(int);
int sscanf(char *, char *, int *, int *, int *, int *, ...);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcmp(char *, char *);
int main(int argc, char **argv) {
  int ip[4], nm[4], nw[4], bc[4], c;
  int verbose = 0, nmbits = 0, n;
  if (argc > 1 && !strcmp(argv[1], "-v"))
    verbose = 1;
  if (argc == 3 + verbose &&
      sscanf(argv[1 + verbose], "%d.%d.%d.%d", ip, ip + 1, ip + 2, ip + 3) ==
          4 &&
      sscanf(argv[2 + verbose], "%d.%d.%d.%d", nm, nm + 1, nm + 2, nm + 3) ==
          4) {
    nmbits = getbits(nm[0]) + getbits(nm[1]) + getbits(nm[2]) + getbits(nm[3]);
  } else if (argc == 2 + verbose &&
             sscanf(argv[1 + verbose], "%d.%d.%d.%d/%d", ip, ip + 1, ip + 2,
                    ip + 3, &nmbits) == 5) {
    n = nmbits;
    if (n > 0) {
      nm[0] = setbits(n > 8 ? 8 : n);
      n -= 8;
    } else
      nm[0] = 0;
    if (n > 0) {
      nm[1] = setbits(n > 8 ? 8 : n);
      n -= 8;
    } else
      nm[1] = 0;
    if (n > 0) {
      nm[2] = setbits(n > 8 ? 8 : n);
      n -= 8;
    } else
      nm[2] = 0;
    if (n > 0) {
      nm[3] = setbits(n > 8 ? 8 : n);
      n -= 8;
    } else
      nm[3] = 0;
  } else {
    fprintf(stderr,
            "\n"
            "IP and Netmask  to  Network and Broadcast  converter.\n"
            "(C) under GPL, 1999 Clifford Wolf\n\n"
            "Usage: %s [-v] <IP> <Netmask>\n"
            "       %s [-v] <IP>/<Mask>\n\n"
            "Examples: %s -v 195.170.70.72/25\n"
            "          %s 195.170.70.72 255.255.255.128\n\n",
            argv[0], argv[0], argv[0], argv[0]);
    return 1;
  }
  for (c = 0; c < 4; c++) {
    nw[c] = ip[c] & nm[c];
    bc[c] = nw[c] | (255 & ~nm[c]);
  }
  if (verbose) {
    printf("Network:   %d.%d.%d.%d / %d\n", nw[0], nw[1], nw[2], nw[3], nmbits);
    printf("Netmask:   %d.%d.%d.%d\n", nm[0], nm[1], nm[2], nm[3]);
    printf("Broadcast: %d.%d.%d.%d\n", bc[0], bc[1], bc[2], bc[3]);
  } else {
    printf("%d.%d.%d.%d %d.%d.%d.%d\n", nw[0], nw[1], nw[2], nw[3], bc[0],
           bc[1], bc[2], bc[3]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x58(%rbp)
movl   $0x0,-0x5c(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    11b5 <main+0x55>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe60(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    11b5 <main+0x55>
movl   $0x1,-0x58(%rbp)
mov    -0x8(%rbp),%eax
mov    -0x58(%rbp),%ecx
add    $0x3,%ecx
cmp    %ecx,%eax
jne    1294 <main+0x134>
mov    -0x10(%rbp),%rax
mov    -0x58(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    -0x20(%rbp),%rdx
lea    -0x20(%rbp),%rcx
add    $0x4,%rcx
lea    -0x20(%rbp),%r8
add    $0x8,%r8
lea    -0x20(%rbp),%r9
add    $0xc,%r9
lea    0xe09(%rip),%rsi
mov    $0x0,%al
call   1080 <sscanf@plt>
cmp    $0x4,%eax
jne    1294 <main+0x134>
mov    -0x10(%rbp),%rax
mov    -0x58(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    -0x30(%rbp),%rdx
lea    -0x30(%rbp),%rcx
add    $0x4,%rcx
lea    -0x30(%rbp),%r8
add    $0x8,%r8
lea    -0x30(%rbp),%r9
add    $0xc,%r9
lea    0xdc5(%rip),%rsi
mov    $0x0,%al
call   1080 <sscanf@plt>
cmp    $0x4,%eax
jne    1294 <main+0x134>
mov    -0x30(%rbp),%edi
call   1050 <getbits@plt>
mov    %eax,-0x6c(%rbp)
mov    -0x2c(%rbp),%edi
call   1050 <getbits@plt>
mov    %eax,%ecx
mov    -0x6c(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x68(%rbp)
mov    -0x28(%rbp),%edi
call   1050 <getbits@plt>
mov    %eax,%ecx
mov    -0x68(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x64(%rbp)
mov    -0x24(%rbp),%edi
call   1050 <getbits@plt>
mov    %eax,%ecx
mov    -0x64(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x5c(%rbp)
jmp    145a <main+0x2fa>
mov    -0x8(%rbp),%eax
mov    -0x58(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jne    1418 <main+0x2b8>
mov    -0x10(%rbp),%rax
mov    -0x58(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    -0x20(%rbp),%rdx
lea    -0x20(%rbp),%rcx
add    $0x4,%rcx
lea    -0x20(%rbp),%r8
add    $0x8,%r8
lea    -0x20(%rbp),%r9
add    $0xc,%r9
lea    0xd36(%rip),%rsi
lea    -0x5c(%rbp),%rax
mov    %rax,(%rsp)
mov    $0x0,%al
call   1080 <sscanf@plt>
cmp    $0x5,%eax
jne    1418 <main+0x2b8>
mov    -0x5c(%rbp),%eax
mov    %eax,-0x60(%rbp)
cmpl   $0x0,-0x60(%rbp)
jle    1337 <main+0x1d7>
cmpl   $0x8,-0x60(%rbp)
jle    1318 <main+0x1b8>
mov    $0x8,%eax
mov    %eax,-0x70(%rbp)
jmp    131e <main+0x1be>
mov    -0x60(%rbp),%eax
mov    %eax,-0x70(%rbp)
mov    -0x70(%rbp),%edi
call   1070 <setbits@plt>
mov    %eax,-0x30(%rbp)
mov    -0x60(%rbp),%eax
sub    $0x8,%eax
mov    %eax,-0x60(%rbp)
jmp    133e <main+0x1de>
movl   $0x0,-0x30(%rbp)
cmpl   $0x0,-0x60(%rbp)
jle    137e <main+0x21e>
cmpl   $0x8,-0x60(%rbp)
jle    135f <main+0x1ff>
mov    $0x8,%eax
mov    %eax,-0x74(%rbp)
jmp    1365 <main+0x205>
mov    -0x60(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x74(%rbp),%edi
call   1070 <setbits@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x60(%rbp),%eax
sub    $0x8,%eax
mov    %eax,-0x60(%rbp)
jmp    1385 <main+0x225>
movl   $0x0,-0x2c(%rbp)
cmpl   $0x0,-0x60(%rbp)
jle    13c5 <main+0x265>
cmpl   $0x8,-0x60(%rbp)
jle    13a6 <main+0x246>
mov    $0x8,%eax
mov    %eax,-0x78(%rbp)
jmp    13ac <main+0x24c>
mov    -0x60(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x78(%rbp),%edi
call   1070 <setbits@plt>
mov    %eax,-0x28(%rbp)
mov    -0x60(%rbp),%eax
sub    $0x8,%eax
mov    %eax,-0x60(%rbp)
jmp    13cc <main+0x26c>
movl   $0x0,-0x28(%rbp)
cmpl   $0x0,-0x60(%rbp)
jle    140c <main+0x2ac>
cmpl   $0x8,-0x60(%rbp)
jle    13ed <main+0x28d>
mov    $0x8,%eax
mov    %eax,-0x7c(%rbp)
jmp    13f3 <main+0x293>
mov    -0x60(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x7c(%rbp),%edi
call   1070 <setbits@plt>
mov    %eax,-0x24(%rbp)
mov    -0x60(%rbp),%eax
sub    $0x8,%eax
mov    %eax,-0x60(%rbp)
jmp    1413 <main+0x2b3>
movl   $0x0,-0x24(%rbp)
jmp    1455 <main+0x2f5>
mov    0x2bc1(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
mov    -0x10(%rbp),%rax
mov    (%rax),%r8
mov    -0x10(%rbp),%rax
mov    (%rax),%r9
lea    0xbda(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1555 <main+0x3f5>
jmp    145a <main+0x2fa>
movl   $0x0,-0x54(%rbp)
cmpl   $0x4,-0x54(%rbp)
jge    14b3 <main+0x353>
movslq -0x54(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%ecx
movslq -0x54(%rbp),%rax
and    -0x30(%rbp,%rax,4),%ecx
movslq -0x54(%rbp),%rax
mov    %ecx,-0x40(%rbp,%rax,4)
movslq -0x54(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%ecx
movslq -0x54(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
xor    $0xffffffff,%eax
and    $0xff,%eax
or     %eax,%ecx
movslq -0x54(%rbp),%rax
mov    %ecx,-0x50(%rbp,%rax,4)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1461 <main+0x301>
cmpl   $0x0,-0x58(%rbp)
je     1517 <main+0x3b7>
mov    -0x40(%rbp),%esi
mov    -0x3c(%rbp),%edx
mov    -0x38(%rbp),%ecx
mov    -0x34(%rbp),%r8d
mov    -0x5c(%rbp),%r9d
lea    0xc2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    -0x24(%rbp),%r8d
lea    0xc2d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x50(%rbp),%esi
mov    -0x4c(%rbp),%edx
mov    -0x48(%rbp),%ecx
mov    -0x44(%rbp),%r8d
lea    0xc2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    154e <main+0x3ee>
mov    -0x40(%rbp),%esi
mov    -0x3c(%rbp),%edx
mov    -0x38(%rbp),%ecx
mov    -0x34(%rbp),%r8d
mov    -0x50(%rbp),%r9d
mov    -0x4c(%rbp),%r11d
mov    -0x48(%rbp),%r10d
mov    -0x44(%rbp),%eax
lea    0xc13(%rip),%rdi
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsi,%r14
mov    %edi,%ebp
movl   $0x0,0x1c(%rsp)
cmp    $0x2,%edi
jl     119d <main+0x3d>
mov    0x8(%r14),%rdi
lea    0xe75(%rip),%rsi
call   1040 <strcmp@plt>
xor    %ebx,%ebx
test   %eax,%eax
setne  %r13b
sete   %bl
jmp    11a2 <main+0x42>
xor    %ebx,%ebx
mov    $0x1,%r13b
lea    0x3(%rbx),%eax
cmp    %ebp,%eax
jne    1243 <main+0xe3>
mov    %ebx,%eax
mov    0x8(%r14,%rax,8),%rdi
lea    0x24(%rsp),%rcx
lea    0x28(%rsp),%r8
lea    0x2c(%rsp),%r9
lea    0xe39(%rip),%rsi
lea    0x20(%rsp),%rdx
xor    %eax,%eax
call   1080 <sscanf@plt>
cmp    $0x4,%eax
jne    1243 <main+0xe3>
lea    0x2(%rbx),%eax
mov    (%r14,%rax,8),%rdi
lea    0x4(%rsp),%rcx
lea    0x8(%rsp),%r8
lea    0xc(%rsp),%r9
lea    0xe0b(%rip),%rsi
mov    %rsp,%rdx
xor    %eax,%eax
call   1080 <sscanf@plt>
cmp    $0x4,%eax
jne    1243 <main+0xe3>
mov    (%rsp),%edi
call   1050 <getbits@plt>
mov    %eax,%ebx
mov    0x4(%rsp),%edi
call   1050 <getbits@plt>
mov    %eax,%ebp
add    %ebx,%ebp
mov    0x8(%rsp),%edi
call   1050 <getbits@plt>
mov    %eax,%ebx
add    %ebp,%ebx
mov    0xc(%rsp),%edi
call   1050 <getbits@plt>
add    %ebx,%eax
mov    %eax,0x1c(%rsp)
mov    0xc(%rsp),%eax
jmp    1349 <main+0x1e9>
lea    0x2(%rbx),%eax
cmp    %ebp,%eax
jne    12fd <main+0x19d>
mov    %ebx,%eax
mov    0x8(%r14,%rax,8),%rdi
lea    0x24(%rsp),%rcx
lea    0x28(%rsp),%r8
lea    0x2c(%rsp),%r9
sub    $0x8,%rsp
lea    0x24(%rsp),%rbp
lea    0xd9b(%rip),%rsi
lea    0x28(%rsp),%rdx
xor    %eax,%eax
push   %rbp
call   1080 <sscanf@plt>
add    $0x10,%rsp
cmp    $0x5,%eax
jne    12fd <main+0x19d>
mov    0x1c(%rsp),%ebp
test   %ebp,%ebp
jle    1328 <main+0x1c8>
cmp    $0x8,%ebp
mov    $0x8,%ebx
mov    $0x8,%edi
cmovb  %ebp,%edi
call   1070 <setbits@plt>
mov    %ebp,%ecx
mov    %eax,(%rsp)
sub    $0x8,%ecx
jbe    132f <main+0x1cf>
cmp    $0x8,%ecx
cmovb  %ecx,%ebx
mov    %ebx,%edi
call   1070 <setbits@plt>
mov    %eax,0x4(%rsp)
cmp    $0x10,%ebp
jbe    1337 <main+0x1d7>
lea    -0x10(%rbp),%edi
cmp    $0x8,%edi
mov    $0x8,%ebx
cmovae %ebx,%edi
call   1070 <setbits@plt>
mov    %eax,0x8(%rsp)
cmp    $0x19,%ebp
jb     133f <main+0x1df>
add    $0xffffffe8,%ebp
cmp    $0x8,%ebp
cmovb  %ebp,%ebx
mov    %ebx,%edi
call   1070 <setbits@plt>
mov    %eax,0xc(%rsp)
jmp    1349 <main+0x1e9>
mov    0x2cdc(%rip),%rax
mov    (%rax),%edi
mov    (%r14),%rcx
lea    0xd0e(%rip),%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
call   1060 <fprintf@plt>
mov    $0x1,%ebp
jmp    1405 <main+0x2a5>
movl   $0x0,(%rsp)
movl   $0x0,0x4(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
xor    %eax,%eax
mov    (%rsp),%esi
mov    0x4(%rsp),%edx
mov    %esi,%ecx
and    0x20(%rsp),%esi
not    %ecx
movzbl %cl,%r15d
or     %esi,%r15d
mov    %edx,%ecx
not    %ecx
and    0x24(%rsp),%edx
movzbl %cl,%r14d
or     %edx,%r14d
mov    0x8(%rsp),%ecx
mov    %ecx,%edi
not    %edi
and    0x28(%rsp),%ecx
movzbl %dil,%r12d
or     %ecx,%r12d
mov    0x2c(%rsp),%r8d
and    %eax,%r8d
not    %eax
movzbl %al,%ebx
or     %r8d,%ebx
test   %r13b,%r13b
je     13b8 <main+0x258>
sub    $0x8,%rsp
lea    0xdac(%rip),%rdi
xor    %ebp,%ebp
mov    %r15d,%r9d
xor    %eax,%eax
push   %rbx
push   %r12
push   %r14
call   1030 <printf@plt>
add    $0x20,%rsp
jmp    1405 <main+0x2a5>
mov    0x1c(%rsp),%r9d
lea    0xd3c(%rip),%rdi
xor    %ebp,%ebp
xor    %eax,%eax
call   1030 <printf@plt>
mov    (%rsp),%esi
mov    0x4(%rsp),%edx
mov    0x8(%rsp),%ecx
mov    0xc(%rsp),%r8d
lea    0xd39(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd43(%rip),%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    %r12d,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
mov    %ebp,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"-v\00"
@.str.1 = [12 x i8] c"%d.%d.%d.%d\00"
@.str.2 = [15 x i8] c"%d.%d.%d.%d/%d\00"
@stderr = global i32 0
@.str.3 = [226 x i8] c"\0AIP and Netmask to Network and Broadcast converter.\0A(C) under GPL, 1999 Clifford Wolf\0A\0AUsage: %s [-v] <IP> <Netmask>\0A %s [-v] <IP>/<Mask>\0A\0AExamples: %s -v 195.170.70.72/25\0A %s 195.170.70.72 255.255.255.128\0A\0A\00"
@.str.4 = [29 x i8] c"Network: %d.%d.%d.%d / %d\0A\00"
@.str.5 = [24 x i8] c"Netmask: %d.%d.%d.%d\0A\00"
@.str.6 = [24 x i8] c"Broadcast: %d.%d.%d.%d\0A\00"
@.str.7 = [25 x i8] c"%d.%d.%d.%d %d.%d.%d.%d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [4 x i32]
%7 = alloca [4 x i32]
%8 = alloca [4 x i32]
%9 = alloca [4 x i32]
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %11
store i32 0, i32* %12
%14 = load i32, i32* %4
%15 = icmp sgt i32 %14, 1
br i1 %15, label %16, label %23
16: ; preds = %2
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 1
%19 = load i8*, i8** %18
%20 = call i32 @strcmp(i8* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%21 = icmp ne i32 %20, 0
br i1 %21, label %23, label %22
22: ; preds = %16
store i32 1, i32* %11
br label %23
23: ; preds = %22, %16, %2
%24 = load i32, i32* %4
%25 = load i32, i32* %11
%26 = add nsw i32 3, %25
%27 = icmp eq i32 %24, %26
br i1 %27, label %28, label %76
28: ; preds = %23
%29 = load i8**, i8*** %5
%30 = load i32, i32* %11
%31 = add nsw i32 1, %30
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8*, i8** %29, i64 %32
%34 = load i8*, i8** %33
%35 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%36 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%37 = getelementptr inbounds i32, i32* %36, i64 1
%38 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%39 = getelementptr inbounds i32, i32* %38, i64 2
%40 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%41 = getelementptr inbounds i32, i32* %40, i64 3
%42 = call i32 (i8*, i8*, i32*, i32*, i32*, i32*, ...) @sscanf(i8* %34, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32* %35, i32* %37, i32* %39, i32* %41)
%43 = icmp eq i32 %42, 4
br i1 %43, label %44, label %76
44: ; preds = %28
%45 = load i8**, i8*** %5
%46 = load i32, i32* %11
%47 = add nsw i32 2, %46
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8*, i8** %45, i64 %48
%50 = load i8*, i8** %49
%51 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 0
%52 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 0
%53 = getelementptr inbounds i32, i32* %52, i64 1
%54 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 0
%55 = getelementptr inbounds i32, i32* %54, i64 2
%56 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 0
%57 = getelementptr inbounds i32, i32* %56, i64 3
%58 = call i32 (i8*, i8*, i32*, i32*, i32*, i32*, ...) @sscanf(i8* %50, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32* %51, i32* %53, i32* %55, i32* %57)
%59 = icmp eq i32 %58, 4
br i1 %59, label %60, label %76
60: ; preds = %44
%61 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 0
%62 = load i32, i32* %61
%63 = call i32 @getbits(i32 %62)
%64 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 1
%65 = load i32, i32* %64
%66 = call i32 @getbits(i32 %65)
%67 = add nsw i32 %63, %66
%68 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 2
%69 = load i32, i32* %68
%70 = call i32 @getbits(i32 %69)
%71 = add nsw i32 %67, %70
%72 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 3
%73 = load i32, i32* %72
%74 = call i32 @getbits(i32 %73)
%75 = add nsw i32 %71, %74
store i32 %75, i32* %12
br label %183
76: ; preds = %44, %28, %23
%77 = load i32, i32* %4
%78 = load i32, i32* %11
%79 = add nsw i32 2, %78
%80 = icmp eq i32 %77, %79
br i1 %80, label %81, label %167
81: ; preds = %76
%82 = load i8**, i8*** %5
%83 = load i32, i32* %11
%84 = add nsw i32 1, %83
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8*, i8** %82, i64 %85
%87 = load i8*, i8** %86
%88 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%89 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%90 = getelementptr inbounds i32, i32* %89, i64 1
%91 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%92 = getelementptr inbounds i32, i32* %91, i64 2
%93 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 0
%94 = getelementptr inbounds i32, i32* %93, i64 3
%95 = call i32 (i8*, i8*, i32*, i32*, i32*, i32*, ...) @sscanf(i8* %87, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32* %88, i32* %90, i32* %92, i32* %94, i32* %12)
%96 = icmp eq i32 %95, 5
br i1 %96, label %97, label %167
97: ; preds = %81
%98 = load i32, i32* %12
store i32 %98, i32* %13
%99 = load i32, i32* %13
%100 = icmp sgt i32 %99, 0
br i1 %100, label %101, label %113
101: ; preds = %97
%102 = load i32, i32* %13
%103 = icmp sgt i32 %102, 8
br i1 %103, label %104, label %105
104: ; preds = %101
br label %107
105: ; preds = %101
%106 = load i32, i32* %13
br label %107
107: ; preds = %105, %104
%108 = phi i32 [ 8, %104 ], [ %106, %105 ]
%109 = call i32 @setbits(i32 %108)
%110 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 0
store i32 %109, i32* %110
%111 = load i32, i32* %13
%112 = sub nsw i32 %111, 8
store i32 %112, i32* %13
br label %115
113: ; preds = %97
%114 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 0
store i32 0, i32* %114
br label %115
115: ; preds = %113, %107
%116 = load i32, i32* %13
%117 = icmp sgt i32 %116, 0
br i1 %117, label %118, label %130
118: ; preds = %115
%119 = load i32, i32* %13
%120 = icmp sgt i32 %119, 8
br i1 %120, label %121, label %122
121: ; preds = %118
br label %124
122: ; preds = %118
%123 = load i32, i32* %13
br label %124
124: ; preds = %122, %121
%125 = phi i32 [ 8, %121 ], [ %123, %122 ]
%126 = call i32 @setbits(i32 %125)
%127 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 1
store i32 %126, i32* %127
%128 = load i32, i32* %13
%129 = sub nsw i32 %128, 8
store i32 %129, i32* %13
br label %132
130: ; preds = %115
%131 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 1
store i32 0, i32* %131
br label %132
132: ; preds = %130, %124
%133 = load i32, i32* %13
%134 = icmp sgt i32 %133, 0
br i1 %134, label %135, label %147
135: ; preds = %132
%136 = load i32, i32* %13
%137 = icmp sgt i32 %136, 8
br i1 %137, label %138, label %139
138: ; preds = %135
br label %141
139: ; preds = %135
%140 = load i32, i32* %13
br label %141
141: ; preds = %139, %138
%142 = phi i32 [ 8, %138 ], [ %140, %139 ]
%143 = call i32 @setbits(i32 %142)
%144 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 2
store i32 %143, i32* %144
%145 = load i32, i32* %13
%146 = sub nsw i32 %145, 8
store i32 %146, i32* %13
br label %149
147: ; preds = %132
%148 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 2
store i32 0, i32* %148
br label %149
149: ; preds = %147, %141
%150 = load i32, i32* %13
%151 = icmp sgt i32 %150, 0
br i1 %151, label %152, label %164
152: ; preds = %149
%153 = load i32, i32* %13
%154 = icmp sgt i32 %153, 8
br i1 %154, label %155, label %156
155: ; preds = %152
br label %158
156: ; preds = %152
%157 = load i32, i32* %13
br label %158
158: ; preds = %156, %155
%159 = phi i32 [ 8, %155 ], [ %157, %156 ]
%160 = call i32 @setbits(i32 %159)
%161 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 3
store i32 %160, i32* %161
%162 = load i32, i32* %13
%163 = sub nsw i32 %162, 8
store i32 %163, i32* %13
br label %166
164: ; preds = %149
%165 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 3
store i32 0, i32* %165
br label %166
166: ; preds = %164, %158
br label %182
167: ; preds = %81, %76
%168 = load i32, i32* @stderr
%169 = load i8**, i8*** %5
%170 = getelementptr inbounds i8*, i8** %169, i64 0
%171 = load i8*, i8** %170
%172 = load i8**, i8*** %5
%173 = getelementptr inbounds i8*, i8** %172, i64 0
%174 = load i8*, i8** %173
%175 = load i8**, i8*** %5
%176 = getelementptr inbounds i8*, i8** %175, i64 0
%177 = load i8*, i8** %176
%178 = load i8**, i8*** %5
%179 = getelementptr inbounds i8*, i8** %178, i64 0
%180 = load i8*, i8** %179
%181 = call i32 @fprintf(i32 %168, i8* getelementptr inbounds ([226 x i8], [226 x i8]* @.str.3, i64 0, i64 0), i8* %171, i8* %174, i8* %177, i8* %180)
store i32 1, i32* %3
br label %268
182: ; preds = %166
br label %183
183: ; preds = %182, %60
store i32 0, i32* %10
br label %184
184: ; preds = %214, %183
%185 = load i32, i32* %10
%186 = icmp slt i32 %185, 4
br i1 %186, label %187, label %217
187: ; preds = %184
%188 = load i32, i32* %10
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds [4 x i32], [4 x i32]* %6, i64 0, i64 %189
%191 = load i32, i32* %190
%192 = load i32, i32* %10
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 %193
%195 = load i32, i32* %194
%196 = and i32 %191, %195
%197 = load i32, i32* %10
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds [4 x i32], [4 x i32]* %8, i64 0, i64 %198
store i32 %196, i32* %199
%200 = load i32, i32* %10
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds [4 x i32], [4 x i32]* %8, i64 0, i64 %201
%203 = load i32, i32* %202
%204 = load i32, i32* %10
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 %205
%207 = load i32, i32* %206
%208 = xor i32 %207, -1
%209 = and i32 255, %208
%210 = or i32 %203, %209
%211 = load i32, i32* %10
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds [4 x i32], [4 x i32]* %9, i64 0, i64 %212
store i32 %210, i32* %213
br label %214
214: ; preds = %187
%215 = load i32, i32* %10
%216 = add nsw i32 %215, 1
store i32 %216, i32* %10
br label %184
217: ; preds = %184
%218 = load i32, i32* %11
%219 = icmp ne i32 %218, 0
br i1 %219, label %220, label %249
220: ; preds = %217
%221 = getelementptr inbounds [4 x i32], [4 x i32]* %8, i64 0, i64 0
%222 = load i32, i32* %221
%223 = getelementptr inbounds [4 x i32], [4 x i32]* %8, i64 0, i64 1
%224 = load i32, i32* %223
%225 = getelementptr inbounds [4 x i32], [4 x i32]* %8, i64 0, i64 2
%226 = load i32, i32* %225
%227 = getelementptr inbounds [4 x i32], [4 x i32]* %8, i64 0, i64 3
%228 = load i32, i32* %227
%229 = load i32, i32* %12
%230 = call i32 (i8*, i32, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i32 %222, i32 %224, i32 %226, i32 %228, i32 %229)
%231 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 0
%232 = load i32, i32* %231
%233 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 1
%234 = load i32, i32* %233
%235 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 2
%236 = load i32, i32* %235
%237 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 3
%238 = load i32, i32* %237
%239 = call i32 (i8*, i32, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i32 %232, i32 %234, i32 %236, i32 %238)
%240 = getelementptr inbounds [4 x i32], [4 x i32]* %9, i64 0, i64 0
%241 = load i32, i32* %240
%242 = getelementptr inbounds [4 x i32], [4 x i32]* %9, i64 0, i64 1
%243 = load i32, i32* %242
%244 = getelementptr inbounds [4 x i32], [4 x i32]* %9, i64 0, i64 2
%245 = load i32, i32* %244
%246 = getelementptr inbounds [4 x i32], [4 x i32]* %9, i64 0, i64 3
%247 = load i32, i32* %246
%248 = call i32 (i8*, i32, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i32 %241, i32 %243, i32 %245, i32 %247)
br label %267
249: ; preds = %217
%250 = getelementptr inbounds [4 x i32], [4 x i32]* %8, i64 0, i64 0
%251 = load i32, i32* %250
%252 = getelementptr inbounds [4 x i32], [4 x i32]* %8, i64 0, i64 1
%253 = load i32, i32* %252
%254 = getelementptr inbounds [4 x i32], [4 x i32]* %8, i64 0, i64 2
%255 = load i32, i32* %254
%256 = getelementptr inbounds [4 x i32], [4 x i32]* %8, i64 0, i64 3
%257 = load i32, i32* %256
%258 = getelementptr inbounds [4 x i32], [4 x i32]* %9, i64 0, i64 0
%259 = load i32, i32* %258
%260 = getelementptr inbounds [4 x i32], [4 x i32]* %9, i64 0, i64 1
%261 = load i32, i32* %260
%262 = getelementptr inbounds [4 x i32], [4 x i32]* %9, i64 0, i64 2
%263 = load i32, i32* %262
%264 = getelementptr inbounds [4 x i32], [4 x i32]* %9, i64 0, i64 3
%265 = load i32, i32* %264
%266 = call i32 (i8*, i32, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i32 %251, i32 %253, i32 %255, i32 %257, i32 %259, i32 %261, i32 %263, i32 %265)
br label %267
267: ; preds = %249, %220
store i32 0, i32* %3
br label %268
268: ; preds = %267, %167
%269 = load i32, i32* %3
ret i32 %269
}

LLVM IR (-O2):
@.str = [3 x i8] c"-v\00"
@.str.1 = [12 x i8] c"%d.%d.%d.%d\00"
@.str.2 = [15 x i8] c"%d.%d.%d.%d/%d\00"
@stderr = global i32 0
@.str.3 = [226 x i8] c"\0AIP and Netmask to Network and Broadcast converter.\0A(C) under GPL, 1999 Clifford Wolf\0A\0AUsage: %s [-v] <IP> <Netmask>\0A %s [-v] <IP>/<Mask>\0A\0AExamples: %s -v 195.170.70.72/25\0A %s 195.170.70.72 255.255.255.128\0A\0A\00"
@.str.4 = [29 x i8] c"Network: %d.%d.%d.%d / %d\0A\00"
@.str.5 = [24 x i8] c"Netmask: %d.%d.%d.%d\0A\00"
@.str.6 = [24 x i8] c"Broadcast: %d.%d.%d.%d\0A\00"
@.str.7 = [25 x i8] c"%d.%d.%d.%d %d.%d.%d.%d\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [4 x i32]
%4 = alloca [4 x i32]
%5 = alloca i32
%6 = bitcast [4 x i32]* %3 to i8*
%7 = bitcast [4 x i32]* %4 to i8*
%8 = bitcast i32* %5 to i8*
store i32 0, i32* %5
%9 = icmp sgt i32 %0, 1
br i1 %9, label %10, label %17
10: ; preds = %2
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = tail call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%14 = icmp eq i32 %13, 0
%15 = xor i1 %14, true
%16 = zext i1 %14 to i32
br label %17
17: ; preds = %10, %2
%18 = phi i1 [ true, %2 ], [ %15, %10 ]
%19 = phi i32 [ 0, %2 ], [ %16, %10 ]
%20 = add nuw nsw i32 %19, 3
%21 = icmp eq i32 %20, %0
br i1 %21, label %22, label %57
22: ; preds = %17
%23 = add nuw nsw i32 %19, 1
%24 = zext i32 %23 to i64
%25 = getelementptr inbounds i8*, i8** %1, i64 %24
%26 = load i8*, i8** %25
%27 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 0
%28 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 1
%29 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 2
%30 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 3
%31 = call i32 (i8*, i8*, i32*, i32*, i32*, i32*, ...) @sscanf(i8* %26, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32* %27, i32* %28, i32* %29, i32* %30)
%32 = icmp eq i32 %31, 4
br i1 %32, label %33, label %57
33: ; preds = %22
%34 = or i32 %19, 2
%35 = zext i32 %34 to i64
%36 = getelementptr inbounds i8*, i8** %1, i64 %35
%37 = load i8*, i8** %36
%38 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 0
%39 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 1
%40 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 2
%41 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 3
%42 = call i32 (i8*, i8*, i32*, i32*, i32*, i32*, ...) @sscanf(i8* %37, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32* %38, i32* %39, i32* %40, i32* %41)
%43 = icmp eq i32 %42, 4
br i1 %43, label %44, label %57
44: ; preds = %33
%45 = load i32, i32* %38
%46 = call i32 @getbits(i32 %45)
%47 = load i32, i32* %39
%48 = call i32 @getbits(i32 %47)
%49 = add nsw i32 %48, %46
%50 = load i32, i32* %40
%51 = call i32 @getbits(i32 %50)
%52 = add nsw i32 %49, %51
%53 = load i32, i32* %41
%54 = call i32 @getbits(i32 %53)
%55 = add nsw i32 %52, %54
store i32 %55, i32* %5
%56 = load i32, i32* %41
br label %112
57: ; preds = %33, %22, %17
%58 = or i32 %19, 2
%59 = icmp eq i32 %58, %0
br i1 %59, label %60, label %108
60: ; preds = %57
%61 = add nuw nsw i32 %19, 1
%62 = zext i32 %61 to i64
%63 = getelementptr inbounds i8*, i8** %1, i64 %62
%64 = load i8*, i8** %63
%65 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 0
%66 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 1
%67 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 2
%68 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 3
%69 = call i32 (i8*, i8*, i32*, i32*, i32*, i32*, ...) @sscanf(i8* %64, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32* %65, i32* %66, i32* %67, i32* %68, i32* %5)
%70 = icmp eq i32 %69, 5
br i1 %70, label %71, label %108
71: ; preds = %60
%72 = load i32, i32* %5
%73 = icmp sgt i32 %72, 0
br i1 %73, label %76, label %74
74: ; preds = %71
%75 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 0
store i32 0, i32* %75
br label %83
76: ; preds = %71
%77 = icmp ult i32 %72, 8
%78 = select i1 %77, i32 %72, i32 8
%79 = call i32 @setbits(i32 %78)
%80 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 0
store i32 %79, i32* %80
%81 = add nsw i32 %72, -8
%82 = icmp ugt i32 %72, 8
br i1 %82, label %85, label %83
83: ; preds = %76, %74
%84 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 1
store i32 0, i32* %84
br label %92
85: ; preds = %76
%86 = icmp ult i32 %81, 8
%87 = select i1 %86, i32 %81, i32 8
%88 = call i32 @setbits(i32 %87)
%89 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 1
store i32 %88, i32* %89
%90 = add nsw i32 %72, -16
%91 = icmp ugt i32 %72, 16
br i1 %91, label %94, label %92
92: ; preds = %85, %83
%93 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 2
store i32 0, i32* %93
br label %106
94: ; preds = %85
%95 = icmp ult i32 %90, 8
%96 = select i1 %95, i32 %90, i32 8
%97 = call i32 @setbits(i32 %96)
%98 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 2
store i32 %97, i32* %98
%99 = add nsw i32 %72, -24
%100 = icmp ugt i32 %72, 24
br i1 %100, label %101, label %106
101: ; preds = %94
%102 = icmp ult i32 %99, 8
%103 = select i1 %102, i32 %99, i32 8
%104 = call i32 @setbits(i32 %103)
%105 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 3
store i32 %104, i32* %105
br label %112
106: ; preds = %92, %94
%107 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 3
store i32 0, i32* %107
br label %112
108: ; preds = %60, %57
%109 = load i32, i32* @stderr
%110 = load i8*, i8** %1
%111 = call i32 @fprintf(i32 %109, i8* getelementptr inbounds ([226 x i8], [226 x i8]* @.str.3, i64 0, i64 0), i8* %110, i8* %110, i8* %110, i8* %110)
br label %156
112: ; preds = %106, %101, %44
%113 = phi i32 [ 0, %106 ], [ %104, %101 ], [ %56, %44 ]
%114 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 0
%115 = load i32, i32* %114
%116 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 0
%117 = load i32, i32* %116
%118 = and i32 %117, %115
%119 = and i32 %117, 255
%120 = xor i32 %119, 255
%121 = or i32 %120, %118
%122 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 1
%123 = load i32, i32* %122
%124 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 1
%125 = load i32, i32* %124
%126 = and i32 %125, %123
%127 = and i32 %125, 255
%128 = xor i32 %127, 255
%129 = or i32 %128, %126
%130 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 2
%131 = load i32, i32* %130
%132 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 2
%133 = load i32, i32* %132
%134 = and i32 %133, %131
%135 = and i32 %133, 255
%136 = xor i32 %135, 255
%137 = or i32 %136, %134
%138 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 3
%139 = load i32, i32* %138
%140 = and i32 %113, %139
%141 = and i32 %113, 255
%142 = xor i32 %141, 255
%143 = or i32 %142, %140
br i1 %18, label %154, label %144
144: ; preds = %112
%145 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 3
%146 = load i32, i32* %5
%147 = call i32 (i8*, i32, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i32 %118, i32 %126, i32 %134, i32 %140, i32 %146)
%148 = load i32, i32* %116
%149 = load i32, i32* %124
%150 = load i32, i32* %132
%151 = load i32, i32* %145
%152 = call i32 (i8*, i32, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i32 %148, i32 %149, i32 %150, i32 %151)
%153 = call i32 (i8*, i32, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i32 %121, i32 %129, i32 %137, i32 %143)
br label %156
154: ; preds = %112
%155 = call i32 (i8*, i32, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i32 %118, i32 %126, i32 %134, i32 %140, i32 %121, i32 %129, i32 %137, i32 %143)
br label %156
156: ; preds = %144, %154, %108
%157 = phi i32 [ 1, %108 ], [ 0, %154 ], [ 0, %144 ]
ret i32 %157
}