#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*/ check_input(int, char **);
int getopt(int, char **, char *);
int /*<<< orphan*/ init_parameters();
scalar_t__ opterr;
int /*<<< orphan*/ set_parameters_dna();
void parameters(int argc, char **argv) {
  init_parameters();
  int opt_flag = 0;
  int opt;
  opterr = 0;
  while ((opt = getopt(argc, argv, "D")) != -1) {
    switch (opt) {
    case 'D':
      opt_flag = 1;
      break;
    case '?':
      break;
    }
  }
  if (opt_flag)
    set_parameters_dna();
  check_input(argc, argv);
}


x86 assembly (clang, -O0):
<parameters>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1040 <init_parameters@plt>
movl   $0x0,-0x14(%rbp)
mov    0x2e7c(%rip),%rax
movq   $0x0,(%rax)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe87(%rip),%rdx
call   1060 <getopt@plt>
mov    %eax,-0x18(%rbp)
cmp    $0xffffffff,%eax
je     11c5 <parameters+0x85>
mov    -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
sub    $0x3f,%eax
je     11bb <parameters+0x7b>
jmp    119e <parameters+0x5e>
mov    -0x1c(%rbp),%eax
sub    $0x44,%eax
jne    11c0 <parameters+0x80>
jmp    11af <parameters+0x6f>
movl   $0x1,-0x14(%rbp)
jmp    11c0 <parameters+0x80>
jmp    11c0 <parameters+0x80>
jmp    116b <parameters+0x2b>
cmpl   $0x0,-0x14(%rbp)
je     11d6 <parameters+0x96>
mov    $0x0,%al
call   1050 <set_parameters_dna@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <check_input@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parameters>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
xor    %eax,%eax
call   1040 <init_parameters@plt>
mov    0x2e86(%rip),%rax
movq   $0x0,(%rax)
mov    $0x1,%r15b
lea    0xe95(%rip),%r14
nopl   0x0(%rax,%rax,1)
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1060 <getopt@plt>
cmp    $0x44,%eax
je     1189 <parameters+0x49>
cmp    $0xffffffff,%eax
jne    1170 <parameters+0x30>
jmp    118e <parameters+0x4e>
xor    %r15d,%r15d
jmp    1170 <parameters+0x30>
test   $0x1,%r15b
jne    119b <parameters+0x5b>
xor    %eax,%eax
call   1050 <set_parameters_dna@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <check_input@plt>

LLVM IR (-O0):
@opterr = global i64 0
@.str = [2 x i8] c"D\00"
define void @parameters(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %3
store i8** %1, i8*** %4
%7 = call i32 (...) @init_parameters()
store i32 0, i32* %5
store i64 0, i64* @opterr
br label %8
8: ; preds = %17, %2
%9 = load i32, i32* %3
%10 = load i8**, i8*** %4
%11 = call i32 @getopt(i32 %9, i8** %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32 %11, i32* %6
%12 = icmp ne i32 %11, -1
br i1 %12, label %13, label %18
13: ; preds = %8
%14 = load i32, i32* %6
switch i32 %14, label %17 [
i32 68, label %15
i32 63, label %16
]
15: ; preds = %13
store i32 1, i32* %5
br label %17
16: ; preds = %13
br label %17
17: ; preds = %13, %16, %15
br label %8
18: ; preds = %8
%19 = load i32, i32* %5
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 (...) @set_parameters_dna()
br label %23
23: ; preds = %21, %18
%24 = load i32, i32* %3
%25 = load i8**, i8*** %4
%26 = call i32 @check_input(i32 %24, i8** %25)
ret void
}

LLVM IR (-O2):
@opterr = global i64 0
@.str = [2 x i8] c"D\00"
define void @parameters(i32 %0, i8** %1) {
%3 = tail call i32 (...) @init_parameters()
store i64 0, i64* @opterr
br label %4
4: ; preds = %6, %2
%5 = phi i1 [ true, %2 ], [ false, %6 ]
br label %6
6: ; preds = %4, %6
%7 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
switch i32 %7, label %6 [
i32 -1, label %8
i32 68, label %4
]
8: ; preds = %6
br i1 %5, label %11, label %9
9: ; preds = %8
%10 = tail call i32 (...) @set_parameters_dna()
br label %11
11: ; preds = %9, %8
%12 = tail call i32 @check_input(i32 %0, i8** %1)
ret void
}