#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*/ b_outstr(long, char *);
int /*<<< orphan*/ foobyname_2dfc0(int /*<<< orphan*/);
int /*<<< orphan*/ foobyval_2dd80(long);
int main() {
  {
    b_outstr((long)(long)1, (char *)(char *)"by-name  : ");
    if (((long)5 > (long)0)) {
      foobyname_2dfc0(((long)5 - ({
                         long ONE_2dc40_rval;
                         {
                           b_outstr((long)(long)1, (char *)(char *)"ONE ");
                           ONE_2dc40_rval = (long)1;
                         };
                         ONE_2dc40_rval;
                       })));
    } else {
      ;
    };
    b_outstr((long)(long)1, (char *)(char *)"\nby-value : ");
    foobyval_2dd80((long)5);
    b_outstr((long)(long)1, (char *)(char *)"\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%edi
lea    0xeb5(%rip),%rsi
call   1040 <b_outstr@plt>
mov    $0x1,%edi
lea    0xeb0(%rip),%rsi
call   1040 <b_outstr@plt>
movq   $0x1,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    $0x5,%eax
sub    -0x18(%rbp),%rax
mov    %eax,%edi
call   1030 <foobyname_2dfc0@plt>
mov    $0x1,%edi
lea    0xe84(%rip),%rsi
call   1040 <b_outstr@plt>
mov    $0x5,%edi
call   1050 <foobyval_2dd80@plt>
mov    $0x1,%edi
lea    0xe76(%rip),%rsi
call   1040 <b_outstr@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rsi
mov    $0x1,%edi
call   1040 <b_outstr@plt>
lea    0xec3(%rip),%rsi
mov    $0x1,%edi
call   1040 <b_outstr@plt>
mov    $0x4,%edi
call   1030 <foobyname_2dfc0@plt>
lea    0xead(%rip),%rsi
mov    $0x1,%edi
call   1040 <b_outstr@plt>
mov    $0x5,%edi
call   1050 <foobyval_2dd80@plt>
lea    0xe9f(%rip),%rsi
mov    $0x1,%edi
call   1040 <b_outstr@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"by-name : \00"
@.str.1 = [5 x i8] c"ONE \00"
@.str.2 = [13 x i8] c"\0Aby-value : \00"
@.str.3 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
store i32 0, i32* %1
%4 = call i32 @b_outstr(i64 1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @b_outstr(i64 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
store i64 1, i64* %2
%6 = load i64, i64* %2
store i64 %6, i64* %3
%7 = load i64, i64* %3
%8 = sub nsw i64 5, %7
%9 = trunc i64 %8 to i32
%10 = call i32 @foobyname_2dfc0(i32 %9)
%11 = call i32 @b_outstr(i64 1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%12 = call i32 @foobyval_2dd80(i64 5)
%13 = call i32 @b_outstr(i64 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"by-name : \00"
@.str.1 = [5 x i8] c"ONE \00"
@.str.2 = [13 x i8] c"\0Aby-value : \00"
@.str.3 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = tail call i32 @b_outstr(i64 1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @b_outstr(i64 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @foobyname_2dfc0(i32 4)
%4 = tail call i32 @b_outstr(i64 1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @foobyval_2dd80(i64 5)
%6 = tail call i32 @b_outstr(i64 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}