#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 */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char const *);
scalar_t__ strcmp(char const *, char *);
void maybeAnyObject(const char *hint, int pep484, FILE *fp) {
  fprintf(
      fp, "%s",
      (strcmp(hint, "Any") != 0 ? hint : ((pep484) ? "typing.Any" : "object")));
}


x86 assembly (clang, -O0):
<maybeAnyObject>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xec4(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     1162 <maybeAnyObject+0x42>
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
jmp    117e <maybeAnyObject+0x5e>
mov    -0xc(%rbp),%edx
lea    0xea2(%rip),%rax
lea    0xe90(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rdx
lea    0xe73(%rip),%rsi
call   1040 <fprintf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<maybeAnyObject>:
push   %rbp
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %esi,%ebp
mov    %rdi,%rbx
lea    0xed4(%rip),%rsi
call   1040 <strcmp@plt>
test   %ebp,%ebp
lea    0xeca(%rip),%rcx
lea    0xeb8(%rip),%rdi
cmove  %rcx,%rdi
test   %rax,%rax
cmovne %rbx,%rdi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <fputs@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [4 x i8] c"Any\00"
@.str.2 = [11 x i8] c"typing.Any\00"
@.str.3 = [7 x i8] c"object\00"
define void @maybeAnyObject(i8* %0, i32 %1, i32* %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32*
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32* %2, i32** %6
%7 = load i32*, i32** %6
%8 = load i8*, i8** %4
%9 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %3
%12 = load i8*, i8** %4
br label %18
13: ; preds = %3
%14 = load i32, i32* %5
%15 = icmp ne i32 %14, 0
%16 = zext i1 %15 to i64
%17 = select i1 %15, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0)
br label %18
18: ; preds = %13, %11
%19 = phi i8* [ %12, %11 ], [ %17, %13 ]
%20 = call i32 @fprintf(i32* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %19)
ret void
}

LLVM IR (-O2):
@.str.1 = [4 x i8] c"Any\00"
@.str.2 = [11 x i8] c"typing.Any\00"
@.str.3 = [7 x i8] c"object\00"
define void @maybeAnyObject(i8* %0, i32 %1, i32* nocapture %2) {
%4 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp eq i64 %4, 0
%6 = icmp eq i32 %1, 0
%7 = select i1 %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0)
%8 = select i1 %5, i8* %7, i8* %0
%9 = tail call i32 @fputs(i8* %8, i32* %2)
ret void
}