#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 pbvec(unsigned long long l, unsigned long long u) {
  int i, j;
  for (i = 4; i >= 0; i--) {
    for (j = 0; j < 10; j++) {
      printf("%d ", (int)((u >> (i * 10 + j)) & 0x1));
    }
    printf("\n");
  }
  for (i = 4; i >= 0; i--) {
    for (j = 0; j < 10; j++) {
      printf("%d ", (int)((l >> (i * 10 + j)) & 0x1));
    }
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<pbvec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x4,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jl     1190 <pbvec+0x80>
movl   $0x0,-0x18(%rbp)
cmpl   $0xa,-0x18(%rbp)
jge    1174 <pbvec+0x64>
mov    -0x10(%rbp),%rax
imul   $0xa,-0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
mov    %ecx,%ecx
shr    %cl,%rax
and    $0x1,%rax
mov    %eax,%esi
lea    0xea1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1138 <pbvec+0x28>
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
jmp    1127 <pbvec+0x17>
movl   $0x4,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jl     1200 <pbvec+0xf0>
movl   $0x0,-0x18(%rbp)
cmpl   $0xa,-0x18(%rbp)
jge    11e4 <pbvec+0xd4>
mov    -0x8(%rbp),%rax
imul   $0xa,-0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
mov    %ecx,%ecx
shr    %cl,%rax
and    $0x1,%rax
mov    %eax,%esi
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11a8 <pbvec+0x98>
lea    0xe19(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
jmp    1197 <pbvec+0x87>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pbvec>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r15
mov    %rdi,%r14
mov    $0x28,%ebx
lea    0xec6(%rip),%r12
nopw   0x0(%rax,%rax,1)
mov    %r15,%rsi
mov    %ebx,%ecx
shr    %cl,%rsi
and    $0x1,%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1(%rbx),%ecx
mov    %r15,%rsi
shr    %cl,%rsi
and    $0x1,%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x2(%rbx),%ecx
mov    %r15,%rsi
shr    %cl,%rsi
and    $0x1,%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x3(%rbx),%ecx
mov    %r15,%rsi
shr    %cl,%rsi
and    $0x1,%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x4(%rbx),%ecx
mov    %r15,%rsi
shr    %cl,%rsi
and    $0x1,%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x5(%rbx),%ecx
mov    %r15,%rsi
shr    %cl,%rsi
and    $0x1,%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x6(%rbx),%ecx
mov    %r15,%rsi
shr    %cl,%rsi
and    $0x1,%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x7(%rbx),%ecx
mov    %r15,%rsi
shr    %cl,%rsi
and    $0x1,%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rbx),%ecx
mov    %r15,%rsi
shr    %cl,%rsi
and    $0x1,%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x9(%rbx),%ecx
mov    %r15,%rsi
shr    %cl,%rsi
and    $0x1,%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0xfffffffffffffff6,%rbx
cmp    $0xfffffffffffffff6,%rbx
jne    1140 <pbvec+0x20>
mov    $0x28,%ebx
lea    0xdc1(%rip),%r15
nop
mov    %r14,%rsi
mov    %ebx,%ecx
shr    %cl,%rsi
and    $0x1,%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1(%rbx),%ecx
mov    %r14,%rsi
shr    %cl,%rsi
and    $0x1,%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x2(%rbx),%ecx
mov    %r14,%rsi
shr    %cl,%rsi
and    $0x1,%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x3(%rbx),%ecx
mov    %r14,%rsi
shr    %cl,%rsi
and    $0x1,%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x4(%rbx),%ecx
mov    %r14,%rsi
shr    %cl,%rsi
and    $0x1,%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x5(%rbx),%ecx
mov    %r14,%rsi
shr    %cl,%rsi
and    $0x1,%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x6(%rbx),%ecx
mov    %r14,%rsi
shr    %cl,%rsi
and    $0x1,%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x7(%rbx),%ecx
mov    %r14,%rsi
shr    %cl,%rsi
and    $0x1,%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rbx),%ecx
mov    %r14,%rsi
shr    %cl,%rsi
and    $0x1,%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x9(%rbx),%ecx
mov    %r14,%rsi
shr    %cl,%rsi
and    $0x1,%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0xfffffffffffffff6,%rbx
cmp    $0xfffffffffffffff6,%rbx
jne    1240 <pbvec+0x120>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d \00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @pbvec(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca i32
%6 = alloca i32
store i64 %0, i64* %3
store i64 %1, i64* %4
store i32 4, i32* %5
br label %7
7: ; preds = %30, %2
%8 = load i32, i32* %5
%9 = icmp sge i32 %8, 0
br i1 %9, label %10, label %33
10: ; preds = %7
store i32 0, i32* %6
br label %11
11: ; preds = %25, %10
%12 = load i32, i32* %6
%13 = icmp slt i32 %12, 10
br i1 %13, label %14, label %28
14: ; preds = %11
%15 = load i64, i64* %4
%16 = load i32, i32* %5
%17 = mul nsw i32 %16, 10
%18 = load i32, i32* %6
%19 = add nsw i32 %17, %18
%20 = zext i32 %19 to i64
%21 = lshr i64 %15, %20
%22 = and i64 %21, 1
%23 = trunc i64 %22 to i32
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %23)
br label %25
25: ; preds = %14
%26 = load i32, i32* %6
%27 = add nsw i32 %26, 1
store i32 %27, i32* %6
br label %11
28: ; preds = %11
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %30
30: ; preds = %28
%31 = load i32, i32* %5
%32 = add nsw i32 %31, -1
store i32 %32, i32* %5
br label %7
33: ; preds = %7
store i32 4, i32* %5
br label %34
34: ; preds = %57, %33
%35 = load i32, i32* %5
%36 = icmp sge i32 %35, 0
br i1 %36, label %37, label %60
37: ; preds = %34
store i32 0, i32* %6
br label %38
38: ; preds = %52, %37
%39 = load i32, i32* %6
%40 = icmp slt i32 %39, 10
br i1 %40, label %41, label %55
41: ; preds = %38
%42 = load i64, i64* %3
%43 = load i32, i32* %5
%44 = mul nsw i32 %43, 10
%45 = load i32, i32* %6
%46 = add nsw i32 %44, %45
%47 = zext i32 %46 to i64
%48 = lshr i64 %42, %47
%49 = and i64 %48, 1
%50 = trunc i64 %49 to i32
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %50)
br label %52
52: ; preds = %41
%53 = load i32, i32* %6
%54 = add nsw i32 %53, 1
store i32 %54, i32* %6
br label %38
55: ; preds = %38
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %57
57: ; preds = %55
%58 = load i32, i32* %5
%59 = add nsw i32 %58, -1
store i32 %59, i32* %5
br label %34
60: ; preds = %34
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d \00"
define i32 @pbvec(i64 %0, i64 %1) {
br label %3
3: ; preds = %2, %3
%4 = phi i64 [ 4, %2 ], [ %56, %3 ]
%5 = mul nuw nsw i64 %4, 10
%6 = lshr i64 %1, %5
%7 = trunc i64 %6 to i32
%8 = and i32 %7, 1
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %8)
%10 = or i64 %5, 1
%11 = lshr i64 %1, %10
%12 = trunc i64 %11 to i32
%13 = and i32 %12, 1
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %13)
%15 = add nuw nsw i64 %5, 2
%16 = lshr i64 %1, %15
%17 = trunc i64 %16 to i32
%18 = and i32 %17, 1
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %18)
%20 = add nuw nsw i64 %5, 3
%21 = lshr i64 %1, %20
%22 = trunc i64 %21 to i32
%23 = and i32 %22, 1
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %23)
%25 = add nuw nsw i64 %5, 4
%26 = lshr i64 %1, %25
%27 = trunc i64 %26 to i32
%28 = and i32 %27, 1
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %28)
%30 = add nuw nsw i64 %5, 5
%31 = lshr i64 %1, %30
%32 = trunc i64 %31 to i32
%33 = and i32 %32, 1
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %33)
%35 = add nuw nsw i64 %5, 6
%36 = lshr i64 %1, %35
%37 = trunc i64 %36 to i32
%38 = and i32 %37, 1
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %38)
%40 = add nuw nsw i64 %5, 7
%41 = lshr i64 %1, %40
%42 = trunc i64 %41 to i32
%43 = and i32 %42, 1
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %43)
%45 = add nuw nsw i64 %5, 8
%46 = lshr i64 %1, %45
%47 = trunc i64 %46 to i32
%48 = and i32 %47, 1
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %48)
%50 = add nuw nsw i64 %5, 9
%51 = lshr i64 %1, %50
%52 = trunc i64 %51 to i32
%53 = and i32 %52, 1
%54 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %53)
%55 = tail call i32 @putchar(i32 10)
%56 = add nsw i64 %4, -1
%57 = icmp eq i64 %4, 0
br i1 %57, label %58, label %3
58: ; preds = %3, %58
%59 = phi i64 [ %111, %58 ], [ 4, %3 ]
%60 = mul nuw nsw i64 %59, 10
%61 = lshr i64 %0, %60
%62 = trunc i64 %61 to i32
%63 = and i32 %62, 1
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %63)
%65 = or i64 %60, 1
%66 = lshr i64 %0, %65
%67 = trunc i64 %66 to i32
%68 = and i32 %67, 1
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %68)
%70 = add nuw nsw i64 %60, 2
%71 = lshr i64 %0, %70
%72 = trunc i64 %71 to i32
%73 = and i32 %72, 1
%74 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %73)
%75 = add nuw nsw i64 %60, 3
%76 = lshr i64 %0, %75
%77 = trunc i64 %76 to i32
%78 = and i32 %77, 1
%79 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %78)
%80 = add nuw nsw i64 %60, 4
%81 = lshr i64 %0, %80
%82 = trunc i64 %81 to i32
%83 = and i32 %82, 1
%84 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %83)
%85 = add nuw nsw i64 %60, 5
%86 = lshr i64 %0, %85
%87 = trunc i64 %86 to i32
%88 = and i32 %87, 1
%89 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %88)
%90 = add nuw nsw i64 %60, 6
%91 = lshr i64 %0, %90
%92 = trunc i64 %91 to i32
%93 = and i32 %92, 1
%94 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %93)
%95 = add nuw nsw i64 %60, 7
%96 = lshr i64 %0, %95
%97 = trunc i64 %96 to i32
%98 = and i32 %97, 1
%99 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %98)
%100 = add nuw nsw i64 %60, 8
%101 = lshr i64 %0, %100
%102 = trunc i64 %101 to i32
%103 = and i32 %102, 1
%104 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %103)
%105 = add nuw nsw i64 %60, 9
%106 = lshr i64 %0, %105
%107 = trunc i64 %106 to i32
%108 = and i32 %107, 1
%109 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %108)
%110 = tail call i32 @putchar(i32 10)
%111 = add nsw i64 %59, -1
%112 = icmp eq i64 %59, 0
br i1 %112, label %113, label %58
113: ; preds = %58
ret i32 0
}