#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 any(char *, char *);
int /*<<< orphan*/ fgets(char *, size_t const, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ stdin;
int main() {
  const size_t MAX = 100;
  char s1[MAX], s2[MAX];
  fgets(s1, MAX, stdin);
  fgets(s2, MAX, stdin);
  int result = any(s1, s2);
  printf("%d\n", result);
  return result;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x64,-0x10(%rbp)
mov    %rsp,%rax
mov    %rax,-0x18(%rbp)
mov    0x2e90(%rip),%rax
mov    (%rax),%edx
lea    -0x80(%rbp),%rdi
mov    $0x64,%esi
call   1040 <fgets@plt>
mov    0x2e79(%rip),%rax
mov    (%rax),%edx
lea    -0xf0(%rbp),%rdi
mov    $0x64,%esi
call   1040 <fgets@plt>
lea    -0x80(%rbp),%rdi
lea    -0xf0(%rbp),%rsi
call   1050 <any@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%esi
lea    0xe61(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0xd8,%rsp
mov    0x2ea7(%rip),%rbx
mov    (%rbx),%edx
lea    0x70(%rsp),%r14
mov    $0x64,%esi
mov    %r14,%rdi
call   1040 <fgets@plt>
mov    (%rbx),%edx
mov    %rsp,%rbx
mov    $0x64,%esi
mov    %rbx,%rdi
call   1040 <fgets@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <any@plt>
mov    %eax,%ebx
lea    0xe85(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    %ebx,%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@stdin = global i32 0
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i8*
%4 = alloca i32
store i32 0, i32* %1
store i64 100, i64* %2
%5 = call i8* @llvm.stacksave()
store i8* %5, i8** %3
%6 = alloca i8, i64 100
%7 = alloca i8, i64 100
%8 = load i32, i32* @stdin
%9 = call i32 @fgets(i8* %6, i64 100, i32 %8)
%10 = load i32, i32* @stdin
%11 = call i32 @fgets(i8* %7, i64 100, i32 %10)
%12 = call i32 @any(i8* %6, i8* %7)
store i32 %12, i32* %4
%13 = load i32, i32* %4
%14 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %13)
%15 = load i32, i32* %4
store i32 %15, i32* %1
%16 = load i8*, i8** %3
%17 = load i32, i32* %1
ret i32 %17
}

LLVM IR (-O2):
@stdin = global i32 0
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca [100 x i8]
%2 = alloca [100 x i8]
%3 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%4 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%5 = load i32, i32* @stdin
%6 = call i32 @fgets(i8* %4, i64 100, i32 %5)
%7 = load i32, i32* @stdin
%8 = call i32 @fgets(i8* %3, i64 100, i32 %7)
%9 = call i32 @any(i8* %4, i8* %3)
%10 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %9)
ret i32 %9
}