#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 /*<<< orphan*/ scanf(char *, char **, char **);
int /*<<< orphan*/ strcmp(char *, char *);
int main(int argc, char const *argv[]) {
  char a[51], b[51];
  scanf(" %s %s", &a, &b);
  if (!strcmp(a, b)) {
    printf("IGUAIS");
  } else {
    printf("DIFERENTES");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x50(%rbp),%rsi
lea    -0x90(%rbp),%rdx
lea    0xea5(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x50(%rbp),%rdi
lea    -0x90(%rbp),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    118a <main+0x5a>
lea    0xe87(%rip),%rdi
call   1030 <printf@plt>
jmp    1196 <main+0x66>
lea    0xe7d(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x78,%rsp
lea    0xec2(%rip),%rdi
lea    0x40(%rsp),%rbx
mov    %rsp,%r14
mov    %rbx,%rsi
mov    %r14,%rdx
call   1050 <scanf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
lea    0xea2(%rip),%rax
lea    0xea2(%rip),%rdi
cmove  %rax,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [7 x i8] c" %s %s\00"
@.str.1 = [7 x i8] c"IGUAIS\00"
@.str.2 = [11 x i8] c"DIFERENTES\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [51 x i8]
%7 = alloca [51 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = bitcast [51 x i8]* %6 to i8**
%9 = bitcast [51 x i8]* %7 to i8**
%10 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8** %8, i8** %9)
%11 = getelementptr inbounds [51 x i8], [51 x i8]* %6, i64 0, i64 0
%12 = getelementptr inbounds [51 x i8], [51 x i8]* %7, i64 0, i64 0
%13 = call i32 @strcmp(i8* %11, i8* %12)
%14 = icmp ne i32 %13, 0
br i1 %14, label %17, label %15
15: ; preds = %2
%16 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %19
17: ; preds = %2
%18 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
br label %19
19: ; preds = %17, %15
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c" %s %s\00"
@.str.1 = [7 x i8] c"IGUAIS\00"
@.str.2 = [11 x i8] c"DIFERENTES\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [51 x i8]
%4 = alloca [51 x i8]
%5 = getelementptr inbounds [51 x i8], [51 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [51 x i8], [51 x i8]* %4, i64 0, i64 0
%7 = bitcast [51 x i8]* %3 to i8**
%8 = bitcast [51 x i8]* %4 to i8**
%9 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8** %7, i8** %8)
%10 = call i32 @strcmp(i8* %5, i8* %6)
%11 = icmp eq i32 %10, 0
%12 = select i1 %11, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0)
%13 = call i32 @printf(i8* dereferenceable(1) %12)
ret i32 0
}