#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ qhost_j_filter(int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                          char const *, char const *);
int /*<<< orphan*/ *stdin;
int /*<<< orphan*/ *stdout;
int main(int argc, char *argv[]) {
  const char *dot_domain = ".ranger.tacc.utexas.edu";
  const char *clus = "ranger";
  FILE *in = stdin, *out = stdout;
  if (qhost_j_filter(in, out, dot_domain, clus) < 0)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xed3(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xee0(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0x2ea5(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
mov    0x2e87(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
call   1030 <qhost_j_filter@plt>
cmp    $0x0,%rax
jge    1183 <main+0x73>
movl   $0x1,-0x4(%rbp)
jmp    118a <main+0x7a>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ed0(%rip),%rax
mov    (%rax),%rdi
mov    0x2eb6(%rip),%rax
mov    (%rax),%rsi
lea    0xed4(%rip),%rdx
lea    0xee5(%rip),%rcx
call   1030 <qhost_j_filter@plt>
shr    $0x3f,%rax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [24 x i8] c".ranger.tacc.utexas.edu\00"
@.str.1 = [7 x i8] c"ranger\00"
@stdin = global i32* null
@stdout = global i32* null
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32*
%9 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8** %6
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8** %7
%10 = load i32*, i32** @stdin
store i32* %10, i32** %8
%11 = load i32*, i32** @stdout
store i32* %11, i32** %9
%12 = load i32*, i32** %8
%13 = load i32*, i32** %9
%14 = load i8*, i8** %6
%15 = load i8*, i8** %7
%16 = call i64 @qhost_j_filter(i32* %12, i32* %13, i8* %14, i8* %15)
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %2
store i32 1, i32* %3
br label %20
19: ; preds = %2
store i32 0, i32* %3
br label %20
20: ; preds = %19, %18
%21 = load i32, i32* %3
ret i32 %21
}

LLVM IR (-O2):
@.str = [24 x i8] c".ranger.tacc.utexas.edu\00"
@.str.1 = [7 x i8] c"ranger\00"
@stdin = global i32* null
@stdout = global i32* null
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = load i32*, i32** @stdin
%4 = load i32*, i32** @stdout
%5 = tail call i64 @qhost_j_filter(i32* %3, i32* %4, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%6 = lshr i64 %5, 63
%7 = trunc i64 %6 to i32
ret i32 %7
}