#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*/ memset(char *, int /*<<< orphan*/, int);
char *poRandSequence_string(char *, char *, int /*<<< orphan*/, int, int);
int /*<<< orphan*/ printf(char *, char *);
int main(void) {
  char buf[2][100];
  memset(buf[0], 0, 100);
  memset(buf[1], 0, 100);
  int i, b1 = 0, b2 = 1;
  for (i = 0; i < 200; ++i) {
    printf("%s\n", poRandSequence_string(buf[b1], buf[b2], 0, 50, 100));
    if (b1) {
      b1 = 0;
      b2 = 1;
    } else {
      b1 = 1;
      b2 = 0;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0xd0(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
lea    -0xd0(%rbp),%rdi
add    $0x64,%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
movl   $0x0,-0xd8(%rbp)
movl   $0x1,-0xdc(%rbp)
movl   $0x0,-0xd4(%rbp)
cmpl   $0xc8,-0xd4(%rbp)
jge    1238 <main+0x108>
movslq -0xd8(%rbp),%rax
lea    -0xd0(%rbp),%rdi
imul   $0x64,%rax,%rax
add    %rax,%rdi
movslq -0xdc(%rbp),%rax
lea    -0xd0(%rbp),%rsi
imul   $0x64,%rax,%rax
add    %rax,%rsi
xor    %edx,%edx
mov    $0x32,%ecx
mov    $0x64,%r8d
call   1050 <poRandSequence_string@plt>
mov    %rax,%rsi
lea    0xe20(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0xd8(%rbp)
je     120b <main+0xdb>
movl   $0x0,-0xd8(%rbp)
movl   $0x1,-0xdc(%rbp)
jmp    121f <main+0xef>
movl   $0x1,-0xd8(%rbp)
movl   $0x0,-0xdc(%rbp)
jmp    1224 <main+0xf4>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    118a <main+0x5a>
xor    %eax,%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0xd0,%rsp
mov    %rsp,%rdi
xor    %ebp,%ebp
xor    %esi,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
lea    0x64(%rsp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
mov    $0x1,%eax
mov    $0xc8,%ebx
lea    0xe92(%rip),%r14
xchg   %ax,%ax
mov    %ebp,%ecx
imul   $0x64,%rcx,%rcx
lea    (%rsp,%rcx,1),%rdi
imul   $0x64,%rax,%rax
lea    (%rsp,%rax,1),%rsi
xor    %edx,%edx
mov    $0x32,%ecx
mov    $0x64,%r8d
call   1050 <poRandSequence_string@plt>
mov    %r14,%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
test   %ebp,%ebp
setne  %al
xor    $0x1,%ebp
add    $0xffffffff,%ebx
jne    1170 <main+0x40>
xor    %eax,%eax
add    $0xd0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [2 x [100 x i8]]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = getelementptr inbounds [2 x [100 x i8]], [2 x [100 x i8]]* %2, i64 0, i64 0
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%8 = call i32 @memset(i8* %7, i32 0, i32 100)
%9 = getelementptr inbounds [2 x [100 x i8]], [2 x [100 x i8]]* %2, i64 0, i64 1
%10 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%11 = call i32 @memset(i8* %10, i32 0, i32 100)
store i32 0, i32* %4
store i32 1, i32* %5
store i32 0, i32* %3
br label %12
12: ; preds = %31, %0
%13 = load i32, i32* %3
%14 = icmp slt i32 %13, 200
br i1 %14, label %15, label %34
15: ; preds = %12
%16 = load i32, i32* %4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [2 x [100 x i8]], [2 x [100 x i8]]* %2, i64 0, i64 %17
%19 = getelementptr inbounds [100 x i8], [100 x i8]* %18, i64 0, i64 0
%20 = load i32, i32* %5
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [2 x [100 x i8]], [2 x [100 x i8]]* %2, i64 0, i64 %21
%23 = getelementptr inbounds [100 x i8], [100 x i8]* %22, i64 0, i64 0
%24 = call i8* @poRandSequence_string(i8* %19, i8* %23, i32 0, i32 50, i32 100)
%25 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %24)
%26 = load i32, i32* %4
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %15
store i32 0, i32* %4
store i32 1, i32* %5
br label %30
29: ; preds = %15
store i32 1, i32* %4
store i32 0, i32* %5
br label %30
30: ; preds = %29, %28
br label %31
31: ; preds = %30
%32 = load i32, i32* %3
%33 = add nsw i32 %32, 1
store i32 %33, i32* %3
br label %12
34: ; preds = %12
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca [2 x [100 x i8]]
%2 = getelementptr inbounds [2 x [100 x i8]], [2 x [100 x i8]]* %1, i64 0, i64 0, i64 0
%3 = call i32 @memset(i8* %2, i32 0, i32 100)
%4 = getelementptr inbounds [2 x [100 x i8]], [2 x [100 x i8]]* %1, i64 0, i64 1, i64 0
%5 = call i32 @memset(i8* %4, i32 0, i32 100)
br label %6
6: ; preds = %0, %6
%7 = phi i64 [ 1, %0 ], [ %17, %6 ]
%8 = phi i32 [ 0, %0 ], [ %16, %6 ]
%9 = phi i32 [ 0, %0 ], [ %18, %6 ]
%10 = zext i32 %8 to i64
%11 = getelementptr inbounds [2 x [100 x i8]], [2 x [100 x i8]]* %1, i64 0, i64 %10, i64 0
%12 = getelementptr inbounds [2 x [100 x i8]], [2 x [100 x i8]]* %1, i64 0, i64 %7, i64 0
%13 = call i8* @poRandSequence_string(i8* %11, i8* %12, i32 0, i32 50, i32 100)
%14 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %13)
%15 = icmp ne i32 %8, 0
%16 = xor i32 %8, 1
%17 = zext i1 %15 to i64
%18 = add nuw nsw i32 %9, 1
%19 = icmp eq i32 %18, 200
br i1 %19, label %20, label %6
20: ; preds = %6
ret i32 0
}