#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 */
struct ether_addr {
  int *ether_addr_octet;
};

/* Variables and functions */
struct ether_addr *ether_aton(char *);
int ether_line(char *, struct ether_addr *, char *);
int /*<<< orphan*/ ether_ntoa_r(struct ether_addr *, char *);
int /*<<< orphan*/ printf(char *, ...);
char *strchr(char *, char);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int main(int argc, char *argv[]) {
  struct ether_addr *valp, val;
  int result, r;
  char hostname[32], buf[64], *p;
  valp = ether_aton("12:34:56:78:9a:bc");
  printf("ether_aton (\"12:34:56:78:9a:bc\") = %hhx:%hhx:%hhx:%hhx:%hhx:%hhx\n",
         valp->ether_addr_octet[0], valp->ether_addr_octet[1],
         valp->ether_addr_octet[2], valp->ether_addr_octet[3],
         valp->ether_addr_octet[4], valp->ether_addr_octet[5]);
  result =
      (valp->ether_addr_octet[0] != 0x12 || valp->ether_addr_octet[1] != 0x34 ||
       valp->ether_addr_octet[2] != 0x56 || valp->ether_addr_octet[3] != 0x78 ||
       valp->ether_addr_octet[4] != 0x9a || valp->ether_addr_octet[5] != 0xbc);
  if ((r = ether_line("0:c0:f0:46:5f:97 host.ether.com \t# comment", &val,
                      hostname)) == 0) {
    ether_ntoa_r(&val, buf);
    p = strchr(buf, '\0');
    *p++ = ' ';
    strcpy(p, hostname);
    printf("ether_line (\"0:c0:f0:46:5f:97 host.ether.com\") = \"%s\"\n", buf);
    result |= strcmp("0:c0:f0:46:5f:97 host.ether.com", buf) != 0;
  } else {
    printf("ether_line (\"0:c0:f0:46:5f:97 host.ether.com\") = %d\n", r);
    result |= 1;
  }
  r = ether_line("0:c0:2:d0 foo.bar   ", &val, hostname);
  printf("ether_line (\"0:c0:2:d0 foo.bar   \") = %d\n", r);
  result |= r != -1;
  r = ether_line("0:c0:2:d0:1a:2a  ", &val, hostname);
  printf("ether_line (\"0:c0:2:d0:1a:2a  \") = %d\n", r);
  result |= r != -1;
  return result;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe70(%rip),%rdi
call   1070 <ether_aton@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%esi
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    0x4(%rax),%edx
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    0x8(%rax),%ecx
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    0xc(%rax),%r8d
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    0x10(%rax),%r9d
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    0x14(%rax),%eax
lea    0xe35(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%rcx
mov    $0x1,%al
cmpl   $0x12,(%rcx)
mov    %al,-0x99(%rbp)
jne    127d <main+0x10d>
mov    -0x18(%rbp),%rax
mov    (%rax),%rcx
mov    $0x1,%al
cmpl   $0x34,0x4(%rcx)
mov    %al,-0x99(%rbp)
jne    127d <main+0x10d>
mov    -0x18(%rbp),%rax
mov    (%rax),%rcx
mov    $0x1,%al
cmpl   $0x56,0x8(%rcx)
mov    %al,-0x99(%rbp)
jne    127d <main+0x10d>
mov    -0x18(%rbp),%rax
mov    (%rax),%rcx
mov    $0x1,%al
cmpl   $0x78,0xc(%rcx)
mov    %al,-0x99(%rbp)
jne    127d <main+0x10d>
mov    -0x18(%rbp),%rax
mov    (%rax),%rcx
mov    $0x1,%al
cmpl   $0x9a,0x10(%rcx)
mov    %al,-0x99(%rbp)
jne    127d <main+0x10d>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
cmpl   $0xbc,0x14(%rax)
setne  %al
mov    %al,-0x99(%rbp)
mov    -0x99(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x24(%rbp)
lea    -0x50(%rbp),%rdx
lea    0xdbe(%rip),%rdi
lea    -0x20(%rbp),%rsi
call   1090 <ether_line@plt>
mov    %eax,-0x28(%rbp)
cmp    $0x0,%eax
jne    1337 <main+0x1c7>
lea    -0x90(%rbp),%rsi
lea    -0x20(%rbp),%rdi
call   1080 <ether_ntoa_r@plt>
lea    -0x90(%rbp),%rdi
xor    %esi,%esi
call   1040 <strchr@plt>
mov    %rax,-0x98(%rbp)
mov    -0x98(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x98(%rbp)
movb   $0x20,(%rax)
mov    -0x98(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x90(%rbp),%rsi
lea    0xd79(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x90(%rbp),%rsi
lea    0xd9b(%rip),%rdi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
setne  %al
and    $0x1,%al
movzbl %al,%eax
or     -0x24(%rbp),%eax
mov    %eax,-0x24(%rbp)
jmp    1351 <main+0x1e1>
mov    -0x28(%rbp),%esi
lea    0xd95(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x24(%rbp),%eax
or     $0x1,%eax
mov    %eax,-0x24(%rbp)
lea    -0x50(%rbp),%rdx
lea    0xdaf(%rip),%rdi
lea    -0x20(%rbp),%rsi
call   1090 <ether_line@plt>
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%esi
lea    0xdae(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0xffffffff,-0x28(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%eax
or     -0x24(%rbp),%eax
mov    %eax,-0x24(%rbp)
lea    -0x50(%rbp),%rdx
lea    0xdb4(%rip),%rdi
lea    -0x20(%rbp),%rsi
call   1090 <ether_line@plt>
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%esi
lea    0xdb0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0xffffffff,-0x28(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%eax
or     -0x24(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x70,%rsp
lea    0xe7d(%rip),%rdi
call   1070 <ether_aton@plt>
mov    %rax,%rbx
mov    (%rax),%rax
mov    (%rax),%esi
mov    0x4(%rax),%edx
mov    0x8(%rax),%ecx
mov    0xc(%rax),%r8d
mov    0x10(%rax),%r9d
mov    0x14(%rax),%eax
mov    %eax,(%rsp)
lea    0xe67(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rbx),%rax
mov    $0x1,%r15d
cmpl   $0x12,(%rax)
jne    11e9 <main+0x79>
cmpl   $0x34,0x4(%rax)
jne    11e9 <main+0x79>
cmpl   $0x56,0x8(%rax)
jne    11e9 <main+0x79>
cmpl   $0x78,0xc(%rax)
jne    11e9 <main+0x79>
cmpl   $0x9a,0x10(%rax)
jne    11e9 <main+0x79>
xor    %r15d,%r15d
cmpl   $0xbc,0x14(%rax)
setne  %r15b
lea    0xe64(%rip),%rdi
lea    0x8(%rsp),%rsi
lea    0x10(%rsp),%rdx
call   1090 <ether_line@plt>
test   %eax,%eax
je     121b <main+0xab>
lea    0xecc(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%r15d
jmp    1277 <main+0x107>
lea    0x8(%rsp),%rdi
lea    0x30(%rsp),%rbx
mov    %rbx,%rsi
call   1080 <ether_ntoa_r@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
lea    (%rsp,%rax,1),%rdi
add    $0x31,%rdi
movb   $0x20,0x30(%rsp,%rax,1)
lea    0x10(%rsp),%rsi
call   1030 <strcpy@plt>
lea    0xe2c(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe52(%rip),%rdi
mov    %rbx,%rsi
call   1060 <strcmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
setne  %cl
or     %ecx,%r15d
lea    0xe8d(%rip),%rdi
lea    0x8(%rsp),%r12
lea    0x10(%rsp),%r14
mov    %r12,%rsi
mov    %r14,%rdx
call   1090 <ether_line@plt>
mov    %eax,%ebx
lea    0xe84(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %ebp,%ebp
cmp    $0xffffffff,%ebx
setne  %bpl
or     %r15d,%ebp
lea    0xe92(%rip),%rdi
mov    %r12,%rsi
mov    %r14,%rdx
call   1090 <ether_line@plt>
mov    %eax,%ebx
lea    0xe90(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
cmp    $0xffffffff,%ebx
setne  %al
or     %ebp,%eax
add    $0x70,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.ether_addr = type { i32* }
@.str = [18 x i8] c"12:34:56:78:9a:bc\00"
@.str.1 = [66 x i8] c"ether_aton (\2212:34:56:78:9a:bc\22) = %hhx:%hhx:%hhx:%hhx:%hhx:%hhx\0A\00"
@.str.2 = [43 x i8] c"0:c0:f0:46:5f:97 host.ether.com \09# comment\00"
@.str.3 = [55 x i8] c"ether_line (\220:c0:f0:46:5f:97 host.ether.com\22) = \22%s\22\0A\00"
@.str.4 = [32 x i8] c"0:c0:f0:46:5f:97 host.ether.com\00"
@.str.5 = [53 x i8] c"ether_line (\220:c0:f0:46:5f:97 host.ether.com\22) = %d\0A\00"
@.str.6 = [21 x i8] c"0:c0:2:d0 foo.bar \00"
@.str.7 = [42 x i8] c"ether_line (\220:c0:2:d0 foo.bar \22) = %d\0A\00"
@.str.8 = [18 x i8] c"0:c0:2:d0:1a:2a \00"
@.str.9 = [39 x i8] c"ether_line (\220:c0:2:d0:1a:2a \22) = %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.ether_addr*
%7 = alloca %struct.ether_addr
%8 = alloca i32
%9 = alloca i32
%10 = alloca [32 x i8]
%11 = alloca [64 x i8]
%12 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = call %struct.ether_addr* @ether_aton(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
store %struct.ether_addr* %13, %struct.ether_addr** %6
%14 = load %struct.ether_addr*, %struct.ether_addr** %6
%15 = getelementptr inbounds %struct.ether_addr, %struct.ether_addr* %14, i32 0, i32 0
%16 = load i32*, i32** %15
%17 = getelementptr inbounds i32, i32* %16, i64 0
%18 = load i32, i32* %17
%19 = load %struct.ether_addr*, %struct.ether_addr** %6
%20 = getelementptr inbounds %struct.ether_addr, %struct.ether_addr* %19, i32 0, i32 0
%21 = load i32*, i32** %20
%22 = getelementptr inbounds i32, i32* %21, i64 1
%23 = load i32, i32* %22
%24 = load %struct.ether_addr*, %struct.ether_addr** %6
%25 = getelementptr inbounds %struct.ether_addr, %struct.ether_addr* %24, i32 0, i32 0
%26 = load i32*, i32** %25
%27 = getelementptr inbounds i32, i32* %26, i64 2
%28 = load i32, i32* %27
%29 = load %struct.ether_addr*, %struct.ether_addr** %6
%30 = getelementptr inbounds %struct.ether_addr, %struct.ether_addr* %29, i32 0, i32 0
%31 = load i32*, i32** %30
%32 = getelementptr inbounds i32, i32* %31, i64 3
%33 = load i32, i32* %32
%34 = load %struct.ether_addr*, %struct.ether_addr** %6
%35 = getelementptr inbounds %struct.ether_addr, %struct.ether_addr* %34, i32 0, i32 0
%36 = load i32*, i32** %35
%37 = getelementptr inbounds i32, i32* %36, i64 4
%38 = load i32, i32* %37
%39 = load %struct.ether_addr*, %struct.ether_addr** %6
%40 = getelementptr inbounds %struct.ether_addr, %struct.ether_addr* %39, i32 0, i32 0
%41 = load i32*, i32** %40
%42 = getelementptr inbounds i32, i32* %41, i64 5
%43 = load i32, i32* %42
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0), i32 %18, i32 %23, i32 %28, i32 %33, i32 %38, i32 %43)
%45 = load %struct.ether_addr*, %struct.ether_addr** %6
%46 = getelementptr inbounds %struct.ether_addr, %struct.ether_addr* %45, i32 0, i32 0
%47 = load i32*, i32** %46
%48 = getelementptr inbounds i32, i32* %47, i64 0
%49 = load i32, i32* %48
%50 = icmp ne i32 %49, 18
br i1 %50, label %86, label %51
51: ; preds = %2
%52 = load %struct.ether_addr*, %struct.ether_addr** %6
%53 = getelementptr inbounds %struct.ether_addr, %struct.ether_addr* %52, i32 0, i32 0
%54 = load i32*, i32** %53
%55 = getelementptr inbounds i32, i32* %54, i64 1
%56 = load i32, i32* %55
%57 = icmp ne i32 %56, 52
br i1 %57, label %86, label %58
58: ; preds = %51
%59 = load %struct.ether_addr*, %struct.ether_addr** %6
%60 = getelementptr inbounds %struct.ether_addr, %struct.ether_addr* %59, i32 0, i32 0
%61 = load i32*, i32** %60
%62 = getelementptr inbounds i32, i32* %61, i64 2
%63 = load i32, i32* %62
%64 = icmp ne i32 %63, 86
br i1 %64, label %86, label %65
65: ; preds = %58
%66 = load %struct.ether_addr*, %struct.ether_addr** %6
%67 = getelementptr inbounds %struct.ether_addr, %struct.ether_addr* %66, i32 0, i32 0
%68 = load i32*, i32** %67
%69 = getelementptr inbounds i32, i32* %68, i64 3
%70 = load i32, i32* %69
%71 = icmp ne i32 %70, 120
br i1 %71, label %86, label %72
72: ; preds = %65
%73 = load %struct.ether_addr*, %struct.ether_addr** %6
%74 = getelementptr inbounds %struct.ether_addr, %struct.ether_addr* %73, i32 0, i32 0
%75 = load i32*, i32** %74
%76 = getelementptr inbounds i32, i32* %75, i64 4
%77 = load i32, i32* %76
%78 = icmp ne i32 %77, 154
br i1 %78, label %86, label %79
79: ; preds = %72
%80 = load %struct.ether_addr*, %struct.ether_addr** %6
%81 = getelementptr inbounds %struct.ether_addr, %struct.ether_addr* %80, i32 0, i32 0
%82 = load i32*, i32** %81
%83 = getelementptr inbounds i32, i32* %82, i64 5
%84 = load i32, i32* %83
%85 = icmp ne i32 %84, 188
br label %86
86: ; preds = %79, %72, %65, %58, %51, %2
%87 = phi i1 [ true, %72 ], [ true, %65 ], [ true, %58 ], [ true, %51 ], [ true, %2 ], [ %85, %79 ]
%88 = zext i1 %87 to i32
store i32 %88, i32* %8
%89 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 0
%90 = call i32 @ether_line(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), %struct.ether_addr* %7, i8* %89)
store i32 %90, i32* %9
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %110
92: ; preds = %86
%93 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%94 = call i32 @ether_ntoa_r(%struct.ether_addr* %7, i8* %93)
%95 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%96 = call i8* @strchr(i8* %95, i8 signext 0)
store i8* %96, i8** %12
%97 = load i8*, i8** %12
%98 = getelementptr inbounds i8, i8* %97, i32 1
store i8* %98, i8** %12
store i8 32, i8* %97
%99 = load i8*, i8** %12
%100 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 0
%101 = call i32 @strcpy(i8* %99, i8* %100)
%102 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.3, i64 0, i64 0), i8* %102)
%104 = getelementptr inbounds [64 x i8], [64 x i8]* %11, i64 0, i64 0
%105 = call i64 @strcmp(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i8* %104)
%106 = icmp ne i64 %105, 0
%107 = zext i1 %106 to i32
%108 = load i32, i32* %8
%109 = or i32 %108, %107
store i32 %109, i32* %8
br label %115
110: ; preds = %86
%111 = load i32, i32* %9
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), i32 %111)
%113 = load i32, i32* %8
%114 = or i32 %113, 1
store i32 %114, i32* %8
br label %115
115: ; preds = %110, %92
%116 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 0
%117 = call i32 @ether_line(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), %struct.ether_addr* %7, i8* %116)
store i32 %117, i32* %9
%118 = load i32, i32* %9
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0), i32 %118)
%120 = load i32, i32* %9
%121 = icmp ne i32 %120, -1
%122 = zext i1 %121 to i32
%123 = load i32, i32* %8
%124 = or i32 %123, %122
store i32 %124, i32* %8
%125 = getelementptr inbounds [32 x i8], [32 x i8]* %10, i64 0, i64 0
%126 = call i32 @ether_line(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), %struct.ether_addr* %7, i8* %125)
store i32 %126, i32* %9
%127 = load i32, i32* %9
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0), i32 %127)
%129 = load i32, i32* %9
%130 = icmp ne i32 %129, -1
%131 = zext i1 %130 to i32
%132 = load i32, i32* %8
%133 = or i32 %132, %131
store i32 %133, i32* %8
%134 = load i32, i32* %8
ret i32 %134
}

LLVM IR (-O2):
%struct.ether_addr = type { i32* }
@.str = [18 x i8] c"12:34:56:78:9a:bc\00"
@.str.1 = [66 x i8] c"ether_aton (\2212:34:56:78:9a:bc\22) = %hhx:%hhx:%hhx:%hhx:%hhx:%hhx\0A\00"
@.str.2 = [43 x i8] c"0:c0:f0:46:5f:97 host.ether.com \09# comment\00"
@.str.3 = [55 x i8] c"ether_line (\220:c0:f0:46:5f:97 host.ether.com\22) = \22%s\22\0A\00"
@.str.4 = [32 x i8] c"0:c0:f0:46:5f:97 host.ether.com\00"
@.str.5 = [53 x i8] c"ether_line (\220:c0:f0:46:5f:97 host.ether.com\22) = %d\0A\00"
@.str.6 = [21 x i8] c"0:c0:2:d0 foo.bar \00"
@.str.7 = [42 x i8] c"ether_line (\220:c0:2:d0 foo.bar \22) = %d\0A\00"
@.str.8 = [18 x i8] c"0:c0:2:d0:1a:2a \00"
@.str.9 = [39 x i8] c"ether_line (\220:c0:2:d0:1a:2a \22) = %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca %struct.ether_addr
%4 = alloca [32 x i8]
%5 = alloca [64 x i8]
%6 = bitcast %struct.ether_addr* %3 to i8*
%7 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%9 = tail call %struct.ether_addr* @ether_aton(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%10 = getelementptr inbounds %struct.ether_addr, %struct.ether_addr* %9, i64 0, i32 0
%11 = load i32*, i32** %10
%12 = load i32, i32* %11
%13 = getelementptr inbounds i32, i32* %11, i64 1
%14 = load i32, i32* %13
%15 = getelementptr inbounds i32, i32* %11, i64 2
%16 = load i32, i32* %15
%17 = getelementptr inbounds i32, i32* %11, i64 3
%18 = load i32, i32* %17
%19 = getelementptr inbounds i32, i32* %11, i64 4
%20 = load i32, i32* %19
%21 = getelementptr inbounds i32, i32* %11, i64 5
%22 = load i32, i32* %21
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0), i32 %12, i32 %14, i32 %16, i32 %18, i32 %20, i32 %22)
%24 = load i32*, i32** %10
%25 = load i32, i32* %24
%26 = icmp eq i32 %25, 18
br i1 %26, label %27, label %48
27: ; preds = %2
%28 = getelementptr inbounds i32, i32* %24, i64 1
%29 = load i32, i32* %28
%30 = icmp eq i32 %29, 52
br i1 %30, label %31, label %48
31: ; preds = %27
%32 = getelementptr inbounds i32, i32* %24, i64 2
%33 = load i32, i32* %32
%34 = icmp eq i32 %33, 86
br i1 %34, label %35, label %48
35: ; preds = %31
%36 = getelementptr inbounds i32, i32* %24, i64 3
%37 = load i32, i32* %36
%38 = icmp eq i32 %37, 120
br i1 %38, label %39, label %48
39: ; preds = %35
%40 = getelementptr inbounds i32, i32* %24, i64 4
%41 = load i32, i32* %40
%42 = icmp eq i32 %41, 154
br i1 %42, label %43, label %48
43: ; preds = %39
%44 = getelementptr inbounds i32, i32* %24, i64 5
%45 = load i32, i32* %44
%46 = icmp ne i32 %45, 188
%47 = zext i1 %46 to i32
br label %48
48: ; preds = %43, %39, %35, %31, %27, %2
%49 = phi i32 [ 1, %39 ], [ 1, %35 ], [ 1, %31 ], [ 1, %27 ], [ 1, %2 ], [ %47, %43 ]
%50 = call i32 @ether_line(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), %struct.ether_addr* %3, i8* %7)
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %63
52: ; preds = %48
%53 = call i32 @ether_ntoa_r(%struct.ether_addr* %3, i8* %8)
%54 = call i64 @strlen(i8* %8)
%55 = getelementptr [64 x i8], [64 x i8]* %5, i64 0, i64 %54
%56 = getelementptr inbounds i8, i8* %55, i64 1
store i8 32, i8* %55
%57 = call i32 @strcpy(i8* %56, i8* %7)
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.3, i64 0, i64 0), i8* %8)
%59 = call i64 @strcmp(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i8* %8)
%60 = icmp ne i64 %59, 0
%61 = zext i1 %60 to i32
%62 = or i32 %49, %61
br label %65
63: ; preds = %48
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), i32 %50)
br label %65
65: ; preds = %63, %52
%66 = phi i32 [ %62, %52 ], [ 1, %63 ]
%67 = call i32 @ether_line(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), %struct.ether_addr* %3, i8* %7)
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0), i32 %67)
%69 = icmp ne i32 %67, -1
%70 = zext i1 %69 to i32
%71 = or i32 %66, %70
%72 = call i32 @ether_line(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), %struct.ether_addr* %3, i8* %7)
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0), i32 %72)
%74 = icmp ne i32 %72, -1
%75 = zext i1 %74 to i32
%76 = or i32 %71, %75
ret i32 %76
}