#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 *, int, int, int);
int t5_1_2(int, int);
int main() {
  int j = 0;
  for (; j < 11; j++) {
    int a1 = t5_1_2(1, 4);
    int a2 = t5_1_2(11, 14);
    printf("between %d and %d: %d\n", a1, a2, t5_1_2(a1, a2));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0xb,-0x8(%rbp)
jge    119d <main+0x7d>
mov    $0x1,%edi
mov    $0x4,%esi
call   1040 <t5_1_2@plt>
mov    %eax,-0xc(%rbp)
mov    $0xb,%edi
mov    $0xe,%esi
call   1040 <t5_1_2@plt>
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1040 <t5_1_2@plt>
mov    -0x18(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    %eax,%ecx
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <main+0x16>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    $0xb,%ebp
lea    0xecd(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0x1,%edi
mov    $0x4,%esi
call   1040 <t5_1_2@plt>
mov    %eax,%r15d
mov    $0xb,%edi
mov    $0xe,%esi
call   1040 <t5_1_2@plt>
mov    %eax,%ebx
mov    %r15d,%edi
mov    %eax,%esi
call   1040 <t5_1_2@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    %ebx,%edx
mov    %eax,%ecx
call   1030 <printf@plt>
add    $0xffffffff,%ebp
jne    1140 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [23 x i8] c"between %d and %d: %d\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %7, %1 ]
%3 = tail call i32 @t5_1_2(i32 1, i32 4)
%4 = tail call i32 @t5_1_2(i32 11, i32 14)
%5 = tail call i32 @t5_1_2(i32 %3, i32 %4)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %4, i32 %5)
%7 = add nuw nsw i32 %2, 1
%8 = icmp eq i32 %7, 11
br i1 %8, label %9, label %1
9: ; preds = %1
ret i32 0
}