#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 */
typedef int /*<<< orphan*/ time_t;

/* Variables and functions */
int /*<<< orphan*/ AdmClockSc(int /*<<< orphan*/);
int /*<<< orphan*/ rtl_timemono(int /*<<< orphan*/ *);
int /*<<< orphan*/ rtl_tracedbg(int, char *, int, char *);
void DoClockSc() {
  static unsigned int nbclock = 0;
  time_t now = 0;
  {
    extern int TraceDebug;
    extern int TraceLevel;
    if (TraceLevel >= (1)) {
      rtl_tracedbg(
          (1),
          TraceDebug <= 0
              ? NULL
              : "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/actility/ong/refs/heads/"
                "master/common/libSongOverHttp/tester/main.c",
          59, "DoClockSc()\n");
    }
  };
  nbclock++;
  rtl_timemono(&now);
  AdmClockSc(now);
}


x86 assembly (clang, -O0):
<DoClockSc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e92(%rip),%rax
cmpl   $0x1,(%rax)
jl     117e <DoClockSc+0x4e>
mov    0x2e92(%rip),%rax
mov    (%rax),%ecx
lea    0xea1(%rip),%rsi
xor    %eax,%eax
cmp    $0x0,%ecx
cmovle %rax,%rsi
mov    $0x1,%edi
mov    $0x3b,%edx
lea    0xf25(%rip),%rcx
call   1050 <rtl_tracedbg@plt>
mov    0x2eb8(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2eaf(%rip)
lea    -0x4(%rbp),%rdi
call   1030 <rtl_timemono@plt>
mov    -0x4(%rbp),%edi
call   1040 <AdmClockSc@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DoClockSc>:
push   %rax
movl   $0x0,0x4(%rsp)
mov    0x2e98(%rip),%rax
cmpl   $0x0,(%rax)
jle    1172 <DoClockSc+0x42>
mov    0x2e9c(%rip),%rax
xor    %esi,%esi
cmpl   $0x0,(%rax)
lea    0xea8(%rip),%rax
cmovg  %rax,%rsi
lea    0xf3b(%rip),%rcx
mov    $0x1,%edi
mov    $0x3b,%edx
call   1050 <rtl_tracedbg@plt>
addl   $0x1,0x2ec3(%rip)
lea    0x4(%rsp),%rdi
call   1030 <rtl_timemono@plt>
mov    0x4(%rsp),%edi
call   1040 <AdmClockSc@plt>
pop    %rax
ret

LLVM IR (-O0):
@DoClockSc.nbclock = internal global i32 0
@TraceLevel = external global i32
@TraceDebug = external global i32
@.str = [158 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/actility/ong/refs/heads/master/common/libSongOverHttp/tester/main.c\00"
@.str.1 = [13 x i8] c"DoClockSc()\0A\00"
define void @DoClockSc() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @TraceLevel
%3 = icmp sge i32 %2, 1
br i1 %3, label %4, label %10
4: ; preds = %0
%5 = load i32, i32* @TraceDebug
%6 = icmp sle i32 %5, 0
%7 = zext i1 %6 to i64
%8 = select i1 %6, i8* null, i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0)
%9 = call i32 @rtl_tracedbg(i32 1, i8* %8, i32 59, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %10
10: ; preds = %4, %0
%11 = load i32, i32* @DoClockSc.nbclock
%12 = add i32 %11, 1
store i32 %12, i32* @DoClockSc.nbclock
%13 = call i32 @rtl_timemono(i32* %1)
%14 = load i32, i32* %1
%15 = call i32 @AdmClockSc(i32 %14)
ret void
}

LLVM IR (-O2):
@DoClockSc.nbclock = internal unnamed_addr global i32 0
@TraceLevel = external global i32
@TraceDebug = external global i32
@.str = [158 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/actility/ong/refs/heads/master/common/libSongOverHttp/tester/main.c\00"
@.str.1 = [13 x i8] c"DoClockSc()\0A\00"
define void @DoClockSc() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%3 = load i32, i32* @TraceLevel
%4 = icmp sgt i32 %3, 0
br i1 %4, label %5, label %10
5: ; preds = %0
%6 = load i32, i32* @TraceDebug
%7 = icmp slt i32 %6, 1
%8 = select i1 %7, i8* null, i8* getelementptr inbounds ([158 x i8], [158 x i8]* @.str, i64 0, i64 0)
%9 = tail call i32 @rtl_tracedbg(i32 1, i8* %8, i32 59, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %10
10: ; preds = %5, %0
%11 = load i32, i32* @DoClockSc.nbclock
%12 = add i32 %11, 1
store i32 %12, i32* @DoClockSc.nbclock
%13 = call i32 @rtl_timemono(i32* %1)
%14 = load i32, i32* %1
%15 = call i32 @AdmClockSc(i32 %14)
ret void
}