int version_cmp(char *a, char *b) {
  char *ap;
  char *bp;
  int r = 0;
  static char nil[1] = {'\0'};
  ap = strchr(a, (':')), bp = strchr(b, (':'));
  if (ap && bp) {
    do {
      char ap__c = *(ap);
      *(ap) = '\0';
      do {
        char bp__c = *(bp);
        *(bp) = '\0';
        r = version_subcmp(a, b);
        *(bp) = bp__c;
      } while (0);
      *(ap) = ap__c;
    } while (0);
  } else if (ap) {
    do {
      char ap__c = *(ap);
      *(ap) = '\0';
      r = version_subcmp(a, nil);
      *(ap) = ap__c;
    } while (0);
  } else if (bp) {
    do {
      char bp__c = *(bp);
      *(bp) = '\0';
      r = version_subcmp(nil, b);
      *(bp) = bp__c;
    } while (0);
  }
  a = ap ? (ap + 1) : a;
  b = bp ? (bp + 1) : b;
  if (r)
    return r;
  while (ap = strchr(a, ('.')), bp = strchr(b, ('.')), (ap || bp)) {
    if (ap && bp) {
      do {
        char ap__c = *(ap);
        *(ap) = '\0';
        do {
          char bp__c = *(bp);
          *(bp) = '\0';
          r = version_subcmp(a, b);
          *(bp) = bp__c;
        } while (0);
        *(ap) = ap__c;
      } while (0);
    } else if (ap) {
      do {
        char ap__c = *(ap);
        *(ap) = '\0';
        r = version_subcmp(a, nil);
        *(ap) = ap__c;
      } while (0);
    } else if (bp) {
      do {
        char bp__c = *(bp);
        *(bp) = '\0';
        r = version_subcmp(nil, b);
        *(bp) = bp__c;
      } while (0);
    }
    a = ap ? (ap + 1) : a;
    b = bp ? (bp + 1) : b;
    if (r)
      return r;
  }
  ap = strchr(a, ('\0')), bp = strchr(b, ('\0'));
  if (ap && bp) {
    do {
      char ap__c = *(ap);
      *(ap) = '\0';
      do {
        char bp__c = *(bp);
        *(bp) = '\0';
        r = version_subcmp(a, b);
        *(bp) = bp__c;
      } while (0);
      *(ap) = ap__c;
    } while (0);
  } else if (ap) {
    do {
      char ap__c = *(ap);
      *(ap) = '\0';
      r = version_subcmp(a, nil);
      *(ap) = ap__c;
    } while (0);
  } else if (bp) {
    do {
      char bp__c = *(bp);
      *(bp) = '\0';
      r = version_subcmp(nil, b);
      *(bp) = bp__c;
    } while (0);
  }
  a = ap ? (ap + 1) : a;
  b = bp ? (bp + 1) : b;
  if (r)
    return r;
  return 0;
}


x86 assembly (clang, -O0):
<version_cmp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x3a,%esi
call   1040 <strchr@plt>
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x3a,%esi
call   1040 <strchr@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     11bf <version_cmp+0x9f>
cmpq   $0x0,-0x28(%rbp)
je     11bf <version_cmp+0x9f>
jmp    1176 <version_cmp+0x56>
mov    -0x20(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x2d(%rbp)
mov    -0x20(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x28(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x2e(%rbp)
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1030 <version_subcmp@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x2e(%rbp),%cl
mov    -0x28(%rbp),%rax
mov    %cl,(%rax)
mov    -0x2d(%rbp),%cl
mov    -0x20(%rbp),%rax
mov    %cl,(%rax)
jmp    124f <version_cmp+0x12f>
cmpq   $0x0,-0x20(%rbp)
je     1202 <version_cmp+0xe2>
jmp    11cf <version_cmp+0xaf>
mov    -0x20(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x2f(%rbp)
mov    -0x20(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
lea    0x2e47(%rip),%rsi
mov    $0x0,%al
call   1030 <version_subcmp@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x2f(%rbp),%cl
mov    -0x20(%rbp),%rax
mov    %cl,(%rax)
jmp    124a <version_cmp+0x12a>
cmpq   $0x0,-0x28(%rbp)
je     1245 <version_cmp+0x125>
jmp    1212 <version_cmp+0xf2>
mov    -0x28(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x30(%rbp)
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x18(%rbp),%rsi
lea    0x2e04(%rip),%rdi
mov    $0x0,%al
call   1030 <version_subcmp@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x30(%rbp),%cl
mov    -0x28(%rbp),%rax
mov    %cl,(%rax)
jmp    1245 <version_cmp+0x125>
jmp    124a <version_cmp+0x12a>
jmp    124f <version_cmp+0x12f>
cmpq   $0x0,-0x20(%rbp)
je     126b <version_cmp+0x14b>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    1273 <version_cmp+0x153>
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     1297 <version_cmp+0x177>
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    129f <version_cmp+0x17f>
mov    -0x18(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x18(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     12bc <version_cmp+0x19c>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    15fc <version_cmp+0x4dc>
jmp    12c1 <version_cmp+0x1a1>
mov    -0x10(%rbp),%rdi
mov    $0x2e,%esi
call   1040 <strchr@plt>
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x2e,%esi
call   1040 <strchr@plt>
mov    %rax,-0x28(%rbp)
mov    $0x1,%al
cmpq   $0x0,-0x20(%rbp)
mov    %al,-0x49(%rbp)
jne    1300 <version_cmp+0x1e0>
cmpq   $0x0,-0x28(%rbp)
setne  %al
mov    %al,-0x49(%rbp)
mov    -0x49(%rbp),%al
test   $0x1,%al
jne    1310 <version_cmp+0x1f0>
jmp    1476 <version_cmp+0x356>
cmpq   $0x0,-0x20(%rbp)
je     1374 <version_cmp+0x254>
cmpq   $0x0,-0x28(%rbp)
je     1374 <version_cmp+0x254>
jmp    132b <version_cmp+0x20b>
mov    -0x20(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x31(%rbp)
mov    -0x20(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x28(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x32(%rbp)
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1030 <version_subcmp@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x32(%rbp),%cl
mov    -0x28(%rbp),%rax
mov    %cl,(%rax)
mov    -0x31(%rbp),%cl
mov    -0x20(%rbp),%rax
mov    %cl,(%rax)
jmp    1404 <version_cmp+0x2e4>
cmpq   $0x0,-0x20(%rbp)
je     13b7 <version_cmp+0x297>
jmp    1384 <version_cmp+0x264>
mov    -0x20(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x33(%rbp)
mov    -0x20(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
lea    0x2c92(%rip),%rsi
mov    $0x0,%al
call   1030 <version_subcmp@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x33(%rbp),%cl
mov    -0x20(%rbp),%rax
mov    %cl,(%rax)
jmp    13ff <version_cmp+0x2df>
cmpq   $0x0,-0x28(%rbp)
je     13fa <version_cmp+0x2da>
jmp    13c7 <version_cmp+0x2a7>
mov    -0x28(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x34(%rbp)
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x18(%rbp),%rsi
lea    0x2c4f(%rip),%rdi
mov    $0x0,%al
call   1030 <version_subcmp@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x34(%rbp),%cl
mov    -0x28(%rbp),%rax
mov    %cl,(%rax)
jmp    13fa <version_cmp+0x2da>
jmp    13ff <version_cmp+0x2df>
jmp    1404 <version_cmp+0x2e4>
cmpq   $0x0,-0x20(%rbp)
je     1420 <version_cmp+0x300>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x58(%rbp)
jmp    1428 <version_cmp+0x308>
mov    -0x10(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     144c <version_cmp+0x32c>
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x60(%rbp)
jmp    1454 <version_cmp+0x334>
mov    -0x18(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0x18(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     1471 <version_cmp+0x351>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    15fc <version_cmp+0x4dc>
jmp    12c1 <version_cmp+0x1a1>
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   1040 <strchr@plt>
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
xor    %esi,%esi
call   1040 <strchr@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     14f8 <version_cmp+0x3d8>
cmpq   $0x0,-0x28(%rbp)
je     14f8 <version_cmp+0x3d8>
jmp    14af <version_cmp+0x38f>
mov    -0x20(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x35(%rbp)
mov    -0x20(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x28(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x36(%rbp)
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1030 <version_subcmp@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x36(%rbp),%cl
mov    -0x28(%rbp),%rax
mov    %cl,(%rax)
mov    -0x35(%rbp),%cl
mov    -0x20(%rbp),%rax
mov    %cl,(%rax)
jmp    1588 <version_cmp+0x468>
cmpq   $0x0,-0x20(%rbp)
je     153b <version_cmp+0x41b>
jmp    1508 <version_cmp+0x3e8>
mov    -0x20(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x37(%rbp)
mov    -0x20(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
lea    0x2b0e(%rip),%rsi
mov    $0x0,%al
call   1030 <version_subcmp@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x37(%rbp),%cl
mov    -0x20(%rbp),%rax
mov    %cl,(%rax)
jmp    1583 <version_cmp+0x463>
cmpq   $0x0,-0x28(%rbp)
je     157e <version_cmp+0x45e>
jmp    154b <version_cmp+0x42b>
mov    -0x28(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x18(%rbp),%rsi
lea    0x2acb(%rip),%rdi
mov    $0x0,%al
call   1030 <version_subcmp@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x38(%rbp),%cl
mov    -0x28(%rbp),%rax
mov    %cl,(%rax)
jmp    157e <version_cmp+0x45e>
jmp    1583 <version_cmp+0x463>
jmp    1588 <version_cmp+0x468>
cmpq   $0x0,-0x20(%rbp)
je     15a4 <version_cmp+0x484>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x68(%rbp)
jmp    15ac <version_cmp+0x48c>
mov    -0x10(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rax
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     15d0 <version_cmp+0x4b0>
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x70(%rbp)
jmp    15d8 <version_cmp+0x4b8>
mov    -0x18(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,-0x18(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     15f5 <version_cmp+0x4d5>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    15fc <version_cmp+0x4dc>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<version_cmp>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%r12
mov    $0x3a,%esi
call   1050 <strchr@plt>
mov    %rax,%r15
mov    %r14,%rdi
mov    $0x3a,%esi
call   1050 <strchr@plt>
mov    %rax,%rbx
test   %r15,%r15
je     1187 <version_cmp+0x57>
test   %rbx,%rbx
je     1187 <version_cmp+0x57>
mov    (%r15),%bpl
movb   $0x0,(%r15)
mov    (%rbx),%r13b
movb   $0x0,(%rbx)
mov    %r12,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <version_subcmp@plt>
mov    %r13b,(%rbx)
jmp    11a4 <version_cmp+0x74>
test   %r15,%r15
je     11ba <version_cmp+0x8a>
mov    (%r15),%bpl
movb   $0x0,(%r15)
lea    0x2e9f(%rip),%rsi
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <version_subcmp@plt>
mov    %bpl,(%r15)
test   %eax,%eax
je     11dd <version_cmp+0xad>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
test   %rbx,%rbx
je     11dd <version_cmp+0xad>
mov    (%rbx),%bpl
movb   $0x0,(%rbx)
lea    0x2e6d(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <version_subcmp@plt>
mov    %bpl,(%rbx)
test   %eax,%eax
jne    11ab <version_cmp+0x7b>
lea    0x1(%rbx),%rax
test   %rbx,%rbx
cmovne %rax,%r14
lea    0x1(%r15),%rax
test   %r15,%r15
cmovne %rax,%r12
jmp    1242 <version_cmp+0x112>
cs nopw 0x0(%rax,%rax,1)
nop
movzbl (%rbx),%ebp
movb   $0x0,(%rbx)
movzbl 0x0(%r13),%r15d
movb   $0x0,0x0(%r13)
mov    %r12,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <version_subcmp@plt>
mov    %r15b,0x0(%r13)
mov    %bpl,(%rbx)
lea    0x1(%rbx),%rcx
test   %rbx,%rbx
cmovne %rcx,%r12
lea    0x1(%r13),%rcx
test   %r13,%r13
cmovne %rcx,%r14
test   %eax,%eax
jne    11ab <version_cmp+0x7b>
mov    %r12,%rdi
mov    $0x2e,%esi
call   1050 <strchr@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    $0x2e,%esi
call   1050 <strchr@plt>
mov    %rax,%r13
mov    %rbx,%rax
or     %r13,%rax
je     12c2 <version_cmp+0x192>
test   %rbx,%rbx
je     1274 <version_cmp+0x144>
test   %r13,%r13
jne    1200 <version_cmp+0xd0>
test   %rbx,%rbx
je     1292 <version_cmp+0x162>
movzbl (%rbx),%ebp
movb   $0x0,(%rbx)
mov    %r12,%rdi
lea    0x2db0(%rip),%rsi
xor    %eax,%eax
call   1030 <version_subcmp@plt>
jmp    1221 <version_cmp+0xf1>
test   %r13,%r13
je     12bb <version_cmp+0x18b>
movzbl 0x0(%r13),%ebp
movb   $0x0,0x0(%r13)
lea    0x2d91(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <version_subcmp@plt>
mov    %bpl,0x0(%r13)
jmp    1224 <version_cmp+0xf4>
xor    %eax,%eax
jmp    1224 <version_cmp+0xf4>
mov    %r12,%rdi
call   1040 <strlen@plt>
mov    %rax,%r15
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %rax,%rbx
add    %r14,%rbx
add    %r12,%r15
je     130a <version_cmp+0x1da>
test   %rbx,%rbx
je     130a <version_cmp+0x1da>
mov    (%r15),%bpl
movb   $0x0,(%r15)
mov    (%rbx),%r13b
movb   $0x0,(%rbx)
mov    %r12,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <version_subcmp@plt>
mov    %r13b,(%rbx)
mov    %bpl,(%r15)
jmp    11ab <version_cmp+0x7b>
test   %r15,%r15
je     132f <version_cmp+0x1ff>
mov    (%r15),%bl
movb   $0x0,(%r15)
lea    0x2d1c(%rip),%rsi
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <version_subcmp@plt>
mov    %bl,(%r15)
jmp    11ab <version_cmp+0x7b>
test   %rbx,%rbx
je     1353 <version_cmp+0x223>
mov    (%rbx),%bpl
movb   $0x0,(%rbx)
lea    0x2cf8(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <version_subcmp@plt>
mov    %bpl,(%rbx)
jmp    11ab <version_cmp+0x7b>
xor    %eax,%eax
jmp    11ab <version_cmp+0x7b>

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

LLVM IR (-O2):
@version_cmp.nil = internal global [1 x i8] zeroinitializer
define i32 @version_cmp(i8* %0, i8* %1) {
%3 = tail call i8* @strchr(i8* dereferenceable(1) %0, i32 58)
%4 = tail call i8* @strchr(i8* dereferenceable(1) %1, i32 58)
%5 = icmp ne i8* %3, null
%6 = icmp ne i8* %4, null
%7 = select i1 %5, i1 %6, i1 false
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load i8, i8* %3
store i8 0, i8* %3
%10 = load i8, i8* %4
store i8 0, i8* %4
%11 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @version_subcmp to i32 (i8*, i8*, ...)*)(i8* %0, i8* %1)
store i8 %10, i8* %4
store i8 %9, i8* %3
br label %20
12: ; preds = %2
br i1 %5, label %13, label %16
13: ; preds = %12
%14 = load i8, i8* %3
store i8 0, i8* %3
%15 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @version_subcmp to i32 (i8*, i8*, ...)*)(i8* %0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @version_cmp.nil, i64 0, i64 0))
store i8 %14, i8* %3
br label %20
16: ; preds = %12
br i1 %6, label %17, label %23
17: ; preds = %16
%18 = load i8, i8* %4
store i8 0, i8* %4
%19 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @version_subcmp to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @version_cmp.nil, i64 0, i64 0), i8* %1)
store i8 %18, i8* %4
br label %20
20: ; preds = %13, %17, %8
%21 = phi i32 [ %11, %8 ], [ %15, %13 ], [ %19, %17 ]
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %77
23: ; preds = %16, %20
%24 = getelementptr inbounds i8, i8* %4, i64 1
%25 = select i1 %6, i8* %24, i8* %1
%26 = getelementptr inbounds i8, i8* %3, i64 1
%27 = select i1 %5, i8* %26, i8* %0
br label %28
28: ; preds = %23, %50
%29 = phi i8* [ %55, %50 ], [ %25, %23 ]
%30 = phi i8* [ %53, %50 ], [ %27, %23 ]
%31 = tail call i8* @strchr(i8* dereferenceable(1) %30, i32 46)
%32 = tail call i8* @strchr(i8* dereferenceable(1) %29, i32 46)
%33 = icmp ne i8* %31, null
%34 = icmp ne i8* %32, null
%35 = select i1 %33, i1 true, i1 %34
br i1 %35, label %36, label %57
36: ; preds = %28
%37 = select i1 %33, i1 %34, i1 false
br i1 %37, label %38, label %42
38: ; preds = %36
%39 = load i8, i8* %31
store i8 0, i8* %31
%40 = load i8, i8* %32
store i8 0, i8* %32
%41 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @version_subcmp to i32 (i8*, i8*, ...)*)(i8* %30, i8* %29)
store i8 %40, i8* %32
store i8 %39, i8* %31
br label %50
42: ; preds = %36
br i1 %33, label %43, label %46
43: ; preds = %42
%44 = load i8, i8* %31
store i8 0, i8* %31
%45 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @version_subcmp to i32 (i8*, i8*, ...)*)(i8* %30, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @version_cmp.nil, i64 0, i64 0))
store i8 %44, i8* %31
br label %50
46: ; preds = %42
br i1 %34, label %47, label %50
47: ; preds = %46
%48 = load i8, i8* %32
store i8 0, i8* %32
%49 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @version_subcmp to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @version_cmp.nil, i64 0, i64 0), i8* %29)
store i8 %48, i8* %32
br label %50
50: ; preds = %43, %47, %46, %38
%51 = phi i32 [ %41, %38 ], [ %45, %43 ], [ %49, %47 ], [ 0, %46 ]
%52 = getelementptr inbounds i8, i8* %31, i64 1
%53 = select i1 %33, i8* %52, i8* %30
%54 = getelementptr inbounds i8, i8* %32, i64 1
%55 = select i1 %34, i8* %54, i8* %29
%56 = icmp eq i32 %51, 0
br i1 %56, label %28, label %77
57: ; preds = %28
%58 = tail call i64 @strlen(i8* dereferenceable(1) %30)
%59 = getelementptr i8, i8* %30, i64 %58
%60 = tail call i64 @strlen(i8* dereferenceable(1) %29)
%61 = getelementptr i8, i8* %29, i64 %60
%62 = icmp ne i8* %59, null
%63 = icmp ne i8* %61, null
%64 = select i1 %62, i1 %63, i1 false
br i1 %64, label %65, label %69
65: ; preds = %57
%66 = load i8, i8* %59
store i8 0, i8* %59
%67 = load i8, i8* %61
store i8 0, i8* %61
%68 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @version_subcmp to i32 (i8*, i8*, ...)*)(i8* %30, i8* %29)
store i8 %67, i8* %61
store i8 %66, i8* %59
br label %77
69: ; preds = %57
br i1 %62, label %70, label %73
70: ; preds = %69
%71 = load i8, i8* %59
store i8 0, i8* %59
%72 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @version_subcmp to i32 (i8*, i8*, ...)*)(i8* %30, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @version_cmp.nil, i64 0, i64 0))
store i8 %71, i8* %59
br label %77
73: ; preds = %69
br i1 %63, label %74, label %77
74: ; preds = %73
%75 = load i8, i8* %61
store i8 0, i8* %61
%76 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @version_subcmp to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @version_cmp.nil, i64 0, i64 0), i8* %29)
store i8 %75, i8* %61
br label %77
77: ; preds = %50, %65, %73, %74, %70, %20
%78 = phi i32 [ %21, %20 ], [ %68, %65 ], [ %72, %70 ], [ %76, %74 ], [ 0, %73 ], [ %51, %50 ]
ret i32 %78
}