#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*/ assume(int);
int /*<<< orphan*/ tmpl(char *);
void main() {
  int idBitLength, material_length, nlen;
  int j, k;
  tmpl("(le(j,nlen,idBitLength, material_length),le(j,nlen,idBitLength, "
       "material_length))");
  assume(nlen == idBitLength / 32);
  for (j = 0; (j < idBitLength / 8) && (j < material_length); j++) {
    assert(0 <= j);
    assert(j < material_length);
    assert(0 <= j / 4);
    assert(j / 4 < nlen);
  }
  return;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    0xec1(%rip),%rdi
call   1030 <tmpl@plt>
mov    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x20,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x18(%rbp),%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assume@plt>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%ecx
mov    -0x4(%rbp),%eax
mov    $0x8,%esi
cltd
idiv   %esi
mov    %eax,%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x19(%rbp)
jge    1199 <main+0x69>
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
setl   %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
test   $0x1,%al
jne    11a9 <main+0x79>
jmp    1215 <main+0xe5>
xor    %eax,%eax
cmp    -0x10(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x10(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x10(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    -0xc(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1170 <main+0x40>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <tmpl@plt>
xor    %edi,%edi
pop    %rax
jmp    1040 <assume@plt>

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

LLVM IR (-O2):
@.str = [82 x i8] c"(le(j,nlen,idBitLength, material_length),le(j,nlen,idBitLength, material_length))\00"
define void @main() {
%1 = tail call i32 @tmpl(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @assume(i32 0)
ret void
}