#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 */
struct tms {
  scalar_t__ tms_cstime;
  scalar_t__ tms_cutime;
  scalar_t__ tms_stime;
  scalar_t__ tms_utime;
};
typedef scalar_t__ clock_t;

/* Variables and functions */
int /*<<< orphan*/ _SC_CLK_TCK;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
double sysconf(int /*<<< orphan*/);
scalar_t__ times(struct tms *);
int main(int argc, char *argv[]) {
  struct tms startT, endT;
  clock_t StartTime, EndTime;
  double Zeit, ticks, usr, sys, cusr, csys;
  int i;
  ticks = sysconf(_SC_CLK_TCK);
  StartTime = times(&startT);
  for (i = 10e6; i < 10e8; i++) {
  }
  EndTime = times(&endT);
  Zeit = (double)(EndTime - StartTime) / ticks;
  usr = (double)(endT.tms_utime - startT.tms_utime) / ticks;
  sys = (double)(endT.tms_stime - startT.tms_stime) / ticks;
  cusr = (double)(endT.tms_cutime - startT.tms_cutime) / ticks;
  csys = (double)(endT.tms_cstime - startT.tms_cstime) / ticks;
  printf("\n\n");
  printf("Befehl:\t\t\t\t%s\n", argv[1]);
  printf("Uhrzeit:\t\t\t%4.3f\n", Zeit);
  printf("User CPU-time:\t\t\t%4.3f\n", usr);
  printf("System CPU-time:\t\t%4.3f\n", sys);
  printf("Children user CPU-time:\t\t%4.3f\n", cusr);
  printf("Children system CPU-time:\t%4.3f\n", csys);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e80(%rip),%rax
mov    (%rax),%edi
call   1050 <sysconf@plt>
movsd  %xmm0,-0x70(%rbp)
lea    -0x30(%rbp),%rdi
call   1040 <times@plt>
mov    %rax,-0x58(%rbp)
movl   $0x989680,-0x94(%rbp)
cvtsi2sdl -0x94(%rbp),%xmm1
ff
movsd  0xe6d(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    11b6 <main+0x76>
jmp    11a2 <main+0x62>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    1183 <main+0x43>
lea    -0x50(%rbp),%rdi
call   1040 <times@plt>
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
sub    -0x58(%rbp),%rax
cvtsi2sd %rax,%xmm0
divsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x38(%rbp),%rax
sub    -0x18(%rbp),%rax
cvtsi2sd %rax,%xmm0
divsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x40(%rbp),%rax
sub    -0x20(%rbp),%rax
cvtsi2sd %rax,%xmm0
divsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x48(%rbp),%rax
sub    -0x28(%rbp),%rax
cvtsi2sd %rax,%xmm0
divsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x50(%rbp),%rax
sub    -0x30(%rbp),%rax
cvtsi2sd %rax,%xmm0
divsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
lea    0xdc5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xdb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x68(%rbp),%xmm0
lea    0xdae(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x78(%rbp),%xmm0
lea    0xdad(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x80(%rbp),%xmm0
lea    0xdb2(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x88(%rbp),%xmm0
ff
lea    0xdb5(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x90(%rbp),%xmm0
ff
lea    0xdbf(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x68,%rsp
mov    %rsi,%r14
mov    0x2e7f(%rip),%rax
mov    (%rax),%edi
call   1060 <sysconf@plt>
movsd  %xmm0,(%rsp)
lea    0x48(%rsp),%rdi
call   1050 <times@plt>
mov    %rax,%rbx
lea    0x28(%rsp),%rdi
call   1050 <times@plt>
sub    %rbx,%rax
cvtsi2sd %rax,%xmm1
mov    0x40(%rsp),%rax
sub    0x60(%rsp),%rax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
movsd  (%rsp),%xmm2
divsd  %xmm2,%xmm1
movsd  %xmm1,0x8(%rsp)
mov    0x38(%rsp),%rax
sub    0x58(%rsp),%rax
divsd  %xmm2,%xmm0
movsd  %xmm0,0x10(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  %xmm2,%xmm0
movsd  %xmm0,0x20(%rsp)
mov    0x28(%rsp),%rax
mov    0x30(%rsp),%rcx
sub    0x50(%rsp),%rcx
xorps  %xmm0,%xmm0
cvtsi2sd %rcx,%xmm0
sub    0x48(%rsp),%rax
divsd  %xmm2,%xmm0
movsd  %xmm0,0x18(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
divsd  %xmm2,%xmm0
movsd  %xmm0,(%rsp)
lea    0xe26(%rip),%rdi
call   1030 <puts@plt>
mov    0x8(%r14),%rsi
lea    0xddf(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xde0(%rip),%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xdde(%rip),%rdi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xde2(%rip),%rdi
movsd  0x20(%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xde7(%rip),%rdi
movsd  0x18(%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xdf3(%rip),%rdi
movsd  (%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
%struct.tms = type { i64, i64, i64, i64 }
@_SC_CLK_TCK = global i32 0
@.str = [3 x i8] c"\0A\0A\00"
@.str.1 = [15 x i8] c"Befehl:\09\09\09\09%s\0A\00"
@.str.2 = [18 x i8] c"Uhrzeit:\09\09\09%4.3f\0A\00"
@.str.3 = [24 x i8] c"User CPU-time:\09\09\09%4.3f\0A\00"
@.str.4 = [25 x i8] c"System CPU-time:\09\09%4.3f\0A\00"
@.str.5 = [32 x i8] c"Children user CPU-time:\09\09%4.3f\0A\00"
@.str.6 = [33 x i8] c"Children system CPU-time:\09%4.3f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.tms
%7 = alloca %struct.tms
%8 = alloca i64
%9 = alloca i64
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%17 = load i32, i32* @_SC_CLK_TCK
%18 = call double @sysconf(i32 %17)
store double %18, double* %11
%19 = call i64 @times(%struct.tms* %6)
store i64 %19, i64* %8
store i32 10000000, i32* %16
br label %20
20: ; preds = %25, %2
%21 = load i32, i32* %16
%22 = sitofp i32 %21 to double
%23 = fcmp olt double %22, 1.000000e+09
br i1 %23, label %24, label %28
24: ; preds = %20
br label %25
25: ; preds = %24
%26 = load i32, i32* %16
%27 = add nsw i32 %26, 1
store i32 %27, i32* %16
br label %20
28: ; preds = %20
%29 = call i64 @times(%struct.tms* %7)
store i64 %29, i64* %9
%30 = load i64, i64* %9
%31 = load i64, i64* %8
%32 = sub nsw i64 %30, %31
%33 = sitofp i64 %32 to double
%34 = load double, double* %11
%35 = fdiv double %33, %34
store double %35, double* %10
%36 = getelementptr inbounds %struct.tms, %struct.tms* %7, i32 0, i32 3
%37 = load i64, i64* %36
%38 = getelementptr inbounds %struct.tms, %struct.tms* %6, i32 0, i32 3
%39 = load i64, i64* %38
%40 = sub nsw i64 %37, %39
%41 = sitofp i64 %40 to double
%42 = load double, double* %11
%43 = fdiv double %41, %42
store double %43, double* %12
%44 = getelementptr inbounds %struct.tms, %struct.tms* %7, i32 0, i32 2
%45 = load i64, i64* %44
%46 = getelementptr inbounds %struct.tms, %struct.tms* %6, i32 0, i32 2
%47 = load i64, i64* %46
%48 = sub nsw i64 %45, %47
%49 = sitofp i64 %48 to double
%50 = load double, double* %11
%51 = fdiv double %49, %50
store double %51, double* %13
%52 = getelementptr inbounds %struct.tms, %struct.tms* %7, i32 0, i32 1
%53 = load i64, i64* %52
%54 = getelementptr inbounds %struct.tms, %struct.tms* %6, i32 0, i32 1
%55 = load i64, i64* %54
%56 = sub nsw i64 %53, %55
%57 = sitofp i64 %56 to double
%58 = load double, double* %11
%59 = fdiv double %57, %58
store double %59, double* %14
%60 = getelementptr inbounds %struct.tms, %struct.tms* %7, i32 0, i32 0
%61 = load i64, i64* %60
%62 = getelementptr inbounds %struct.tms, %struct.tms* %6, i32 0, i32 0
%63 = load i64, i64* %62
%64 = sub nsw i64 %61, %63
%65 = sitofp i64 %64 to double
%66 = load double, double* %11
%67 = fdiv double %65, %66
store double %67, double* %15
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%69 = load i8**, i8*** %5
%70 = getelementptr inbounds i8*, i8** %69, i64 1
%71 = load i8*, i8** %70
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* %71)
%73 = load double, double* %10
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), double %73)
%75 = load double, double* %12
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), double %75)
%77 = load double, double* %13
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), double %77)
%79 = load double, double* %14
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), double %79)
%81 = load double, double* %15
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), double %81)
%83 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
%struct.tms = type { i64, i64, i64, i64 }
@_SC_CLK_TCK = global i32 0
@.str.1 = [15 x i8] c"Befehl:\09\09\09\09%s\0A\00"
@.str.2 = [18 x i8] c"Uhrzeit:\09\09\09%4.3f\0A\00"
@.str.3 = [24 x i8] c"User CPU-time:\09\09\09%4.3f\0A\00"
@.str.4 = [25 x i8] c"System CPU-time:\09\09%4.3f\0A\00"
@.str.5 = [32 x i8] c"Children user CPU-time:\09\09%4.3f\0A\00"
@.str.6 = [33 x i8] c"Children system CPU-time:\09%4.3f\0A\00"
@str = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.tms
%4 = alloca %struct.tms
%5 = bitcast %struct.tms* %3 to i8*
%6 = bitcast %struct.tms* %4 to i8*
%7 = load i32, i32* @_SC_CLK_TCK
%8 = tail call double @sysconf(i32 %7)
%9 = call i64 @times(%struct.tms* %3)
%10 = call i64 @times(%struct.tms* %4)
%11 = sub nsw i64 %10, %9
%12 = sitofp i64 %11 to double
%13 = fdiv double %12, %8
%14 = getelementptr inbounds %struct.tms, %struct.tms* %4, i64 0, i32 3
%15 = load i64, i64* %14
%16 = getelementptr inbounds %struct.tms, %struct.tms* %3, i64 0, i32 3
%17 = load i64, i64* %16
%18 = sub nsw i64 %15, %17
%19 = sitofp i64 %18 to double
%20 = fdiv double %19, %8
%21 = getelementptr inbounds %struct.tms, %struct.tms* %4, i64 0, i32 2
%22 = load i64, i64* %21
%23 = getelementptr inbounds %struct.tms, %struct.tms* %3, i64 0, i32 2
%24 = load i64, i64* %23
%25 = sub nsw i64 %22, %24
%26 = sitofp i64 %25 to double
%27 = fdiv double %26, %8
%28 = getelementptr inbounds %struct.tms, %struct.tms* %4, i64 0, i32 1
%29 = load i64, i64* %28
%30 = getelementptr inbounds %struct.tms, %struct.tms* %3, i64 0, i32 1
%31 = load i64, i64* %30
%32 = sub nsw i64 %29, %31
%33 = sitofp i64 %32 to double
%34 = fdiv double %33, %8
%35 = getelementptr inbounds %struct.tms, %struct.tms* %4, i64 0, i32 0
%36 = load i64, i64* %35
%37 = getelementptr inbounds %struct.tms, %struct.tms* %3, i64 0, i32 0
%38 = load i64, i64* %37
%39 = sub nsw i64 %36, %38
%40 = sitofp i64 %39 to double
%41 = fdiv double %40, %8
%42 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
%43 = getelementptr inbounds i8*, i8** %1, i64 1
%44 = load i8*, i8** %43
%45 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* %44)
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), double %13)
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), double %20)
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), double %27)
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), double %34)
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), double %41)
%51 = tail call i32 @exit(i32 0)
unreachable
}