#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*/ flush();
int /*<<< orphan*/ printf(char *, double);
int /*<<< orphan*/ putchar(char);
void text_undecided(int symbols, double t) {
  int i;
  flush();
  printf("%9.3f  ", t);
  for (i = 0; i != symbols / 4; i++)
    putchar('?');
  putchar('\n');
}


x86 assembly (clang, -O0):
<text_undecided>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    $0x0,%al
call   1030 <flush@plt>
movsd  -0x10(%rbp),%xmm0
lea    0xead(%rip),%rdi
call   1050 <printf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x18(%rbp),%eax
cmp    %ecx,%eax
je     1195 <text_undecided+0x65>
mov    $0x3f,%edi
call   1040 <putchar@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    115f <text_undecided+0x2f>
mov    $0xa,%edi
call   1040 <putchar@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<text_undecided>:
push   %rbx
sub    $0x10,%rsp
movsd  %xmm0,0x8(%rsp)
mov    %edi,%ebx
xor    %eax,%eax
call   1030 <flush@plt>
lea    0xeb5(%rip),%rdi
movsd  0x8(%rsp),%xmm0
call   1050 <printf@plt>
lea    0x3(%rbx),%eax
test   %ebx,%ebx
cmovs  %eax,%ebx
cmp    $0x7,%eax
jb     117f <text_undecided+0x4f>
sar    $0x2,%ebx
cs nopw 0x0(%rax,%rax,1)
mov    $0x3f,%edi
call   1040 <putchar@plt>
add    $0xffffffff,%ebx
jne    1170 <text_undecided+0x40>
mov    $0xa,%edi
add    $0x10,%rsp
pop    %rbx
jmp    1040 <putchar@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"%9.3f \00"
define void @text_undecided(i32 %0, double %1) {
%3 = alloca i32
%4 = alloca double
%5 = alloca i32
store i32 %0, i32* %3
store double %1, double* %4
%6 = call i32 (...) @flush()
%7 = load double, double* %4
%8 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double %7)
store i32 0, i32* %5
br label %9
9: ; preds = %16, %2
%10 = load i32, i32* %5
%11 = load i32, i32* %3
%12 = sdiv i32 %11, 4
%13 = icmp ne i32 %10, %12
br i1 %13, label %14, label %19
14: ; preds = %9
%15 = call i32 @putchar(i8 signext 63)
br label %16
16: ; preds = %14
%17 = load i32, i32* %5
%18 = add nsw i32 %17, 1
store i32 %18, i32* %5
br label %9
19: ; preds = %9
%20 = call i32 @putchar(i8 signext 10)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"%9.3f \00"
define void @text_undecided(i32 %0, double %1) {
%3 = tail call i32 (...) @flush()
%4 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double %1)
%5 = sdiv i32 %0, 4
%6 = add i32 %0, 3
%7 = icmp ult i32 %6, 7
br i1 %7, label %13, label %8
8: ; preds = %2, %8
%9 = phi i32 [ %11, %8 ], [ 0, %2 ]
%10 = tail call i32 @putchar(i8 signext 63)
%11 = add nuw nsw i32 %9, 1
%12 = icmp eq i32 %11, %5
br i1 %12, label %13, label %8
13: ; preds = %8, %2
%14 = tail call i32 @putchar(i8 signext 10)
ret void
}