#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 *, char *, char *);
void ShowCurrentDefinitions(void) {
  do {
    printf("Current definition for %s is \"%s\".\n", "CLOCK_REALTIME",
           "CLOCK_REALTIME");
  } while (0);
  do {
    printf("Current definition for %s is \"%s\".\n", "CLOCK_MONOTONIC",
           "CLOCK_MONOTONIC");
  } while (0);
  do {
    printf("Current definition for %s is \"%s\".\n", "CLOCK_PROCESS_CPUTIME_ID",
           "CLOCK_PROCESS_CPUTIME_ID");
  } while (0);
  do {
    printf("Current definition for %s is \"%s\".\n", "CLOCK_THREAD_CPUTIME_ID",
           "CLOCK_THREAD_CPUTIME_ID");
  } while (0);
}


x86 assembly (clang, -O0):
<ShowCurrentDefinitions>:
push   %rbp
mov    %rsp,%rbp
jmp    1119 <ShowCurrentDefinitions+0x9>
lea    0xee0(%rip),%rdi
lea    0xefd(%rip),%rdx
mov    %rdx,%rsi
call   1030 <printf@plt>
jmp    1134 <ShowCurrentDefinitions+0x24>
lea    0xec5(%rip),%rdi
lea    0xef1(%rip),%rdx
mov    %rdx,%rsi
call   1030 <printf@plt>
jmp    114f <ShowCurrentDefinitions+0x3f>
lea    0xeaa(%rip),%rdi
lea    0xee6(%rip),%rdx
mov    %rdx,%rsi
call   1030 <printf@plt>
jmp    116a <ShowCurrentDefinitions+0x5a>
lea    0xe8f(%rip),%rdi
lea    0xee4(%rip),%rdx
mov    %rdx,%rsi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ShowCurrentDefinitions>:
push   %rbx
lea    0xee8(%rip),%rbx
lea    0xf05(%rip),%rdx
mov    %rbx,%rdi
mov    %rdx,%rsi
call   1030 <printf@plt>
lea    0xf02(%rip),%rdx
mov    %rbx,%rdi
mov    %rdx,%rsi
call   1030 <printf@plt>
lea    0xf00(%rip),%rdx
mov    %rbx,%rdi
mov    %rdx,%rsi
call   1030 <printf@plt>
lea    0xf07(%rip),%rdx
mov    %rbx,%rdi
mov    %rdx,%rsi
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"Current definition for %s is \22%s\22.\0A\00"
@.str.1 = [15 x i8] c"CLOCK_REALTIME\00"
@.str.2 = [16 x i8] c"CLOCK_MONOTONIC\00"
@.str.3 = [25 x i8] c"CLOCK_PROCESS_CPUTIME_ID\00"
@.str.4 = [24 x i8] c"CLOCK_THREAD_CPUTIME_ID\00"
define void @ShowCurrentDefinitions() {
br label %1
1: ; preds = %0
%2 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %3
3: ; preds = %1
br label %4
4: ; preds = %3
%5 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
br label %6
6: ; preds = %4
br label %7
7: ; preds = %6
%8 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
br label %9
9: ; preds = %7
br label %10
10: ; preds = %9
%11 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
br label %12
12: ; preds = %10
ret void
}

LLVM IR (-O2):
@.str = [36 x i8] c"Current definition for %s is \22%s\22.\0A\00"
@.str.1 = [15 x i8] c"CLOCK_REALTIME\00"
@.str.2 = [16 x i8] c"CLOCK_MONOTONIC\00"
@.str.3 = [25 x i8] c"CLOCK_PROCESS_CPUTIME_ID\00"
@.str.4 = [24 x i8] c"CLOCK_THREAD_CPUTIME_ID\00"
define void @ShowCurrentDefinitions() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
ret void
}