#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 */
char *getDate();
int /*<<< orphan*/ printf(char *, char *, char *, int, char *, char *, int);
void watch(const void *content) {
  int *temp = (int *)content;
  printf("[[%s][%s][%d][%s] is now [%s] and [%d]]\n",
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/speedmax123/data_structure/refs/heads/"
         "master/utils.c",
         getDate(), 56, "this node's content is", "", *temp);
}


x86 assembly (clang, -O0):
<watch>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    $0x0,%al
call   1030 <getDate@plt>
mov    %rax,%rdx
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
lea    0xeb5(%rip),%rdi
lea    0xed7(%rip),%rsi
mov    $0x38,%ecx
lea    0xf5a(%rip),%r8
lea    0xec3(%rip),%r9
mov    %eax,(%rsp)
call   1040 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<watch>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <getDate@plt>
mov    (%rbx),%ecx
mov    %ecx,(%rsp)
lea    0xec5(%rip),%rdi
lea    0xee7(%rip),%rsi
lea    0xf6f(%rip),%r8
lea    0xed8(%rip),%r9
mov    %rax,%rdx
mov    $0x38,%ecx
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [41 x i8] c"[[%s][%s][%d][%s] is now [%s] and [%d]]\0A\00"
@.str.1 = [143 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/speedmax123/data_structure/refs/heads/master/utils.c\00"
@.str.2 = [23 x i8] c"this node's content is\00"
@.str.3 = [1 x i8] zeroinitializer
define void @watch(i8* %0) {
%2 = alloca i8*
%3 = alloca i32*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = bitcast i8* %4 to i32*
store i32* %5, i32** %3
%6 = call i8* (...) @getDate()
%7 = load i32*, i32** %3
%8 = load i32, i32* %7
%9 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str.1, i64 0, i64 0), i8* %6, i32 56, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0), i32 %8)
ret void
}

LLVM IR (-O2):
@.str = [41 x i8] c"[[%s][%s][%d][%s] is now [%s] and [%d]]\0A\00"
@.str.1 = [143 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/speedmax123/data_structure/refs/heads/master/utils.c\00"
@.str.2 = [23 x i8] c"this node's content is\00"
@.str.3 = [1 x i8] zeroinitializer
define void @watch(i8* nocapture %0) {
%2 = bitcast i8* %0 to i32*
%3 = tail call i8* (...) @getDate()
%4 = load i32, i32* %2
%5 = tail call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str.1, i64 0, i64 0), i8* %3, i32 56, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0), i32 %4)
ret void
}