#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*/ assert(int);
int /*<<< orphan*/ tmpl(char *);
void main() {
  int i, k, n, l;
  tmpl("(le(n,i,k))");
  for (k = 1; k < n; k++) {
    assert(1 <= k);
    for (i = 1; i < n; i++)
      ;
    for (i = 1; i < n; i++)
      ;
    for (i = 1; i < n; i++)
      ;
    for (i = 1; i < n; i++)
      ;
    for (i = 1; i < n; i++)
      ;
    for (i = 1; i < n; i++)
      ;
    for (i = 1; i < n; i++)
      ;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
call   1030 <tmpl@plt>
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1279 <main+0x159>
mov    $0x1,%eax
cmp    -0x8(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1182 <main+0x62>
jmp    1174 <main+0x54>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1163 <main+0x43>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11a8 <main+0x88>
jmp    119a <main+0x7a>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1189 <main+0x69>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11ce <main+0xae>
jmp    11c0 <main+0xa0>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11af <main+0x8f>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11f4 <main+0xd4>
jmp    11e6 <main+0xc6>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11d5 <main+0xb5>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    121a <main+0xfa>
jmp    120c <main+0xec>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11fb <main+0xdb>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1240 <main+0x120>
jmp    1232 <main+0x112>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1221 <main+0x101>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1266 <main+0x146>
jmp    1258 <main+0x138>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1247 <main+0x127>
jmp    126b <main+0x14b>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    113b <main+0x1b>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
lea    0xee9(%rip),%rdi
jmp    1030 <tmpl@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"(le(n,i,k))\00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = call i32 @tmpl(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %2
br label %6
6: ; preds = %78, %0
%7 = load i32, i32* %2
%8 = load i32, i32* %3
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %81
10: ; preds = %6
%11 = load i32, i32* %2
%12 = icmp sle i32 1, %11
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 %13)
store i32 1, i32* %1
br label %15
15: ; preds = %20, %10
%16 = load i32, i32* %1
%17 = load i32, i32* %3
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %23
19: ; preds = %15
br label %20
20: ; preds = %19
%21 = load i32, i32* %1
%22 = add nsw i32 %21, 1
store i32 %22, i32* %1
br label %15
23: ; preds = %15
store i32 1, i32* %1
br label %24
24: ; preds = %29, %23
%25 = load i32, i32* %1
%26 = load i32, i32* %3
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %32
28: ; preds = %24
br label %29
29: ; preds = %28
%30 = load i32, i32* %1
%31 = add nsw i32 %30, 1
store i32 %31, i32* %1
br label %24
32: ; preds = %24
store i32 1, i32* %1
br label %33
33: ; preds = %38, %32
%34 = load i32, i32* %1
%35 = load i32, i32* %3
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %41
37: ; preds = %33
br label %38
38: ; preds = %37
%39 = load i32, i32* %1
%40 = add nsw i32 %39, 1
store i32 %40, i32* %1
br label %33
41: ; preds = %33
store i32 1, i32* %1
br label %42
42: ; preds = %47, %41
%43 = load i32, i32* %1
%44 = load i32, i32* %3
%45 = icmp slt i32 %43, %44
br i1 %45, label %46, label %50
46: ; preds = %42
br label %47
47: ; preds = %46
%48 = load i32, i32* %1
%49 = add nsw i32 %48, 1
store i32 %49, i32* %1
br label %42
50: ; preds = %42
store i32 1, i32* %1
br label %51
51: ; preds = %56, %50
%52 = load i32, i32* %1
%53 = load i32, i32* %3
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %59
55: ; preds = %51
br label %56
56: ; preds = %55
%57 = load i32, i32* %1
%58 = add nsw i32 %57, 1
store i32 %58, i32* %1
br label %51
59: ; preds = %51
store i32 1, i32* %1
br label %60
60: ; preds = %65, %59
%61 = load i32, i32* %1
%62 = load i32, i32* %3
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %68
64: ; preds = %60
br label %65
65: ; preds = %64
%66 = load i32, i32* %1
%67 = add nsw i32 %66, 1
store i32 %67, i32* %1
br label %60
68: ; preds = %60
store i32 1, i32* %1
br label %69
69: ; preds = %74, %68
%70 = load i32, i32* %1
%71 = load i32, i32* %3
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %77
73: ; preds = %69
br label %74
74: ; preds = %73
%75 = load i32, i32* %1
%76 = add nsw i32 %75, 1
store i32 %76, i32* %1
br label %69
77: ; preds = %69
br label %78
78: ; preds = %77
%79 = load i32, i32* %2
%80 = add nsw i32 %79, 1
store i32 %80, i32* %2
br label %6
81: ; preds = %6
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"(le(n,i,k))\00"
define void @main() {
%1 = tail call i32 @tmpl(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
ret void
}