#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*/ dotest1(int, int, int);
int /*<<< orphan*/ dotest2(int, int);
int /*<<< orphan*/ printf(char *);
int main() {
  printf("lengthSupUK\n");
  {
    dotest1(50, 25, 2);
    dotest1(3332, 973, 1391);
    dotest1(2941, 862, 1246);
    dotest1(3177, 573, 2047);
  }
  printf("comp\n");
  {
    dotest2(74626, 37128);
    dotest2(71749, 35692);
    dotest2(56890, 28281);
    dotest2(60441, 30054);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x32,%edi
mov    $0x19,%esi
mov    $0x2,%edx
call   1040 <dotest1@plt>
mov    $0xd04,%edi
mov    $0x3cd,%esi
mov    $0x56f,%edx
call   1040 <dotest1@plt>
mov    $0xb7d,%edi
mov    $0x35e,%esi
mov    $0x4de,%edx
call   1040 <dotest1@plt>
mov    $0xc69,%edi
mov    $0x23d,%esi
mov    $0x7ff,%edx
call   1040 <dotest1@plt>
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
mov    $0x12382,%edi
mov    $0x9108,%esi
call   1050 <dotest2@plt>
mov    $0x11845,%edi
mov    $0x8b6c,%esi
call   1050 <dotest2@plt>
mov    $0xde3a,%edi
mov    $0x6e79,%esi
call   1050 <dotest2@plt>
mov    $0xec19,%edi
mov    $0x7566,%esi
call   1050 <dotest2@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
call   1030 <puts@plt>
mov    $0x32,%edi
mov    $0x19,%esi
mov    $0x2,%edx
call   1040 <dotest1@plt>
mov    $0xd04,%edi
mov    $0x3cd,%esi
mov    $0x56f,%edx
call   1040 <dotest1@plt>
mov    $0xb7d,%edi
mov    $0x35e,%esi
mov    $0x4de,%edx
call   1040 <dotest1@plt>
mov    $0xc69,%edi
mov    $0x23d,%esi
mov    $0x7ff,%edx
call   1040 <dotest1@plt>
lea    0xe78(%rip),%rdi
call   1030 <puts@plt>
mov    $0x12382,%edi
mov    $0x9108,%esi
call   1050 <dotest2@plt>
mov    $0x11845,%edi
mov    $0x8b6c,%esi
call   1050 <dotest2@plt>
mov    $0xde3a,%edi
mov    $0x6e79,%esi
call   1050 <dotest2@plt>
mov    $0xec19,%edi
mov    $0x7566,%esi
call   1050 <dotest2@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"lengthSupUK\0A\00"
@.str.1 = [6 x i8] c"comp\0A\00"
define i32 @main() {
%1 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @dotest1(i32 50, i32 25, i32 2)
%3 = call i32 @dotest1(i32 3332, i32 973, i32 1391)
%4 = call i32 @dotest1(i32 2941, i32 862, i32 1246)
%5 = call i32 @dotest1(i32 3177, i32 573, i32 2047)
%6 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @dotest2(i32 74626, i32 37128)
%8 = call i32 @dotest2(i32 71749, i32 35692)
%9 = call i32 @dotest2(i32 56890, i32 28281)
%10 = call i32 @dotest2(i32 60441, i32 30054)
ret i32 0
}

LLVM IR (-O2):
@str = [12 x i8] c"lengthSupUK\00"
@str.2 = [5 x i8] c"comp\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @dotest1(i32 50, i32 25, i32 2)
%3 = tail call i32 @dotest1(i32 3332, i32 973, i32 1391)
%4 = tail call i32 @dotest1(i32 2941, i32 862, i32 1246)
%5 = tail call i32 @dotest1(i32 3177, i32 573, i32 2047)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.2, i64 0, i64 0))
%7 = tail call i32 @dotest2(i32 74626, i32 37128)
%8 = tail call i32 @dotest2(i32 71749, i32 35692)
%9 = tail call i32 @dotest2(i32 56890, i32 28281)
%10 = tail call i32 @dotest2(i32 60441, i32 30054)
ret i32 0
}