#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_not_op(void) {
  test("1", "main(){int i=0; printf(\"%d\", !i);}");
  test("0", "main(){int i=1; printf(\"%d\", !i);}");
  test("0", "main(){int i=0; printf(\"%d\", !!i);}");
  test("1", "main(){int i=9; printf(\"%d\", !!i);}");
}


x86 assembly (clang, -O0):
<TEST_not_op>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xee0(%rip),%rsi
call   1030 <test@plt>
lea    0xef7(%rip),%rdi
lea    0xef2(%rip),%rsi
call   1030 <test@plt>
lea    0xee4(%rip),%rdi
lea    0xf02(%rip),%rsi
call   1030 <test@plt>
lea    0xeac(%rip),%rdi
lea    0xf13(%rip),%rsi
call   1030 <test@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<TEST_not_op>:
push   %r14
push   %rbx
push   %rax
lea    0xee5(%rip),%r14
lea    0xee0(%rip),%rsi
mov    %r14,%rdi
call   1030 <test@plt>
lea    0xef4(%rip),%rbx
lea    0xeef(%rip),%rsi
mov    %rbx,%rdi
call   1030 <test@plt>
lea    0xf03(%rip),%rsi
mov    %rbx,%rdi
call   1030 <test@plt>
lea    0xf18(%rip),%rsi
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <test@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"1\00"
@.str.1 = [35 x i8] c"main(){int i=0; printf(\22%d\22, !i);}\00"
@.str.2 = [2 x i8] c"0\00"
@.str.3 = [35 x i8] c"main(){int i=1; printf(\22%d\22, !i);}\00"
@.str.4 = [36 x i8] c"main(){int i=0; printf(\22%d\22, !!i);}\00"
@.str.5 = [36 x i8] c"main(){int i=9; printf(\22%d\22, !!i);}\00"
define void @TEST_not_op() {
%1 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 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 ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
%4 = call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"1\00"
@.str.1 = [35 x i8] c"main(){int i=0; printf(\22%d\22, !i);}\00"
@.str.2 = [2 x i8] c"0\00"
@.str.3 = [35 x i8] c"main(){int i=1; printf(\22%d\22, !i);}\00"
@.str.4 = [36 x i8] c"main(){int i=0; printf(\22%d\22, !!i);}\00"
@.str.5 = [36 x i8] c"main(){int i=9; printf(\22%d\22, !!i);}\00"
define void @TEST_not_op() {
%1 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 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 ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
%4 = tail call i32 @test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
ret void
}