#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*/ test(char *, char *);
void TEST_eq_and_ne(void) {
  test("1", "main(){int i=5; int j=5; int k=i==j; printf(\"%d\", k);}");
  test("0", "main(){int i=3; int j=5; int k=i==j; printf(\"%d\", k);}");
  test("true", "main(){int i=5; int j=5; if (i==j) { printf(\"true\"); } else "
               "{ printf(\"false\"); }}");
  test("false", "main(){int i=3; int j=5; if (i==j) { printf(\"true\"); } else "
                "{ printf(\"false\"); }}");
  test("0", "main(){int i=5; int j=5; int k=i!=j; printf(\"%d\", k);}");
  test("1", "main(){int i=3; int j=5; int k=i!=j; printf(\"%d\", k);}");
  test("false", "main(){int i=5; int j=5; if (i!=j) { printf(\"true\"); } else "
                "{ printf(\"false\"); }}");
  test("true", "main(){int i=3; int j=5; if (i!=j) { printf(\"true\"); } else "
               "{ printf(\"false\"); }}");
  test("1", "main(){printf(\"%d\", 1.2 == 1.2);}");
  test("0", "main(){printf(\"%d\", 1.2 == 1.0);}");
  test("0", "main(){printf(\"%d\", 1.2 != 1.2);}");
  test("1", "main(){printf(\"%d\", 1.2 != 1.0);}");
}


x86 assembly (clang, -O0):
<TEST_eq_and_ne>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xee0(%rip),%rsi
call   1030 <test@plt>
lea    0xf0b(%rip),%rdi
lea    0xf06(%rip),%rsi
call   1030 <test@plt>
lea    0xf31(%rip),%rdi
lea    0xf2f(%rip),%rsi
call   1030 <test@plt>
lea    0xf75(%rip),%rdi
lea    0xf74(%rip),%rsi
call   1030 <test@plt>
lea    0xed2(%rip),%rdi
lea    0xfb3(%rip),%rsi
call   1030 <test@plt>
lea    0xe86(%rip),%rdi
lea    0xfd7(%rip),%rsi
call   1030 <test@plt>
lea    0xf3c(%rip),%rdi
lea    0xffb(%rip),%rsi
call   1030 <test@plt>
lea    0xed2(%rip),%rdi
lea    0x103a(%rip),%rsi
call   1030 <test@plt>
lea    0xe4d(%rip),%rdi
lea    0x1079(%rip),%rsi
call   1030 <test@plt>
lea    0xe73(%rip),%rdi
lea    0x1088(%rip),%rsi
call   1030 <test@plt>
lea    0xe60(%rip),%rdi
lea    0x1097(%rip),%rsi
call   1030 <test@plt>
lea    0xe14(%rip),%rdi
lea    0x10a6(%rip),%rsi
call   1030 <test@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<TEST_eq_and_ne>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xee1(%rip),%r14
lea    0xedc(%rip),%rsi
mov    %r14,%rdi
call   1030 <test@plt>
lea    0xf04(%rip),%r12
lea    0xeff(%rip),%rsi
mov    %r12,%rdi
call   1030 <test@plt>
lea    0xf27(%rip),%r15
lea    0xf25(%rip),%rsi
mov    %r15,%rdi
call   1030 <test@plt>
lea    0xf68(%rip),%rbx
lea    0xf67(%rip),%rsi
mov    %rbx,%rdi
call   1030 <test@plt>
lea    0xfaa(%rip),%rsi
mov    %r12,%rdi
call   1030 <test@plt>
lea    0xfd2(%rip),%rsi
mov    %r14,%rdi
call   1030 <test@plt>
lea    0xffa(%rip),%rsi
mov    %rbx,%rdi
call   1030 <test@plt>
lea    0x103d(%rip),%rsi
mov    %r15,%rdi
call   1030 <test@plt>
lea    0x1080(%rip),%rsi
mov    %r14,%rdi
call   1030 <test@plt>
lea    0x1093(%rip),%rsi
mov    %r12,%rdi
call   1030 <test@plt>
lea    0x10a6(%rip),%rsi
mov    %r12,%rdi
call   1030 <test@plt>
lea    0x10b9(%rip),%rsi
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1030 <test@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"1\00"
@.str.1 = [55 x i8] c"main(){int i=5; int j=5; int k=i==j; printf(\22%d\22, k);}\00"
@.str.2 = [2 x i8] c"0\00"
@.str.3 = [55 x i8] c"main(){int i=3; int j=5; int k=i==j; printf(\22%d\22, k);}\00"
@.str.4 = [5 x i8] c"true\00"
@.str.5 = [82 x i8] c"main(){int i=5; int j=5; if (i==j) { printf(\22true\22); } else { printf(\22false\22); }}\00"
@.str.6 = [6 x i8] c"false\00"
@.str.7 = [82 x i8] c"main(){int i=3; int j=5; if (i==j) { printf(\22true\22); } else { printf(\22false\22); }}\00"
@.str.8 = [55 x i8] c"main(){int i=5; int j=5; int k=i!=j; printf(\22%d\22, k);}\00"
@.str.9 = [55 x i8] c"main(){int i=3; int j=5; int k=i!=j; printf(\22%d\22, k);}\00"
@.str.10 = [82 x i8] c"main(){int i=5; int j=5; if (i!=j) { printf(\22true\22); } else { printf(\22false\22); }}\00"
@.str.11 = [82 x i8] c"main(){int i=3; int j=5; if (i!=j) { printf(\22true\22); } else { printf(\22false\22); }}\00"
@.str.12 = [34 x i8] c"main(){printf(\22%d\22, 1.2 == 1.2);}\00"
@.str.13 = [34 x i8] c"main(){printf(\22%d\22, 1.2 == 1.0);}\00"
@.str.14 = [34 x i8] c"main(){printf(\22%d\22, 1.2 != 1.2);}\00"
@.str.15 = [34 x i8] c"main(){printf(\22%d\22, 1.2 != 1.0);}\00"
define void @TEST_eq_and_ne() {
%1 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 @test(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.5, i64 0, i64 0))
%4 = call i32 @test(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.7, i64 0, i64 0))
%5 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0))
%6 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.9, i64 0, i64 0))
%7 = call i32 @test(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.10, i64 0, i64 0))
%8 = call i32 @test(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.11, i64 0, i64 0))
%9 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0))
%10 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0))
%11 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.14, i64 0, i64 0))
%12 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.15, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"1\00"
@.str.1 = [55 x i8] c"main(){int i=5; int j=5; int k=i==j; printf(\22%d\22, k);}\00"
@.str.2 = [2 x i8] c"0\00"
@.str.3 = [55 x i8] c"main(){int i=3; int j=5; int k=i==j; printf(\22%d\22, k);}\00"
@.str.4 = [5 x i8] c"true\00"
@.str.5 = [82 x i8] c"main(){int i=5; int j=5; if (i==j) { printf(\22true\22); } else { printf(\22false\22); }}\00"
@.str.6 = [6 x i8] c"false\00"
@.str.7 = [82 x i8] c"main(){int i=3; int j=5; if (i==j) { printf(\22true\22); } else { printf(\22false\22); }}\00"
@.str.8 = [55 x i8] c"main(){int i=5; int j=5; int k=i!=j; printf(\22%d\22, k);}\00"
@.str.9 = [55 x i8] c"main(){int i=3; int j=5; int k=i!=j; printf(\22%d\22, k);}\00"
@.str.10 = [82 x i8] c"main(){int i=5; int j=5; if (i!=j) { printf(\22true\22); } else { printf(\22false\22); }}\00"
@.str.11 = [82 x i8] c"main(){int i=3; int j=5; if (i!=j) { printf(\22true\22); } else { printf(\22false\22); }}\00"
@.str.12 = [34 x i8] c"main(){printf(\22%d\22, 1.2 == 1.2);}\00"
@.str.13 = [34 x i8] c"main(){printf(\22%d\22, 1.2 == 1.0);}\00"
@.str.14 = [34 x i8] c"main(){printf(\22%d\22, 1.2 != 1.2);}\00"
@.str.15 = [34 x i8] c"main(){printf(\22%d\22, 1.2 != 1.0);}\00"
define void @TEST_eq_and_ne() {
%1 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @test(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.5, i64 0, i64 0))
%4 = tail call i32 @test(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.7, i64 0, i64 0))
%5 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0))
%6 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.9, i64 0, i64 0))
%7 = tail call i32 @test(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.10, i64 0, i64 0))
%8 = tail call i32 @test(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.11, i64 0, i64 0))
%9 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0))
%10 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0))
%11 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.14, i64 0, i64 0))
%12 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.15, i64 0, i64 0))
ret void
}