#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*/ debug_array(int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ report(size_t, size_t, int, size_t);
int main(int argc, const char *argv[]) {
  int opt = 'p';
  printf("Hello, World!\n");
  switch (opt) {
  case 'd':
    for (int i = 10; i < 100; ++i)
      debug_array(i);
    break;
  case 'p': {
    size_t start = 10, end = 22, ntime = 4;
    report(start, end, sizeof(long double), ntime);
  } break;
  default:
    break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x70,-0x14(%rbp)
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x34(%rbp)
sub    $0x64,%eax
je     117e <main+0x4e>
jmp    116d <main+0x3d>
mov    -0x34(%rbp),%eax
sub    $0x70,%eax
je     11aa <main+0x7a>
jmp    11dd <main+0xad>
movl   $0xa,-0x18(%rbp)
cmpl   $0x64,-0x18(%rbp)
jge    11a5 <main+0x75>
mov    -0x18(%rbp),%edi
call   1040 <debug_array@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1185 <main+0x55>
jmp    11e2 <main+0xb2>
movq   $0xa,-0x20(%rbp)
movq   $0x16,-0x28(%rbp)
movq   $0x4,-0x30(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rcx
mov    $0x10,%edx
call   1050 <report@plt>
jmp    11e2 <main+0xb2>
jmp    11e2 <main+0xb2>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
mov    $0xa,%edi
mov    $0x16,%esi
mov    $0x4,%ecx
mov    $0x10,%edx
call   1040 <report@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [15 x i8] c"Hello, World!\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 112, i32* %6
%11 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%12 = load i32, i32* %6
switch i32 %12, label %29 [
i32 100, label %13
i32 112, label %24
]
13: ; preds = %2
store i32 10, i32* %7
br label %14
14: ; preds = %20, %13
%15 = load i32, i32* %7
%16 = icmp slt i32 %15, 100
br i1 %16, label %17, label %23
17: ; preds = %14
%18 = load i32, i32* %7
%19 = call i32 @debug_array(i32 %18)
br label %20
20: ; preds = %17
%21 = load i32, i32* %7
%22 = add nsw i32 %21, 1
store i32 %22, i32* %7
br label %14
23: ; preds = %14
br label %30
24: ; preds = %2
store i64 10, i64* %8
store i64 22, i64* %9
store i64 4, i64* %10
%25 = load i64, i64* %8
%26 = load i64, i64* %9
%27 = load i64, i64* %10
%28 = call i32 @report(i64 %25, i64 %26, i32 16, i64 %27)
br label %30
29: ; preds = %2
br label %30
30: ; preds = %29, %24, %23
ret i32 0
}

LLVM IR (-O2):
@str = [14 x i8] c"Hello, World!\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @report(i64 10, i64 22, i32 16, i64 4)
ret i32 0
}