#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 */
typedef int /*<<< orphan*/ value;

/* Variables and functions */
scalar_t__ hex2ccolor(char *, unsigned char *, unsigned char *, unsigned char *,
                      unsigned char *);
scalar_t__ hex2dcolor(char *, double *, double *, double *, double *);
int /*<<< orphan*/ printf(char *, ...);
char *qs_k2v(char *, char **, int);
int qs_parse(char *, char **, int);
int /*<<< orphan*/ *qs_scanvalue(char *, char *, char *, int);
int main(int argc, char *argv[]) {
  int i;
  char *kvpairs[256];
  char value[256];
  char *value_ptr;
  unsigned char r, g, b, a;
  double dr, dg, db, da;
  char getstring[] = "scheme://username:password@domain:port/"
                     "path?foo=bar&frob&baz=quux&color=09FA#anchor";
  printf("Our GET string is %s\n\n", getstring);
  if (qs_scanvalue("foo", getstring, value, sizeof(value)) != NULL)
    printf("Key %s is set, and the value is: \"%s\"\n", "foo", value);
  else
    printf("Key %s is NOT set\n", "foo");
  if (qs_scanvalue("baz", getstring, value, sizeof(value)) != NULL)
    printf("Key %s is set, and the value is: \"%s\"\n", "baz", value);
  else
    printf("Key %s is NOT set\n", "baz");
  if (qs_scanvalue("frob", getstring, value, sizeof(value)) != NULL)
    printf("Key %s is set, and the value is: \"%s\"\n", "frob", value);
  else
    printf("Key %s is NOT set\n", "frob");
  if (qs_scanvalue("blah", getstring, value, sizeof(value)) != NULL)
    printf("Key %s is set, and the value is: \"%s\"\n", "blah", value);
  else
    printf("Key %s is NOT set\n", "blah");
  if (qs_scanvalue("color", getstring, value, sizeof(value)) != NULL) {
    printf("Key %s is set, and the value is: \"%s\"\n", "color", value);
    if (hex2ccolor(value, &r, &g, &b, &a) != 0 &&
        hex2dcolor(value, &dr, &dg, &db, &da) != 0) {
      printf("    \"%s\" successfully decoded as uchar  : r=%d, g=%d, b=%d, "
             "a=%d\n",
             "color", r, g, b, a);
      printf("    \"%s\" successfully decoded as double : r=%.2f, g=%.2f, "
             "b=%.2f, a=%.2f\n",
             "color", dr, dg, db, da);
    } else
      printf("    \"%s\" NOT successfully decoded\n", "color");
  } else
    printf("Key %s is NOT set\n", "color");
  printf("\n");
  i = qs_parse(getstring, kvpairs, 256);
  if ((value_ptr = qs_k2v("foo", kvpairs, i)) != NULL)
    printf("Key %s is set, and the value is: \"%s\"\n", "foo", value_ptr);
  else
    printf("Key %s is NOT set\n", "foo");
  if ((value_ptr = qs_k2v("baz", kvpairs, i)) != NULL)
    printf("Key %s is set, and the value is: \"%s\"\n", "baz", value_ptr);
  else
    printf("Key %s is NOT set\n", "baz");
  if ((value_ptr = qs_k2v("frob", kvpairs, i)) != NULL)
    printf("Key %s is set, and the value is: \"%s\"\n", "frob", value_ptr);
  else
    printf("Key %s is NOT set\n", "frob");
  if ((value_ptr = qs_k2v("blah", kvpairs, i)) != NULL)
    printf("Key %s is set, and the value is: \"%s\"\n", "blah", value_ptr);
  else
    printf("Key %s is NOT set\n", "blah");
  if ((value_ptr = qs_k2v("color", kvpairs, i)) != NULL) {
    printf("Key %s is set, and the value is: \"%s\"\n", "color", value_ptr);
    if (hex2ccolor(value_ptr, &r, &g, &b, &a) != 0 &&
        hex2dcolor(value_ptr, &dr, &dg, &db, &da) != 0) {
      printf("    \"%s\" successfully decoded as uchar  : r=%d, g=%d, b=%d, "
             "a=%d\n",
             "color", r, g, b, a);
      printf("    \"%s\" successfully decoded as double : r=%.2f, g=%.2f, "
             "b=%.2f, a=%.2f\n",
             "color", dr, dg, db, da);
    } else
      printf("    \"%s\" NOT successfully decoded\n", "color");
  } else
    printf("Key %s is NOT set\n", "color");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x9b0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x9b0(%rbp),%rdi
lea    0xe69(%rip),%rsi
mov    $0x54,%edx
call   1050 <memcpy@plt>
lea    -0x9b0(%rbp),%rsi
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x9b0(%rbp),%rsi
lea    -0x920(%rbp),%rdx
lea    0xea0(%rip),%rdi
mov    $0x100,%ecx
call   1090 <qs_scanvalue@plt>
cmp    $0x0,%rax
je     1200 <main+0x90>
lea    -0x920(%rbp),%rdx
lea    0xe82(%rip),%rdi
lea    0xe77(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1215 <main+0xa5>
lea    0xe8f(%rip),%rdi
lea    0xe5d(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x9b0(%rbp),%rsi
lea    -0x920(%rbp),%rdx
lea    0xe7f(%rip),%rdi
mov    $0x100,%ecx
call   1090 <qs_scanvalue@plt>
cmp    $0x0,%rax
je     125f <main+0xef>
lea    -0x920(%rbp),%rdx
lea    0xe23(%rip),%rdi
lea    0xe56(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1274 <main+0x104>
lea    0xe30(%rip),%rdi
lea    0xe3c(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x9b0(%rbp),%rsi
lea    -0x920(%rbp),%rdx
lea    0xe24(%rip),%rdi
mov    $0x100,%ecx
call   1090 <qs_scanvalue@plt>
cmp    $0x0,%rax
je     12be <main+0x14e>
lea    -0x920(%rbp),%rdx
lea    0xdc4(%rip),%rdi
lea    0xdfb(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12d3 <main+0x163>
lea    0xdd1(%rip),%rdi
lea    0xde1(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x9b0(%rbp),%rsi
lea    -0x920(%rbp),%rdx
lea    0xdca(%rip),%rdi
mov    $0x100,%ecx
call   1090 <qs_scanvalue@plt>
cmp    $0x0,%rax
je     131d <main+0x1ad>
lea    -0x920(%rbp),%rdx
lea    0xd65(%rip),%rdi
lea    0xda1(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1332 <main+0x1c2>
lea    0xd72(%rip),%rdi
lea    0xd87(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x9b0(%rbp),%rsi
lea    -0x920(%rbp),%rdx
lea    0xd70(%rip),%rdi
mov    $0x100,%ecx
call   1090 <qs_scanvalue@plt>
cmp    $0x0,%rax
je     1462 <main+0x2f2>
lea    -0x920(%rbp),%rdx
lea    0xd06(%rip),%rdi
lea    0xd47(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x920(%rbp),%rdi
lea    -0x929(%rbp),%rsi
lea    -0x92a(%rbp),%rdx
lea    -0x92b(%rbp),%rcx
lea    -0x92c(%rbp),%r8
call   1060 <hex2ccolor@plt>
cmp    $0x0,%rax
je     1448 <main+0x2d8>
lea    -0x920(%rbp),%rdi
lea    -0x938(%rbp),%rsi
lea    -0x940(%rbp),%rdx
lea    -0x948(%rbp),%rcx
lea    -0x950(%rbp),%r8
call   1080 <hex2dcolor@plt>
cmp    $0x0,%rax
je     1448 <main+0x2d8>
movzbl -0x929(%rbp),%edx
movzbl -0x92a(%rbp),%ecx
movzbl -0x92b(%rbp),%r8d
ff
movzbl -0x92c(%rbp),%r9d
ff
lea    0xcbd(%rip),%rdi
lea    0xcb0(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x938(%rbp),%xmm0
ff
movsd  -0x940(%rbp),%xmm1
ff
movsd  -0x948(%rbp),%xmm2
ff
movsd  -0x950(%rbp),%xmm3
ff
lea    0xcca(%rip),%rdi
lea    0xc7b(%rip),%rsi
mov    $0x4,%al
call   1040 <printf@plt>
jmp    145d <main+0x2ed>
lea    0xcfa(%rip),%rdi
lea    0xc61(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1477 <main+0x307>
lea    0xc2d(%rip),%rdi
lea    0xc47(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xbeb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x9b0(%rbp),%rdi
lea    -0x820(%rbp),%rsi
mov    $0x100,%edx
call   1070 <qs_parse@plt>
mov    %eax,-0x14(%rbp)
lea    -0x820(%rbp),%rsi
mov    -0x14(%rbp),%edx
lea    0xbba(%rip),%rdi
call   1030 <qs_k2v@plt>
mov    %rax,-0x928(%rbp)
cmp    $0x0,%rax
je     14e8 <main+0x378>
mov    -0x928(%rbp),%rdx
lea    0xb9a(%rip),%rdi
lea    0xb8f(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14fd <main+0x38d>
lea    0xba7(%rip),%rdi
lea    0xb75(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x820(%rbp),%rsi
mov    -0x14(%rbp),%edx
lea    0xb9b(%rip),%rdi
call   1030 <qs_k2v@plt>
mov    %rax,-0x928(%rbp)
cmp    $0x0,%rax
je     1545 <main+0x3d5>
mov    -0x928(%rbp),%rdx
lea    0xb3d(%rip),%rdi
lea    0xb70(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    155a <main+0x3ea>
lea    0xb4a(%rip),%rdi
lea    0xb56(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x820(%rbp),%rsi
mov    -0x14(%rbp),%edx
lea    0xb42(%rip),%rdi
call   1030 <qs_k2v@plt>
mov    %rax,-0x928(%rbp)
cmp    $0x0,%rax
je     15a2 <main+0x432>
mov    -0x928(%rbp),%rdx
lea    0xae0(%rip),%rdi
lea    0xb17(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    15b7 <main+0x447>
lea    0xaed(%rip),%rdi
lea    0xafd(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x820(%rbp),%rsi
mov    -0x14(%rbp),%edx
lea    0xaea(%rip),%rdi
call   1030 <qs_k2v@plt>
mov    %rax,-0x928(%rbp)
cmp    $0x0,%rax
je     15ff <main+0x48f>
mov    -0x928(%rbp),%rdx
lea    0xa83(%rip),%rdi
lea    0xabf(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1614 <main+0x4a4>
lea    0xa90(%rip),%rdi
lea    0xaa5(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x820(%rbp),%rsi
mov    -0x14(%rbp),%edx
lea    0xa92(%rip),%rdi
call   1030 <qs_k2v@plt>
mov    %rax,-0x928(%rbp)
cmp    $0x0,%rax
je     1742 <main+0x5d2>
mov    -0x928(%rbp),%rdx
lea    0xa26(%rip),%rdi
lea    0xa67(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x928(%rbp),%rdi
lea    -0x929(%rbp),%rsi
lea    -0x92a(%rbp),%rdx
lea    -0x92b(%rbp),%rcx
lea    -0x92c(%rbp),%r8
call   1060 <hex2ccolor@plt>
cmp    $0x0,%rax
je     1728 <main+0x5b8>
mov    -0x928(%rbp),%rdi
lea    -0x938(%rbp),%rsi
lea    -0x940(%rbp),%rdx
lea    -0x948(%rbp),%rcx
lea    -0x950(%rbp),%r8
call   1080 <hex2dcolor@plt>
cmp    $0x0,%rax
je     1728 <main+0x5b8>
movzbl -0x929(%rbp),%edx
movzbl -0x92a(%rbp),%ecx
movzbl -0x92b(%rbp),%r8d
ff
movzbl -0x92c(%rbp),%r9d
ff
lea    0x9dd(%rip),%rdi
lea    0x9d0(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x938(%rbp),%xmm0
ff
movsd  -0x940(%rbp),%xmm1
ff
movsd  -0x948(%rbp),%xmm2
ff
movsd  -0x950(%rbp),%xmm3
ff
lea    0x9ea(%rip),%rdi
lea    0x99b(%rip),%rsi
mov    $0x4,%al
call   1040 <printf@plt>
jmp    173d <main+0x5cd>
lea    0xa1a(%rip),%rdi
lea    0x981(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1757 <main+0x5e7>
lea    0x94d(%rip),%rdi
lea    0x967(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x9b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x998,%rsp
movaps 0xec0(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xea4(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xe88(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xe6c(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xe50(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movl   $0x726f68,0x80(%rsp)
lea    0xe8d(%rip),%rdi
lea    0x30(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe8e(%rip),%rdi
lea    0x90(%rsp),%rdx
mov    %rbx,%rsi
mov    $0x100,%ecx
call   1090 <qs_scanvalue@plt>
test   %rax,%rax
je     1216 <main+0xa6>
lea    0xe71(%rip),%rdi
lea    0xe66(%rip),%rsi
lea    0x90(%rsp),%rdx
xor    %eax,%eax
call   1050 <printf@plt>
jmp    122b <main+0xbb>
lea    0xe79(%rip),%rdi
lea    0xe47(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe77(%rip),%rdi
lea    0x30(%rsp),%rsi
lea    0x90(%rsp),%rdx
mov    $0x100,%ecx
call   1090 <qs_scanvalue@plt>
test   %rax,%rax
je     126d <main+0xfd>
lea    0xe1a(%rip),%rdi
lea    0xe4d(%rip),%rsi
lea    0x90(%rsp),%rdx
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1282 <main+0x112>
lea    0xe22(%rip),%rdi
lea    0xe2e(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe24(%rip),%rdi
lea    0x30(%rsp),%rsi
lea    0x90(%rsp),%rdx
mov    $0x100,%ecx
call   1090 <qs_scanvalue@plt>
test   %rax,%rax
je     12c4 <main+0x154>
lea    0xdc3(%rip),%rdi
lea    0xdfa(%rip),%rsi
lea    0x90(%rsp),%rdx
xor    %eax,%eax
call   1050 <printf@plt>
jmp    12d9 <main+0x169>
lea    0xdcb(%rip),%rdi
lea    0xddb(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdd2(%rip),%rdi
lea    0x30(%rsp),%rsi
lea    0x90(%rsp),%rdx
mov    $0x100,%ecx
call   1090 <qs_scanvalue@plt>
test   %rax,%rax
je     131b <main+0x1ab>
lea    0xd6c(%rip),%rdi
lea    0xda8(%rip),%rsi
lea    0x90(%rsp),%rdx
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1330 <main+0x1c0>
lea    0xd74(%rip),%rdi
lea    0xd89(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd80(%rip),%rdi
lea    0x30(%rsp),%rsi
lea    0x90(%rsp),%rdx
mov    $0x100,%ecx
call   1090 <qs_scanvalue@plt>
test   %rax,%rax
je     141b <main+0x2ab>
lea    0xd11(%rip),%rdi
lea    0xd52(%rip),%rsi
lea    0x90(%rsp),%rbx
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf(%rsp),%rsi
lea    0xe(%rsp),%rdx
lea    0xd(%rsp),%rcx
lea    0xc(%rsp),%r8
mov    %rbx,%rdi
call   1060 <hex2ccolor@plt>
test   %rax,%rax
je     1424 <main+0x2b4>
lea    0x90(%rsp),%rdi
lea    0x28(%rsp),%rsi
lea    0x20(%rsp),%rdx
lea    0x18(%rsp),%rcx
lea    0x10(%rsp),%r8
call   1080 <hex2dcolor@plt>
test   %rax,%rax
je     1424 <main+0x2b4>
movzbl 0xf(%rsp),%edx
movzbl 0xe(%rsp),%ecx
movzbl 0xd(%rsp),%r8d
movzbl 0xc(%rsp),%r9d
lea    0xcde(%rip),%rdi
lea    0xcd1(%rip),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
movsd  0x28(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
movsd  0x10(%rsp),%xmm3
lea    0xcf0(%rip),%rdi
mov    %rbx,%rsi
mov    $0x4,%al
call   1050 <printf@plt>
jmp    1439 <main+0x2c9>
lea    0xc74(%rip),%rdi
jmp    142b <main+0x2bb>
lea    0xd1e(%rip),%rdi
lea    0xc85(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x30(%rsp),%rdi
lea    0x190(%rsp),%rbx
mov    %rbx,%rsi
mov    $0x100,%edx
call   1070 <qs_parse@plt>
mov    %eax,%ebp
lea    0xc05(%rip),%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <qs_k2v@plt>
test   %rax,%rax
je     148f <main+0x31f>
lea    0xbf3(%rip),%rdi
lea    0xbe8(%rip),%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
jmp    14a4 <main+0x334>
lea    0xc00(%rip),%rdi
lea    0xbce(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xbfe(%rip),%rdi
lea    0x190(%rsp),%rsi
mov    %ebp,%edx
call   1040 <qs_k2v@plt>
test   %rax,%rax
je     14d9 <main+0x369>
lea    0xba9(%rip),%rdi
lea    0xbdc(%rip),%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
jmp    14ee <main+0x37e>
lea    0xbb6(%rip),%rdi
lea    0xbc2(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xbb8(%rip),%rdi
lea    0x190(%rsp),%rsi
mov    %ebp,%edx
call   1040 <qs_k2v@plt>
test   %rax,%rax
je     1523 <main+0x3b3>
lea    0xb5f(%rip),%rdi
lea    0xb96(%rip),%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1538 <main+0x3c8>
lea    0xb6c(%rip),%rdi
lea    0xb7c(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xb73(%rip),%rdi
lea    0x190(%rsp),%rsi
mov    %ebp,%edx
call   1040 <qs_k2v@plt>
test   %rax,%rax
je     156d <main+0x3fd>
lea    0xb15(%rip),%rdi
lea    0xb51(%rip),%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1582 <main+0x412>
lea    0xb22(%rip),%rdi
lea    0xb37(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xb2e(%rip),%rdi
lea    0x190(%rsp),%rsi
mov    %ebp,%edx
call   1040 <qs_k2v@plt>
test   %rax,%rax
je     165b <main+0x4eb>
mov    %rax,%rbx
lea    0xac4(%rip),%rdi
lea    0xb05(%rip),%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf(%rsp),%rsi
lea    0xe(%rsp),%rdx
lea    0xd(%rsp),%rcx
lea    0xc(%rsp),%r8
mov    %rbx,%rdi
call   1060 <hex2ccolor@plt>
test   %rax,%rax
je     1664 <main+0x4f4>
lea    0x28(%rsp),%rsi
lea    0x20(%rsp),%rdx
lea    0x18(%rsp),%rcx
lea    0x10(%rsp),%r8
mov    %rbx,%rdi
call   1080 <hex2dcolor@plt>
test   %rax,%rax
je     1664 <main+0x4f4>
movzbl 0xf(%rsp),%edx
movzbl 0xe(%rsp),%ecx
movzbl 0xd(%rsp),%r8d
movzbl 0xc(%rsp),%r9d
lea    0xa9e(%rip),%rdi
lea    0xa91(%rip),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
movsd  0x28(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
movsd  0x10(%rsp),%xmm3
lea    0xab0(%rip),%rdi
mov    %rbx,%rsi
mov    $0x4,%al
call   1050 <printf@plt>
jmp    1679 <main+0x509>
lea    0xa34(%rip),%rdi
jmp    166b <main+0x4fb>
lea    0xade(%rip),%rdi
lea    0xa45(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x998,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.getstring = [84 x i8] c"scheme://username:password@domain:port/path?foo=bar&frob&baz=quux&color=09FA#anchor\00"
@.str = [23 x i8] c"Our GET string is %s\0A\0A\00"
@.str.1 = [4 x i8] c"foo\00"
@.str.2 = [39 x i8] c"Key %s is set, and the value is: \22%s\22\0A\00"
@.str.3 = [19 x i8] c"Key %s is NOT set\0A\00"
@.str.4 = [4 x i8] c"baz\00"
@.str.5 = [5 x i8] c"frob\00"
@.str.6 = [5 x i8] c"blah\00"
@.str.7 = [6 x i8] c"color\00"
@.str.8 = [66 x i8] c" \22%s\22 successfully decoded as uchar : r=%d, g=%d, b=%d, a=%d\0A\00"
@.str.9 = [74 x i8] c" \22%s\22 successfully decoded as double : r=%.2f, g=%.2f, b=%.2f, a=%.2f\0A\00"
@.str.10 = [35 x i8] c" \22%s\22 NOT successfully decoded\0A\00"
@.str.11 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [256 x i8*]
%8 = alloca [256 x i8]
%9 = alloca i8*
%10 = alloca i8
%11 = alloca i8
%12 = alloca i8
%13 = alloca i8
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca [84 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%19 = bitcast [84 x i8]* %18 to i8*
%20 = getelementptr inbounds [84 x i8], [84 x i8]* %18, i64 0, i64 0
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %20)
%22 = getelementptr inbounds [84 x i8], [84 x i8]* %18, i64 0, i64 0
%23 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%24 = call i32* @qs_scanvalue(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %22, i8* %23, i32 256)
%25 = icmp ne i32* %24, null
br i1 %25, label %26, label %29
26: ; preds = %2
%27 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %27)
br label %31
29: ; preds = %2
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %31
31: ; preds = %29, %26
%32 = getelementptr inbounds [84 x i8], [84 x i8]* %18, i64 0, i64 0
%33 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%34 = call i32* @qs_scanvalue(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %32, i8* %33, i32 256)
%35 = icmp ne i32* %34, null
br i1 %35, label %36, label %39
36: ; preds = %31
%37 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %37)
br label %41
39: ; preds = %31
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %41
41: ; preds = %39, %36
%42 = getelementptr inbounds [84 x i8], [84 x i8]* %18, i64 0, i64 0
%43 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%44 = call i32* @qs_scanvalue(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %42, i8* %43, i32 256)
%45 = icmp ne i32* %44, null
br i1 %45, label %46, label %49
46: ; preds = %41
%47 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %47)
br label %51
49: ; preds = %41
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %51
51: ; preds = %49, %46
%52 = getelementptr inbounds [84 x i8], [84 x i8]* %18, i64 0, i64 0
%53 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%54 = call i32* @qs_scanvalue(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %52, i8* %53, i32 256)
%55 = icmp ne i32* %54, null
br i1 %55, label %56, label %59
56: ; preds = %51
%57 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %57)
br label %61
59: ; preds = %51
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %61
61: ; preds = %59, %56
%62 = getelementptr inbounds [84 x i8], [84 x i8]* %18, i64 0, i64 0
%63 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%64 = call i32* @qs_scanvalue(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* %62, i8* %63, i32 256)
%65 = icmp ne i32* %64, null
br i1 %65, label %66, label %94
66: ; preds = %61
%67 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* %67)
%69 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%70 = call i64 @hex2ccolor(i8* %69, i8* %10, i8* %11, i8* %12, i8* %13)
%71 = icmp ne i64 %70, 0
br i1 %71, label %72, label %91
72: ; preds = %66
%73 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%74 = call i64 @hex2dcolor(i8* %73, double* %14, double* %15, double* %16, double* %17)
%75 = icmp ne i64 %74, 0
br i1 %75, label %76, label %91
76: ; preds = %72
%77 = load i8, i8* %10
%78 = zext i8 %77 to i32
%79 = load i8, i8* %11
%80 = zext i8 %79 to i32
%81 = load i8, i8* %12
%82 = zext i8 %81 to i32
%83 = load i8, i8* %13
%84 = zext i8 %83 to i32
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %78, i32 %80, i32 %82, i32 %84)
%86 = load double, double* %14
%87 = load double, double* %15
%88 = load double, double* %16
%89 = load double, double* %17
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), double %86, double %87, double %88, double %89)
br label %93
91: ; preds = %72, %66
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %93
93: ; preds = %91, %76
br label %96
94: ; preds = %61
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %96
96: ; preds = %94, %93
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%98 = getelementptr inbounds [84 x i8], [84 x i8]* %18, i64 0, i64 0
%99 = getelementptr inbounds [256 x i8*], [256 x i8*]* %7, i64 0, i64 0
%100 = call i32 @qs_parse(i8* %98, i8** %99, i32 256)
store i32 %100, i32* %6
%101 = getelementptr inbounds [256 x i8*], [256 x i8*]* %7, i64 0, i64 0
%102 = load i32, i32* %6
%103 = call i8* @qs_k2v(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8** %101, i32 %102)
store i8* %103, i8** %9
%104 = icmp ne i8* %103, null
br i1 %104, label %105, label %108
105: ; preds = %96
%106 = load i8*, i8** %9
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %106)
br label %110
108: ; preds = %96
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %110
110: ; preds = %108, %105
%111 = getelementptr inbounds [256 x i8*], [256 x i8*]* %7, i64 0, i64 0
%112 = load i32, i32* %6
%113 = call i8* @qs_k2v(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8** %111, i32 %112)
store i8* %113, i8** %9
%114 = icmp ne i8* %113, null
br i1 %114, label %115, label %118
115: ; preds = %110
%116 = load i8*, i8** %9
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %116)
br label %120
118: ; preds = %110
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %120
120: ; preds = %118, %115
%121 = getelementptr inbounds [256 x i8*], [256 x i8*]* %7, i64 0, i64 0
%122 = load i32, i32* %6
%123 = call i8* @qs_k2v(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8** %121, i32 %122)
store i8* %123, i8** %9
%124 = icmp ne i8* %123, null
br i1 %124, label %125, label %128
125: ; preds = %120
%126 = load i8*, i8** %9
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %126)
br label %130
128: ; preds = %120
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %130
130: ; preds = %128, %125
%131 = getelementptr inbounds [256 x i8*], [256 x i8*]* %7, i64 0, i64 0
%132 = load i32, i32* %6
%133 = call i8* @qs_k2v(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8** %131, i32 %132)
store i8* %133, i8** %9
%134 = icmp ne i8* %133, null
br i1 %134, label %135, label %138
135: ; preds = %130
%136 = load i8*, i8** %9
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %136)
br label %140
138: ; preds = %130
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %140
140: ; preds = %138, %135
%141 = getelementptr inbounds [256 x i8*], [256 x i8*]* %7, i64 0, i64 0
%142 = load i32, i32* %6
%143 = call i8* @qs_k2v(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8** %141, i32 %142)
store i8* %143, i8** %9
%144 = icmp ne i8* %143, null
br i1 %144, label %145, label %173
145: ; preds = %140
%146 = load i8*, i8** %9
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* %146)
%148 = load i8*, i8** %9
%149 = call i64 @hex2ccolor(i8* %148, i8* %10, i8* %11, i8* %12, i8* %13)
%150 = icmp ne i64 %149, 0
br i1 %150, label %151, label %170
151: ; preds = %145
%152 = load i8*, i8** %9
%153 = call i64 @hex2dcolor(i8* %152, double* %14, double* %15, double* %16, double* %17)
%154 = icmp ne i64 %153, 0
br i1 %154, label %155, label %170
155: ; preds = %151
%156 = load i8, i8* %10
%157 = zext i8 %156 to i32
%158 = load i8, i8* %11
%159 = zext i8 %158 to i32
%160 = load i8, i8* %12
%161 = zext i8 %160 to i32
%162 = load i8, i8* %13
%163 = zext i8 %162 to i32
%164 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %157, i32 %159, i32 %161, i32 %163)
%165 = load double, double* %14
%166 = load double, double* %15
%167 = load double, double* %16
%168 = load double, double* %17
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), double %165, double %166, double %167, double %168)
br label %172
170: ; preds = %151, %145
%171 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %172
172: ; preds = %170, %155
br label %175
173: ; preds = %140
%174 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %175
175: ; preds = %173, %172
ret i32 0
}

LLVM IR (-O2):
@__const.main.getstring = [84 x i8] c"scheme://username:password@domain:port/path?foo=bar&frob&baz=quux&color=09FA#anchor\00"
@.str = [23 x i8] c"Our GET string is %s\0A\0A\00"
@.str.1 = [4 x i8] c"foo\00"
@.str.2 = [39 x i8] c"Key %s is set, and the value is: \22%s\22\0A\00"
@.str.3 = [19 x i8] c"Key %s is NOT set\0A\00"
@.str.4 = [4 x i8] c"baz\00"
@.str.5 = [5 x i8] c"frob\00"
@.str.6 = [5 x i8] c"blah\00"
@.str.7 = [6 x i8] c"color\00"
@.str.8 = [66 x i8] c" \22%s\22 successfully decoded as uchar : r=%d, g=%d, b=%d, a=%d\0A\00"
@.str.9 = [74 x i8] c" \22%s\22 successfully decoded as double : r=%.2f, g=%.2f, b=%.2f, a=%.2f\0A\00"
@.str.10 = [35 x i8] c" \22%s\22 NOT successfully decoded\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [256 x i8*]
%4 = alloca [256 x i8]
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca [84 x i8]
%14 = bitcast [256 x i8*]* %3 to i8*
%15 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%16 = bitcast double* %9 to i8*
%17 = bitcast double* %10 to i8*
%18 = bitcast double* %11 to i8*
%19 = bitcast double* %12 to i8*
%20 = getelementptr inbounds [84 x i8], [84 x i8]* %13, i64 0, i64 0
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %20)
%22 = call i32* @qs_scanvalue(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %20, i8* %15, i32 256)
%23 = icmp eq i32* %22, null
br i1 %23, label %26, label %24
24: ; preds = %2
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %15)
br label %28
26: ; preds = %2
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %28
28: ; preds = %26, %24
%29 = call i32* @qs_scanvalue(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %20, i8* %15, i32 256)
%30 = icmp eq i32* %29, null
br i1 %30, label %33, label %31
31: ; preds = %28
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %15)
br label %35
33: ; preds = %28
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %35
35: ; preds = %33, %31
%36 = call i32* @qs_scanvalue(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %20, i8* %15, i32 256)
%37 = icmp eq i32* %36, null
br i1 %37, label %40, label %38
38: ; preds = %35
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %15)
br label %42
40: ; preds = %35
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %42
42: ; preds = %40, %38
%43 = call i32* @qs_scanvalue(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %20, i8* %15, i32 256)
%44 = icmp eq i32* %43, null
br i1 %44, label %47, label %45
45: ; preds = %42
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %15)
br label %49
47: ; preds = %42
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %49
49: ; preds = %47, %45
%50 = call i32* @qs_scanvalue(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* %20, i8* %15, i32 256)
%51 = icmp eq i32* %50, null
br i1 %51, label %76, label %52
52: ; preds = %49
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* %15)
%54 = call i64 @hex2ccolor(i8* %15, i8* %5, i8* %6, i8* %7, i8* %8)
%55 = icmp eq i64 %54, 0
br i1 %55, label %74, label %56
56: ; preds = %52
%57 = call i64 @hex2dcolor(i8* %15, double* %9, double* %10, double* %11, double* %12)
%58 = icmp eq i64 %57, 0
br i1 %58, label %74, label %59
59: ; preds = %56
%60 = load i8, i8* %5
%61 = zext i8 %60 to i32
%62 = load i8, i8* %6
%63 = zext i8 %62 to i32
%64 = load i8, i8* %7
%65 = zext i8 %64 to i32
%66 = load i8, i8* %8
%67 = zext i8 %66 to i32
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %61, i32 %63, i32 %65, i32 %67)
%69 = load double, double* %9
%70 = load double, double* %10
%71 = load double, double* %11
%72 = load double, double* %12
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), double %69, double %70, double %71, double %72)
br label %78
74: ; preds = %56, %52
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %78
76: ; preds = %49
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %78
78: ; preds = %59, %74, %76
%79 = call i32 @putchar(i32 10)
%80 = getelementptr inbounds [256 x i8*], [256 x i8*]* %3, i64 0, i64 0
%81 = call i32 @qs_parse(i8* %20, i8** %80, i32 256)
%82 = call i8* @qs_k2v(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8** %80, i32 %81)
%83 = icmp eq i8* %82, null
br i1 %83, label %86, label %84
84: ; preds = %78
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %82)
br label %88
86: ; preds = %78
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %88
88: ; preds = %86, %84
%89 = call i8* @qs_k2v(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8** %80, i32 %81)
%90 = icmp eq i8* %89, null
br i1 %90, label %93, label %91
91: ; preds = %88
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %89)
br label %95
93: ; preds = %88
%94 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %95
95: ; preds = %93, %91
%96 = call i8* @qs_k2v(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8** %80, i32 %81)
%97 = icmp eq i8* %96, null
br i1 %97, label %100, label %98
98: ; preds = %95
%99 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %96)
br label %102
100: ; preds = %95
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %102
102: ; preds = %100, %98
%103 = call i8* @qs_k2v(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8** %80, i32 %81)
%104 = icmp eq i8* %103, null
br i1 %104, label %107, label %105
105: ; preds = %102
%106 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %103)
br label %109
107: ; preds = %102
%108 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %109
109: ; preds = %107, %105
%110 = call i8* @qs_k2v(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8** %80, i32 %81)
%111 = icmp eq i8* %110, null
br i1 %111, label %136, label %112
112: ; preds = %109
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* %110)
%114 = call i64 @hex2ccolor(i8* %110, i8* %5, i8* %6, i8* %7, i8* %8)
%115 = icmp eq i64 %114, 0
br i1 %115, label %134, label %116
116: ; preds = %112
%117 = call i64 @hex2dcolor(i8* %110, double* %9, double* %10, double* %11, double* %12)
%118 = icmp eq i64 %117, 0
br i1 %118, label %134, label %119
119: ; preds = %116
%120 = load i8, i8* %5
%121 = zext i8 %120 to i32
%122 = load i8, i8* %6
%123 = zext i8 %122 to i32
%124 = load i8, i8* %7
%125 = zext i8 %124 to i32
%126 = load i8, i8* %8
%127 = zext i8 %126 to i32
%128 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %121, i32 %123, i32 %125, i32 %127)
%129 = load double, double* %9
%130 = load double, double* %10
%131 = load double, double* %11
%132 = load double, double* %12
%133 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), double %129, double %130, double %131, double %132)
br label %138
134: ; preds = %116, %112
%135 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %138
136: ; preds = %109
%137 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %138
138: ; preds = %119, %134, %136
ret i32 0
}