#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 collpartmesg(char molecule[80], int partners) {
  move(6, 63);
  printw("%.25s", molecule);
  move(7, 63);
  if (partners == 1)
    printw("%d collision partner:", partners);
  else
    printw("%d collision partners:", partners);
  refresh();
}


x86 assembly (clang, -O0):
<collpartmesg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    $0x6,%edi
mov    $0x3f,%esi
call   1050 <move@plt>
mov    -0x8(%rbp),%rsi
lea    0xea7(%rip),%rdi
mov    $0x0,%al
call   1030 <printw@plt>
mov    $0x7,%edi
mov    $0x3f,%esi
call   1050 <move@plt>
cmpl   $0x1,-0xc(%rbp)
jne    118f <collpartmesg+0x5f>
mov    -0xc(%rbp),%esi
lea    0xe83(%rip),%rdi
mov    $0x0,%al
call   1030 <printw@plt>
jmp    11a0 <collpartmesg+0x70>
mov    -0xc(%rbp),%esi
lea    0xe83(%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):
<collpartmesg>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
mov    $0x6,%edi
mov    $0x3f,%esi
call   1050 <move@plt>
lea    0xeb2(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printw@plt>
mov    $0x7,%edi
mov    $0x3f,%esi
call   1050 <move@plt>
cmp    $0x1,%ebp
jne    117a <collpartmesg+0x4a>
lea    0xe93(%rip),%rdi
mov    $0x1,%esi
jmp    1183 <collpartmesg+0x53>
lea    0xe9b(%rip),%rdi
mov    %ebp,%esi
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 = [6 x i8] c"%.25s\00"
@.str.1 = [22 x i8] c"%d collision partner:\00"
@.str.2 = [23 x i8] c"%d collision partners:\00"
define void @collpartmesg(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = call i32 @move(i32 6, i32 63)
%6 = load i8*, i8** %3
%7 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = call i32 @move(i32 7, i32 63)
%9 = load i32, i32* %4
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load i32, i32* %4
%13 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %12)
br label %17
14: ; preds = %2
%15 = load i32, i32* %4
%16 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %15)
br label %17
17: ; preds = %14, %11
%18 = call i32 (...) @refresh()
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"%.25s\00"
@.str.1 = [22 x i8] c"%d collision partner:\00"
@.str.2 = [23 x i8] c"%d collision partners:\00"
define void @collpartmesg(i8* %0, i32 %1) {
%3 = tail call i32 @move(i32 6, i32 63)
%4 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %0)
%5 = tail call i32 @move(i32 7, i32 63)
%6 = icmp eq i32 %1, 1
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([22 x i8], [22 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 ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %1)
br label %11
11: ; preds = %9, %7
%12 = tail call i32 (...) @refresh()
ret void
}