#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*/ fprintf(int /*<<< orphan*/, char *, int, double, int,
                           double);
int /*<<< orphan*/ hp_refresh_tweakable_file(char *);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ stdout;
int main() {
  for (;;) {
    int status = 0;
    fprintf(stdout, "Status: %d %.3f %d %f\n", status, 42.042, 25, 31.9);
    if (!status)
      break;
    hp_refresh_tweakable_file(
        "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
        "2022-01-22/02-19-57/repos/lenormf/hot_patch/refs/heads/master/main.c");
    sleep(3);
  }
  puts("Bye");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    0x2e83(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%edx
lea    0xea7(%rip),%rsi
movsd  0xe8f(%rip),%xmm0
mov    $0x19,%ecx
movsd  0xe8a(%rip),%xmm1
call   1040 <fprintf@plt>
cmpl   $0x0,-0x8(%rbp)
jne    1192 <main+0x52>
jmp    11ad <main+0x6d>
lea    0xe8e(%rip),%rdi
call   1060 <hp_refresh_tweakable_file@plt>
mov    $0x3,%edi
call   1050 <sleep@plt>
jmp    114f <main+0xf>
lea    0xef8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xedf(%rip),%rsi
movsd  0xec7(%rip),%xmm0
movsd  0xec7(%rip),%xmm1
xor    %edx,%edx
mov    $0x19,%ecx
call   1040 <fprintf@plt>
lea    0xed3(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [23 x i8] c"Status: %d %.3f %d %f\0A\00"
@.str.1 = [133 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/lenormf/hot_patch/refs/heads/master/main.c\00"
@.str.2 = [4 x i8] c"Bye\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
br label %3
3: ; preds = %10, %0
store i32 0, i32* %2
%4 = load i32, i32* @stdout
%5 = load i32, i32* %2
%6 = call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %5, double 4.204200e+01, i32 25, double 3.190000e+01)
%7 = load i32, i32* %2
%8 = icmp ne i32 %7, 0
br i1 %8, label %10, label %9
9: ; preds = %3
br label %13
10: ; preds = %3
%11 = call i32 @hp_refresh_tweakable_file(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 @sleep(i32 3)
br label %3
13: ; preds = %9
%14 = call i32 @puts(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [23 x i8] c"Status: %d %.3f %d %f\0A\00"
@.str.2 = [4 x i8] c"Bye\00"
define i32 @main() {
%1 = load i32, i32* @stdout
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 0, double 4.204200e+01, i32 25, double 3.190000e+01)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}