void main(void) {
  int a = 111;
  char b[] = "sss\0";
  unsigned int c = 333;
  char d = 0x4;
  if (1) {
    printf("%s: exit\n", __FUNCTION__);
  }
  do {
    printf("%s: testName1 = %d,testName02=%s ,$testName03 =%p, $testName4= %u,"
           "lastName = %x\n",
           __FUNCTION__, a, b, &a, c, d);
  } while (0);
  printf("%s: exit\n", __FUNCTION__);
  test1();
  test2(11, 22, 33);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x6f,-0x4(%rbp)
mov    0xebb(%rip),%eax
mov    %eax,-0x9(%rbp)
mov    0xeb6(%rip),%al
mov    %al,-0x5(%rbp)
movl   $0x14d,-0x10(%rbp)
movb   $0x4,-0x11(%rbp)
lea    0xea2(%rip),%rdi
lea    0xea5(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4(%rbp),%edx
lea    -0x9(%rbp),%rcx
mov    -0x10(%rbp),%r9d
movsbl -0x11(%rbp),%eax
lea    0xe8d(%rip),%rdi
lea    0xe81(%rip),%rsi
lea    -0x4(%rbp),%r8
mov    %eax,(%rsp)
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe62(%rip),%rdi
lea    0xe65(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <test1@plt>
mov    $0xb,%edi
mov    $0x16,%esi
mov    $0x21,%edx
mov    $0x0,%al
call   1050 <test2@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
movl   $0x6f,0x14(%rsp)
movb   $0x0,0x10(%rsp)
movl   $0x737373,0xc(%rsp)
lea    0xeb2(%rip),%r14
lea    0xeb5(%rip),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x4,(%rsp)
lea    0xe9f(%rip),%rdi
lea    0xc(%rsp),%rcx
lea    0x14(%rsp),%r8
mov    %rbx,%rsi
mov    $0x6f,%edx
mov    $0x14d,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1030 <test1@plt>
mov    $0xb,%edi
mov    $0x16,%esi
mov    $0x21,%edx
xor    %eax,%eax
call   1050 <test2@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.b = [5 x i8] c"sss\00\00"
@.str = [10 x i8] c"%s: exit\0A\00"
@__FUNCTION__.main = [5 x i8] c"main\00"
@.str.1 = [81 x i8] c"%s: testName1 = %d,testName02=%s ,$testName03 =%p, $testName4= %u,lastName = %x\0A\00"
define void @main() {
%1 = alloca i32
%2 = alloca [5 x i8]
%3 = alloca i32
%4 = alloca i8
store i32 111, i32* %1
%5 = bitcast [5 x i8]* %2 to i8*
store i32 333, i32* %3
store i8 4, i8* %4
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__FUNCTION__.main, i64 0, i64 0))
br label %7
7: ; preds = %0
%8 = load i32, i32* %1
%9 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 0
%10 = load i32, i32* %3
%11 = load i8, i8* %4
%12 = sext i8 %11 to i32
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__FUNCTION__.main, i64 0, i64 0), i32 %8, i8* %9, i32* %1, i32 %10, i32 %12)
br label %14
14: ; preds = %7
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__FUNCTION__.main, i64 0, i64 0))
%16 = call i32 (...) @test1()
%17 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @test2 to i32 (i32, i32, i32, ...)*)(i32 11, i32 22, i32 33)
ret void
}

LLVM IR (-O2):
@__const.main.b = [5 x i8] c"sss\00\00"
@.str = [10 x i8] c"%s: exit\0A\00"
@__FUNCTION__.main = [5 x i8] c"main\00"
@.str.1 = [81 x i8] c"%s: testName1 = %d,testName02=%s ,$testName03 =%p, $testName4= %u,lastName = %x\0A\00"
define void @main() {
%1 = alloca i32
%2 = alloca [5 x i8]
%3 = bitcast i32* %1 to i8*
store i32 111, i32* %1
%4 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 0
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__FUNCTION__.main, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__FUNCTION__.main, i64 0, i64 0), i32 111, i8* %4, i32* %1, i32 333, i32 4)
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__FUNCTION__.main, i64 0, i64 0))
%8 = call i32 (...) @test1()
%9 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @test2 to i32 (i32, i32, i32, ...)*)(i32 11, i32 22, i32 33)
ret void
}