#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*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, char *, char *);
int strcmp(char *, char *);
char tolower(char);
int main() {
  char x[102], stf[102];
  scanf("%s%s", x, stf);
  int co;
  for (co = 0; x[co] != '\0'; co++) {
    x[co] = tolower(x[co]);
    stf[co] = tolower(stf[co]);
  }
  printf("%d", strcmp(x, stf));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x70(%rbp),%rsi
lea    -0xe0(%rbp),%rdx
lea    0xe9c(%rip),%rdi
call   1060 <scanf@plt>
movl   $0x0,-0xe4(%rbp)
movslq -0xe4(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%eax
cmp    $0x0,%eax
je     11de <main+0x9e>
movslq -0xe4(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%edi
call   1050 <tolower@plt>
mov    %al,%cl
movslq -0xe4(%rbp),%rax
mov    %cl,-0x70(%rbp,%rax,1)
movslq -0xe4(%rbp),%rax
movsbl -0xe0(%rbp,%rax,1),%edi
ff
call   1050 <tolower@plt>
mov    %al,%cl
movslq -0xe4(%rbp),%rax
mov    %cl,-0xe0(%rbp,%rax,1)
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
jmp    1173 <main+0x33>
lea    -0x70(%rbp),%rdi
lea    -0xe0(%rbp),%rsi
call   1040 <strcmp@plt>
mov    %eax,%esi
lea    0xe0e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0xe0,%rsp
lea    0xeb1(%rip),%rdi
mov    %rsp,%rsi
lea    0x70(%rsp),%rdx
call   1060 <scanf@plt>
mov    (%rsp),%al
test   %al,%al
je     1196 <main+0x56>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
movsbl %al,%edi
call   1050 <tolower@plt>
mov    %al,(%rsp,%rbx,1)
movsbl 0x70(%rsp,%rbx,1),%edi
call   1050 <tolower@plt>
mov    %al,0x70(%rsp,%rbx,1)
movzbl 0x1(%rsp,%rbx,1),%eax
add    $0x1,%rbx
test   %al,%al
jne    1170 <main+0x30>
mov    %rsp,%rdi
lea    0x70(%rsp),%rsi
call   1040 <strcmp@plt>
lea    0xe5b(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xe0,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%s%s\00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [102 x i8]
%3 = alloca [102 x i8]
%4 = alloca i32
store i32 0, i32* %1
%5 = getelementptr inbounds [102 x i8], [102 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [102 x i8], [102 x i8]* %3, i64 0, i64 0
%7 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %6)
store i32 0, i32* %4
br label %8
8: ; preds = %32, %0
%9 = load i32, i32* %4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [102 x i8], [102 x i8]* %2, i64 0, i64 %10
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %35
15: ; preds = %8
%16 = load i32, i32* %4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [102 x i8], [102 x i8]* %2, i64 0, i64 %17
%19 = load i8, i8* %18
%20 = call signext i8 @tolower(i8 signext %19)
%21 = load i32, i32* %4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [102 x i8], [102 x i8]* %2, i64 0, i64 %22
store i8 %20, i8* %23
%24 = load i32, i32* %4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [102 x i8], [102 x i8]* %3, i64 0, i64 %25
%27 = load i8, i8* %26
%28 = call signext i8 @tolower(i8 signext %27)
%29 = load i32, i32* %4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [102 x i8], [102 x i8]* %3, i64 0, i64 %30
store i8 %28, i8* %31
br label %32
32: ; preds = %15
%33 = load i32, i32* %4
%34 = add nsw i32 %33, 1
store i32 %34, i32* %4
br label %8
35: ; preds = %8
%36 = getelementptr inbounds [102 x i8], [102 x i8]* %2, i64 0, i64 0
%37 = getelementptr inbounds [102 x i8], [102 x i8]* %3, i64 0, i64 0
%38 = call i32 @strcmp(i8* %36, i8* %37)
%39 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %38)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%s%s\00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca [102 x i8]
%2 = alloca [102 x i8]
%3 = getelementptr inbounds [102 x i8], [102 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [102 x i8], [102 x i8]* %2, i64 0, i64 0
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %4)
%6 = load i8, i8* %3
%7 = icmp eq i8 %6, 0
br i1 %7, label %20, label %8
8: ; preds = %0, %8
%9 = phi i64 [ %16, %8 ], [ 0, %0 ]
%10 = phi i8 [ %18, %8 ], [ %6, %0 ]
%11 = phi i8* [ %17, %8 ], [ %3, %0 ]
%12 = call signext i8 @tolower(i8 signext %10)
store i8 %12, i8* %11
%13 = getelementptr inbounds [102 x i8], [102 x i8]* %2, i64 0, i64 %9
%14 = load i8, i8* %13
%15 = call signext i8 @tolower(i8 signext %14)
store i8 %15, i8* %13
%16 = add nuw i64 %9, 1
%17 = getelementptr inbounds [102 x i8], [102 x i8]* %1, i64 0, i64 %16
%18 = load i8, i8* %17
%19 = icmp eq i8 %18, 0
br i1 %19, label %20, label %8
20: ; preds = %8, %0
%21 = call i32 @strcmp(i8* %3, i8* %4)
%22 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %21)
ret i32 0
}