#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_char_type(void) {
  test("3 257", "main(){char c=3; int i=c+254; printf(\"%d %d\", c, i);}");
  test("2", "main(){char c=255+3; printf(\"%d\", c);}");
  test("-1", "main(){char c=255; printf(\"%d\", c);}");
  test("255", "main(){unsigned char c=255; printf(\"%d\", c);}");
}


x86 assembly (clang, -O0):
<TEST_char_type>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xee4(%rip),%rsi
call   1030 <test@plt>
lea    0xf0e(%rip),%rdi
lea    0xf09(%rip),%rsi
call   1030 <test@plt>
lea    0xf24(%rip),%rdi
lea    0xf20(%rip),%rsi
call   1030 <test@plt>
lea    0xf39(%rip),%rdi
lea    0xf36(%rip),%rsi
call   1030 <test@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<TEST_char_type>:
push   %rax
lea    0xee8(%rip),%rdi
lea    0xee7(%rip),%rsi
call   1030 <test@plt>
lea    0xf11(%rip),%rdi
lea    0xf0c(%rip),%rsi
call   1030 <test@plt>
lea    0xf27(%rip),%rdi
lea    0xf23(%rip),%rsi
call   1030 <test@plt>
lea    0xf3c(%rip),%rdi
lea    0xf39(%rip),%rsi
pop    %rax
jmp    1030 <test@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"3 257\00"
@.str.1 = [54 x i8] c"main(){char c=3; int i=c+254; printf(\22%d %d\22, c, i);}\00"
@.str.2 = [2 x i8] c"2\00"
@.str.3 = [39 x i8] c"main(){char c=255+3; printf(\22%d\22, c);}\00"
@.str.4 = [3 x i8] c"-1\00"
@.str.5 = [37 x i8] c"main(){char c=255; printf(\22%d\22, c);}\00"
@.str.6 = [4 x i8] c"255\00"
@.str.7 = [46 x i8] c"main(){unsigned char c=255; printf(\22%d\22, c);}\00"
define void @TEST_char_type() {
%1 = call i32 @test(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 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 ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0))
%4 = call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"3 257\00"
@.str.1 = [54 x i8] c"main(){char c=3; int i=c+254; printf(\22%d %d\22, c, i);}\00"
@.str.2 = [2 x i8] c"2\00"
@.str.3 = [39 x i8] c"main(){char c=255+3; printf(\22%d\22, c);}\00"
@.str.4 = [3 x i8] c"-1\00"
@.str.5 = [37 x i8] c"main(){char c=255; printf(\22%d\22, c);}\00"
@.str.6 = [4 x i8] c"255\00"
@.str.7 = [46 x i8] c"main(){unsigned char c=255; printf(\22%d\22, c);}\00"
define void @TEST_char_type() {
%1 = tail call i32 @test(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([54 x i8], [54 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 ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @test(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0))
%4 = tail call i32 @test(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0))
ret void
}