#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*/ fprintf(int /*<<< orphan*/, char *, char *, char *, char *);
int /*<<< orphan*/ option_name(char *, char *, char *);
int /*<<< orphan*/ stderr;
int has_but_should_not(int Flag, char *str, char *CurrShort, char *CurrLong,
                       int *Error) {
  char tempStr[1000];
  if (Flag == 0)
    return (0);
  option_name(tempStr, CurrShort, CurrLong);
  fprintf(stderr,
          "Error Processing Option %s!    The option %s should not be called "
          "subsequent to establishing option %s\n",
          tempStr, tempStr, str);
  *Error = 1;
  return (1);
}


x86 assembly (clang, -O0):
<has_but_should_not>:
push   %rbp
mov    %rsp,%rbp
sub    $0x410,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    1154 <has_but_should_not+0x34>
movl   $0x0,-0x4(%rbp)
jmp    11a0 <has_but_should_not+0x80>
lea    -0x410(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1030 <option_name@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%edi
lea    -0x410(%rbp),%rdx
lea    -0x410(%rbp),%rcx
mov    -0x10(%rbp),%r8
lea    0xe76(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x410,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<has_but_should_not>:
test   %edi,%edi
je     117e <has_but_should_not+0x5e>
push   %r15
push   %r14
push   %rbx
sub    $0x3f0,%rsp
mov    %r8,%r14
mov    %rsi,%rbx
mov    %rsp,%r15
mov    %r15,%rdi
mov    %rdx,%rsi
mov    %rcx,%rdx
call   1030 <option_name@plt>
mov    0x2e92(%rip),%rax
mov    (%rax),%edi
lea    0xea9(%rip),%rsi
mov    %r15,%rdx
mov    %r15,%rcx
mov    %rbx,%r8
call   1040 <fprintf@plt>
movl   $0x1,(%r14)
mov    $0x1,%eax
add    $0x3f0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [104 x i8] c"Error Processing Option %s! The option %s should not be called subsequent to establishing option %s\0A\00"
define i32 @has_but_should_not(i32 %0, i8* %1, i8* %2, i8* %3, i32* %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32*
%12 = alloca [1000 x i8]
store i32 %0, i32* %7
store i8* %1, i8** %8
store i8* %2, i8** %9
store i8* %3, i8** %10
store i32* %4, i32** %11
%13 = load i32, i32* %7
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %5
store i32 0, i32* %6
br label %27
16: ; preds = %5
%17 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%18 = load i8*, i8** %9
%19 = load i8*, i8** %10
%20 = call i32 @option_name(i8* %17, i8* %18, i8* %19)
%21 = load i32, i32* @stderr
%22 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%23 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%24 = load i8*, i8** %8
%25 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([104 x i8], [104 x i8]* @.str, i64 0, i64 0), i8* %22, i8* %23, i8* %24)
%26 = load i32*, i32** %11
store i32 1, i32* %26
store i32 1, i32* %6
br label %27
27: ; preds = %16, %15
%28 = load i32, i32* %6
ret i32 %28
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [104 x i8] c"Error Processing Option %s! The option %s should not be called subsequent to establishing option %s\0A\00"
define i32 @has_but_should_not(i32 %0, i8* %1, i8* %2, i8* %3, i32* nocapture writeonly %4) {
%6 = alloca [1000 x i8]
%7 = getelementptr inbounds [1000 x i8], [1000 x i8]* %6, i64 0, i64 0
%8 = icmp eq i32 %0, 0
br i1 %8, label %13, label %9
9: ; preds = %5
%10 = call i32 @option_name(i8* %7, i8* %2, i8* %3)
%11 = load i32, i32* @stderr
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([104 x i8], [104 x i8]* @.str, i64 0, i64 0), i8* %7, i8* %7, i8* %1)
store i32 1, i32* %4
br label %13
13: ; preds = %5, %9
%14 = phi i32 [ 1, %9 ], [ 0, %5 ]
ret i32 %14
}