#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*/ f_int_1(int const);
int /*<<< orphan*/ sink(int /*<<< orphan*/);
void test_int_cst(void) {
  const int min = (-0x7fffffff - 1);
  const int max = 0x7fffffff;
  sink(f_int_1(min));
  sink(f_int_1(-1));
  sink(f_int_1(0));
  sink(f_int_1(1));
  sink(f_int_1(1233));
  sink(f_int_1(1234));
  sink(f_int_1(max));
}


x86 assembly (clang, -O0):
<test_int_cst>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x80000000,-0x4(%rbp)
movl   $0x7fffffff,-0x8(%rbp)
mov    $0x80000000,%edi
call   1040 <f_int_1@plt>
mov    %eax,%edi
call   1030 <sink@plt>
mov    $0xffffffff,%edi
call   1040 <f_int_1@plt>
mov    %eax,%edi
call   1030 <sink@plt>
xor    %edi,%edi
call   1040 <f_int_1@plt>
mov    %eax,%edi
call   1030 <sink@plt>
mov    $0x1,%edi
call   1040 <f_int_1@plt>
mov    %eax,%edi
call   1030 <sink@plt>
mov    $0x4d1,%edi
call   1040 <f_int_1@plt>
mov    %eax,%edi
call   1030 <sink@plt>
mov    $0x4d2,%edi
call   1040 <f_int_1@plt>
mov    %eax,%edi
call   1030 <sink@plt>
mov    $0x7fffffff,%edi
call   1040 <f_int_1@plt>
mov    %eax,%edi
call   1030 <sink@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_int_cst>:
push   %rax
mov    $0x80000000,%edi
call   1040 <f_int_1@plt>
mov    %eax,%edi
call   1030 <sink@plt>
mov    $0xffffffff,%edi
call   1040 <f_int_1@plt>
mov    %eax,%edi
call   1030 <sink@plt>
xor    %edi,%edi
call   1040 <f_int_1@plt>
mov    %eax,%edi
call   1030 <sink@plt>
mov    $0x1,%edi
call   1040 <f_int_1@plt>
mov    %eax,%edi
call   1030 <sink@plt>
mov    $0x4d1,%edi
call   1040 <f_int_1@plt>
mov    %eax,%edi
call   1030 <sink@plt>
mov    $0x4d2,%edi
call   1040 <f_int_1@plt>
mov    %eax,%edi
call   1030 <sink@plt>
mov    $0x7fffffff,%edi
call   1040 <f_int_1@plt>
mov    %eax,%edi
pop    %rax
jmp    1030 <sink@plt>

LLVM IR (-O0):
define void @test_int_cst() {
%1 = alloca i32
%2 = alloca i32
store i32 -2147483648, i32* %1
store i32 2147483647, i32* %2
%3 = call i32 @f_int_1(i32 -2147483648)
%4 = call i32 @sink(i32 %3)
%5 = call i32 @f_int_1(i32 -1)
%6 = call i32 @sink(i32 %5)
%7 = call i32 @f_int_1(i32 0)
%8 = call i32 @sink(i32 %7)
%9 = call i32 @f_int_1(i32 1)
%10 = call i32 @sink(i32 %9)
%11 = call i32 @f_int_1(i32 1233)
%12 = call i32 @sink(i32 %11)
%13 = call i32 @f_int_1(i32 1234)
%14 = call i32 @sink(i32 %13)
%15 = call i32 @f_int_1(i32 2147483647)
%16 = call i32 @sink(i32 %15)
ret void
}

LLVM IR (-O2):
define void @test_int_cst() {
%1 = tail call i32 @f_int_1(i32 -2147483648)
%2 = tail call i32 @sink(i32 %1)
%3 = tail call i32 @f_int_1(i32 -1)
%4 = tail call i32 @sink(i32 %3)
%5 = tail call i32 @f_int_1(i32 0)
%6 = tail call i32 @sink(i32 %5)
%7 = tail call i32 @f_int_1(i32 1)
%8 = tail call i32 @sink(i32 %7)
%9 = tail call i32 @f_int_1(i32 1233)
%10 = tail call i32 @sink(i32 %9)
%11 = tail call i32 @f_int_1(i32 1234)
%12 = tail call i32 @sink(i32 %11)
%13 = tail call i32 @f_int_1(i32 2147483647)
%14 = tail call i32 @sink(i32 %13)
ret void
}