#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 in6_addr {
  int dummy;
};
typedef int /*<<< orphan*/ line;

/* Variables and functions */
int /*<<< orphan*/ AF_INET6;
scalar_t__ a_le_b(struct in6_addr *, struct in6_addr *);
int /*<<< orphan*/ convert_range(struct in6_addr *, struct in6_addr *, char *,
                                 char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, int);
int /*<<< orphan*/ in6_bswap(struct in6_addr *);
scalar_t__ inet_pton(int /*<<< orphan*/, char *, struct in6_addr *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
int strlen(char *);
int /*<<< orphan*/ usage(char *);
main(int argc, char **argv) {
  char line[1024];
  int l, lnum;
  char *lb, *le, *hb, *he, *err;
  struct in6_addr sa, da, ta;
  if (argc > 1 && *argv[1] == '-') {
    usage(argv[0]);
    exit(1);
  }
  lnum = 0;
  while (fgets(line, sizeof(line), stdin) != NULL) {
    l = strlen(line);
    if (l && line[l - 1] == '\n')
      line[--l] = '\0';
    lnum++;
    for (lb = line; *lb == ' ' || *lb == '\t' || *lb == ',' || *lb == '"'; lb++)
      ;
    if (!*lb || *lb == '#')
      continue;
    for (le = lb + 1;
         *le != ' ' && *le != '\t' && *le != ',' && *le != '"' && *le; le++)
      ;
    if (!*le)
      continue;
    *(le++) = 0;
    for (hb = le; *hb == ' ' || *hb == '\t' || *hb == ',' || *hb == '"'; hb++)
      ;
    if (!*hb || *hb == '#')
      continue;
    for (he = hb + 1;
         *he != ' ' && *he != '\t' && *he != ',' && *he != '"' && *he; he++)
      ;
    if (!*he)
      continue;
    *(he++) = 0;
    while (*he == '"')
      *(he++) = ' ';
    while (*he == ',' || *he == ' ' || *he == '\t')
      *(he++) = ' ';
    if (*(he - 1) == ' ')
      he--;
    if (inet_pton(AF_INET6, lb, &sa) <= 0) {
      fprintf(stderr,
              "Failed to parse source address <%s> at line %d, skipping line\n",
              lb, lnum);
      continue;
    }
    if (inet_pton(AF_INET6, hb, &da) <= 0) {
      fprintf(stderr,
              "Failed to parse destination address <%s> at line %d, skipping "
              "line\n",
              hb, lnum);
      continue;
    }
    in6_bswap(&sa);
    in6_bswap(&da);
    if (argc > 1) {
      for (l = 1; l < argc; l++) {
        if (inet_pton(AF_INET6, argv[l], &da) <= 0)
          continue;
        in6_bswap(&ta);
        if ((a_le_b(&sa, &ta) && a_le_b(&ta, &da)) ||
            (a_le_b(&da, &ta) && a_le_b(&ta, &sa)))
          convert_range(&sa, &da, he, argv[l]);
      }
    } else {
      convert_range(&sa, &da, he, NULL);
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x460,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    11dd <main+0x4d>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    11dd <main+0x4d>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1070 <usage@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
movl   $0x0,-0x418(%rbp)
lea    -0x410(%rbp),%rdi
mov    0x2df3(%rip),%rax
mov    (%rax),%edx
mov    $0x400,%esi
call   1040 <fgets@plt>
cmp    $0x0,%rax
je     18af <main+0x71f>
lea    -0x410(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x414(%rbp)
cmpl   $0x0,-0x414(%rbp)
je     125f <main+0xcf>
mov    -0x414(%rbp),%eax
sub    $0x1,%eax
cltq
movsbl -0x410(%rbp,%rax,1),%eax
ff
cmp    $0xa,%eax
jne    125f <main+0xcf>
mov    -0x414(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x414(%rbp)
cltq
movb   $0x0,-0x410(%rbp,%rax,1)
mov    -0x418(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x418(%rbp)
lea    -0x410(%rbp),%rax
mov    %rax,-0x420(%rbp)
mov    -0x420(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x459(%rbp)
je     12e3 <main+0x153>
mov    -0x420(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x9,%ecx
mov    %al,-0x459(%rbp)
je     12e3 <main+0x153>
mov    -0x420(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x2c,%ecx
mov    %al,-0x459(%rbp)
je     12e3 <main+0x153>
mov    -0x420(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x22,%eax
sete   %al
mov    %al,-0x459(%rbp)
mov    -0x459(%rbp),%al
test   $0x1,%al
jne    12f6 <main+0x166>
jmp    1312 <main+0x182>
jmp    12fb <main+0x16b>
mov    -0x420(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x420(%rbp)
jmp    127c <main+0xec>
mov    -0x420(%rbp),%rax
cmpb   $0x0,(%rax)
je     1335 <main+0x1a5>
mov    -0x420(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
jne    133a <main+0x1aa>
jmp    11e7 <main+0x57>
mov    -0x420(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x428(%rbp)
mov    -0x428(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x20,%ecx
mov    %al,-0x45a(%rbp)
je     13ce <main+0x23e>
mov    -0x428(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x9,%ecx
mov    %al,-0x45a(%rbp)
je     13ce <main+0x23e>
mov    -0x428(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x2c,%ecx
mov    %al,-0x45a(%rbp)
je     13ce <main+0x23e>
mov    -0x428(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x22,%ecx
mov    %al,-0x45a(%rbp)
je     13ce <main+0x23e>
mov    -0x428(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x45a(%rbp)
mov    -0x45a(%rbp),%al
test   $0x1,%al
jne    13e1 <main+0x251>
jmp    13fd <main+0x26d>
jmp    13e6 <main+0x256>
mov    -0x428(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x428(%rbp)
jmp    134c <main+0x1bc>
mov    -0x428(%rbp),%rax
cmpb   $0x0,(%rax)
jne    1412 <main+0x282>
jmp    11e7 <main+0x57>
mov    -0x428(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x428(%rbp)
movb   $0x0,(%rax)
mov    -0x428(%rbp),%rax
mov    %rax,-0x430(%rbp)
mov    -0x430(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x45b(%rbp)
je     149f <main+0x30f>
mov    -0x430(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x9,%ecx
mov    %al,-0x45b(%rbp)
je     149f <main+0x30f>
mov    -0x430(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x2c,%ecx
mov    %al,-0x45b(%rbp)
je     149f <main+0x30f>
mov    -0x430(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x22,%eax
sete   %al
mov    %al,-0x45b(%rbp)
mov    -0x45b(%rbp),%al
test   $0x1,%al
jne    14b2 <main+0x322>
jmp    14ce <main+0x33e>
jmp    14b7 <main+0x327>
mov    -0x430(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x430(%rbp)
jmp    1438 <main+0x2a8>
mov    -0x430(%rbp),%rax
cmpb   $0x0,(%rax)
je     14f1 <main+0x361>
mov    -0x430(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
jne    14f6 <main+0x366>
jmp    11e7 <main+0x57>
mov    -0x430(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x438(%rbp)
mov    -0x438(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x20,%ecx
mov    %al,-0x45c(%rbp)
je     158a <main+0x3fa>
mov    -0x438(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x9,%ecx
mov    %al,-0x45c(%rbp)
je     158a <main+0x3fa>
mov    -0x438(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x2c,%ecx
mov    %al,-0x45c(%rbp)
je     158a <main+0x3fa>
mov    -0x438(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x22,%ecx
mov    %al,-0x45c(%rbp)
je     158a <main+0x3fa>
mov    -0x438(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x45c(%rbp)
mov    -0x45c(%rbp),%al
test   $0x1,%al
jne    159d <main+0x40d>
jmp    15b9 <main+0x429>
jmp    15a2 <main+0x412>
mov    -0x438(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x438(%rbp)
jmp    1508 <main+0x378>
mov    -0x438(%rbp),%rax
cmpb   $0x0,(%rax)
jne    15ce <main+0x43e>
jmp    11e7 <main+0x57>
mov    -0x438(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x438(%rbp)
movb   $0x0,(%rax)
mov    -0x438(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x22,%eax
jne    1616 <main+0x486>
mov    -0x438(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x438(%rbp)
movb   $0x20,(%rax)
jmp    15e6 <main+0x456>
jmp    161b <main+0x48b>
mov    -0x438(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x2c,%ecx
mov    %al,-0x45d(%rbp)
je     1667 <main+0x4d7>
mov    -0x438(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x45d(%rbp)
je     1667 <main+0x4d7>
mov    -0x438(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
sete   %al
mov    %al,-0x45d(%rbp)
mov    -0x45d(%rbp),%al
test   $0x1,%al
jne    167a <main+0x4ea>
jmp    1697 <main+0x507>
mov    -0x438(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x438(%rbp)
movb   $0x20,(%rax)
jmp    161b <main+0x48b>
mov    -0x438(%rbp),%rax
movsbl -0x1(%rax),%eax
cmp    $0x20,%eax
jne    16bd <main+0x52d>
mov    -0x438(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x438(%rbp)
mov    0x291c(%rip),%rax
mov    (%rax),%edi
mov    -0x420(%rbp),%rsi
lea    -0x448(%rbp),%rdx
call   1060 <inet_pton@plt>
cmp    $0x0,%rax
jg     170a <main+0x57a>
mov    0x28e6(%rip),%rax
mov    (%rax),%edi
mov    -0x420(%rbp),%rdx
mov    -0x418(%rbp),%ecx
lea    0x900(%rip),%rsi
call   1050 <fprintf@plt>
jmp    11e7 <main+0x57>
mov    0x28cf(%rip),%rax
mov    (%rax),%edi
mov    -0x430(%rbp),%rsi
lea    -0x450(%rbp),%rdx
call   1060 <inet_pton@plt>
cmp    $0x0,%rax
jg     1757 <main+0x5c7>
mov    0x2899(%rip),%rax
mov    (%rax),%edi
mov    -0x430(%rbp),%rdx
mov    -0x418(%rbp),%ecx
lea    0x8f2(%rip),%rsi
call   1050 <fprintf@plt>
jmp    11e7 <main+0x57>
lea    -0x448(%rbp),%rdi
call   1080 <in6_bswap@plt>
lea    -0x450(%rbp),%rdi
call   1080 <in6_bswap@plt>
cmpl   $0x1,-0x8(%rbp)
jle    188c <main+0x6fc>
movl   $0x1,-0x414(%rbp)
mov    -0x414(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1887 <main+0x6f7>
mov    0x2847(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x414(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    -0x450(%rbp),%rdx
call   1060 <inet_pton@plt>
cmp    $0x0,%rax
jg     17c5 <main+0x635>
jmp    1873 <main+0x6e3>
lea    -0x458(%rbp),%rdi
call   1080 <in6_bswap@plt>
lea    -0x448(%rbp),%rdi
lea    -0x458(%rbp),%rsi
call   10b0 <a_le_b@plt>
cmp    $0x0,%rax
je     180b <main+0x67b>
lea    -0x458(%rbp),%rdi
lea    -0x450(%rbp),%rsi
call   10b0 <a_le_b@plt>
cmp    $0x0,%rax
jne    1845 <main+0x6b5>
lea    -0x450(%rbp),%rdi
lea    -0x458(%rbp),%rsi
call   10b0 <a_le_b@plt>
cmp    $0x0,%rax
je     186e <main+0x6de>
lea    -0x458(%rbp),%rdi
lea    -0x448(%rbp),%rsi
call   10b0 <a_le_b@plt>
cmp    $0x0,%rax
je     186e <main+0x6de>
mov    -0x438(%rbp),%rdx
mov    -0x10(%rbp),%rax
movslq -0x414(%rbp),%rcx
mov    (%rax,%rcx,8),%rcx
lea    -0x448(%rbp),%rdi
lea    -0x450(%rbp),%rsi
call   10a0 <convert_range@plt>
jmp    1873 <main+0x6e3>
mov    -0x414(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x414(%rbp)
jmp    1783 <main+0x5f3>
jmp    18aa <main+0x71a>
mov    -0x438(%rbp),%rdx
lea    -0x448(%rbp),%rdi
lea    -0x450(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%ecx
call   10a0 <convert_range@plt>
jmp    11e7 <main+0x57>
mov    -0x4(%rbp),%eax
add    $0x460,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x448,%rsp
mov    %rsi,0x18(%rsp)
mov    %edi,0x14(%rsp)
cmp    $0x2,%edi
jl     11c1 <main+0x31>
mov    0x18(%rsp),%rax
mov    0x8(%rax),%rax
cmpb   $0x2d,(%rax)
je     153e <main+0x3ae>
mov    0x2e20(%rip),%rax
mov    (%rax),%edx
lea    0x40(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x400,%esi
call   1040 <fgets@plt>
test   %rax,%rax
je     152a <main+0x39a>
mov    0x14(%rsp),%eax
mov    %rax,0x30(%rsp)
xor    %eax,%eax
mov    %rax,0x20(%rsp)
movabs $0x100500000200,%r15
lea    0x38(%rsp),%r12
movabs $0x100100000200,%r13
jmp    1246 <main+0xb6>
movabs $0x800000001,%rsi
bt     %rax,%rsi
mov    %rbp,%rsi
jae    12b0 <main+0x120>
mov    0x2dba(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    $0x400,%esi
call   1040 <fgets@plt>
test   %rax,%rax
je     152a <main+0x39a>
mov    %rbx,%rdi
call   1030 <strlen@plt>
test   %eax,%eax
je     1260 <main+0xd0>
cltq
cmpb   $0xa,-0x1(%rax,%rbx,1)
jne    1260 <main+0xd0>
movb   $0x0,0x3f(%rsp,%rax,1)
mov    0x20(%rsp),%rax
add    $0x1,%eax
mov    %rax,0x20(%rsp)
lea    0x43(%rsp),%rcx
lea    0x42(%rsp),%rdx
mov    %rbx,%rbp
nopw   0x0(%rax,%rax,1)
movzbl 0x0(%rbp),%eax
cmp    $0x2c,%rax
ja     129e <main+0x10e>
bt     %rax,%r15
jae    1210 <main+0x80>
add    $0x1,%rbp
add    $0x1,%rdx
add    $0x1,%rcx
jmp    1280 <main+0xf0>
mov    %rbp,%rsi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rdx,%r14
mov    %rcx,%rax
movzbl 0x1(%rsi),%edi
add    $0x1,%rsi
add    $0x1,%rdx
add    $0x1,%rcx
cmp    $0x2c,%rdi
ja     12b0 <main+0x120>
bt     %rdi,%r15
jb     12e0 <main+0x150>
test   %rdi,%rdi
jne    12b0 <main+0x120>
jmp    1227 <main+0x97>
nopl   0x0(%rax)
movb   $0x0,(%rsi)
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movzbl (%r14),%ecx
cmp    $0x2c,%rcx
ja     1330 <main+0x1a0>
bt     %rcx,%r15
jae    1310 <main+0x180>
add    $0x1,%r14
add    $0x1,%rax
jmp    12f0 <main+0x160>
nopw   0x0(%rax,%rax,1)
movabs $0x800000001,%rdx
bt     %rcx,%rdx
jb     1227 <main+0x97>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movzbl (%rax),%ecx
add    $0x1,%rax
cmp    $0x2c,%rcx
ja     1330 <main+0x1a0>
bt     %rcx,%r15
jb     134d <main+0x1bd>
test   %rcx,%rcx
jne    1330 <main+0x1a0>
jmp    1227 <main+0x97>
movb   $0x0,-0x1(%rax)
mov    (%rax),%cl
cmp    $0x22,%cl
jne    1370 <main+0x1e0>
nopl   0x0(%rax,%rax,1)
movb   $0x20,(%rax)
movzbl 0x1(%rax),%ecx
add    $0x1,%rax
cmp    $0x22,%cl
je     1360 <main+0x1d0>
mov    0x2c69(%rip),%rdx
cmp    $0x2c,%cl
ja     1399 <main+0x209>
nopl   0x0(%rax)
movzbl %cl,%ecx
bt     %rcx,%r13
jae    1399 <main+0x209>
movb   $0x20,(%rax)
movzbl 0x1(%rax),%ecx
add    $0x1,%rax
cmp    $0x2c,%cl
jbe    1380 <main+0x1f0>
cmpb   $0x20,-0x1(%rax)
lea    -0x1(%rax),%rcx
cmovne %rax,%rcx
mov    %rcx,0x28(%rsp)
mov    (%rdx),%edi
mov    %rbp,%rsi
lea    0x8(%rsp),%rdx
call   1060 <inet_pton@plt>
test   %rax,%rax
jle    14c5 <main+0x335>
mov    0x2c17(%rip),%rax
mov    (%rax),%edi
mov    %r14,%rsi
mov    %r12,%rbx
mov    %r12,%rdx
call   1060 <inet_pton@plt>
test   %rax,%rax
jle    14e7 <main+0x357>
lea    0x8(%rsp),%rbp
mov    %rbp,%rdi
call   1080 <in6_bswap@plt>
mov    %rbx,%rdi
call   1080 <in6_bswap@plt>
cmpl   $0x2,0x14(%rsp)
jl     150e <main+0x37e>
mov    $0x1,%ebp
jmp    143f <main+0x2af>
nopl   0x0(%rax)
mov    0x18(%rsp),%rax
mov    (%rax,%rbp,8),%rcx
lea    0x8(%rsp),%rdi
mov    %rbx,%rsi
mov    0x28(%rsp),%rdx
call   10a0 <convert_range@plt>
add    $0x1,%rbp
cmp    %rbp,0x30(%rsp)
lea    0x40(%rsp),%rbx
je     1227 <main+0x97>
mov    0x2b9a(%rip),%rax
mov    (%rax),%edi
mov    0x18(%rsp),%rax
mov    (%rax,%rbp,8),%rsi
mov    %r12,%rbx
mov    %r12,%rdx
call   1060 <inet_pton@plt>
test   %rax,%rax
jle    142b <main+0x29b>
lea    0x10(%rsp),%r14
mov    %r14,%rdi
call   1080 <in6_bswap@plt>
lea    0x8(%rsp),%rdi
mov    %r14,%rsi
call   10b0 <a_le_b@plt>
test   %rax,%rax
je     1496 <main+0x306>
lea    0x10(%rsp),%rdi
mov    %rbx,%rsi
call   10b0 <a_le_b@plt>
test   %rax,%rax
jne    1410 <main+0x280>
mov    %rbx,%rdi
lea    0x10(%rsp),%rsi
call   10b0 <a_le_b@plt>
test   %rax,%rax
je     142b <main+0x29b>
lea    0x10(%rsp),%rdi
lea    0x8(%rsp),%rsi
call   10b0 <a_le_b@plt>
test   %rax,%rax
jne    1410 <main+0x280>
jmp    142b <main+0x29b>
mov    0x2b04(%rip),%rax
mov    (%rax),%edi
lea    0xb2b(%rip),%rsi
mov    %rbp,%rdx
mov    0x20(%rsp),%rcx
call   1050 <fprintf@plt>
jmp    1227 <main+0x97>
mov    0x2ae2(%rip),%rax
mov    (%rax),%edi
lea    0xb48(%rip),%rsi
mov    %r14,%rdx
mov    0x20(%rsp),%rcx
call   1050 <fprintf@plt>
lea    0x40(%rsp),%rbx
jmp    1227 <main+0x97>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    0x28(%rsp),%rdx
xor    %ecx,%ecx
call   10a0 <convert_range@plt>
lea    0x40(%rsp),%rbx
jmp    1227 <main+0x97>
xor    %eax,%eax
add    $0x448,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x18(%rsp),%rax
mov    (%rax),%rdi
call   1070 <usage@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
%struct.in6_addr = type { i32 }
@stdin = global i32 0
@AF_INET6 = global i32 0
@stderr = global i32 0
@.str = [63 x i8] c"Failed to parse source address <%s> at line %d, skipping line\0A\00"
@.str.1 = [68 x i8] c"Failed to parse destination address <%s> at line %d, skipping line\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [1024 x i8]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca %struct.in6_addr
%15 = alloca %struct.in6_addr
%16 = alloca %struct.in6_addr
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%17 = load i32, i32* %4
%18 = icmp sgt i32 %17, 1
br i1 %18, label %19, label %32
19: ; preds = %2
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 45
br i1 %25, label %26, label %32
26: ; preds = %19
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 0
%29 = load i8*, i8** %28
%30 = call i32 @usage(i8* %29)
%31 = call i32 @exit(i32 1)
unreachable
32: ; preds = %19, %2
store i32 0, i32* %8
br label %33
33: ; preds = %324, %270, %260, %213, %174, %134, %95, %32
%34 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%35 = load i32, i32* @stdin
%36 = call i32* @fgets(i8* %34, i32 1024, i32 %35)
%37 = icmp ne i32* %36, null
br i1 %37, label %38, label %325
38: ; preds = %33
%39 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%40 = call i32 @strlen(i8* %39)
store i32 %40, i32* %7
%41 = load i32, i32* %7
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %56
43: ; preds = %38
%44 = load i32, i32* %7
%45 = sub nsw i32 %44, 1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 %46
%48 = load i8, i8* %47
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 10
br i1 %50, label %51, label %56
51: ; preds = %43
%52 = load i32, i32* %7
%53 = add nsw i32 %52, -1
store i32 %53, i32* %7
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 %54
store i8 0, i8* %55
br label %56
56: ; preds = %51, %43, %38
%57 = load i32, i32* %8
%58 = add nsw i32 %57, 1
store i32 %58, i32* %8
%59 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
store i8* %59, i8** %9
br label %60
60: ; preds = %83, %56
%61 = load i8*, i8** %9
%62 = load i8, i8* %61
%63 = sext i8 %62 to i32
%64 = icmp eq i32 %63, 32
br i1 %64, label %80, label %65
65: ; preds = %60
%66 = load i8*, i8** %9
%67 = load i8, i8* %66
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %68, 9
br i1 %69, label %80, label %70
70: ; preds = %65
%71 = load i8*, i8** %9
%72 = load i8, i8* %71
%73 = sext i8 %72 to i32
%74 = icmp eq i32 %73, 44
br i1 %74, label %80, label %75
75: ; preds = %70
%76 = load i8*, i8** %9
%77 = load i8, i8* %76
%78 = sext i8 %77 to i32
%79 = icmp eq i32 %78, 34
br label %80
80: ; preds = %75, %70, %65, %60
%81 = phi i1 [ true, %70 ], [ true, %65 ], [ true, %60 ], [ %79, %75 ]
br i1 %81, label %82, label %86
82: ; preds = %80
br label %83
83: ; preds = %82
%84 = load i8*, i8** %9
%85 = getelementptr inbounds i8, i8* %84, i32 1
store i8* %85, i8** %9
br label %60
86: ; preds = %80
%87 = load i8*, i8** %9
%88 = load i8, i8* %87
%89 = icmp ne i8 %88, 0
br i1 %89, label %90, label %95
90: ; preds = %86
%91 = load i8*, i8** %9
%92 = load i8, i8* %91
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %93, 35
br i1 %94, label %95, label %96
95: ; preds = %90, %86
br label %33
96: ; preds = %90
%97 = load i8*, i8** %9
%98 = getelementptr inbounds i8, i8* %97, i64 1
store i8* %98, i8** %10
br label %99
99: ; preds = %127, %96
%100 = load i8*, i8** %10
%101 = load i8, i8* %100
%102 = sext i8 %101 to i32
%103 = icmp ne i32 %102, 32
br i1 %103, label %104, label %124
104: ; preds = %99
%105 = load i8*, i8** %10
%106 = load i8, i8* %105
%107 = sext i8 %106 to i32
%108 = icmp ne i32 %107, 9
br i1 %108, label %109, label %124
109: ; preds = %104
%110 = load i8*, i8** %10
%111 = load i8, i8* %110
%112 = sext i8 %111 to i32
%113 = icmp ne i32 %112, 44
br i1 %113, label %114, label %124
114: ; preds = %109
%115 = load i8*, i8** %10
%116 = load i8, i8* %115
%117 = sext i8 %116 to i32
%118 = icmp ne i32 %117, 34
br i1 %118, label %119, label %124
119: ; preds = %114
%120 = load i8*, i8** %10
%121 = load i8, i8* %120
%122 = sext i8 %121 to i32
%123 = icmp ne i32 %122, 0
br label %124
124: ; preds = %119, %114, %109, %104, %99
%125 = phi i1 [ false, %114 ], [ false, %109 ], [ false, %104 ], [ false, %99 ], [ %123, %119 ]
br i1 %125, label %126, label %130
126: ; preds = %124
br label %127
127: ; preds = %126
%128 = load i8*, i8** %10
%129 = getelementptr inbounds i8, i8* %128, i32 1
store i8* %129, i8** %10
br label %99
130: ; preds = %124
%131 = load i8*, i8** %10
%132 = load i8, i8* %131
%133 = icmp ne i8 %132, 0
br i1 %133, label %135, label %134
134: ; preds = %130
br label %33
135: ; preds = %130
%136 = load i8*, i8** %10
%137 = getelementptr inbounds i8, i8* %136, i32 1
store i8* %137, i8** %10
store i8 0, i8* %136
%138 = load i8*, i8** %10
store i8* %138, i8** %11
br label %139
139: ; preds = %162, %135
%140 = load i8*, i8** %11
%141 = load i8, i8* %140
%142 = sext i8 %141 to i32
%143 = icmp eq i32 %142, 32
br i1 %143, label %159, label %144
144: ; preds = %139
%145 = load i8*, i8** %11
%146 = load i8, i8* %145
%147 = sext i8 %146 to i32
%148 = icmp eq i32 %147, 9
br i1 %148, label %159, label %149
149: ; preds = %144
%150 = load i8*, i8** %11
%151 = load i8, i8* %150
%152 = sext i8 %151 to i32
%153 = icmp eq i32 %152, 44
br i1 %153, label %159, label %154
154: ; preds = %149
%155 = load i8*, i8** %11
%156 = load i8, i8* %155
%157 = sext i8 %156 to i32
%158 = icmp eq i32 %157, 34
br label %159
159: ; preds = %154, %149, %144, %139
%160 = phi i1 [ true, %149 ], [ true, %144 ], [ true, %139 ], [ %158, %154 ]
br i1 %160, label %161, label %165
161: ; preds = %159
br label %162
162: ; preds = %161
%163 = load i8*, i8** %11
%164 = getelementptr inbounds i8, i8* %163, i32 1
store i8* %164, i8** %11
br label %139
165: ; preds = %159
%166 = load i8*, i8** %11
%167 = load i8, i8* %166
%168 = icmp ne i8 %167, 0
br i1 %168, label %169, label %174
169: ; preds = %165
%170 = load i8*, i8** %11
%171 = load i8, i8* %170
%172 = sext i8 %171 to i32
%173 = icmp eq i32 %172, 35
br i1 %173, label %174, label %175
174: ; preds = %169, %165
br label %33
175: ; preds = %169
%176 = load i8*, i8** %11
%177 = getelementptr inbounds i8, i8* %176, i64 1
store i8* %177, i8** %12
br label %178
178: ; preds = %206, %175
%179 = load i8*, i8** %12
%180 = load i8, i8* %179
%181 = sext i8 %180 to i32
%182 = icmp ne i32 %181, 32
br i1 %182, label %183, label %203
183: ; preds = %178
%184 = load i8*, i8** %12
%185 = load i8, i8* %184
%186 = sext i8 %185 to i32
%187 = icmp ne i32 %186, 9
br i1 %187, label %188, label %203
188: ; preds = %183
%189 = load i8*, i8** %12
%190 = load i8, i8* %189
%191 = sext i8 %190 to i32
%192 = icmp ne i32 %191, 44
br i1 %192, label %193, label %203
193: ; preds = %188
%194 = load i8*, i8** %12
%195 = load i8, i8* %194
%196 = sext i8 %195 to i32
%197 = icmp ne i32 %196, 34
br i1 %197, label %198, label %203
198: ; preds = %193
%199 = load i8*, i8** %12
%200 = load i8, i8* %199
%201 = sext i8 %200 to i32
%202 = icmp ne i32 %201, 0
br label %203
203: ; preds = %198, %193, %188, %183, %178
%204 = phi i1 [ false, %193 ], [ false, %188 ], [ false, %183 ], [ false, %178 ], [ %202, %198 ]
br i1 %204, label %205, label %209
205: ; preds = %203
br label %206
206: ; preds = %205
%207 = load i8*, i8** %12
%208 = getelementptr inbounds i8, i8* %207, i32 1
store i8* %208, i8** %12
br label %178
209: ; preds = %203
%210 = load i8*, i8** %12
%211 = load i8, i8* %210
%212 = icmp ne i8 %211, 0
br i1 %212, label %214, label %213
213: ; preds = %209
br label %33
214: ; preds = %209
%215 = load i8*, i8** %12
%216 = getelementptr inbounds i8, i8* %215, i32 1
store i8* %216, i8** %12
store i8 0, i8* %215
br label %217
217: ; preds = %222, %214
%218 = load i8*, i8** %12
%219 = load i8, i8* %218
%220 = sext i8 %219 to i32
%221 = icmp eq i32 %220, 34
br i1 %221, label %222, label %225
222: ; preds = %217
%223 = load i8*, i8** %12
%224 = getelementptr inbounds i8, i8* %223, i32 1
store i8* %224, i8** %12
store i8 32, i8* %223
br label %217
225: ; preds = %217
br label %226
226: ; preds = %243, %225
%227 = load i8*, i8** %12
%228 = load i8, i8* %227
%229 = sext i8 %228 to i32
%230 = icmp eq i32 %229, 44
br i1 %230, label %241, label %231
231: ; preds = %226
%232 = load i8*, i8** %12
%233 = load i8, i8* %232
%234 = sext i8 %233 to i32
%235 = icmp eq i32 %234, 32
br i1 %235, label %241, label %236
236: ; preds = %231
%237 = load i8*, i8** %12
%238 = load i8, i8* %237
%239 = sext i8 %238 to i32
%240 = icmp eq i32 %239, 9
br label %241
241: ; preds = %236, %231, %226
%242 = phi i1 [ true, %231 ], [ true, %226 ], [ %240, %236 ]
br i1 %242, label %243, label %246
243: ; preds = %241
%244 = load i8*, i8** %12
%245 = getelementptr inbounds i8, i8* %244, i32 1
store i8* %245, i8** %12
store i8 32, i8* %244
br label %226
246: ; preds = %241
%247 = load i8*, i8** %12
%248 = getelementptr inbounds i8, i8* %247, i64 -1
%249 = load i8, i8* %248
%250 = sext i8 %249 to i32
%251 = icmp eq i32 %250, 32
br i1 %251, label %252, label %255
252: ; preds = %246
%253 = load i8*, i8** %12
%254 = getelementptr inbounds i8, i8* %253, i32 -1
store i8* %254, i8** %12
br label %255
255: ; preds = %252, %246
%256 = load i32, i32* @AF_INET6
%257 = load i8*, i8** %9
%258 = call i64 @inet_pton(i32 %256, i8* %257, %struct.in6_addr* %14)
%259 = icmp sle i64 %258, 0
br i1 %259, label %260, label %265
260: ; preds = %255
%261 = load i32, i32* @stderr
%262 = load i8*, i8** %9
%263 = load i32, i32* %8
%264 = call i32 @fprintf(i32 %261, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0), i8* %262, i32 %263)
br label %33
265: ; preds = %255
%266 = load i32, i32* @AF_INET6
%267 = load i8*, i8** %11
%268 = call i64 @inet_pton(i32 %266, i8* %267, %struct.in6_addr* %15)
%269 = icmp sle i64 %268, 0
br i1 %269, label %270, label %275
270: ; preds = %265
%271 = load i32, i32* @stderr
%272 = load i8*, i8** %11
%273 = load i32, i32* %8
%274 = call i32 @fprintf(i32 %271, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.1, i64 0, i64 0), i8* %272, i32 %273)
br label %33
275: ; preds = %265
%276 = call i32 @in6_bswap(%struct.in6_addr* %14)
%277 = call i32 @in6_bswap(%struct.in6_addr* %15)
%278 = load i32, i32* %4
%279 = icmp sgt i32 %278, 1
br i1 %279, label %280, label %321
280: ; preds = %275
store i32 1, i32* %7
br label %281
281: ; preds = %317, %280
%282 = load i32, i32* %7
%283 = load i32, i32* %4
%284 = icmp slt i32 %282, %283
br i1 %284, label %285, label %320
285: ; preds = %281
%286 = load i32, i32* @AF_INET6
%287 = load i8**, i8*** %5
%288 = load i32, i32* %7
%289 = sext i32 %288 to i64
%290 = getelementptr inbounds i8*, i8** %287, i64 %289
%291 = load i8*, i8** %290
%292 = call i64 @inet_pton(i32 %286, i8* %291, %struct.in6_addr* %15)
%293 = icmp sle i64 %292, 0
br i1 %293, label %294, label %295
294: ; preds = %285
br label %317
295: ; preds = %285
%296 = call i32 @in6_bswap(%struct.in6_addr* %16)
%297 = call i64 @a_le_b(%struct.in6_addr* %14, %struct.in6_addr* %16)
%298 = icmp ne i64 %297, 0
br i1 %298, label %299, label %302
299: ; preds = %295
%300 = call i64 @a_le_b(%struct.in6_addr* %16, %struct.in6_addr* %15)
%301 = icmp ne i64 %300, 0
br i1 %301, label %308, label %302
302: ; preds = %299, %295
%303 = call i64 @a_le_b(%struct.in6_addr* %15, %struct.in6_addr* %16)
%304 = icmp ne i64 %303, 0
br i1 %304, label %305, label %316
305: ; preds = %302
%306 = call i64 @a_le_b(%struct.in6_addr* %16, %struct.in6_addr* %14)
%307 = icmp ne i64 %306, 0
br i1 %307, label %308, label %316
308: ; preds = %305, %299
%309 = load i8*, i8** %12
%310 = load i8**, i8*** %5
%311 = load i32, i32* %7
%312 = sext i32 %311 to i64
%313 = getelementptr inbounds i8*, i8** %310, i64 %312
%314 = load i8*, i8** %313
%315 = call i32 @convert_range(%struct.in6_addr* %14, %struct.in6_addr* %15, i8* %309, i8* %314)
br label %316
316: ; preds = %308, %305, %302
br label %317
317: ; preds = %316, %294
%318 = load i32, i32* %7
%319 = add nsw i32 %318, 1
store i32 %319, i32* %7
br label %281
320: ; preds = %281
br label %324
321: ; preds = %275
%322 = load i8*, i8** %12
%323 = call i32 @convert_range(%struct.in6_addr* %14, %struct.in6_addr* %15, i8* %322, i8* null)
br label %324
324: ; preds = %321, %320
br label %33
325: ; preds = %33
%326 = load i32, i32* %3
ret i32 %326
}

LLVM IR (-O2):
%struct.in6_addr = type { i32 }
@stdin = global i32 0
@AF_INET6 = global i32 0
@stderr = global i32 0
@.str = [63 x i8] c"Failed to parse source address <%s> at line %d, skipping line\0A\00"
@.str.1 = [68 x i8] c"Failed to parse destination address <%s> at line %d, skipping line\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [1024 x i8]
%4 = alloca %struct.in6_addr
%5 = alloca %struct.in6_addr
%6 = alloca %struct.in6_addr
%7 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%8 = bitcast %struct.in6_addr* %4 to i8*
%9 = bitcast %struct.in6_addr* %5 to i8*
%10 = bitcast %struct.in6_addr* %6 to i8*
%11 = icmp sgt i32 %0, 1
br i1 %11, label %12, label %21
12: ; preds = %2
%13 = getelementptr inbounds i8*, i8** %1, i64 1
%14 = load i8*, i8** %13
%15 = load i8, i8* %14
%16 = icmp eq i8 %15, 45
br i1 %16, label %17, label %21
17: ; preds = %12
%18 = load i8*, i8** %1
%19 = tail call i32 @usage(i8* %18)
%20 = tail call i32 @exit(i32 1)
unreachable
21: ; preds = %12, %2
%22 = load i32, i32* @stdin
%23 = call i32* @fgets(i8* %7, i32 1024, i32 %22)
%24 = icmp eq i32* %23, null
br i1 %24, label %130, label %25
25: ; preds = %21
%26 = zext i32 %0 to i64
br label %27
27: ; preds = %25, %45
%28 = phi i32 [ %39, %45 ], [ 0, %25 ]
%29 = call i32 @strlen(i8* %7)
%30 = icmp eq i32 %29, 0
br i1 %30, label %38, label %31
31: ; preds = %27
%32 = add nsw i32 %29, -1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 %33
%35 = load i8, i8* %34
%36 = icmp eq i8 %35, 10
br i1 %36, label %37, label %38
37: ; preds = %31
store i8 0, i8* %34
br label %38
38: ; preds = %37, %31, %27
%39 = add nuw nsw i32 %28, 1
br label %40
40: ; preds = %43, %38
%41 = phi i8* [ %7, %38 ], [ %44, %43 ]
%42 = load i8, i8* %41
switch i8 %42, label %49 [
i8 32, label %43
i8 9, label %43
i8 44, label %43
i8 34, label %43
i8 0, label %45
i8 35, label %45
]
43: ; preds = %40, %40, %40, %40
%44 = getelementptr inbounds i8, i8* %41, i64 1
br label %40
45: ; preds = %40, %40, %49, %54, %54, %59, %125, %128, %89, %96
%46 = load i32, i32* @stdin
%47 = call i32* @fgets(i8* %7, i32 1024, i32 %46)
%48 = icmp eq i32* %47, null
br i1 %48, label %130, label %27
49: ; preds = %40, %49
%50 = phi i8* [ %51, %49 ], [ %41, %40 ]
%51 = getelementptr inbounds i8, i8* %50, i64 1
%52 = load i8, i8* %51
switch i8 %52, label %49 [
i8 0, label %45
i8 9, label %53
i8 32, label %53
i8 34, label %53
i8 44, label %53
]
53: ; preds = %49, %49, %49, %49
store i8 0, i8* %51
br label %54
54: ; preds = %58, %53
%55 = phi i8* [ %51, %53 ], [ %56, %58 ]
%56 = getelementptr inbounds i8, i8* %55, i64 1
%57 = load i8, i8* %56
switch i8 %57, label %59 [
i8 32, label %58
i8 9, label %58
i8 44, label %58
i8 34, label %58
i8 0, label %45
i8 35, label %45
]
58: ; preds = %54, %54, %54, %54
br label %54
59: ; preds = %54, %59
%60 = phi i8* [ %61, %59 ], [ %56, %54 ]
%61 = getelementptr inbounds i8, i8* %60, i64 1
%62 = load i8, i8* %61
switch i8 %62, label %59 [
i8 0, label %45
i8 9, label %63
i8 32, label %63
i8 34, label %63
i8 44, label %63
]
63: ; preds = %59, %59, %59, %59
store i8 0, i8* %61
%64 = getelementptr inbounds i8, i8* %60, i64 2
%65 = load i8, i8* %64
%66 = icmp eq i8 %65, 34
br i1 %66, label %67, label %72
67: ; preds = %63, %67
%68 = phi i8* [ %69, %67 ], [ %64, %63 ]
store i8 32, i8* %68
%69 = getelementptr inbounds i8, i8* %68, i64 1
%70 = load i8, i8* %69
%71 = icmp eq i8 %70, 34
br i1 %71, label %67, label %72
72: ; preds = %67, %63
%73 = phi i8 [ %65, %63 ], [ %70, %67 ]
%74 = phi i8* [ %64, %63 ], [ %69, %67 ]
br label %75
75: ; preds = %72, %78
%76 = phi i8 [ %80, %78 ], [ %73, %72 ]
%77 = phi i8* [ %79, %78 ], [ %74, %72 ]
switch i8 %76, label %81 [
i8 44, label %78
i8 32, label %78
i8 9, label %78
]
78: ; preds = %75, %75, %75
%79 = getelementptr inbounds i8, i8* %77, i64 1
store i8 32, i8* %77
%80 = load i8, i8* %79
br label %75
81: ; preds = %75
%82 = getelementptr inbounds i8, i8* %77, i64 -1
%83 = load i8, i8* %82
%84 = icmp eq i8 %83, 32
%85 = select i1 %84, i8* %82, i8* %77
%86 = load i32, i32* @AF_INET6
%87 = call i64 @inet_pton(i32 %86, i8* %41, %struct.in6_addr* %4)
%88 = icmp slt i64 %87, 1
br i1 %88, label %89, label %92
89: ; preds = %81
%90 = load i32, i32* @stderr
%91 = call i32 @fprintf(i32 %90, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0), i8* %41, i32 %39)
br label %45
92: ; preds = %81
%93 = load i32, i32* @AF_INET6
%94 = call i64 @inet_pton(i32 %93, i8* %56, %struct.in6_addr* %5)
%95 = icmp slt i64 %94, 1
br i1 %95, label %96, label %99
96: ; preds = %92
%97 = load i32, i32* @stderr
%98 = call i32 @fprintf(i32 %97, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.1, i64 0, i64 0), i8* %56, i32 %39)
br label %45
99: ; preds = %92
%100 = call i32 @in6_bswap(%struct.in6_addr* %4)
%101 = call i32 @in6_bswap(%struct.in6_addr* %5)
br i1 %11, label %102, label %128
102: ; preds = %99, %125
%103 = phi i64 [ %126, %125 ], [ 1, %99 ]
%104 = load i32, i32* @AF_INET6
%105 = getelementptr inbounds i8*, i8** %1, i64 %103
%106 = load i8*, i8** %105
%107 = call i64 @inet_pton(i32 %104, i8* %106, %struct.in6_addr* %5)
%108 = icmp slt i64 %107, 1
br i1 %108, label %125, label %109
109: ; preds = %102
%110 = call i32 @in6_bswap(%struct.in6_addr* %6)
%111 = call i64 @a_le_b(%struct.in6_addr* %4, %struct.in6_addr* %6)
%112 = icmp eq i64 %111, 0
br i1 %112, label %116, label %113
113: ; preds = %109
%114 = call i64 @a_le_b(%struct.in6_addr* %6, %struct.in6_addr* %5)
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %122
116: ; preds = %113, %109
%117 = call i64 @a_le_b(%struct.in6_addr* %5, %struct.in6_addr* %6)
%118 = icmp eq i64 %117, 0
br i1 %118, label %125, label %119
119: ; preds = %116
%120 = call i64 @a_le_b(%struct.in6_addr* %6, %struct.in6_addr* %4)
%121 = icmp eq i64 %120, 0
br i1 %121, label %125, label %122
122: ; preds = %119, %113
%123 = load i8*, i8** %105
%124 = call i32 @convert_range(%struct.in6_addr* %4, %struct.in6_addr* %5, i8* %85, i8* %123)
br label %125
125: ; preds = %116, %119, %122, %102
%126 = add nuw nsw i64 %103, 1
%127 = icmp eq i64 %126, %26
br i1 %127, label %45, label %102
128: ; preds = %99
%129 = call i32 @convert_range(%struct.in6_addr* %4, %struct.in6_addr* %5, i8* %85, i8* null)
br label %45
130: ; preds = %45, %21
ret i32 0
}