#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*/ printf(char *, int /*<<< orphan*/);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ system(char *);
int main(int argc, char *argv[]) {
  int count = 10;
  while (count) {
    printf("Please wait %d second(s) to notify send\n", count--);
    sleep(1);
  }
  for (int i = 0; i < 13; i++) {
    system("notify-send 'Hello world!' 'This is an example notification.' "
           "--icon=dialog-information -t 10000");
    sleep(3);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0xa,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     117d <main+0x4d>
mov    -0x14(%rbp),%esi
mov    %esi,%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
lea    0xe97(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1050 <sleep@plt>
jmp    114d <main+0x1d>
movl   $0x0,-0x18(%rbp)
cmpl   $0xd,-0x18(%rbp)
jge    11b2 <main+0x82>
lea    0xe94(%rip),%rdi
call   1030 <system@plt>
mov    $0x3,%edi
call   1050 <sleep@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1184 <main+0x54>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xec8(%rip),%rbx
mov    %rbx,%rdi
mov    $0xa,%esi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1050 <sleep@plt>
lea    0xe04(%rip),%rbx
mov    %rbx,%rdi
call   1030 <system@plt>
mov    $0x3,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    $0x3,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    $0x3,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    $0x3,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    $0x3,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    $0x3,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    $0x3,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    $0x3,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    $0x3,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    $0x3,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    $0x3,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    $0x3,%edi
call   1050 <sleep@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    $0x3,%edi
call   1050 <sleep@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [41 x i8] c"Please wait %d second(s) to notify send\0A\00"
@.str.1 = [97 x i8] c"notify-send 'Hello world!' 'This is an example notification.' --icon=dialog-information -t 10000\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 10, i32* %6
br label %8
8: ; preds = %11, %2
%9 = load i32, i32* %6
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = load i32, i32* %6
%13 = add nsw i32 %12, -1
store i32 %13, i32* %6
%14 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 %12)
%15 = call i32 @sleep(i32 1)
br label %8
16: ; preds = %8
store i32 0, i32* %7
br label %17
17: ; preds = %23, %16
%18 = load i32, i32* %7
%19 = icmp slt i32 %18, 13
br i1 %19, label %20, label %26
20: ; preds = %17
%21 = call i32 @system(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0))
%22 = call i32 @sleep(i32 3)
br label %23
23: ; preds = %20
%24 = load i32, i32* %7
%25 = add nsw i32 %24, 1
store i32 %25, i32* %7
br label %17
26: ; preds = %17
ret i32 0
}

LLVM IR (-O2):
@.str = [41 x i8] c"Please wait %d second(s) to notify send\0A\00"
@.str.1 = [97 x i8] c"notify-send 'Hello world!' 'This is an example notification.' --icon=dialog-information -t 10000\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 10)
%4 = tail call i32 @sleep(i32 1)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 9)
%6 = tail call i32 @sleep(i32 1)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 8)
%8 = tail call i32 @sleep(i32 1)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 7)
%10 = tail call i32 @sleep(i32 1)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 6)
%12 = tail call i32 @sleep(i32 1)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 5)
%14 = tail call i32 @sleep(i32 1)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 4)
%16 = tail call i32 @sleep(i32 1)
%17 = tail call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 3)
%18 = tail call i32 @sleep(i32 1)
%19 = tail call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 2)
%20 = tail call i32 @sleep(i32 1)
%21 = tail call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32 1)
%22 = tail call i32 @sleep(i32 1)
%23 = tail call i32 @system(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0))
%24 = tail call i32 @sleep(i32 3)
%25 = tail call i32 @system(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0))
%26 = tail call i32 @sleep(i32 3)
%27 = tail call i32 @system(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0))
%28 = tail call i32 @sleep(i32 3)
%29 = tail call i32 @system(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0))
%30 = tail call i32 @sleep(i32 3)
%31 = tail call i32 @system(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0))
%32 = tail call i32 @sleep(i32 3)
%33 = tail call i32 @system(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0))
%34 = tail call i32 @sleep(i32 3)
%35 = tail call i32 @system(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0))
%36 = tail call i32 @sleep(i32 3)
%37 = tail call i32 @system(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0))
%38 = tail call i32 @sleep(i32 3)
%39 = tail call i32 @system(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0))
%40 = tail call i32 @sleep(i32 3)
%41 = tail call i32 @system(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0))
%42 = tail call i32 @sleep(i32 3)
%43 = tail call i32 @system(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0))
%44 = tail call i32 @sleep(i32 3)
%45 = tail call i32 @system(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0))
%46 = tail call i32 @sleep(i32 3)
%47 = tail call i32 @system(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.1, i64 0, i64 0))
%48 = tail call i32 @sleep(i32 3)
ret i32 0
}