#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 do_string_box(int, int, int, char *, char **, char **, int);
int /*<<< orphan*/ sprintf(char *, char *, ...);
set_up_eq_range() {
  static char *n[] = {"*2Range over", "Steps",         "Start",      "End",
                      "Shoot (Y/N)",  "Stability col", "Movie (Y/N)"};
  char values[7][25];
  int status, i;
  sprintf(values[0], "%s", "alpha");
  sprintf(values[1], "%d", 20);
  sprintf(values[2], "%g", 0.0);
  sprintf(values[3], "%g", 1.7);
  sprintf(values[4], "%s", "N");
  sprintf(values[5], "%d", -1);
  sprintf(values[6], "%s", "N");
  status = do_string_box(7, 4, 2, "Range Equilibria", n, values, 45);
}


x86 assembly (clang, -O0):
<set_up_eq_range>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
lea    -0xc0(%rbp),%rdi
lea    0xf12(%rip),%rsi
lea    0xf0e(%rip),%rdx
mov    $0x0,%al
call   1040 <sprintf@plt>
lea    -0xc0(%rbp),%rdi
add    $0x19,%rdi
lea    0xefb(%rip),%rsi
mov    $0x14,%edx
mov    $0x0,%al
call   1040 <sprintf@plt>
lea    -0xc0(%rbp),%rdi
add    $0x32,%rdi
lea    0xee0(%rip),%rsi
xorps  %xmm0,%xmm0
mov    $0x1,%al
call   1040 <sprintf@plt>
lea    -0xc0(%rbp),%rdi
add    $0x4b,%rdi
lea    0xec4(%rip),%rsi
movsd  0xe65(%rip),%xmm0
mov    $0x1,%al
call   1040 <sprintf@plt>
lea    -0xc0(%rbp),%rdi
add    $0x64,%rdi
lea    0xe97(%rip),%rsi
lea    0xe9f(%rip),%rdx
mov    $0x0,%al
call   1040 <sprintf@plt>
lea    -0xc0(%rbp),%rdi
add    $0x7d,%rdi
lea    0xe80(%rip),%rsi
mov    $0xffffffff,%edx
mov    $0x0,%al
call   1040 <sprintf@plt>
lea    -0xc0(%rbp),%rdi
add    $0x96,%rdi
lea    0xe56(%rip),%rsi
lea    0xe5e(%rip),%rdx
mov    $0x0,%al
call   1040 <sprintf@plt>
lea    -0xc0(%rbp),%r9
mov    $0x7,%edi
mov    $0x4,%esi
mov    $0x2,%edx
lea    0xe3c(%rip),%rcx
lea    0x2e19(%rip),%r8
movl   $0x2d,(%rsp)
call   1030 <do_string_box@plt>
mov    %eax,-0xc4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_up_eq_range>:
push   %r14
push   %rbx
sub    $0xc8,%rsp
movw   $0x61,0x14(%rsp)
movl   $0x68706c61,0x10(%rsp)
68
lea    0x29(%rsp),%rdi
lea    0xf0c(%rip),%r14
mov    %r14,%rsi
mov    $0x14,%edx
xor    %eax,%eax
call   1040 <sprintf@plt>
lea    0x42(%rsp),%rdi
lea    0xef4(%rip),%rbx
xorps  %xmm0,%xmm0
mov    %rbx,%rsi
mov    $0x1,%al
call   1040 <sprintf@plt>
lea    0x5b(%rsp),%rdi
movsd  0xe86(%rip),%xmm0
mov    %rbx,%rsi
mov    $0x1,%al
call   1040 <sprintf@plt>
movw   $0x4e,0x74(%rsp)
lea    0x8d(%rsp),%rdi
mov    %r14,%rsi
mov    $0xffffffff,%edx
xor    %eax,%eax
call   1040 <sprintf@plt>
movw   $0x4e,0xa6(%rsp)
movl   $0x2d,(%rsp)
lea    0xe9d(%rip),%rcx
lea    0x2e7f(%rip),%r8
lea    0x10(%rsp),%r9
mov    $0x7,%edi
mov    $0x4,%esi
mov    $0x2,%edx
call   1030 <do_string_box@plt>
add    $0xc8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@set_up_eq_range.n = internal global [7 x i8*] [i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i32 0, i32 0)]
@.str = [13 x i8] c"*2Range over\00"
@.str.1 = [6 x i8] c"Steps\00"
@.str.2 = [6 x i8] c"Start\00"
@.str.3 = [4 x i8] c"End\00"
@.str.4 = [12 x i8] c"Shoot (Y/N)\00"
@.str.5 = [14 x i8] c"Stability col\00"
@.str.6 = [12 x i8] c"Movie (Y/N)\00"
@.str.7 = [3 x i8] c"%s\00"
@.str.8 = [6 x i8] c"alpha\00"
@.str.9 = [3 x i8] c"%d\00"
@.str.10 = [3 x i8] c"%g\00"
@.str.11 = [2 x i8] c"N\00"
@.str.12 = [17 x i8] c"Range Equilibria\00"
define i32 @set_up_eq_range() {
%1 = alloca i32
%2 = alloca [7 x [25 x i8]]
%3 = alloca i32
%4 = alloca i32
%5 = getelementptr inbounds [7 x [25 x i8]], [7 x [25 x i8]]* %2, i64 0, i64 0
%6 = getelementptr inbounds [25 x i8], [25 x i8]* %5, i64 0, i64 0
%7 = call i32 (i8*, i8*, ...) @sprintf(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%8 = getelementptr inbounds [7 x [25 x i8]], [7 x [25 x i8]]* %2, i64 0, i64 1
%9 = getelementptr inbounds [25 x i8], [25 x i8]* %8, i64 0, i64 0
%10 = call i32 (i8*, i8*, ...) @sprintf(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 20)
%11 = getelementptr inbounds [7 x [25 x i8]], [7 x [25 x i8]]* %2, i64 0, i64 2
%12 = getelementptr inbounds [25 x i8], [25 x i8]* %11, i64 0, i64 0
%13 = call i32 (i8*, i8*, ...) @sprintf(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), double 0.000000e+00)
%14 = getelementptr inbounds [7 x [25 x i8]], [7 x [25 x i8]]* %2, i64 0, i64 3
%15 = getelementptr inbounds [25 x i8], [25 x i8]* %14, i64 0, i64 0
%16 = call i32 (i8*, i8*, ...) @sprintf(i8* %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), double 1.700000e+00)
%17 = getelementptr inbounds [7 x [25 x i8]], [7 x [25 x i8]]* %2, i64 0, i64 4
%18 = getelementptr inbounds [25 x i8], [25 x i8]* %17, i64 0, i64 0
%19 = call i32 (i8*, i8*, ...) @sprintf(i8* %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%20 = getelementptr inbounds [7 x [25 x i8]], [7 x [25 x i8]]* %2, i64 0, i64 5
%21 = getelementptr inbounds [25 x i8], [25 x i8]* %20, i64 0, i64 0
%22 = call i32 (i8*, i8*, ...) @sprintf(i8* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 -1)
%23 = getelementptr inbounds [7 x [25 x i8]], [7 x [25 x i8]]* %2, i64 0, i64 6
%24 = getelementptr inbounds [25 x i8], [25 x i8]* %23, i64 0, i64 0
%25 = call i32 (i8*, i8*, ...) @sprintf(i8* %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%26 = getelementptr inbounds [7 x [25 x i8]], [7 x [25 x i8]]* %2, i64 0, i64 0
%27 = bitcast [25 x i8]* %26 to i8**
%28 = call i32 @do_string_box(i32 7, i32 4, i32 2, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), i8** getelementptr inbounds ([7 x i8*], [7 x i8*]* @set_up_eq_range.n, i64 0, i64 0), i8** %27, i32 45)
store i32 %28, i32* %3
%29 = load i32, i32* %1
ret i32 %29
}

LLVM IR (-O2):
@set_up_eq_range.n = internal global [7 x i8*] [i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i32 0, i32 0)]
@.str = [13 x i8] c"*2Range over\00"
@.str.1 = [6 x i8] c"Steps\00"
@.str.2 = [6 x i8] c"Start\00"
@.str.3 = [4 x i8] c"End\00"
@.str.4 = [12 x i8] c"Shoot (Y/N)\00"
@.str.5 = [14 x i8] c"Stability col\00"
@.str.6 = [12 x i8] c"Movie (Y/N)\00"
@.str.8 = [6 x i8] c"alpha\00"
@.str.9 = [3 x i8] c"%d\00"
@.str.10 = [3 x i8] c"%g\00"
@.str.12 = [17 x i8] c"Range Equilibria\00"
define i32 @set_up_eq_range() {
%1 = alloca [7 x [25 x i8]]
%2 = getelementptr inbounds [7 x [25 x i8]], [7 x [25 x i8]]* %1, i64 0, i64 0, i64 0
%3 = getelementptr inbounds [7 x [25 x i8]], [7 x [25 x i8]]* %1, i64 0, i64 1, i64 0
%4 = call i32 (i8*, i8*, ...) @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 20)
%5 = getelementptr inbounds [7 x [25 x i8]], [7 x [25 x i8]]* %1, i64 0, i64 2, i64 0
%6 = call i32 (i8*, i8*, ...) @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), double 0.000000e+00)
%7 = getelementptr inbounds [7 x [25 x i8]], [7 x [25 x i8]]* %1, i64 0, i64 3, i64 0
%8 = call i32 (i8*, i8*, ...) @sprintf(i8* %7, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), double 1.700000e+00)
%9 = getelementptr inbounds [7 x [25 x i8]], [7 x [25 x i8]]* %1, i64 0, i64 4, i64 0
%10 = bitcast i8* %9 to i16*
store i16 78, i16* %10
%11 = getelementptr inbounds [7 x [25 x i8]], [7 x [25 x i8]]* %1, i64 0, i64 5, i64 0
%12 = call i32 (i8*, i8*, ...) @sprintf(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 -1)
%13 = getelementptr inbounds [7 x [25 x i8]], [7 x [25 x i8]]* %1, i64 0, i64 6, i64 0
%14 = bitcast i8* %13 to i16*
store i16 78, i16* %14
%15 = bitcast [7 x [25 x i8]]* %1 to i8**
%16 = call i32 @do_string_box(i32 7, i32 4, i32 2, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), i8** getelementptr inbounds ([7 x i8*], [7 x i8*]* @set_up_eq_range.n, i64 0, i64 0), i8** %15, i32 45)
ret i32 undef
}