#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*/ clr();
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ gets(char *);
int /*<<< orphan*/ gotoxy(int, int);
int /*<<< orphan*/ printf(char *);
int strcmp(char *, char *);
int main() {
  char s1[30], s2[30];
  int c;
  clr();
  gotoxy(10, 10);
  printf("Enter First String: ");
  gets(s1);
  clr();
  gotoxy(10, 10);
  printf("Enter Second String: ");
  gets(s2);
  clr();
  c = strcmp(s1, s2);
  gotoxy(10, 10);
  if (c == 0) {
    printf("The strings are equal");
  } else {
    printf("The strings are not equal");
  }
  getchar();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <clr@plt>
mov    $0xa,%esi
mov    %esi,%edi
call   1080 <gotoxy@plt>
lea    0xe77(%rip),%rdi
call   1040 <printf@plt>
lea    -0x30(%rbp),%rdi
call   1070 <gets@plt>
mov    $0x0,%al
call   1030 <clr@plt>
mov    $0xa,%esi
mov    %esi,%edi
call   1080 <gotoxy@plt>
lea    0xe64(%rip),%rdi
call   1040 <printf@plt>
lea    -0x50(%rbp),%rdi
call   1070 <gets@plt>
mov    $0x0,%al
call   1030 <clr@plt>
lea    -0x30(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1050 <strcmp@plt>
mov    %eax,-0x54(%rbp)
mov    $0xa,%esi
mov    %esi,%edi
call   1080 <gotoxy@plt>
cmpl   $0x0,-0x54(%rbp)
jne    11fd <main+0x9d>
lea    0xe38(%rip),%rdi
call   1040 <printf@plt>
jmp    1209 <main+0xa9>
lea    0xe3d(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x48,%rsp
xor    %eax,%eax
call   1030 <clr@plt>
mov    $0xa,%edi
mov    $0xa,%esi
call   1080 <gotoxy@plt>
lea    0xe7c(%rip),%rdi
call   1040 <printf@plt>
lea    0x20(%rsp),%r14
mov    %r14,%rdi
call   1070 <gets@plt>
xor    %eax,%eax
call   1030 <clr@plt>
mov    $0xa,%edi
mov    $0xa,%esi
call   1080 <gotoxy@plt>
lea    0xe62(%rip),%rdi
call   1040 <printf@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1070 <gets@plt>
xor    %eax,%eax
call   1030 <clr@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <strcmp@plt>
mov    %eax,%ebx
mov    $0xa,%edi
mov    $0xa,%esi
call   1080 <gotoxy@plt>
test   %ebx,%ebx
lea    0xe3c(%rip),%rax
lea    0xe4b(%rip),%rdi
cmove  %rax,%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1060 <getchar@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [21 x i8] c"Enter First String: \00"
@.str.1 = [22 x i8] c"Enter Second String: \00"
@.str.2 = [22 x i8] c"The strings are equal\00"
@.str.3 = [26 x i8] c"The strings are not equal\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [30 x i8]
%3 = alloca [30 x i8]
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 (...) @clr()
%6 = call i32 @gotoxy(i32 10, i32 10)
%7 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%8 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 0
%9 = call i32 @gets(i8* %8)
%10 = call i32 (...) @clr()
%11 = call i32 @gotoxy(i32 10, i32 10)
%12 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%13 = getelementptr inbounds [30 x i8], [30 x i8]* %3, i64 0, i64 0
%14 = call i32 @gets(i8* %13)
%15 = call i32 (...) @clr()
%16 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 0
%17 = getelementptr inbounds [30 x i8], [30 x i8]* %3, i64 0, i64 0
%18 = call i32 @strcmp(i8* %16, i8* %17)
store i32 %18, i32* %4
%19 = call i32 @gotoxy(i32 10, i32 10)
%20 = load i32, i32* %4
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %0
%23 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
br label %26
24: ; preds = %0
%25 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
br label %26
26: ; preds = %24, %22
%27 = call i32 (...) @getchar()
%28 = load i32, i32* %1
ret i32 %28
}

LLVM IR (-O2):
@.str = [21 x i8] c"Enter First String: \00"
@.str.1 = [22 x i8] c"Enter Second String: \00"
@.str.2 = [22 x i8] c"The strings are equal\00"
@.str.3 = [26 x i8] c"The strings are not equal\00"
define i32 @main() {
%1 = alloca [30 x i8]
%2 = alloca [30 x i8]
%3 = getelementptr inbounds [30 x i8], [30 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 0
%5 = tail call i32 (...) @clr()
%6 = tail call i32 @gotoxy(i32 10, i32 10)
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @gets(i8* %3)
%9 = call i32 (...) @clr()
%10 = call i32 @gotoxy(i32 10, i32 10)
%11 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 @gets(i8* %4)
%13 = call i32 (...) @clr()
%14 = call i32 @strcmp(i8* %3, i8* %4)
%15 = call i32 @gotoxy(i32 10, i32 10)
%16 = icmp eq i32 %14, 0
%17 = select i1 %16, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0)
%18 = call i32 @printf(i8* dereferenceable(1) %17)
%19 = call i32 (...) @getchar()
ret i32 0
}