#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*/ move(int, int);
int /*<<< orphan*/ printw(char *, ...);
int /*<<< orphan*/ refresh();
void collpartmesg3(int number, int flag) {
  move(10, 63);
  printw("Model provides:");
  move(11, 63);
  if (number == 1)
    printw("%d density profile", number);
  else
    printw("%d density profiles", number);
  if (flag == 1) {
    move(13, 63);
    printw("*** Warning! ***");
    move(14, 63);
    printw("Too few density profiles");
  }
  refresh();
}


x86 assembly (clang, -O0):
<collpartmesg3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    $0xa,%edi
mov    $0x3f,%esi
call   1050 <move@plt>
lea    0xeac(%rip),%rdi
mov    $0x0,%al
call   1030 <printw@plt>
mov    $0xb,%edi
mov    $0x3f,%esi
call   1050 <move@plt>
cmpl   $0x1,-0x4(%rbp)
jne    118a <collpartmesg3+0x5a>
mov    -0x4(%rbp),%esi
lea    0xe92(%rip),%rdi
mov    $0x0,%al
call   1030 <printw@plt>
jmp    119b <collpartmesg3+0x6b>
mov    -0x4(%rbp),%esi
lea    0xe8f(%rip),%rdi
mov    $0x0,%al
call   1030 <printw@plt>
cmpl   $0x1,-0x8(%rbp)
jne    11df <collpartmesg3+0xaf>
mov    $0xd,%edi
mov    $0x3f,%esi
call   1050 <move@plt>
lea    0xe7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printw@plt>
mov    $0xe,%edi
mov    $0x3f,%esi
call   1050 <move@plt>
lea    0xe70(%rip),%rdi
mov    $0x0,%al
call   1030 <printw@plt>
mov    $0x0,%al
call   1040 <refresh@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<collpartmesg3>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
mov    $0xa,%edi
mov    $0x3f,%esi
call   1050 <move@plt>
lea    0xeb3(%rip),%rdi
xor    %eax,%eax
call   1030 <printw@plt>
mov    $0xb,%edi
mov    $0x3f,%esi
call   1050 <move@plt>
cmp    $0x1,%ebp
jne    1176 <collpartmesg3+0x46>
lea    0xea1(%rip),%rdi
mov    $0x1,%esi
jmp    117f <collpartmesg3+0x4f>
lea    0xea6(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1030 <printw@plt>
cmp    $0x1,%ebx
jne    11c5 <collpartmesg3+0x95>
mov    $0xd,%edi
mov    $0x3f,%esi
call   1050 <move@plt>
lea    0xe96(%rip),%rdi
xor    %eax,%eax
call   1030 <printw@plt>
mov    $0xe,%edi
mov    $0x3f,%esi
call   1050 <move@plt>
lea    0xe8a(%rip),%rdi
xor    %eax,%eax
call   1030 <printw@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <refresh@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"Model provides:\00"
@.str.1 = [19 x i8] c"%d density profile\00"
@.str.2 = [20 x i8] c"%d density profiles\00"
@.str.3 = [17 x i8] c"*** Warning! ***\00"
@.str.4 = [25 x i8] c"Too few density profiles\00"
define void @collpartmesg3(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = call i32 @move(i32 10, i32 63)
%6 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @move(i32 11, i32 63)
%8 = load i32, i32* %3
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load i32, i32* %3
%12 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 %11)
br label %16
13: ; preds = %2
%14 = load i32, i32* %3
%15 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %14)
br label %16
16: ; preds = %13, %10
%17 = load i32, i32* %4
%18 = icmp eq i32 %17, 1
br i1 %18, label %19, label %24
19: ; preds = %16
%20 = call i32 @move(i32 13, i32 63)
%21 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%22 = call i32 @move(i32 14, i32 63)
%23 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
br label %24
24: ; preds = %19, %16
%25 = call i32 (...) @refresh()
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"Model provides:\00"
@.str.1 = [19 x i8] c"%d density profile\00"
@.str.2 = [20 x i8] c"%d density profiles\00"
@.str.3 = [17 x i8] c"*** Warning! ***\00"
@.str.4 = [25 x i8] c"Too few density profiles\00"
define void @collpartmesg3(i32 %0, i32 %1) {
%3 = tail call i32 @move(i32 10, i32 63)
%4 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @move(i32 11, i32 63)
%6 = icmp eq i32 %0, 1
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 1)
br label %11
9: ; preds = %2
%10 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %0)
br label %11
11: ; preds = %9, %7
%12 = icmp eq i32 %1, 1
br i1 %12, label %13, label %18
13: ; preds = %11
%14 = tail call i32 @move(i32 13, i32 63)
%15 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%16 = tail call i32 @move(i32 14, i32 63)
%17 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
br label %18
18: ; preds = %13, %11
%19 = tail call i32 (...) @refresh()
ret void
}