#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int strcmp1(char const *, char const *);
int strcmp2(char const *, char const *);
int strncmp1(char const *, char const *, int);
int strncmp2(char const *, char const *, int);
int main() {
  printf("---- strcmp1 tests ----\n");
  const char *a = "apple";
  const char *b = "bread";
  const char *c = "apple";
  int result = strcmp1(a, b);
  if (result < 0)
    printf("%s is less than %s\n", a, b);
  else if (result == 0)
    printf("%s is equal to %s\n", a, b);
  else if (result > 0)
    printf("%s is greater than %s\n", a, b);
  result = strcmp1(b, a);
  if (result < 0)
    printf("%s is less than %s\n", b, a);
  else if (result == 0)
    printf("%s is equal to %s\n", b, a);
  else if (result > 0)
    printf("%s is greater than %s\n", b, a);
  result = strcmp1(a, c);
  if (result < 0)
    printf("%s is less than %s\n", a, c);
  else if (result == 0)
    printf("%s is equal to %s\n", a, c);
  else if (result > 0)
    printf("%s is greater than %s\n", a, c);
  printf("\n---- strncmp1 tests ----\n");
  const char *a1 = "appletart";
  const char *b1 = "applepie";
  const char *c1 = "apply";
  result = strncmp1(a1, b1, 5);
  if (result < 0)
    printf("5 characters of %s is less than %s\n", a1, b1);
  else if (result == 0)
    printf("5 characters of %s is equal to %s\n", a1, b1);
  else if (result > 0)
    printf("5 characters of %s is greater than %s\n", a1, b1);
  result = strncmp1(a1, c1, 5);
  if (result < 0)
    printf("5 characters of %s is less than %s\n", a1, c1);
  else if (result == 0)
    printf("5 characters of %s is equal to %s\n", a1, c1);
  else if (result > 0)
    printf("5 characters of %s is greater than %s\n", a1, c1);
  result = strncmp1(a1, b1, 6);
  if (result < 0)
    printf("6 characters of %s is less than %s\n", a1, b1);
  else if (result == 0)
    printf("6 characters of %s is equal to %s\n", a1, b1);
  else if (result > 0)
    printf("6 characters of %s is greater than %s\n", a1, b1);
  printf("\n---- strcmp2 tests ----\n");
  result = strcmp2(a, b);
  if (result < 0)
    printf("%s is less than %s\n", a, b);
  else if (result == 0)
    printf("%s is equal to %s\n", a, b);
  else if (result > 0)
    printf("%s is greater than %s\n", a, b);
  result = strcmp2(b, a);
  if (result < 0)
    printf("%s is less than %s\n", b, a);
  else if (result == 0)
    printf("%s is equal to %s\n", b, a);
  else if (result > 0)
    printf("%s is greater than %s\n", b, a);
  result = strcmp2(a, c);
  if (result < 0)
    printf("%s is less than %s\n", a, c);
  else if (result == 0)
    printf("%s is equal to %s\n", a, c);
  else if (result > 0)
    printf("%s is greater than %s\n", a, c);
  printf("\n---- strncmp1 tests ----\n");
  result = strncmp2(a1, b1, 5);
  if (result < 0)
    printf("5 characters of %s is less than %s\n", a1, b1);
  else if (result == 0)
    printf("5 characters of %s is equal to %s\n", a1, b1);
  else if (result > 0)
    printf("5 characters of %s is greater than %s\n", a1, b1);
  result = strncmp2(a1, c1, 5);
  if (result < 0)
    printf("5 characters of %s is less than %s\n", a1, c1);
  else if (result == 0)
    printf("5 characters of %s is equal to %s\n", a1, c1);
  else if (result > 0)
    printf("5 characters of %s is greater than %s\n", a1, c1);
  result = strncmp2(a1, b1, 6);
  if (result < 0)
    printf("6 characters of %s is less than %s\n", a1, b1);
  else if (result == 0)
    printf("6 characters of %s is equal to %s\n", a1, b1);
  else if (result > 0)
    printf("6 characters of %s is greater than %s\n", a1, b1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xea5(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    0xea0(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xe8f(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <strcmp1@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jge    11c3 <main+0x73>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1212 <main+0xc2>
cmpl   $0x0,-0x24(%rbp)
jne    11e8 <main+0x98>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    120d <main+0xbd>
cmpl   $0x0,-0x24(%rbp)
jle    1208 <main+0xb8>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xeaf(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    120d <main+0xbd>
jmp    1212 <main+0xc2>
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcmp1@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jge    1247 <main+0xf7>
mov    -0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xe2e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1296 <main+0x146>
cmpl   $0x0,-0x24(%rbp)
jne    126c <main+0x11c>
mov    -0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xe2d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1291 <main+0x141>
cmpl   $0x0,-0x24(%rbp)
jle    128c <main+0x13c>
mov    -0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xe2b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1291 <main+0x141>
jmp    1296 <main+0x146>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1030 <strcmp1@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jge    12cb <main+0x17b>
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xdaa(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    131a <main+0x1ca>
cmpl   $0x0,-0x24(%rbp)
jne    12f0 <main+0x1a0>
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xda9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1315 <main+0x1c5>
cmpl   $0x0,-0x24(%rbp)
jle    1310 <main+0x1c0>
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xda7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1315 <main+0x1c5>
jmp    131a <main+0x1ca>
lea    0xd04(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd11(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xd10(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    0xd0e(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    $0x5,%edx
call   1040 <strncmp1@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jge    1383 <main+0x233>
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
lea    0xce2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13d2 <main+0x282>
cmpl   $0x0,-0x24(%rbp)
jne    13a8 <main+0x258>
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
lea    0xce1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13cd <main+0x27d>
cmpl   $0x0,-0x24(%rbp)
jle    13c8 <main+0x278>
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
lea    0xcdf(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13cd <main+0x27d>
jmp    13d2 <main+0x282>
mov    -0x30(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    $0x5,%edx
call   1040 <strncmp1@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jge    140c <main+0x2bc>
mov    -0x30(%rbp),%rsi
mov    -0x40(%rbp),%rdx
lea    0xc59(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    145b <main+0x30b>
cmpl   $0x0,-0x24(%rbp)
jne    1431 <main+0x2e1>
mov    -0x30(%rbp),%rsi
mov    -0x40(%rbp),%rdx
lea    0xc58(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1456 <main+0x306>
cmpl   $0x0,-0x24(%rbp)
jle    1451 <main+0x301>
mov    -0x30(%rbp),%rsi
mov    -0x40(%rbp),%rdx
lea    0xc56(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1456 <main+0x306>
jmp    145b <main+0x30b>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    $0x6,%edx
call   1040 <strncmp1@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jge    1495 <main+0x345>
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
lea    0xc3e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    14e4 <main+0x394>
cmpl   $0x0,-0x24(%rbp)
jne    14ba <main+0x36a>
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
lea    0xc3d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    14df <main+0x38f>
cmpl   $0x0,-0x24(%rbp)
jle    14da <main+0x38a>
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
lea    0xc3b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    14df <main+0x38f>
jmp    14e4 <main+0x394>
lea    0xc4a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1070 <strcmp2@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jge    1527 <main+0x3d7>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xb4e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1576 <main+0x426>
cmpl   $0x0,-0x24(%rbp)
jne    154c <main+0x3fc>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xb4d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1571 <main+0x421>
cmpl   $0x0,-0x24(%rbp)
jle    156c <main+0x41c>
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xb4b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1571 <main+0x421>
jmp    1576 <main+0x426>
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1070 <strcmp2@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jge    15ab <main+0x45b>
mov    -0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xaca(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    15fa <main+0x4aa>
cmpl   $0x0,-0x24(%rbp)
jne    15d0 <main+0x480>
mov    -0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xac9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    15f5 <main+0x4a5>
cmpl   $0x0,-0x24(%rbp)
jle    15f0 <main+0x4a0>
mov    -0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xac7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    15f5 <main+0x4a5>
jmp    15fa <main+0x4aa>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1070 <strcmp2@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jge    162f <main+0x4df>
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xa46(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    167e <main+0x52e>
cmpl   $0x0,-0x24(%rbp)
jne    1654 <main+0x504>
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xa45(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1679 <main+0x529>
cmpl   $0x0,-0x24(%rbp)
jle    1674 <main+0x524>
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xa43(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1679 <main+0x529>
jmp    167e <main+0x52e>
lea    0x9a0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    $0x5,%edx
call   1060 <strncmp2@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jge    16c6 <main+0x576>
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
lea    0x99f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1715 <main+0x5c5>
cmpl   $0x0,-0x24(%rbp)
jne    16eb <main+0x59b>
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
lea    0x99e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1710 <main+0x5c0>
cmpl   $0x0,-0x24(%rbp)
jle    170b <main+0x5bb>
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
lea    0x99c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1710 <main+0x5c0>
jmp    1715 <main+0x5c5>
mov    -0x30(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    $0x5,%edx
call   1060 <strncmp2@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jge    174f <main+0x5ff>
mov    -0x30(%rbp),%rsi
mov    -0x40(%rbp),%rdx
lea    0x916(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    179e <main+0x64e>
cmpl   $0x0,-0x24(%rbp)
jne    1774 <main+0x624>
mov    -0x30(%rbp),%rsi
mov    -0x40(%rbp),%rdx
lea    0x915(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1799 <main+0x649>
cmpl   $0x0,-0x24(%rbp)
jle    1794 <main+0x644>
mov    -0x30(%rbp),%rsi
mov    -0x40(%rbp),%rdx
lea    0x913(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1799 <main+0x649>
jmp    179e <main+0x64e>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    $0x6,%edx
call   1060 <strncmp2@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jge    17d8 <main+0x688>
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
lea    0x8fb(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1827 <main+0x6d7>
cmpl   $0x0,-0x24(%rbp)
jne    17fd <main+0x6ad>
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
lea    0x8fa(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1822 <main+0x6d2>
cmpl   $0x0,-0x24(%rbp)
jle    181d <main+0x6cd>
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
lea    0x8f8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1822 <main+0x6d2>
jmp    1827 <main+0x6d7>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xf8f(%rip),%rdi
call   1030 <puts@plt>
lea    0xe82(%rip),%rbp
lea    0xe81(%rip),%r15
mov    %rbp,%rdi
mov    %r15,%rsi
call   1040 <strcmp1@plt>
test   %eax,%eax
lea    0xec0(%rip),%rax
lea    0xedc(%rip),%rbx
mov    %rbx,%rdi
cmove  %rax,%rdi
mov    %rax,%r14
lea    0xe84(%rip),%rax
cmovs  %rax,%rdi
mov    %rax,%r12
mov    %rbp,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
call   1040 <strcmp1@plt>
test   %eax,%eax
mov    %rbx,%rdi
cmove  %r14,%rdi
cmovs  %r12,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %rbp,%rsi
call   1040 <strcmp1@plt>
test   %eax,%eax
mov    %rbx,%rdi
cmove  %r14,%rdi
cmovs  %r12,%rdi
mov    %rbp,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xf1c(%rip),%rdi
call   1030 <puts@plt>
lea    0xdea(%rip),%r14
lea    0xded(%rip),%r13
mov    %r14,%rdi
mov    %r13,%rsi
mov    $0x5,%edx
call   1050 <strncmp1@plt>
test   %eax,%eax
lea    0xe07(%rip),%rax
lea    0xe23(%rip),%r12
mov    %r12,%rdi
cmove  %rax,%rdi
lea    0xdce(%rip),%rax
cmovs  %rax,%rdi
mov    %rax,%r15
mov    %r14,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xdad(%rip),%rbp
mov    %r14,%rdi
mov    %rbp,%rsi
mov    $0x5,%edx
call   1050 <strncmp1@plt>
test   %eax,%eax
mov    %r12,%rdi
lea    0xdbb(%rip),%rax
cmove  %rax,%rdi
cmovs  %r15,%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
mov    %r13,%rsi
mov    $0x6,%edx
call   1050 <strncmp1@plt>
test   %eax,%eax
lea    0xdfb(%rip),%rax
lea    0xe17(%rip),%r15
mov    %r15,%rdi
cmove  %rax,%rdi
lea    0xdc2(%rip),%rax
cmovs  %rax,%rdi
mov    %r14,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe30(%rip),%rdi
call   1030 <puts@plt>
lea    0xd0b(%rip),%r14
mov    %r14,%rdi
lea    0xd07(%rip),%rbp
mov    %rbp,%rsi
call   1080 <strcmp2@plt>
test   %eax,%eax
mov    %rbx,%rdi
lea    0xd46(%rip),%r13
cmove  %r13,%rdi
lea    0xd17(%rip),%rax
cmovs  %rax,%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
call   1080 <strcmp2@plt>
test   %eax,%eax
mov    %rbx,%rdi
cmove  %r13,%rdi
lea    0xceb(%rip),%rax
cmovs  %rax,%rdi
mov    %rbp,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
mov    %r14,%rsi
call   1080 <strcmp2@plt>
test   %eax,%eax
cmove  %r13,%rbx
lea    0xcc2(%rip),%rax
cmovs  %rax,%rbx
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xda4(%rip),%rdi
call   1030 <puts@plt>
lea    0xc72(%rip),%rbp
mov    %rbp,%rdi
lea    0xc72(%rip),%rbx
mov    %rbx,%rsi
mov    $0x5,%edx
call   1070 <strncmp2@plt>
test   %eax,%eax
mov    %r12,%rdi
lea    0xc8c(%rip),%r14
cmove  %r14,%rdi
lea    0xc5d(%rip),%r13
cmovs  %r13,%rdi
mov    %rbp,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
lea    0xc3c(%rip),%rbx
mov    %rbx,%rsi
mov    $0x5,%edx
call   1070 <strncmp2@plt>
test   %eax,%eax
cmove  %r14,%r12
cmovs  %r13,%r12
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
lea    0xc02(%rip),%rbx
mov    %rbx,%rsi
mov    $0x6,%edx
call   1070 <strncmp2@plt>
test   %eax,%eax
lea    0xc8d(%rip),%rax
cmove  %rax,%r15
lea    0xc5e(%rip),%rax
cmovs  %rax,%r15
mov    %r15,%rdi
mov    %rbp,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str.1 = [6 x i8] c"apple\00"
@.str.2 = [6 x i8] c"bread\00"
@.str.3 = [20 x i8] c"%s is less than %s\0A\00"
@.str.4 = [19 x i8] c"%s is equal to %s\0A\00"
@.str.5 = [23 x i8] c"%s is greater than %s\0A\00"
@.str.7 = [10 x i8] c"appletart\00"
@.str.8 = [9 x i8] c"applepie\00"
@.str.9 = [6 x i8] c"apply\00"
@.str.10 = [36 x i8] c"5 characters of %s is less than %s\0A\00"
@.str.11 = [35 x i8] c"5 characters of %s is equal to %s\0A\00"
@.str.12 = [39 x i8] c"5 characters of %s is greater than %s\0A\00"
@.str.13 = [36 x i8] c"6 characters of %s is less than %s\0A\00"
@.str.14 = [35 x i8] c"6 characters of %s is equal to %s\0A\00"
@.str.15 = [39 x i8] c"6 characters of %s is greater than %s\0A\00"
@str = [24 x i8] c"---- strcmp1 tests ----\00"
@str.18 = [25 x i8] c"\0A---- strcmp2 tests ----\00"
@str.19 = [26 x i8] c"\0A---- strncmp1 tests ----\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @strcmp1(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%3 = icmp slt i32 %2, 0
%4 = icmp eq i32 %2, 0
%5 = select i1 %4, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0)
%6 = select i1 %3, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* %5
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i32 @strcmp1(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%9 = icmp slt i32 %8, 0
%10 = icmp eq i32 %8, 0
%11 = select i1 %10, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0)
%12 = select i1 %9, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* %11
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %12, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%14 = tail call i32 @strcmp1(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%15 = icmp slt i32 %14, 0
%16 = icmp eq i32 %14, 0
%17 = select i1 %16, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0)
%18 = select i1 %15, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* %17
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %18, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.19, i64 0, i64 0))
%21 = tail call i32 @strncmp1(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 5)
%22 = icmp slt i32 %21, 0
%23 = icmp eq i32 %21, 0
%24 = select i1 %23, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.12, i64 0, i64 0)
%25 = select i1 %22, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0), i8* %24
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %25, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%27 = tail call i32 @strncmp1(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i32 5)
%28 = icmp slt i32 %27, 0
%29 = icmp eq i32 %27, 0
%30 = select i1 %29, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.12, i64 0, i64 0)
%31 = select i1 %28, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0), i8* %30
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %31, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%33 = tail call i32 @strncmp1(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 6)
%34 = icmp slt i32 %33, 0
%35 = icmp eq i32 %33, 0
%36 = select i1 %35, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.15, i64 0, i64 0)
%37 = select i1 %34, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.13, i64 0, i64 0), i8* %36
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %37, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%39 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.18, i64 0, i64 0))
%40 = tail call i32 @strcmp2(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%41 = icmp slt i32 %40, 0
%42 = icmp eq i32 %40, 0
%43 = select i1 %42, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0)
%44 = select i1 %41, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* %43
%45 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %44, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%46 = tail call i32 @strcmp2(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%47 = icmp slt i32 %46, 0
%48 = icmp eq i32 %46, 0
%49 = select i1 %48, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0)
%50 = select i1 %47, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* %49
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %50, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%52 = tail call i32 @strcmp2(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%53 = icmp slt i32 %52, 0
%54 = icmp eq i32 %52, 0
%55 = select i1 %54, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0)
%56 = select i1 %53, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* %55
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %56, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%58 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.19, i64 0, i64 0))
%59 = tail call i32 @strncmp2(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 5)
%60 = icmp slt i32 %59, 0
%61 = icmp eq i32 %59, 0
%62 = select i1 %61, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.12, i64 0, i64 0)
%63 = select i1 %60, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0), i8* %62
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %63, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%65 = tail call i32 @strncmp2(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i32 5)
%66 = icmp slt i32 %65, 0
%67 = icmp eq i32 %65, 0
%68 = select i1 %67, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.12, i64 0, i64 0)
%69 = select i1 %66, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0), i8* %68
%70 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %69, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%71 = tail call i32 @strncmp2(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 6)
%72 = icmp slt i32 %71, 0
%73 = icmp eq i32 %71, 0
%74 = select i1 %73, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.15, i64 0, i64 0)
%75 = select i1 %72, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.13, i64 0, i64 0), i8* %74
%76 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %75, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
ret i32 0
}