#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 fun(float, float);
int max(int, int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strcmp(char *, char *);
int main(int argc, char **argv) {
  int i = 30, j = -1;
  float m = 4.5, n = 5.5;
  char str1[10] = "lixiang", str2[10] = "lineng", str3[10] = "lixiang";
  if (j) {
    printf("i\t=%d\n", i);
  }
  j = 0;
  if (j) {
    printf("i\t=%d\n", i);
  }
  if (strcmp(str1, str2)) {
    printf("%s ", str1);
    printf("%s\n", str2);
  }
  if (!strcmp(str2, str1)) {
    printf("%s ", str1);
    printf("%s\n", str2);
  }
  if (strcmp(str3, str1)) {
    printf("%s ", str1);
    printf("%s\n", str2);
  } else {
    printf("Then are equal.\n");
  }
  printf("\ni=%f,m=%d", i, m);
  printf("\ni=%d,m=%f", i, m);
  printf("\nsizeof i=%d,m=%d", sizeof(int), sizeof(float));
  printf("\n%d", max(i, j));
  printf("\n%d", fun(m, n));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1e,-0x14(%rbp)
movl   $0xffffffff,-0x18(%rbp)
movss  0xe98(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  0xe87(%rip),%xmm0
movss  %xmm0,-0x20(%rbp)
mov    0xe83(%rip),%rax
mov    %rax,-0x2a(%rbp)
mov    0xe80(%rip),%ax
mov    %ax,-0x22(%rbp)
mov    0xe77(%rip),%rax
mov    %rax,-0x34(%rbp)
mov    0xe74(%rip),%ax
mov    %ax,-0x2c(%rbp)
mov    0xe6b(%rip),%rax
mov    %rax,-0x3e(%rbp)
mov    0xe68(%rip),%ax
mov    %ax,-0x36(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     11db <main+0x9b>
mov    -0x14(%rbp),%esi
lea    0xe52(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     11fd <main+0xbd>
mov    -0x14(%rbp),%esi
lea    0xe30(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x2a(%rbp),%rdi
lea    -0x34(%rbp),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1238 <main+0xf8>
lea    -0x2a(%rbp),%rsi
lea    0xe0e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x34(%rbp),%rsi
lea    0xe00(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x34(%rbp),%rdi
lea    -0x2a(%rbp),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1273 <main+0x133>
lea    -0x2a(%rbp),%rsi
lea    0xdd3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x34(%rbp),%rsi
lea    0xdc5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x3e(%rbp),%rdi
lea    -0x2a(%rbp),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     12b3 <main+0x173>
lea    -0x2a(%rbp),%rsi
lea    0xd98(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x34(%rbp),%rsi
lea    0xd8a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12c1 <main+0x181>
lea    0xd7b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%esi
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd72(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%esi
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd63(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xd60(%rip),%rdi
mov    $0x4,%edx
mov    %rdx,%rsi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
call   1050 <max@plt>
mov    %eax,%esi
lea    0xd4f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movss  -0x1c(%rbp),%xmm0
movss  -0x20(%rbp),%xmm1
call   1030 <fun@plt>
mov    %eax,%esi
lea    0xd30(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x30,%rsp
movabs $0x676e616978696c,%rax
mov    %rax,(%rsp)
movw   $0x0,0x8(%rsp)
movabs $0x676e656e696c,%rcx
mov    %rcx,0x10(%rsp)
movw   $0x0,0x18(%rsp)
mov    %rax,0x20(%rsp)
movw   $0x0,0x28(%rsp)
lea    0xe91(%rip),%rdi
mov    $0x1e,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rsp,%rdi
lea    0x10(%rsp),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     11cc <main+0x7c>
lea    0xe73(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x10(%rsp),%rdi
call   1030 <puts@plt>
lea    0x10(%rsp),%rdi
mov    %rsp,%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    11f9 <main+0xa9>
lea    0xe46(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x10(%rsp),%rdi
call   1030 <puts@plt>
lea    0x20(%rsp),%rdi
mov    %rsp,%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1223 <main+0xd3>
lea    0xe19(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x10(%rsp),%rdi
jmp    122a <main+0xda>
lea    0xe31(%rip),%rdi
call   1030 <puts@plt>
lea    0xdf9(%rip),%rdi
movsd  0xdc2(%rip),%xmm0
mov    $0x1e,%esi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xde9(%rip),%rdi
mov    $0x1e,%esi
movsd  0xda2(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xdd9(%rip),%rdi
mov    $0x4,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1e,%edi
xor    %esi,%esi
call   1060 <max@plt>
lea    0xdc7(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movss  0xd64(%rip),%xmm0
movss  0xd60(%rip),%xmm1
call   1040 <fun@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.str1 = [10 x i8] c"lixiang\00\00\00"
@__const.main.str2 = [10 x i8] c"lineng\00\00\00\00"
@__const.main.str3 = [10 x i8] c"lixiang\00\00\00"
@.str = [7 x i8] c"i\09=%d\0A\00"
@.str.1 = [4 x i8] c"%s \00"
@.str.2 = [4 x i8] c"%s\0A\00"
@.str.3 = [17 x i8] c"Then are equal.\0A\00"
@.str.4 = [11 x i8] c"\0Ai=%f,m=%d\00"
@.str.5 = [11 x i8] c"\0Ai=%d,m=%f\00"
@.str.6 = [18 x i8] c"\0Asizeof i=%d,m=%d\00"
@.str.7 = [4 x i8] c"\0A%d\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca float
%9 = alloca float
%10 = alloca [10 x i8]
%11 = alloca [10 x i8]
%12 = alloca [10 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 30, i32* %6
store i32 -1, i32* %7
store float 4.500000e+00, float* %8
store float 5.500000e+00, float* %9
%13 = bitcast [10 x i8]* %10 to i8*
%14 = bitcast [10 x i8]* %11 to i8*
%15 = bitcast [10 x i8]* %12 to i8*
%16 = load i32, i32* %7
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = load i32, i32* %6
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %19)
br label %21
21: ; preds = %18, %2
store i32 0, i32* %7
%22 = load i32, i32* %7
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load i32, i32* %6
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %25)
br label %27
27: ; preds = %24, %21
%28 = getelementptr inbounds [10 x i8], [10 x i8]* %10, i64 0, i64 0
%29 = getelementptr inbounds [10 x i8], [10 x i8]* %11, i64 0, i64 0
%30 = call i64 @strcmp(i8* %28, i8* %29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %37
32: ; preds = %27
%33 = getelementptr inbounds [10 x i8], [10 x i8]* %10, i64 0, i64 0
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %33)
%35 = getelementptr inbounds [10 x i8], [10 x i8]* %11, i64 0, i64 0
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %35)
br label %37
37: ; preds = %32, %27
%38 = getelementptr inbounds [10 x i8], [10 x i8]* %11, i64 0, i64 0
%39 = getelementptr inbounds [10 x i8], [10 x i8]* %10, i64 0, i64 0
%40 = call i64 @strcmp(i8* %38, i8* %39)
%41 = icmp ne i64 %40, 0
br i1 %41, label %47, label %42
42: ; preds = %37
%43 = getelementptr inbounds [10 x i8], [10 x i8]* %10, i64 0, i64 0
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %43)
%45 = getelementptr inbounds [10 x i8], [10 x i8]* %11, i64 0, i64 0
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %45)
br label %47
47: ; preds = %42, %37
%48 = getelementptr inbounds [10 x i8], [10 x i8]* %12, i64 0, i64 0
%49 = getelementptr inbounds [10 x i8], [10 x i8]* %10, i64 0, i64 0
%50 = call i64 @strcmp(i8* %48, i8* %49)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %57
52: ; preds = %47
%53 = getelementptr inbounds [10 x i8], [10 x i8]* %10, i64 0, i64 0
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %53)
%55 = getelementptr inbounds [10 x i8], [10 x i8]* %11, i64 0, i64 0
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %55)
br label %59
57: ; preds = %47
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
br label %59
59: ; preds = %57, %52
%60 = load i32, i32* %6
%61 = load float, float* %8
%62 = fpext float %61 to double
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %60, double %62)
%64 = load i32, i32* %6
%65 = load float, float* %8
%66 = fpext float %65 to double
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i32 %64, double %66)
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i64 4, i64 4)
%69 = load i32, i32* %6
%70 = load i32, i32* %7
%71 = call i32 @max(i32 %69, i32 %70)
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %71)
%73 = load float, float* %8
%74 = load float, float* %9
%75 = call i32 @fun(float %73, float %74)
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %75)
%77 = load i32, i32* %3
ret i32 %77
}

LLVM IR (-O2):
@__const.main.str2 = [10 x i8] c"lineng\00\00\00\00"
@__const.main.str3 = [10 x i8] c"lixiang\00\00\00"
@.str = [7 x i8] c"i\09=%d\0A\00"
@.str.1 = [4 x i8] c"%s \00"
@.str.4 = [11 x i8] c"\0Ai=%f,m=%d\00"
@.str.5 = [11 x i8] c"\0Ai=%d,m=%f\00"
@.str.6 = [18 x i8] c"\0Asizeof i=%d,m=%d\00"
@.str.7 = [4 x i8] c"\0A%d\00"
@str = [16 x i8] c"Then are equal.\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [10 x i8]
%4 = alloca [10 x i8]
%5 = alloca [10 x i8]
%6 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 30)
%10 = call i64 @strcmp(i8* %6, i8* %7)
%11 = icmp eq i64 %10, 0
br i1 %11, label %15, label %12
12: ; preds = %2
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %6)
%14 = call i32 @puts(i8* %7)
br label %15
15: ; preds = %12, %2
%16 = call i64 @strcmp(i8* %7, i8* %6)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %6)
%20 = call i32 @puts(i8* %7)
br label %21
21: ; preds = %18, %15
%22 = call i64 @strcmp(i8* %8, i8* %6)
%23 = icmp eq i64 %22, 0
br i1 %23, label %27, label %24
24: ; preds = %21
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %6)
%26 = call i32 @puts(i8* %7)
br label %29
27: ; preds = %21
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
br label %29
29: ; preds = %27, %24
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 30, double 4.500000e+00)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i32 30, double 4.500000e+00)
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i64 4, i64 4)
%33 = call i32 @max(i32 30, i32 0)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %33)
%35 = call i32 @fun(float 4.500000e+00, float 5.500000e+00)
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %35)
ret i32 0
}