#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 pid_t;

/* Variables and functions */
int /*<<< orphan*/ SYS_gettid;
int /*<<< orphan*/ busy_waiting4(int);
int fork();
int getpid();
int omp_get_thread_num();
int /*<<< orphan*/ omp_set_nested(int);
int /*<<< orphan*/ omp_set_wait_policy(int);
int /*<<< orphan*/ printf(char *, double, ...);
double read_timer();
int syscall(int /*<<< orphan*/);
void test2(int type) {
  pid_t proc_id;
  int i = 0;
  double tt;
  proc_id = fork();
  if (type == 1) {
    omp_set_wait_policy(1);
  } else {
    omp_set_wait_policy(0);
  }
  if (proc_id == 0) {
    tt = read_timer();
  }
  omp_set_nested(1);
  for (i = 0; i < 3; i++) {
    if ((proc_id + i) % 2 == 0) {
      printf("%d pid %d\n", proc_id, getpid());
      busy_waiting4(1);
#pragma omp parallel num_threads(2)
      {
        int tid = omp_get_thread_num();
        busy_waiting4(1);
        int pid = getpid();
        int thid = syscall(SYS_gettid);
        printf("level 2 ompid:%d pid:%d tid:%d\n", tid, pid, thid);
      }
    } else {
      printf("%d pid %d\n", proc_id, getpid());
      int tid = omp_get_thread_num();
#pragma omp parallel num_threads(2)
      {
        int tid = omp_get_thread_num();
        busy_waiting4(1);
        int pid = getpid();
        int thid = syscall(SYS_gettid);
        printf("level 2 ompid:%d pid:%d tid:%d\n", tid, pid, thid);
      }
      busy_waiting4(1);
    }
  }
  if (proc_id == 0) {
    tt = read_timer() - tt;
    if (type == 0) {
      printf("passive: %f\n", tt);
    } else {
      printf("active: %f\n", tt);
    }
  }
}


x86 assembly (clang, -O0):
<test2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
mov    $0x0,%al
call   10b0 <fork@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x1,-0x4(%rbp)
jne    11c5 <test2+0x35>
mov    $0x1,%edi
call   1030 <omp_set_wait_policy@plt>
jmp    11cc <test2+0x3c>
xor    %edi,%edi
call   1030 <omp_set_wait_policy@plt>
cmpl   $0x0,-0x8(%rbp)
jne    11e2 <test2+0x52>
mov    $0x0,%al
call   10a0 <read_timer@plt>
movsd  %xmm0,-0x18(%rbp)
mov    $0x1,%edi
call   1080 <omp_set_nested@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x3,-0xc(%rbp)
jge    1326 <test2+0x196>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1291 <test2+0x101>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    $0x0,%al
call   1050 <getpid@plt>
movsd  -0x40(%rbp),%xmm0
mov    %eax,%esi
lea    0xdcd(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   1060 <busy_waiting4@plt>
mov    $0x0,%al
call   1040 <omp_get_thread_num@plt>
mov    %eax,-0x1c(%rbp)
mov    $0x1,%edi
call   1060 <busy_waiting4@plt>
mov    $0x0,%al
call   1050 <getpid@plt>
mov    %eax,-0x20(%rbp)
mov    0x2d7f(%rip),%rax
mov    (%rax),%edi
call   1090 <syscall@plt>
mov    %eax,-0x24(%rbp)
cvtsi2sdl -0x1c(%rbp),%xmm0
mov    -0x20(%rbp),%esi
mov    -0x24(%rbp),%edx
lea    0xd86(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
jmp    1313 <test2+0x183>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    $0x0,%al
call   1050 <getpid@plt>
movsd  -0x48(%rbp),%xmm0
mov    %eax,%esi
lea    0xd50(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1040 <omp_get_thread_num@plt>
mov    %eax,-0x28(%rbp)
mov    $0x0,%al
call   1040 <omp_get_thread_num@plt>
mov    %eax,-0x2c(%rbp)
mov    $0x1,%edi
call   1060 <busy_waiting4@plt>
mov    $0x0,%al
call   1050 <getpid@plt>
mov    %eax,-0x30(%rbp)
mov    0x2d02(%rip),%rax
mov    (%rax),%edi
call   1090 <syscall@plt>
mov    %eax,-0x34(%rbp)
cvtsi2sdl -0x2c(%rbp),%xmm0
mov    -0x30(%rbp),%esi
mov    -0x34(%rbp),%edx
lea    0xd09(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   1060 <busy_waiting4@plt>
jmp    1318 <test2+0x188>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11f3 <test2+0x63>
cmpl   $0x0,-0x8(%rbp)
jne    137b <test2+0x1eb>
mov    $0x0,%al
call   10a0 <read_timer@plt>
subsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1363 <test2+0x1d3>
movsd  -0x18(%rbp),%xmm0
lea    0xcd4(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
jmp    1376 <test2+0x1e6>
movsd  -0x18(%rbp),%xmm0
lea    0xcc9(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
jmp    137b <test2+0x1eb>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test2>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %edi,%r14d
xor    %eax,%eax
call   10b0 <fork@plt>
mov    %eax,%r15d
xor    %edi,%edi
cmp    $0x1,%r14d
sete   %dil
call   1030 <omp_set_wait_policy@plt>
test   %r15d,%r15d
jne    11c8 <test2+0x38>
xor    %eax,%eax
call   10a0 <read_timer@plt>
movsd  %xmm0,0x10(%rsp)
mov    $0x1,%edi
call   1080 <omp_set_nested@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %r15d,%xmm0
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1050 <getpid@plt>
lea    0xe12(%rip),%rdi
movsd  0x8(%rsp),%xmm0
mov    %eax,%esi
mov    $0x1,%al
call   1070 <printf@plt>
test   $0x1,%r15b
jne    1252 <test2+0xc2>
mov    $0x1,%edi
call   1060 <busy_waiting4@plt>
xor    %eax,%eax
call   1040 <omp_get_thread_num@plt>
mov    %eax,%ebx
mov    $0x1,%edi
call   1060 <busy_waiting4@plt>
xor    %eax,%eax
call   1050 <getpid@plt>
mov    %eax,%ebp
mov    0x2db8(%rip),%rax
mov    (%rax),%edi
call   1090 <syscall@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
lea    0xdc6(%rip),%rdi
mov    %ebp,%esi
mov    %eax,%edx
mov    $0x1,%al
call   1070 <printf@plt>
jmp    12a6 <test2+0x116>
xor    %eax,%eax
call   1040 <omp_get_thread_num@plt>
xor    %eax,%eax
call   1040 <omp_get_thread_num@plt>
mov    %eax,%ebx
mov    $0x1,%edi
call   1060 <busy_waiting4@plt>
xor    %eax,%eax
call   1050 <getpid@plt>
mov    %eax,%ebp
mov    0x2d6c(%rip),%rax
mov    (%rax),%edi
call   1090 <syscall@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
lea    0xd7a(%rip),%rdi
mov    %ebp,%esi
mov    %eax,%edx
mov    $0x1,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   1060 <busy_waiting4@plt>
xor    %eax,%eax
call   1050 <getpid@plt>
lea    0xd4c(%rip),%rdi
movsd  0x8(%rsp),%xmm0
mov    %eax,%esi
mov    $0x1,%al
call   1070 <printf@plt>
test   $0x1,%r15b
jne    131f <test2+0x18f>
xor    %eax,%eax
call   1040 <omp_get_thread_num@plt>
xor    %eax,%eax
call   1040 <omp_get_thread_num@plt>
mov    %eax,%ebx
mov    $0x1,%edi
call   1060 <busy_waiting4@plt>
xor    %eax,%eax
call   1050 <getpid@plt>
mov    %eax,%ebp
mov    0x2cf5(%rip),%rax
mov    (%rax),%edi
call   1090 <syscall@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
lea    0xd03(%rip),%rdi
mov    %ebp,%esi
mov    %eax,%edx
mov    $0x1,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   1060 <busy_waiting4@plt>
jmp    136c <test2+0x1dc>
mov    $0x1,%edi
call   1060 <busy_waiting4@plt>
xor    %eax,%eax
call   1040 <omp_get_thread_num@plt>
mov    %eax,%ebx
mov    $0x1,%edi
call   1060 <busy_waiting4@plt>
xor    %eax,%eax
call   1050 <getpid@plt>
mov    %eax,%ebp
mov    0x2c9c(%rip),%rax
mov    (%rax),%edi
call   1090 <syscall@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
lea    0xcaa(%rip),%rdi
mov    %ebp,%esi
mov    %eax,%edx
mov    $0x1,%al
call   1070 <printf@plt>
xor    %eax,%eax
call   1050 <getpid@plt>
lea    0xc86(%rip),%rdi
movsd  0x8(%rsp),%xmm0
mov    %eax,%esi
mov    $0x1,%al
call   1070 <printf@plt>
test   $0x1,%r15b
jne    13ec <test2+0x25c>
mov    $0x1,%edi
call   1060 <busy_waiting4@plt>
xor    %eax,%eax
call   1040 <omp_get_thread_num@plt>
mov    %eax,%ebx
mov    $0x1,%edi
call   1060 <busy_waiting4@plt>
xor    %eax,%eax
call   1050 <getpid@plt>
mov    %eax,%ebp
mov    0x2c2c(%rip),%rax
mov    (%rax),%edi
call   1090 <syscall@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
lea    0xc3a(%rip),%rdi
mov    %ebp,%esi
mov    %eax,%edx
mov    $0x1,%al
call   1070 <printf@plt>
test   %r15d,%r15d
je     1445 <test2+0x2b5>
add    $0x18,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
call   1040 <omp_get_thread_num@plt>
xor    %eax,%eax
call   1040 <omp_get_thread_num@plt>
mov    %eax,%ebx
mov    $0x1,%edi
call   1060 <busy_waiting4@plt>
xor    %eax,%eax
call   1050 <getpid@plt>
mov    %eax,%ebp
mov    0x2bd2(%rip),%rax
mov    (%rax),%edi
call   1090 <syscall@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
lea    0xbe0(%rip),%rdi
mov    %ebp,%esi
mov    %eax,%edx
mov    $0x1,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   1060 <busy_waiting4@plt>
test   %r15d,%r15d
jne    13e1 <test2+0x251>
xor    %eax,%eax
call   10a0 <read_timer@plt>
subsd  0x10(%rsp),%xmm0
test   %r14d,%r14d
lea    0xbcf(%rip),%rax
lea    0xbd5(%rip),%rdi
cmove  %rax,%rdi
mov    $0x1,%al
add    $0x18,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1070 <printf@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"%d pid %d\0A\00"
@SYS_gettid = global i32 0
@.str.1 = [32 x i8] c"level 2 ompid:%d pid:%d tid:%d\0A\00"
@.str.2 = [13 x i8] c"passive: %f\0A\00"
@.str.3 = [12 x i8] c"active: %f\0A\00"
define void @test2(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca double
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %4
%13 = call i32 (...) @fork()
store i32 %13, i32* %3
%14 = load i32, i32* %2
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %18
16: ; preds = %1
%17 = call i32 @omp_set_wait_policy(i32 1)
br label %20
18: ; preds = %1
%19 = call i32 @omp_set_wait_policy(i32 0)
br label %20
20: ; preds = %18, %16
%21 = load i32, i32* %3
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = call double (...) @read_timer()
store double %24, double* %5
br label %25
25: ; preds = %23, %20
%26 = call i32 @omp_set_nested(i32 1)
store i32 0, i32* %4
br label %27
27: ; preds = %70, %25
%28 = load i32, i32* %4
%29 = icmp slt i32 %28, 3
br i1 %29, label %30, label %73
30: ; preds = %27
%31 = load i32, i32* %3
%32 = load i32, i32* %4
%33 = add nsw i32 %31, %32
%34 = srem i32 %33, 2
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %52
36: ; preds = %30
%37 = load i32, i32* %3
%38 = sitofp i32 %37 to double
%39 = call i32 (...) @getpid()
%40 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), double %38, i32 %39)
%41 = call i32 @busy_waiting4(i32 1)
%42 = call i32 (...) @omp_get_thread_num()
store i32 %42, i32* %6
%43 = call i32 @busy_waiting4(i32 1)
%44 = call i32 (...) @getpid()
store i32 %44, i32* %7
%45 = load i32, i32* @SYS_gettid
%46 = call i32 @syscall(i32 %45)
store i32 %46, i32* %8
%47 = load i32, i32* %6
%48 = sitofp i32 %47 to double
%49 = load i32, i32* %7
%50 = load i32, i32* %8
%51 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), double %48, i32 %49, i32 %50)
br label %69
52: ; preds = %30
%53 = load i32, i32* %3
%54 = sitofp i32 %53 to double
%55 = call i32 (...) @getpid()
%56 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), double %54, i32 %55)
%57 = call i32 (...) @omp_get_thread_num()
store i32 %57, i32* %9
%58 = call i32 (...) @omp_get_thread_num()
store i32 %58, i32* %10
%59 = call i32 @busy_waiting4(i32 1)
%60 = call i32 (...) @getpid()
store i32 %60, i32* %11
%61 = load i32, i32* @SYS_gettid
%62 = call i32 @syscall(i32 %61)
store i32 %62, i32* %12
%63 = load i32, i32* %10
%64 = sitofp i32 %63 to double
%65 = load i32, i32* %11
%66 = load i32, i32* %12
%67 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), double %64, i32 %65, i32 %66)
%68 = call i32 @busy_waiting4(i32 1)
br label %69
69: ; preds = %52, %36
br label %70
70: ; preds = %69
%71 = load i32, i32* %4
%72 = add nsw i32 %71, 1
store i32 %72, i32* %4
br label %27
73: ; preds = %27
%74 = load i32, i32* %3
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %89
76: ; preds = %73
%77 = call double (...) @read_timer()
%78 = load double, double* %5
%79 = fsub double %77, %78
store double %79, double* %5
%80 = load i32, i32* %2
%81 = icmp eq i32 %80, 0
br i1 %81, label %82, label %85
82: ; preds = %76
%83 = load double, double* %5
%84 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), double %83)
br label %88
85: ; preds = %76
%86 = load double, double* %5
%87 = call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), double %86)
br label %88
88: ; preds = %85, %82
br label %89
89: ; preds = %88, %73
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"%d pid %d\0A\00"
@SYS_gettid = global i32 0
@.str.1 = [32 x i8] c"level 2 ompid:%d pid:%d tid:%d\0A\00"
@.str.2 = [13 x i8] c"passive: %f\0A\00"
@.str.3 = [12 x i8] c"active: %f\0A\00"
define void @test2(i32 %0) {
%2 = tail call i32 (...) @fork()
%3 = icmp eq i32 %0, 1
%4 = zext i1 %3 to i32
%5 = tail call i32 @omp_set_wait_policy(i32 %4)
%6 = icmp eq i32 %2, 0
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = tail call double (...) @read_timer()
br label %9
9: ; preds = %7, %1
%10 = phi double [ %8, %7 ], [ undef, %1 ]
%11 = tail call i32 @omp_set_nested(i32 1)
%12 = sitofp i32 %2 to double
%13 = and i32 %2, 1
%14 = icmp eq i32 %13, 0
%15 = tail call i32 (...) @getpid()
%16 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), double %12, i32 %15)
br i1 %14, label %17, label %26
17: ; preds = %9
%18 = tail call i32 @busy_waiting4(i32 1)
%19 = tail call i32 (...) @omp_get_thread_num()
%20 = tail call i32 @busy_waiting4(i32 1)
%21 = tail call i32 (...) @getpid()
%22 = load i32, i32* @SYS_gettid
%23 = tail call i32 @syscall(i32 %22)
%24 = sitofp i32 %19 to double
%25 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), double %24, i32 %21, i32 %23)
br label %36
26: ; preds = %9
%27 = tail call i32 (...) @omp_get_thread_num()
%28 = tail call i32 (...) @omp_get_thread_num()
%29 = tail call i32 @busy_waiting4(i32 1)
%30 = tail call i32 (...) @getpid()
%31 = load i32, i32* @SYS_gettid
%32 = tail call i32 @syscall(i32 %31)
%33 = sitofp i32 %28 to double
%34 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), double %33, i32 %30, i32 %32)
%35 = tail call i32 @busy_waiting4(i32 1)
br label %36
36: ; preds = %17, %26
%37 = and i32 %2, 1
%38 = icmp eq i32 %37, 0
%39 = tail call i32 (...) @getpid()
%40 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), double %12, i32 %39)
br i1 %38, label %41, label %51
41: ; preds = %36
%42 = tail call i32 (...) @omp_get_thread_num()
%43 = tail call i32 (...) @omp_get_thread_num()
%44 = tail call i32 @busy_waiting4(i32 1)
%45 = tail call i32 (...) @getpid()
%46 = load i32, i32* @SYS_gettid
%47 = tail call i32 @syscall(i32 %46)
%48 = sitofp i32 %43 to double
%49 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), double %48, i32 %45, i32 %47)
%50 = tail call i32 @busy_waiting4(i32 1)
br label %60
51: ; preds = %36
%52 = tail call i32 @busy_waiting4(i32 1)
%53 = tail call i32 (...) @omp_get_thread_num()
%54 = tail call i32 @busy_waiting4(i32 1)
%55 = tail call i32 (...) @getpid()
%56 = load i32, i32* @SYS_gettid
%57 = tail call i32 @syscall(i32 %56)
%58 = sitofp i32 %53 to double
%59 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), double %58, i32 %55, i32 %57)
br label %60
60: ; preds = %51, %41
%61 = and i32 %2, 1
%62 = icmp eq i32 %61, 0
%63 = tail call i32 (...) @getpid()
%64 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), double %12, i32 %63)
br i1 %62, label %75, label %65
65: ; preds = %60
%66 = tail call i32 (...) @omp_get_thread_num()
%67 = tail call i32 (...) @omp_get_thread_num()
%68 = tail call i32 @busy_waiting4(i32 1)
%69 = tail call i32 (...) @getpid()
%70 = load i32, i32* @SYS_gettid
%71 = tail call i32 @syscall(i32 %70)
%72 = sitofp i32 %67 to double
%73 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), double %72, i32 %69, i32 %71)
%74 = tail call i32 @busy_waiting4(i32 1)
br label %84
75: ; preds = %60
%76 = tail call i32 @busy_waiting4(i32 1)
%77 = tail call i32 (...) @omp_get_thread_num()
%78 = tail call i32 @busy_waiting4(i32 1)
%79 = tail call i32 (...) @getpid()
%80 = load i32, i32* @SYS_gettid
%81 = tail call i32 @syscall(i32 %80)
%82 = sitofp i32 %77 to double
%83 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), double %82, i32 %79, i32 %81)
br label %84
84: ; preds = %75, %65
br i1 %6, label %85, label %91
85: ; preds = %84
%86 = tail call double (...) @read_timer()
%87 = fsub double %86, %10
%88 = icmp eq i32 %0, 0
%89 = select i1 %88, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0)
%90 = tail call i32 (i8*, double, ...) @printf(i8* %89, double %87)
br label %91
91: ; preds = %85, %84
ret void
}