int todoProblemaFoiResolvidoPorPeloMenosUmaPessoa(int problemas[][128],
                                                  int numeroDeParticipantes,
                                                  int numeroDeProblemas) {
  int j, todoProblemaResolvidoPorPeloMenosUmaPessoa = 1;
  for (j = 0;
       todoProblemaResolvidoPorPeloMenosUmaPessoa && j < numeroDeProblemas;
       j++) {
    todoProblemaResolvidoPorPeloMenosUmaPessoa = problemas[101][j] > 0;
  }
  if (todoProblemaResolvidoPorPeloMenosUmaPessoa) {
    return 1;
  } else {
    return 0;
  }
}


x86 assembly (clang, -O0):
<todoProblemaFoiResolvidoPorPeloMenosUmaPessoa>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
movl   $0x1,-0x20(%rbp)
movl   $0x0,-0x1c(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x20(%rbp)
mov    %al,-0x21(%rbp)
je     1137 <todoProblemaFoiResolvidoPorPeloMenosUmaPessoa+0x37>
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
setl   %al
mov    %al,-0x21(%rbp)
mov    -0x21(%rbp),%al
test   $0x1,%al
jne    1147 <todoProblemaFoiResolvidoPorPeloMenosUmaPessoa+0x47>
jmp    1170 <todoProblemaFoiResolvidoPorPeloMenosUmaPessoa+0x70>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
cmpl   $0x0,0xca00(%rax,%rcx,4)
setg   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    111c <todoProblemaFoiResolvidoPorPeloMenosUmaPessoa+0x1c>
cmpl   $0x0,-0x20(%rbp)
je     1186 <todoProblemaFoiResolvidoPorPeloMenosUmaPessoa+0x86>
movl   $0x1,-0x4(%rbp)
jmp    118d <todoProblemaFoiResolvidoPorPeloMenosUmaPessoa+0x8d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<todoProblemaFoiResolvidoPorPeloMenosUmaPessoa>:
test   %edx,%edx
jle    112f <todoProblemaFoiResolvidoPorPeloMenosUmaPessoa+0x2f>
mov    %edx,%eax
mov    $0x3280,%ecx
nopl   0x0(%rax,%rax,1)
mov    (%rdi,%rcx,4),%edx
test   %edx,%edx
jle    1127 <todoProblemaFoiResolvidoPorPeloMenosUmaPessoa+0x27>
lea    -0x327f(%rcx),%rsi
add    $0x1,%rcx
cmp    %rax,%rsi
jb     1110 <todoProblemaFoiResolvidoPorPeloMenosUmaPessoa+0x10>
xor    %eax,%eax
test   %edx,%edx
setg   %al
ret
mov    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @todoProblemaFoiResolvidoPorPeloMenosUmaPessoa([128 x i32]* %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca [128 x i32]*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store [128 x i32]* %0, [128 x i32]** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 1, i32* %9
store i32 0, i32* %8
br label %10
10: ; preds = %28, %3
%11 = load i32, i32* %9
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %10
%14 = load i32, i32* %8
%15 = load i32, i32* %7
%16 = icmp slt i32 %14, %15
br label %17
17: ; preds = %13, %10
%18 = phi i1 [ false, %10 ], [ %16, %13 ]
br i1 %18, label %19, label %31
19: ; preds = %17
%20 = load [128 x i32]*, [128 x i32]** %5
%21 = getelementptr inbounds [128 x i32], [128 x i32]* %20, i64 101
%22 = load i32, i32* %8
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [128 x i32], [128 x i32]* %21, i64 0, i64 %23
%25 = load i32, i32* %24
%26 = icmp sgt i32 %25, 0
%27 = zext i1 %26 to i32
store i32 %27, i32* %9
br label %28
28: ; preds = %19
%29 = load i32, i32* %8
%30 = add nsw i32 %29, 1
store i32 %30, i32* %8
br label %10
31: ; preds = %17
%32 = load i32, i32* %9
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %31
store i32 1, i32* %4
br label %36
35: ; preds = %31
store i32 0, i32* %4
br label %36
36: ; preds = %35, %34
%37 = load i32, i32* %4
ret i32 %37
}

LLVM IR (-O2):
define i32 @todoProblemaFoiResolvidoPorPeloMenosUmaPessoa([128 x i32]* nocapture %0, i32 %1, i32 %2) {
%4 = icmp sgt i32 %2, 0
br i1 %4, label %5, label %17
5: ; preds = %3
%6 = zext i32 %2 to i64
br label %7
7: ; preds = %5, %7
%8 = phi i64 [ 0, %5 ], [ %12, %7 ]
%9 = getelementptr inbounds [128 x i32], [128 x i32]* %0, i64 101, i64 %8
%10 = load i32, i32* %9
%11 = icmp sgt i32 %10, 0
%12 = add nuw nsw i64 %8, 1
%13 = icmp ult i64 %12, %6
%14 = select i1 %11, i1 %13, i1 false
br i1 %14, label %7, label %15
15: ; preds = %7
%16 = zext i1 %11 to i32
br label %17
17: ; preds = %15, %3
%18 = phi i32 [ 1, %3 ], [ %16, %15 ]
ret i32 %18
}