#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*/ print_int(int);
int main() {
  int l = 20;
  int m = 25;
  do {
    print_int(l);
    l++;
    do {
      print_int(m);
      m++;
    } while (m < 30);
  } while (l < 25);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x14,-0x8(%rbp)
movl   $0x19,-0xc(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <print_int@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <print_int@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x1e,-0xc(%rbp)
jl     113e <main+0x2e>
jmp    115e <main+0x4e>
cmpl   $0x19,-0x8(%rbp)
jl     112d <main+0x1d>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x14,%edi
call   1030 <print_int@plt>
mov    $0x19,%edi
call   1030 <print_int@plt>
mov    $0x1a,%edi
call   1030 <print_int@plt>
mov    $0x1b,%edi
call   1030 <print_int@plt>
mov    $0x1c,%edi
call   1030 <print_int@plt>
mov    $0x1d,%edi
call   1030 <print_int@plt>
mov    $0x15,%edi
call   1030 <print_int@plt>
mov    $0x1e,%edi
call   1030 <print_int@plt>
mov    $0x16,%edi
call   1030 <print_int@plt>
mov    $0x1f,%edi
call   1030 <print_int@plt>
mov    $0x17,%edi
call   1030 <print_int@plt>
mov    $0x20,%edi
call   1030 <print_int@plt>
mov    $0x18,%edi
call   1030 <print_int@plt>
mov    $0x21,%edi
call   1030 <print_int@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 20, i32* %2
store i32 25, i32* %3
br label %4
4: ; preds = %18, %0
%5 = load i32, i32* %2
%6 = call i32 @print_int(i32 %5)
%7 = load i32, i32* %2
%8 = add nsw i32 %7, 1
store i32 %8, i32* %2
br label %9
9: ; preds = %14, %4
%10 = load i32, i32* %3
%11 = call i32 @print_int(i32 %10)
%12 = load i32, i32* %3
%13 = add nsw i32 %12, 1
store i32 %13, i32* %3
br label %14
14: ; preds = %9
%15 = load i32, i32* %3
%16 = icmp slt i32 %15, 30
br i1 %16, label %9, label %17
17: ; preds = %14
br label %18
18: ; preds = %17
%19 = load i32, i32* %2
%20 = icmp slt i32 %19, 25
br i1 %20, label %4, label %21
21: ; preds = %18
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @print_int(i32 20)
%2 = tail call i32 @print_int(i32 25)
%3 = tail call i32 @print_int(i32 26)
%4 = tail call i32 @print_int(i32 27)
%5 = tail call i32 @print_int(i32 28)
%6 = tail call i32 @print_int(i32 29)
%7 = tail call i32 @print_int(i32 21)
%8 = tail call i32 @print_int(i32 30)
%9 = tail call i32 @print_int(i32 22)
%10 = tail call i32 @print_int(i32 31)
%11 = tail call i32 @print_int(i32 23)
%12 = tail call i32 @print_int(i32 32)
%13 = tail call i32 @print_int(i32 24)
%14 = tail call i32 @print_int(i32 33)
ret i32 0
}