int main() {
  int i = 10, j = 0;
  unsigned long pc;
  i = myFunc(i);
  printf("[htf] main() - 1.\n");
  printf("[htf] main() line: %d.\n", 37);
  printf("[htf] main() - 3.\n");
  for (i = 0; i < 2; i++) {
    display("printf in loop.", i);
  }
  {
    asm volatile("\n"
                 "__HTF_LABEL_"
                 "46"
                 ":\n"
                 :
                 :);
  };
  i = myFunc(i);
  {
    asm volatile("\n"
                 "__HTF_LABEL_"
                 "50"
                 ":\n"
                 :
                 :);
  };
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xa,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1050 <myFunc@plt>
mov    %eax,-0x8(%rbp)
lea    0xe9f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xea4(%rip),%rdi
mov    $0x25,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    11b9 <__HTF_LABEL_46>
mov    -0x8(%rbp),%esi
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1030 <display@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1190 <main+0x60>

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0xa,%edi
xor    %eax,%eax
call   1060 <myFunc@plt>
lea    0xed4(%rip),%rdi
call   1030 <puts@plt>
lea    0xea0(%rip),%rdi
mov    $0x25,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xec7(%rip),%rdi
call   1030 <puts@plt>
lea    0xe99(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <display@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <display@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"[htf] main() - 1.\0A\00"
@.str.1 = [24 x i8] c"[htf] main() line: %d.\0A\00"
@.str.2 = [19 x i8] c"[htf] main() - 3.\0A\00"
@.str.3 = [16 x i8] c"printf in loop.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i64
store i32 0, i32* %1
store i32 10, i32* %2
store i32 0, i32* %3
%5 = load i32, i32* %2
%6 = call i32 (i32, ...) bitcast (i32 (...)* @myFunc to i32 (i32, ...)*)(i32 %5)
store i32 %6, i32* %2
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 37)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %2
br label %10
10: ; preds = %16, %0
%11 = load i32, i32* %2
%12 = icmp slt i32 %11, 2
br i1 %12, label %13, label %19
13: ; preds = %10
%14 = load i32, i32* %2
%15 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @display to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %14)
br label %16
16: ; preds = %13
%17 = load i32, i32* %2
%18 = add nsw i32 %17, 1
store i32 %18, i32* %2
br label %10
19: ; preds = %10
%20 = load i32, i32* %2
%21 = call i32 (i32, ...) bitcast (i32 (...)* @myFunc to i32 (i32, ...)*)(i32 %20)
store i32 %21, i32* %2
%22 = load i32, i32* %1
ret i32 %22
}

LLVM IR (-O2):
@.str.1 = [24 x i8] c"[htf] main() line: %d.\0A\00"
@.str.3 = [16 x i8] c"printf in loop.\00"
@str = [18 x i8] c"[htf] main() - 1.\00"
@str.4 = [18 x i8] c"[htf] main() - 3.\00"
define i32 @main() {
%1 = tail call i32 (i32, ...) bitcast (i32 (...)* @myFunc to i32 (i32, ...)*)(i32 10)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 37)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.4, i64 0, i64 0))
%5 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @display to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 0)
%6 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @display to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 1)
tail call void asm sideeffect "\0A__HTF_LABEL_46:\0A", "~{dirflag},~{fpsr},~{flags}"()
%7 = tail call i32 (i32, ...) bitcast (i32 (...)* @myFunc to i32 (i32, ...)*)(i32 2)
tail call void asm sideeffect "\0A__HTF_LABEL_50:\0A", "~{dirflag},~{fpsr},~{flags}"()
ret i32 0
}