#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*/ lit(int);
int /*<<< orphan*/ litm(int);
int /*<<< orphan*/ to(int);
int exampleProgram() {
vm_load_program_for_child:
  lit(0x123456);
  to(0);
  litm(0x010000);
  to(0);
  lit(0x000000);
  to(4);
  litm(0x1f0000);
  to(4);
v_init:
  lit(0);
  to(0 + 0x1000000);
  to(0 + 0x1000000 + 4);
  to(0 + 0x1000000 + 4 + 4);
  to(0 + 0x1000000 + 4 + 4 + 4);
  to(0 + 0x1000000 + 4 + 4 + 4 + 4);
end:
  return 0;
}


x86 assembly (clang, -O0):
<exampleProgram>:
push   %rbp
mov    %rsp,%rbp
jmp    1139 <exampleProgram+0x9>
mov    $0x123456,%edi
call   1040 <lit@plt>
xor    %edi,%edi
call   1030 <to@plt>
mov    $0x10000,%edi
call   1050 <litm@plt>
xor    %edi,%edi
call   1030 <to@plt>
xor    %edi,%edi
call   1040 <lit@plt>
mov    $0x4,%edi
call   1030 <to@plt>
mov    $0x1f0000,%edi
call   1050 <litm@plt>
mov    $0x4,%edi
call   1030 <to@plt>
xor    %edi,%edi
call   1040 <lit@plt>
mov    $0x1000000,%edi
call   1030 <to@plt>
mov    $0x1000004,%edi
call   1030 <to@plt>
mov    $0x1000008,%edi
call   1030 <to@plt>
mov    $0x100000c,%edi
call   1030 <to@plt>
mov    $0x1000010,%edi
call   1030 <to@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<exampleProgram>:
push   %rax
mov    $0x123456,%edi
call   1040 <lit@plt>
xor    %edi,%edi
call   1030 <to@plt>
mov    $0x10000,%edi
call   1050 <litm@plt>
xor    %edi,%edi
call   1030 <to@plt>
xor    %edi,%edi
call   1040 <lit@plt>
mov    $0x4,%edi
call   1030 <to@plt>
mov    $0x1f0000,%edi
call   1050 <litm@plt>
mov    $0x4,%edi
call   1030 <to@plt>
xor    %edi,%edi
call   1040 <lit@plt>
mov    $0x1000000,%edi
call   1030 <to@plt>
mov    $0x1000004,%edi
call   1030 <to@plt>
mov    $0x1000008,%edi
call   1030 <to@plt>
mov    $0x100000c,%edi
call   1030 <to@plt>
mov    $0x1000010,%edi
call   1030 <to@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @exampleProgram() {
br label %1
1: ; preds = %0
%2 = call i32 @lit(i32 1193046)
%3 = call i32 @to(i32 0)
%4 = call i32 @litm(i32 65536)
%5 = call i32 @to(i32 0)
%6 = call i32 @lit(i32 0)
%7 = call i32 @to(i32 4)
%8 = call i32 @litm(i32 2031616)
%9 = call i32 @to(i32 4)
br label %10
10: ; preds = %1
%11 = call i32 @lit(i32 0)
%12 = call i32 @to(i32 16777216)
%13 = call i32 @to(i32 16777220)
%14 = call i32 @to(i32 16777224)
%15 = call i32 @to(i32 16777228)
%16 = call i32 @to(i32 16777232)
br label %17
17: ; preds = %10
ret i32 0
}

LLVM IR (-O2):
define i32 @exampleProgram() {
%1 = tail call i32 @lit(i32 1193046)
%2 = tail call i32 @to(i32 0)
%3 = tail call i32 @litm(i32 65536)
%4 = tail call i32 @to(i32 0)
%5 = tail call i32 @lit(i32 0)
%6 = tail call i32 @to(i32 4)
%7 = tail call i32 @litm(i32 2031616)
%8 = tail call i32 @to(i32 4)
%9 = tail call i32 @lit(i32 0)
%10 = tail call i32 @to(i32 16777216)
%11 = tail call i32 @to(i32 16777220)
%12 = tail call i32 @to(i32 16777224)
%13 = tail call i32 @to(i32 16777228)
%14 = tail call i32 @to(i32 16777232)
ret i32 0
}