#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*/ tmpl(char *);
void main() {
  int n0, n1;
  int i0 = 0;
  int k = 0;
  while (i0 < n0) {
    tmpl("(le(n0,n1,i0,i1,j1,k),le(n0,n1,i0,i1,j1,k))");
    i0++;
    k++;
  }
  int i1 = 0;
  while (i1 < n1) {
    tmpl("(le(n0,n1,i0,i1,j1,k),le(n0,n1,i0,i1,j1,k))");
    i1++;
    k++;
  }
  int j1 = 0;
  while (j1 < n0 + n1) {
    tmpl("(le(n0,n1,i0,i1,j1,k),le(n0,n1,i0,i1,j1,k))");
    if (k <= 0)
    ERROR:;
      j1++;
    k--;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1155 <main+0x45>
lea    0xec7(%rip),%rdi
call   1030 <tmpl@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <main+0x16>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    118b <main+0x7b>
lea    0xe91(%rip),%rdi
call   1030 <tmpl@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    115c <main+0x4c>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x4(%rbp),%ecx
add    -0x8(%rbp),%ecx
cmp    %ecx,%eax
jge    11da <main+0xca>
lea    0xe56(%rip),%rdi
call   1030 <tmpl@plt>
cmpl   $0x0,-0x10(%rbp)
jg     11c3 <main+0xb3>
jmp    11be <main+0xae>
jmp    11c3 <main+0xb3>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
jmp    1192 <main+0x82>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
ret

LLVM IR (-O0):
@.str = [44 x i8] c"(le(n0,n1,i0,i1,j1,k),le(n0,n1,i0,i1,j1,k))\00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %3
store i32 0, i32* %4
br label %7
7: ; preds = %11, %0
%8 = load i32, i32* %3
%9 = load i32, i32* %1
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %17
11: ; preds = %7
%12 = call i32 @tmpl(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
%13 = load i32, i32* %3
%14 = add nsw i32 %13, 1
store i32 %14, i32* %3
%15 = load i32, i32* %4
%16 = add nsw i32 %15, 1
store i32 %16, i32* %4
br label %7
17: ; preds = %7
store i32 0, i32* %5
br label %18
18: ; preds = %22, %17
%19 = load i32, i32* %5
%20 = load i32, i32* %2
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %28
22: ; preds = %18
%23 = call i32 @tmpl(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
%24 = load i32, i32* %5
%25 = add nsw i32 %24, 1
store i32 %25, i32* %5
%26 = load i32, i32* %4
%27 = add nsw i32 %26, 1
store i32 %27, i32* %4
br label %18
28: ; preds = %18
store i32 0, i32* %6
br label %29
29: ; preds = %41, %28
%30 = load i32, i32* %6
%31 = load i32, i32* %1
%32 = load i32, i32* %2
%33 = add nsw i32 %31, %32
%34 = icmp slt i32 %30, %33
br i1 %34, label %35, label %46
35: ; preds = %29
%36 = call i32 @tmpl(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
%37 = load i32, i32* %4
%38 = icmp sle i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %35
br label %40
40: ; preds = %39
br label %41
41: ; preds = %40, %35
%42 = load i32, i32* %6
%43 = add nsw i32 %42, 1
store i32 %43, i32* %6
%44 = load i32, i32* %4
%45 = add nsw i32 %44, -1
store i32 %45, i32* %4
br label %29
46: ; preds = %29
ret void
}

LLVM IR (-O2):
define void @main() {
ret void
}