#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*/ abrute(char *, char *, int /*<<< orphan*/,
                          int /*<<< orphan*/);
int atoi(char *);
int main(int argc, char *argv[]) {
  if (argc < 4)
    return 0;
  int len = atoi(argv[2]);
  int end = atoi(argv[3]);
  char a[end];
  int b = 0;
  while (b <= end)
    a[b++] = '\0';
  while (len <= end)
    abrute(a, argv[1], 0, len++);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    114c <main+0x2c>
movl   $0x0,-0x4(%rbp)
jmp    1202 <main+0xe2>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1040 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1040 <atoi@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x38(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     11c0 <main+0xa0>
mov    -0x38(%rbp),%rax
mov    -0x2c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x2c(%rbp)
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
jmp    1199 <main+0x79>
jmp    11c5 <main+0xa5>
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     11f4 <main+0xd4>
mov    -0x38(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    -0x14(%rbp),%ecx
mov    %ecx,%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
xor    %edx,%edx
call   1030 <abrute@plt>
jmp    11c5 <main+0xa5>
movl   $0x0,-0x4(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
cmp    $0x4,%edi
jl     11ce <main+0x9e>
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    0x10(%rsi),%rdi
call   1050 <atoi@plt>
mov    %eax,%ebx
mov    0x18(%r14),%rdi
call   1050 <atoi@plt>
mov    %rsp,-0x30(%rbp)
mov    %eax,%r13d
mov    %rsp,%r15
lea    0xf(%r13),%rcx
and    $0xfffffffffffffff0,%rcx
sub    %rcx,%r15
mov    %r15,%rsp
test   %eax,%eax
js     1188 <main+0x58>
lea    0x1(%r13),%rdx
mov    %r15,%rdi
xor    %esi,%esi
call   1040 <memset@plt>
cmp    %r13d,%ebx
jg     11bc <main+0x8c>
add    $0x1,%r13d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x8(%r14),%rsi
lea    0x1(%rbx),%r12d
mov    %r15,%rdi
xor    %edx,%edx
mov    %ebx,%ecx
call   1030 <abrute@plt>
mov    %r12d,%ebx
cmp    %r12d,%r13d
jne    11a0 <main+0x70>
mov    -0x30(%rbp),%rsp
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i64
%10 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = load i32, i32* %4
%12 = icmp slt i32 %11, 4
br i1 %12, label %13, label %14
13: ; preds = %2
store i32 0, i32* %3
br label %50
14: ; preds = %2
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 2
%17 = load i8*, i8** %16
%18 = call i32 @atoi(i8* %17)
store i32 %18, i32* %6
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 3
%21 = load i8*, i8** %20
%22 = call i32 @atoi(i8* %21)
store i32 %22, i32* %7
%23 = load i32, i32* %7
%24 = zext i32 %23 to i64
%25 = call i8* @llvm.stacksave()
store i8* %25, i8** %8
%26 = alloca i8, i64 %24
store i64 %24, i64* %9
store i32 0, i32* %10
br label %27
27: ; preds = %31, %14
%28 = load i32, i32* %10
%29 = load i32, i32* %7
%30 = icmp sle i32 %28, %29
br i1 %30, label %31, label %36
31: ; preds = %27
%32 = load i32, i32* %10
%33 = add nsw i32 %32, 1
store i32 %33, i32* %10
%34 = sext i32 %32 to i64
%35 = getelementptr inbounds i8, i8* %26, i64 %34
store i8 0, i8* %35
br label %27
36: ; preds = %27
br label %37
37: ; preds = %41, %36
%38 = load i32, i32* %6
%39 = load i32, i32* %7
%40 = icmp sle i32 %38, %39
br i1 %40, label %41, label %48
41: ; preds = %37
%42 = load i8**, i8*** %5
%43 = getelementptr inbounds i8*, i8** %42, i64 1
%44 = load i8*, i8** %43
%45 = load i32, i32* %6
%46 = add nsw i32 %45, 1
store i32 %46, i32* %6
%47 = call i32 @abrute(i8* %26, i8* %44, i32 0, i32 %45)
br label %37
48: ; preds = %37
store i32 0, i32* %3
%49 = load i8*, i8** %8
br label %50
50: ; preds = %48, %13
%51 = load i32, i32* %3
ret i32 %51
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 4
br i1 %3, label %28, label %4
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 2
%6 = load i8*, i8** %5
%7 = tail call i32 @atoi(i8* %6)
%8 = getelementptr inbounds i8*, i8** %1, i64 3
%9 = load i8*, i8** %8
%10 = tail call i32 @atoi(i8* %9)
%11 = zext i32 %10 to i64
%12 = tail call i8* @llvm.stacksave()
%13 = alloca i8, i64 %11
%14 = icmp slt i32 %10, 0
br i1 %14, label %17, label %15
15: ; preds = %4
%16 = add nuw nsw i64 %11, 1
br label %17
17: ; preds = %15, %4
%18 = icmp sgt i32 %7, %10
br i1 %18, label %27, label %19
19: ; preds = %17
%20 = getelementptr inbounds i8*, i8** %1, i64 1
br label %21
21: ; preds = %19, %21
%22 = phi i32 [ %7, %19 ], [ %24, %21 ]
%23 = load i8*, i8** %20
%24 = add i32 %22, 1
%25 = call i32 @abrute(i8* %13, i8* %23, i32 0, i32 %22)
%26 = icmp eq i32 %22, %10
br i1 %26, label %27, label %21
27: ; preds = %21, %17
br label %28
28: ; preds = %2, %27
ret i32 0
}