#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*/ printf(char *, int);
int main(int argc, char *argv[], char *envp[]) {
  int g2;
  g2 = -2 - (-2 - argc &
             -1 - (argc >> 31) + ((unsigned int)-2 < (unsigned int)argc));
  g2 = g2 - 3 & (g2 >> 31) - ((unsigned int)g2 < 3);
  printf("MinMax adjusted number of arguments is %d\n", g2 + 3);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    $0xfffffffe,%ecx
sub    -0x8(%rbp),%ecx
mov    -0x8(%rbp),%edx
sar    $0x1f,%edx
mov    $0xffffffff,%eax
sub    %edx,%eax
mov    $0xfffffffe,%edx
cmp    -0x8(%rbp),%edx
setb   %dl
and    $0x1,%dl
movzbl %dl,%edx
add    %edx,%eax
and    %eax,%ecx
mov    $0xfffffffe,%eax
sub    %ecx,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
sub    $0x3,%eax
mov    -0x1c(%rbp),%ecx
sar    $0x1f,%ecx
cmpl   $0x3,-0x1c(%rbp)
setb   %dl
and    $0x1,%dl
movzbl %dl,%edx
sub    %edx,%ecx
and    %ecx,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%esi
add    $0x3,%esi
lea    0xe75(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xfffffffe,%eax
mov    $0xfffffffe,%ecx
sub    %edi,%ecx
mov    %edi,%edx
shr    $0x1f,%edx
xor    %esi,%esi
cmp    $0xffffffff,%edi
sete   %sil
add    %esi,%edx
add    $0xffffffff,%edx
and    %ecx,%edx
sub    %edx,%eax
mov    $0xfffffffb,%ecx
sub    %edx,%ecx
mov    %eax,%esi
sar    $0x1f,%esi
cmp    $0x3,%eax
sbb    $0x0,%esi
and    %ecx,%esi
add    $0x3,%esi
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [43 x i8] c"MinMax adjusted number of arguments is %d\0A\00"
define i32 @main(i32 %0, i8** %1, i8** %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca i32
store i32 0, i32* %4
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
%9 = load i32, i32* %5
%10 = sub nsw i32 -2, %9
%11 = load i32, i32* %5
%12 = ashr i32 %11, 31
%13 = sub nsw i32 -1, %12
%14 = load i32, i32* %5
%15 = icmp ult i32 -2, %14
%16 = zext i1 %15 to i32
%17 = add nsw i32 %13, %16
%18 = and i32 %10, %17
%19 = sub nsw i32 -2, %18
store i32 %19, i32* %8
%20 = load i32, i32* %8
%21 = sub nsw i32 %20, 3
%22 = load i32, i32* %8
%23 = ashr i32 %22, 31
%24 = load i32, i32* %8
%25 = icmp ult i32 %24, 3
%26 = zext i1 %25 to i32
%27 = sub nsw i32 %23, %26
%28 = and i32 %21, %27
store i32 %28, i32* %8
%29 = load i32, i32* %8
%30 = add nsw i32 %29, 3
%31 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), i32 %30)
ret i32 0
}

LLVM IR (-O2):
@.str = [43 x i8] c"MinMax adjusted number of arguments is %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1, i8** nocapture readnone %2) {
%4 = sub nsw i32 -2, %0
%5 = lshr i32 %0, 31
%6 = add nsw i32 %5, -1
%7 = icmp eq i32 %0, -1
%8 = zext i1 %7 to i32
%9 = add nsw i32 %6, %8
%10 = and i32 %9, %4
%11 = sub nsw i32 -2, %10
%12 = sub i32 -5, %10
%13 = ashr i32 %11, 31
%14 = icmp ult i32 %11, 3
%15 = sext i1 %14 to i32
%16 = add nsw i32 %13, %15
%17 = and i32 %16, %12
%18 = add nsw i32 %17, 3
%19 = tail call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), i32 %18)
ret i32 0
}