#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 *);
void printMessage() {
  printf("This is a CPU speed test program which is designed to report\n");
  printf("your processor's floating-point performance in megaflops.\n\n");
  printf("It gives the most reliable results for the Intel and AMD families\n");
  printf(
      "of processors, because the timing loop for these devices is written\n");
  printf("in assembler code, but there is an architecture-independent\n");
  printf(
      "version which will run on any CPU.  However, the results reported by\n");
  printf("the generic version are heavily dependent on the optimisation "
         "performed\n");
  printf("by the compiler!\n");
  printf("\nThis software was written by David Harper at obliquity.com\n");
  printf("If you find it useful, please give due credit to the author.\n\n");
}


x86 assembly (clang, -O0):
<printMessage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf17(%rip),%rdi
call   1030 <printf@plt>
lea    0xf47(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7e(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb7(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe8(%rip),%rdi
call   1030 <printf@plt>
lea    0x1022(%rip),%rdi
call   1030 <printf@plt>
lea    0x105f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1065(%rip),%rdi
call   1030 <printf@plt>
lea    0x1096(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printMessage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf19(%rip),%rdi
call   1030 <puts@plt>
lea    0xf48(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7e(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb6(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe6(%rip),%rdi
call   1030 <puts@plt>
lea    0x101f(%rip),%rdi
call   1030 <puts@plt>
lea    0x105b(%rip),%rdi
call   1030 <puts@plt>
lea    0x1060(%rip),%rdi
call   1030 <puts@plt>
lea    0x1090(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [62 x i8] c"This is a CPU speed test program which is designed to report\0A\00"
@.str.1 = [60 x i8] c"your processor's floating-point performance in megaflops.\0A\0A\00"
@.str.2 = [67 x i8] c"It gives the most reliable results for the Intel and AMD families\0A\00"
@.str.3 = [69 x i8] c"of processors, because the timing loop for these devices is written\0A\00"
@.str.4 = [61 x i8] c"in assembler code, but there is an architecture-independent\0A\00"
@.str.5 = [70 x i8] c"version which will run on any CPU. However, the results reported by\0A\00"
@.str.6 = [73 x i8] c"the generic version are heavily dependent on the optimisation performed\0A\00"
@.str.7 = [18 x i8] c"by the compiler!\0A\00"
@.str.8 = [61 x i8] c"\0AThis software was written by David Harper at obliquity.com\0A\00"
@.str.9 = [63 x i8] c"If you find it useful, please give due credit to the author.\0A\0A\00"
define void @printMessage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.9, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [61 x i8] c"This is a CPU speed test program which is designed to report\00"
@str.10 = [59 x i8] c"your processor's floating-point performance in megaflops.\0A\00"
@str.11 = [66 x i8] c"It gives the most reliable results for the Intel and AMD families\00"
@str.12 = [68 x i8] c"of processors, because the timing loop for these devices is written\00"
@str.13 = [60 x i8] c"in assembler code, but there is an architecture-independent\00"
@str.14 = [69 x i8] c"version which will run on any CPU. However, the results reported by\00"
@str.15 = [72 x i8] c"the generic version are heavily dependent on the optimisation performed\00"
@str.16 = [17 x i8] c"by the compiler!\00"
@str.17 = [60 x i8] c"\0AThis software was written by David Harper at obliquity.com\00"
@str.18 = [62 x i8] c"If you find it useful, please give due credit to the author.\0A\00"
define void @printMessage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.10, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.11, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.12, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.13, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.14, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.15, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.16, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.17, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.18, i64 0, i64 0))
ret void
}