#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*/ eq_div(char *, int, int);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ less_div(char *, int, int);
int /*<<< orphan*/ more_div(char *, int, int);
int /*<<< orphan*/ read(char **, int *, int *);
int main(void) {
  char *n;
  int ln, lm;
  read(&n, &ln, &lm);
  if (ln == lm)
    eq_div(n, ln, lm);
  else if (ln < lm)
    less_div(n, ln, lm);
  else
    more_div(n, ln, lm);
  free(n);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x10(%rbp),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1050 <read@plt>
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jne    1190 <main+0x40>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1060 <eq_div@plt>
jmp    11c4 <main+0x74>
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    11b0 <main+0x60>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1070 <less_div@plt>
jmp    11bf <main+0x6f>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1040 <more_div@plt>
jmp    11c4 <main+0x74>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0x8(%rsp),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
call   1050 <read@plt>
mov    0x14(%rsp),%esi
mov    0x10(%rsp),%edx
cmp    %edx,%esi
jne    1182 <main+0x32>
mov    0x8(%rsp),%rdi
mov    %esi,%edx
call   1060 <eq_div@plt>
jmp    1195 <main+0x45>
mov    0x8(%rsp),%rdi
jge    1190 <main+0x40>
call   1070 <less_div@plt>
jmp    1195 <main+0x45>
call   1040 <more_div@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @read(i8** %2, i32* %3, i32* %4)
%6 = load i32, i32* %3
%7 = load i32, i32* %4
%8 = icmp eq i32 %6, %7
br i1 %8, label %9, label %14
9: ; preds = %0
%10 = load i8*, i8** %2
%11 = load i32, i32* %3
%12 = load i32, i32* %4
%13 = call i32 @eq_div(i8* %10, i32 %11, i32 %12)
br label %29
14: ; preds = %0
%15 = load i32, i32* %3
%16 = load i32, i32* %4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load i8*, i8** %2
%20 = load i32, i32* %3
%21 = load i32, i32* %4
%22 = call i32 @less_div(i8* %19, i32 %20, i32 %21)
br label %28
23: ; preds = %14
%24 = load i8*, i8** %2
%25 = load i32, i32* %3
%26 = load i32, i32* %4
%27 = call i32 @more_div(i8* %24, i32 %25, i32 %26)
br label %28
28: ; preds = %23, %18
br label %29
29: ; preds = %28, %9
%30 = load i8*, i8** %2
%31 = call i32 @free(i8* %30)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca i8*
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i8** %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = call i32 @read(i8** %1, i32* %2, i32* %3)
%8 = load i32, i32* %2
%9 = load i32, i32* %3
%10 = icmp eq i32 %8, %9
br i1 %10, label %11, label %14
11: ; preds = %0
%12 = load i8*, i8** %1
%13 = call i32 @eq_div(i8* %12, i32 %8, i32 %8)
br label %21
14: ; preds = %0
%15 = icmp slt i32 %8, %9
%16 = load i8*, i8** %1
br i1 %15, label %17, label %19
17: ; preds = %14
%18 = call i32 @less_div(i8* %16, i32 %8, i32 %9)
br label %21
19: ; preds = %14
%20 = call i32 @more_div(i8* %16, i32 %8, i32 %9)
br label %21
21: ; preds = %17, %19, %11
%22 = load i8*, i8** %1
%23 = call i32 @free(i8* %22)
ret i32 0
}