#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 *, ...);
void disp_jobs_str(char *jobs[20][20], int jobs_sz) {
  for (int i = 0; i < jobs_sz; i++) {
    printf("[%d] \t", (i + 1));
    for (int j = 0; j < 20; j++) {
      if (jobs[i][j] != NULL)
        printf("%s ", jobs[i][j]);
      else {
        printf("\n");
        break;
      }
    }
  }
}


x86 assembly (clang, -O0):
<disp_jobs_str>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11de <disp_jobs_str+0xce>
mov    -0x10(%rbp),%esi
add    $0x1,%esi
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x14,-0x14(%rbp)
jge    11cb <disp_jobs_str+0xbb>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
imul   $0xa0,%rcx,%rcx
add    %rcx,%rax
movslq -0x14(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     11a5 <disp_jobs_str+0x95>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
imul   $0xa0,%rcx,%rcx
add    %rcx,%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xe6e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11b8 <disp_jobs_str+0xa8>
lea    0xe5f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11cb <disp_jobs_str+0xbb>
jmp    11bd <disp_jobs_str+0xad>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    114d <disp_jobs_str+0x3d>
jmp    11d0 <disp_jobs_str+0xc0>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <disp_jobs_str+0x16>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<disp_jobs_str>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
test   %esi,%esi
jle    135d <disp_jobs_str+0x23d>
mov    %rdi,%r13
mov    %esi,%eax
add    $0x98,%r13
shl    $0x5,%rax
lea    (%rax,%rax,4),%r12
mov    $0x1,%ebp
lea    0xead(%rip),%r14
lea    0xead(%rip),%r15
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x98(%r13,%rbx,1),%rsi
ff
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x90(%r13,%rbx,1),%rsi
ff
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x88(%r13,%rbx,1),%rsi
ff
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x80(%r13,%rbx,1),%rsi
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x78(%r13,%rbx,1),%rsi
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x70(%r13,%rbx,1),%rsi
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x68(%r13,%rbx,1),%rsi
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x60(%r13,%rbx,1),%rsi
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x58(%r13,%rbx,1),%rsi
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x50(%r13,%rbx,1),%rsi
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x48(%r13,%rbx,1),%rsi
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x40(%r13,%rbx,1),%rsi
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x38(%r13,%rbx,1),%rsi
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x30(%r13,%rbx,1),%rsi
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x28(%r13,%rbx,1),%rsi
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x20(%r13,%rbx,1),%rsi
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x18(%r13,%rbx,1),%rsi
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x10(%r13,%rbx,1),%rsi
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0x8(%r13,%rbx,1),%rsi
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x0(%r13,%rbx,1),%rsi
test   %rsi,%rsi
je     1340 <disp_jobs_str+0x220>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    134a <disp_jobs_str+0x22a>
nop
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0xa0,%rbx
add    $0x1,%ebp
cmp    %rbx,%r12
jne    1160 <disp_jobs_str+0x40>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"[%d] \09\00"
@.str.1 = [4 x i8] c"%s \00"
@.str.2 = [2 x i8] c"\0A\00"
define void @disp_jobs_str([20 x i8*]* %0, i32 %1) {
%3 = alloca [20 x i8*]*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store [20 x i8*]* %0, [20 x i8*]** %3
store i32 %1, i32* %4
store i32 0, i32* %5
br label %7
7: ; preds = %45, %2
%8 = load i32, i32* %5
%9 = load i32, i32* %4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %48
11: ; preds = %7
%12 = load i32, i32* %5
%13 = add nsw i32 %12, 1
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %13)
store i32 0, i32* %6
br label %15
15: ; preds = %41, %11
%16 = load i32, i32* %6
%17 = icmp slt i32 %16, 20
br i1 %17, label %18, label %44
18: ; preds = %15
%19 = load [20 x i8*]*, [20 x i8*]** %3
%20 = load i32, i32* %5
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [20 x i8*], [20 x i8*]* %19, i64 %21
%23 = load i32, i32* %6
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [20 x i8*], [20 x i8*]* %22, i64 0, i64 %24
%26 = load i8*, i8** %25
%27 = icmp ne i8* %26, null
br i1 %27, label %28, label %38
28: ; preds = %18
%29 = load [20 x i8*]*, [20 x i8*]** %3
%30 = load i32, i32* %5
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [20 x i8*], [20 x i8*]* %29, i64 %31
%33 = load i32, i32* %6
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [20 x i8*], [20 x i8*]* %32, i64 0, i64 %34
%36 = load i8*, i8** %35
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %36)
br label %40
38: ; preds = %18
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %44
40: ; preds = %28
br label %41
41: ; preds = %40
%42 = load i32, i32* %6
%43 = add nsw i32 %42, 1
store i32 %43, i32* %6
br label %15
44: ; preds = %38, %15
br label %45
45: ; preds = %44
%46 = load i32, i32* %5
%47 = add nsw i32 %46, 1
store i32 %47, i32* %5
br label %7
48: ; preds = %7
ret void
}

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