1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -sample-profile -sample-profile-file=%S/Inputs/propagate.prof | opt -analyze -branch-prob | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/propagate.prof | opt -analyze -branch-prob | FileCheck %s 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker; Original C++ code for this test case: 5*9880d681SAndroid Build Coastguard Worker; 6*9880d681SAndroid Build Coastguard Worker; #include <stdio.h> 7*9880d681SAndroid Build Coastguard Worker; 8*9880d681SAndroid Build Coastguard Worker; long foo(int x, int y, long N) { 9*9880d681SAndroid Build Coastguard Worker; if (x < y) { 10*9880d681SAndroid Build Coastguard Worker; return y - x; 11*9880d681SAndroid Build Coastguard Worker; } else { 12*9880d681SAndroid Build Coastguard Worker; for (long i = 0; i < N; i++) { 13*9880d681SAndroid Build Coastguard Worker; if (i > N / 3) 14*9880d681SAndroid Build Coastguard Worker; x--; 15*9880d681SAndroid Build Coastguard Worker; if (i > N / 4) { 16*9880d681SAndroid Build Coastguard Worker; y++; 17*9880d681SAndroid Build Coastguard Worker; x += 3; 18*9880d681SAndroid Build Coastguard Worker; } else { 19*9880d681SAndroid Build Coastguard Worker; for (unsigned j = 0; j < 100; j++) { 20*9880d681SAndroid Build Coastguard Worker; x += j; 21*9880d681SAndroid Build Coastguard Worker; y -= 3; 22*9880d681SAndroid Build Coastguard Worker; } 23*9880d681SAndroid Build Coastguard Worker; } 24*9880d681SAndroid Build Coastguard Worker; } 25*9880d681SAndroid Build Coastguard Worker; } 26*9880d681SAndroid Build Coastguard Worker; return y * x; 27*9880d681SAndroid Build Coastguard Worker; } 28*9880d681SAndroid Build Coastguard Worker; 29*9880d681SAndroid Build Coastguard Worker; int main() { 30*9880d681SAndroid Build Coastguard Worker; int x = 5678; 31*9880d681SAndroid Build Coastguard Worker; int y = 1234; 32*9880d681SAndroid Build Coastguard Worker; long N = 9999999; 33*9880d681SAndroid Build Coastguard Worker; printf("foo(%d, %d, %ld) = %ld\n", x, y, N, foo(x, y, N)); 34*9880d681SAndroid Build Coastguard Worker; return 0; 35*9880d681SAndroid Build Coastguard Worker; } 36*9880d681SAndroid Build Coastguard Worker 37*9880d681SAndroid Build Coastguard Worker; ModuleID = 'propagate.cc' 38*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 39*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-unknown-linux-gnu" 40*9880d681SAndroid Build Coastguard Worker 41*9880d681SAndroid Build Coastguard Worker@.str = private unnamed_addr constant [24 x i8] c"foo(%d, %d, %ld) = %ld\0A\00", align 1 42*9880d681SAndroid Build Coastguard Worker 43*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind uwtable 44*9880d681SAndroid Build Coastguard Workerdefine i64 @_Z3fooiil(i32 %x, i32 %y, i64 %N) #0 !dbg !6 { 45*9880d681SAndroid Build Coastguard Workerentry: 46*9880d681SAndroid Build Coastguard Worker %retval = alloca i64, align 8 47*9880d681SAndroid Build Coastguard Worker %x.addr = alloca i32, align 4 48*9880d681SAndroid Build Coastguard Worker %y.addr = alloca i32, align 4 49*9880d681SAndroid Build Coastguard Worker %N.addr = alloca i64, align 8 50*9880d681SAndroid Build Coastguard Worker %i = alloca i64, align 8 51*9880d681SAndroid Build Coastguard Worker %j = alloca i64, align 8 52*9880d681SAndroid Build Coastguard Worker store i32 %x, i32* %x.addr, align 4 53*9880d681SAndroid Build Coastguard Worker call void @llvm.dbg.declare(metadata i32* %x.addr, metadata !11, metadata !12), !dbg !13 54*9880d681SAndroid Build Coastguard Worker store i32 %y, i32* %y.addr, align 4 55*9880d681SAndroid Build Coastguard Worker call void @llvm.dbg.declare(metadata i32* %y.addr, metadata !14, metadata !12), !dbg !15 56*9880d681SAndroid Build Coastguard Worker store i64 %N, i64* %N.addr, align 8 57*9880d681SAndroid Build Coastguard Worker call void @llvm.dbg.declare(metadata i64* %N.addr, metadata !16, metadata !12), !dbg !17 58*9880d681SAndroid Build Coastguard Worker %0 = load i32, i32* %x.addr, align 4, !dbg !18 59*9880d681SAndroid Build Coastguard Worker %1 = load i32, i32* %y.addr, align 4, !dbg !20 60*9880d681SAndroid Build Coastguard Worker %cmp = icmp slt i32 %0, %1, !dbg !21 61*9880d681SAndroid Build Coastguard Worker br i1 %cmp, label %if.then, label %if.else, !dbg !22 62*9880d681SAndroid Build Coastguard Worker 63*9880d681SAndroid Build Coastguard Workerif.then: ; preds = %entry 64*9880d681SAndroid Build Coastguard Worker %2 = load i32, i32* %y.addr, align 4, !dbg !23 65*9880d681SAndroid Build Coastguard Worker %3 = load i32, i32* %x.addr, align 4, !dbg !25 66*9880d681SAndroid Build Coastguard Worker %sub = sub nsw i32 %2, %3, !dbg !26 67*9880d681SAndroid Build Coastguard Worker %conv = sext i32 %sub to i64, !dbg !23 68*9880d681SAndroid Build Coastguard Worker store i64 %conv, i64* %retval, align 8, !dbg !27 69*9880d681SAndroid Build Coastguard Worker br label %return, !dbg !27 70*9880d681SAndroid Build Coastguard Worker 71*9880d681SAndroid Build Coastguard Workerif.else: ; preds = %entry 72*9880d681SAndroid Build Coastguard Worker call void @llvm.dbg.declare(metadata i64* %i, metadata !28, metadata !12), !dbg !31 73*9880d681SAndroid Build Coastguard Worker store i64 0, i64* %i, align 8, !dbg !31 74*9880d681SAndroid Build Coastguard Worker br label %for.cond, !dbg !32 75*9880d681SAndroid Build Coastguard Worker 76*9880d681SAndroid Build Coastguard Workerfor.cond: ; preds = %for.inc17, %if.else 77*9880d681SAndroid Build Coastguard Worker %4 = load i64, i64* %i, align 8, !dbg !33 78*9880d681SAndroid Build Coastguard Worker %5 = load i64, i64* %N.addr, align 8, !dbg !36 79*9880d681SAndroid Build Coastguard Worker %cmp1 = icmp slt i64 %4, %5, !dbg !37 80*9880d681SAndroid Build Coastguard Worker br i1 %cmp1, label %for.body, label %for.end19, !dbg !38 81*9880d681SAndroid Build Coastguard Worker 82*9880d681SAndroid Build Coastguard Workerfor.body: ; preds = %for.cond 83*9880d681SAndroid Build Coastguard Worker %6 = load i64, i64* %i, align 8, !dbg !39 84*9880d681SAndroid Build Coastguard Worker %7 = load i64, i64* %N.addr, align 8, !dbg !42 85*9880d681SAndroid Build Coastguard Worker %div = sdiv i64 %7, 3, !dbg !43 86*9880d681SAndroid Build Coastguard Worker %cmp2 = icmp sgt i64 %6, %div, !dbg !44 87*9880d681SAndroid Build Coastguard Worker br i1 %cmp2, label %if.then3, label %if.end, !dbg !45 88*9880d681SAndroid Build Coastguard Worker; CHECK: edge for.body -> if.then3 probability is 0x51451451 / 0x80000000 = 63.49% 89*9880d681SAndroid Build Coastguard Worker; CHECK: edge for.body -> if.end probability is 0x2ebaebaf / 0x80000000 = 36.51% 90*9880d681SAndroid Build Coastguard Worker 91*9880d681SAndroid Build Coastguard Workerif.then3: ; preds = %for.body 92*9880d681SAndroid Build Coastguard Worker %8 = load i32, i32* %x.addr, align 4, !dbg !46 93*9880d681SAndroid Build Coastguard Worker %dec = add nsw i32 %8, -1, !dbg !46 94*9880d681SAndroid Build Coastguard Worker store i32 %dec, i32* %x.addr, align 4, !dbg !46 95*9880d681SAndroid Build Coastguard Worker br label %if.end, !dbg !47 96*9880d681SAndroid Build Coastguard Worker 97*9880d681SAndroid Build Coastguard Workerif.end: ; preds = %if.then3, %for.body 98*9880d681SAndroid Build Coastguard Worker %9 = load i64, i64* %i, align 8, !dbg !48 99*9880d681SAndroid Build Coastguard Worker %10 = load i64, i64* %N.addr, align 8, !dbg !50 100*9880d681SAndroid Build Coastguard Worker %div4 = sdiv i64 %10, 4, !dbg !51 101*9880d681SAndroid Build Coastguard Worker %cmp5 = icmp sgt i64 %9, %div4, !dbg !52 102*9880d681SAndroid Build Coastguard Worker br i1 %cmp5, label %if.then6, label %if.else7, !dbg !53 103*9880d681SAndroid Build Coastguard Worker; CHECK: edge if.end -> if.then6 probability is 0x5dbaa1dc / 0x80000000 = 73.23% 104*9880d681SAndroid Build Coastguard Worker; CHECK: edge if.end -> if.else7 probability is 0x22455e24 / 0x80000000 = 26.77% 105*9880d681SAndroid Build Coastguard Worker 106*9880d681SAndroid Build Coastguard Workerif.then6: ; preds = %if.end 107*9880d681SAndroid Build Coastguard Worker %11 = load i32, i32* %y.addr, align 4, !dbg !54 108*9880d681SAndroid Build Coastguard Worker %inc = add nsw i32 %11, 1, !dbg !54 109*9880d681SAndroid Build Coastguard Worker store i32 %inc, i32* %y.addr, align 4, !dbg !54 110*9880d681SAndroid Build Coastguard Worker %12 = load i32, i32* %x.addr, align 4, !dbg !56 111*9880d681SAndroid Build Coastguard Worker %add = add nsw i32 %12, 3, !dbg !56 112*9880d681SAndroid Build Coastguard Worker store i32 %add, i32* %x.addr, align 4, !dbg !56 113*9880d681SAndroid Build Coastguard Worker br label %if.end16, !dbg !57 114*9880d681SAndroid Build Coastguard Worker 115*9880d681SAndroid Build Coastguard Workerif.else7: ; preds = %if.end 116*9880d681SAndroid Build Coastguard Worker call void @llvm.dbg.declare(metadata i64* %j, metadata !58, metadata !12), !dbg !62 117*9880d681SAndroid Build Coastguard Worker store i64 0, i64* %j, align 8, !dbg !62 118*9880d681SAndroid Build Coastguard Worker br label %for.cond8, !dbg !63 119*9880d681SAndroid Build Coastguard Worker 120*9880d681SAndroid Build Coastguard Workerfor.cond8: ; preds = %for.inc, %if.else7 121*9880d681SAndroid Build Coastguard Worker %13 = load i64, i64* %j, align 8, !dbg !64 122*9880d681SAndroid Build Coastguard Worker %cmp9 = icmp slt i64 %13, 100, !dbg !67 123*9880d681SAndroid Build Coastguard Worker br i1 %cmp9, label %for.body10, label %for.end, !dbg !68 124*9880d681SAndroid Build Coastguard Worker; CHECK: edge for.cond8 -> for.body10 probability is 0x7e985735 / 0x80000000 = 98.90% [HOT edge] 125*9880d681SAndroid Build Coastguard Worker; CHECK: edge for.cond8 -> for.end probability is 0x0167a8cb / 0x80000000 = 1.10% 126*9880d681SAndroid Build Coastguard Worker 127*9880d681SAndroid Build Coastguard Worker 128*9880d681SAndroid Build Coastguard Workerfor.body10: ; preds = %for.cond8 129*9880d681SAndroid Build Coastguard Worker %14 = load i64, i64* %j, align 8, !dbg !69 130*9880d681SAndroid Build Coastguard Worker %15 = load i32, i32* %x.addr, align 4, !dbg !71 131*9880d681SAndroid Build Coastguard Worker %conv11 = sext i32 %15 to i64, !dbg !71 132*9880d681SAndroid Build Coastguard Worker %add12 = add nsw i64 %conv11, %14, !dbg !71 133*9880d681SAndroid Build Coastguard Worker %conv13 = trunc i64 %add12 to i32, !dbg !71 134*9880d681SAndroid Build Coastguard Worker store i32 %conv13, i32* %x.addr, align 4, !dbg !71 135*9880d681SAndroid Build Coastguard Worker %16 = load i32, i32* %y.addr, align 4, !dbg !72 136*9880d681SAndroid Build Coastguard Worker %sub14 = sub nsw i32 %16, 3, !dbg !72 137*9880d681SAndroid Build Coastguard Worker store i32 %sub14, i32* %y.addr, align 4, !dbg !72 138*9880d681SAndroid Build Coastguard Worker br label %for.inc, !dbg !73 139*9880d681SAndroid Build Coastguard Worker 140*9880d681SAndroid Build Coastguard Workerfor.inc: ; preds = %for.body10 141*9880d681SAndroid Build Coastguard Worker %17 = load i64, i64* %j, align 8, !dbg !74 142*9880d681SAndroid Build Coastguard Worker %inc15 = add nsw i64 %17, 1, !dbg !74 143*9880d681SAndroid Build Coastguard Worker store i64 %inc15, i64* %j, align 8, !dbg !74 144*9880d681SAndroid Build Coastguard Worker br label %for.cond8, !dbg !76 145*9880d681SAndroid Build Coastguard Worker 146*9880d681SAndroid Build Coastguard Workerfor.end: ; preds = %for.cond8 147*9880d681SAndroid Build Coastguard Worker br label %if.end16 148*9880d681SAndroid Build Coastguard Worker 149*9880d681SAndroid Build Coastguard Workerif.end16: ; preds = %for.end, %if.then6 150*9880d681SAndroid Build Coastguard Worker br label %for.inc17, !dbg !77 151*9880d681SAndroid Build Coastguard Worker 152*9880d681SAndroid Build Coastguard Workerfor.inc17: ; preds = %if.end16 153*9880d681SAndroid Build Coastguard Worker %18 = load i64, i64* %i, align 8, !dbg !78 154*9880d681SAndroid Build Coastguard Worker %inc18 = add nsw i64 %18, 1, !dbg !78 155*9880d681SAndroid Build Coastguard Worker store i64 %inc18, i64* %i, align 8, !dbg !78 156*9880d681SAndroid Build Coastguard Worker br label %for.cond, !dbg !80 157*9880d681SAndroid Build Coastguard Worker 158*9880d681SAndroid Build Coastguard Workerfor.end19: ; preds = %for.cond 159*9880d681SAndroid Build Coastguard Worker br label %if.end20 160*9880d681SAndroid Build Coastguard Worker 161*9880d681SAndroid Build Coastguard Workerif.end20: ; preds = %for.end19 162*9880d681SAndroid Build Coastguard Worker %19 = load i32, i32* %y.addr, align 4, !dbg !81 163*9880d681SAndroid Build Coastguard Worker %20 = load i32, i32* %x.addr, align 4, !dbg !82 164*9880d681SAndroid Build Coastguard Worker %mul = mul nsw i32 %19, %20, !dbg !83 165*9880d681SAndroid Build Coastguard Worker %conv21 = sext i32 %mul to i64, !dbg !81 166*9880d681SAndroid Build Coastguard Worker store i64 %conv21, i64* %retval, align 8, !dbg !84 167*9880d681SAndroid Build Coastguard Worker br label %return, !dbg !84 168*9880d681SAndroid Build Coastguard Worker 169*9880d681SAndroid Build Coastguard Workerreturn: ; preds = %if.end20, %if.then 170*9880d681SAndroid Build Coastguard Worker %21 = load i64, i64* %retval, align 8, !dbg !85 171*9880d681SAndroid Build Coastguard Worker ret i64 %21, !dbg !85 172*9880d681SAndroid Build Coastguard Worker} 173*9880d681SAndroid Build Coastguard Worker 174*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind readnone 175*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.dbg.declare(metadata, metadata, metadata) #1 176*9880d681SAndroid Build Coastguard Worker 177*9880d681SAndroid Build Coastguard Worker; Function Attrs: norecurse uwtable 178*9880d681SAndroid Build Coastguard Workerdefine i32 @main() #2 !dbg !86 { 179*9880d681SAndroid Build Coastguard Workerentry: 180*9880d681SAndroid Build Coastguard Worker %retval = alloca i32, align 4 181*9880d681SAndroid Build Coastguard Worker %x = alloca i32, align 4 182*9880d681SAndroid Build Coastguard Worker %y = alloca i32, align 4 183*9880d681SAndroid Build Coastguard Worker %N = alloca i64, align 8 184*9880d681SAndroid Build Coastguard Worker store i32 0, i32* %retval, align 4 185*9880d681SAndroid Build Coastguard Worker call void @llvm.dbg.declare(metadata i32* %x, metadata !89, metadata !12), !dbg !90 186*9880d681SAndroid Build Coastguard Worker store i32 5678, i32* %x, align 4, !dbg !90 187*9880d681SAndroid Build Coastguard Worker call void @llvm.dbg.declare(metadata i32* %y, metadata !91, metadata !12), !dbg !92 188*9880d681SAndroid Build Coastguard Worker store i32 1234, i32* %y, align 4, !dbg !92 189*9880d681SAndroid Build Coastguard Worker call void @llvm.dbg.declare(metadata i64* %N, metadata !93, metadata !12), !dbg !94 190*9880d681SAndroid Build Coastguard Worker store i64 9999999, i64* %N, align 8, !dbg !94 191*9880d681SAndroid Build Coastguard Worker %0 = load i32, i32* %x, align 4, !dbg !95 192*9880d681SAndroid Build Coastguard Worker %1 = load i32, i32* %y, align 4, !dbg !96 193*9880d681SAndroid Build Coastguard Worker %2 = load i64, i64* %N, align 8, !dbg !97 194*9880d681SAndroid Build Coastguard Worker %3 = load i32, i32* %x, align 4, !dbg !98 195*9880d681SAndroid Build Coastguard Worker %4 = load i32, i32* %y, align 4, !dbg !99 196*9880d681SAndroid Build Coastguard Worker %5 = load i64, i64* %N, align 8, !dbg !100 197*9880d681SAndroid Build Coastguard Worker %call = call i64 @_Z3fooiil(i32 %3, i32 %4, i64 %5), !dbg !101 198*9880d681SAndroid Build Coastguard Worker %call1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i32 0, i32 0), i32 %0, i32 %1, i64 %2, i64 %call), !dbg !102 199*9880d681SAndroid Build Coastguard Worker ret i32 0, !dbg !104 200*9880d681SAndroid Build Coastguard Worker} 201*9880d681SAndroid Build Coastguard Worker 202*9880d681SAndroid Build Coastguard Workerdeclare i32 @printf(i8*, ...) #3 203*9880d681SAndroid Build Coastguard Worker 204*9880d681SAndroid Build Coastguard Workerattributes #0 = { nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" } 205*9880d681SAndroid Build Coastguard Workerattributes #1 = { nounwind readnone } 206*9880d681SAndroid Build Coastguard Workerattributes #2 = { norecurse uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" } 207*9880d681SAndroid Build Coastguard Workerattributes #3 = { "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" } 208*9880d681SAndroid Build Coastguard Worker 209*9880d681SAndroid Build Coastguard Worker!llvm.dbg.cu = !{!0} 210*9880d681SAndroid Build Coastguard Worker!llvm.module.flags = !{!3, !4} 211*9880d681SAndroid Build Coastguard Worker!llvm.ident = !{!5} 212*9880d681SAndroid Build Coastguard Worker 213*9880d681SAndroid Build Coastguard Worker!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.9.0 (trunk 266819)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2) 214*9880d681SAndroid Build Coastguard Worker!1 = !DIFile(filename: "propagate.cc", directory: ".") 215*9880d681SAndroid Build Coastguard Worker!2 = !{} 216*9880d681SAndroid Build Coastguard Worker!3 = !{i32 2, !"Dwarf Version", i32 4} 217*9880d681SAndroid Build Coastguard Worker!4 = !{i32 2, !"Debug Info Version", i32 3} 218*9880d681SAndroid Build Coastguard Worker!5 = !{!"clang version 3.9.0 (trunk 266819)"} 219*9880d681SAndroid Build Coastguard Worker!6 = distinct !DISubprogram(name: "foo", linkageName: "_Z3fooiil", scope: !1, file: !1, line: 3, type: !7, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagPrototyped, isOptimized: false, unit: !0, variables: !2) 220*9880d681SAndroid Build Coastguard Worker!7 = !DISubroutineType(types: !8) 221*9880d681SAndroid Build Coastguard Worker!8 = !{!9, !10, !10, !9} 222*9880d681SAndroid Build Coastguard Worker!9 = !DIBasicType(name: "long int", size: 64, align: 64, encoding: DW_ATE_signed) 223*9880d681SAndroid Build Coastguard Worker!10 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) 224*9880d681SAndroid Build Coastguard Worker!11 = !DILocalVariable(name: "x", arg: 1, scope: !6, file: !1, line: 3, type: !10) 225*9880d681SAndroid Build Coastguard Worker!12 = !DIExpression() 226*9880d681SAndroid Build Coastguard Worker!13 = !DILocation(line: 3, column: 14, scope: !6) 227*9880d681SAndroid Build Coastguard Worker!14 = !DILocalVariable(name: "y", arg: 2, scope: !6, file: !1, line: 3, type: !10) 228*9880d681SAndroid Build Coastguard Worker!15 = !DILocation(line: 3, column: 21, scope: !6) 229*9880d681SAndroid Build Coastguard Worker!16 = !DILocalVariable(name: "N", arg: 3, scope: !6, file: !1, line: 3, type: !9) 230*9880d681SAndroid Build Coastguard Worker!17 = !DILocation(line: 3, column: 29, scope: !6) 231*9880d681SAndroid Build Coastguard Worker!18 = !DILocation(line: 4, column: 7, scope: !19) 232*9880d681SAndroid Build Coastguard Worker!19 = distinct !DILexicalBlock(scope: !6, file: !1, line: 4, column: 7) 233*9880d681SAndroid Build Coastguard Worker!20 = !DILocation(line: 4, column: 11, scope: !19) 234*9880d681SAndroid Build Coastguard Worker!21 = !DILocation(line: 4, column: 9, scope: !19) 235*9880d681SAndroid Build Coastguard Worker!22 = !DILocation(line: 4, column: 7, scope: !6) 236*9880d681SAndroid Build Coastguard Worker!23 = !DILocation(line: 5, column: 12, scope: !24) 237*9880d681SAndroid Build Coastguard Worker!24 = distinct !DILexicalBlock(scope: !19, file: !1, line: 4, column: 14) 238*9880d681SAndroid Build Coastguard Worker!25 = !DILocation(line: 5, column: 16, scope: !24) 239*9880d681SAndroid Build Coastguard Worker!26 = !DILocation(line: 5, column: 14, scope: !24) 240*9880d681SAndroid Build Coastguard Worker!27 = !DILocation(line: 5, column: 5, scope: !24) 241*9880d681SAndroid Build Coastguard Worker!28 = !DILocalVariable(name: "i", scope: !29, file: !1, line: 7, type: !9) 242*9880d681SAndroid Build Coastguard Worker!29 = distinct !DILexicalBlock(scope: !30, file: !1, line: 7, column: 5) 243*9880d681SAndroid Build Coastguard Worker!30 = distinct !DILexicalBlock(scope: !19, file: !1, line: 6, column: 10) 244*9880d681SAndroid Build Coastguard Worker!31 = !DILocation(line: 7, column: 15, scope: !29) 245*9880d681SAndroid Build Coastguard Worker!32 = !DILocation(line: 7, column: 10, scope: !29) 246*9880d681SAndroid Build Coastguard Worker!33 = !DILocation(line: 7, column: 22, scope: !34) 247*9880d681SAndroid Build Coastguard Worker!34 = !DILexicalBlockFile(scope: !35, file: !1, discriminator: 1) 248*9880d681SAndroid Build Coastguard Worker!35 = distinct !DILexicalBlock(scope: !29, file: !1, line: 7, column: 5) 249*9880d681SAndroid Build Coastguard Worker!36 = !DILocation(line: 7, column: 26, scope: !34) 250*9880d681SAndroid Build Coastguard Worker!37 = !DILocation(line: 7, column: 24, scope: !34) 251*9880d681SAndroid Build Coastguard Worker!38 = !DILocation(line: 7, column: 5, scope: !34) 252*9880d681SAndroid Build Coastguard Worker!39 = !DILocation(line: 8, column: 11, scope: !40) 253*9880d681SAndroid Build Coastguard Worker!40 = distinct !DILexicalBlock(scope: !41, file: !1, line: 8, column: 11) 254*9880d681SAndroid Build Coastguard Worker!41 = distinct !DILexicalBlock(scope: !35, file: !1, line: 7, column: 34) 255*9880d681SAndroid Build Coastguard Worker!42 = !DILocation(line: 8, column: 15, scope: !40) 256*9880d681SAndroid Build Coastguard Worker!43 = !DILocation(line: 8, column: 17, scope: !40) 257*9880d681SAndroid Build Coastguard Worker!44 = !DILocation(line: 8, column: 13, scope: !40) 258*9880d681SAndroid Build Coastguard Worker!45 = !DILocation(line: 8, column: 11, scope: !41) 259*9880d681SAndroid Build Coastguard Worker!46 = !DILocation(line: 9, column: 10, scope: !40) 260*9880d681SAndroid Build Coastguard Worker!47 = !DILocation(line: 9, column: 9, scope: !40) 261*9880d681SAndroid Build Coastguard Worker!48 = !DILocation(line: 10, column: 11, scope: !49) 262*9880d681SAndroid Build Coastguard Worker!49 = distinct !DILexicalBlock(scope: !41, file: !1, line: 10, column: 11) 263*9880d681SAndroid Build Coastguard Worker!50 = !DILocation(line: 10, column: 15, scope: !49) 264*9880d681SAndroid Build Coastguard Worker!51 = !DILocation(line: 10, column: 17, scope: !49) 265*9880d681SAndroid Build Coastguard Worker!52 = !DILocation(line: 10, column: 13, scope: !49) 266*9880d681SAndroid Build Coastguard Worker!53 = !DILocation(line: 10, column: 11, scope: !41) 267*9880d681SAndroid Build Coastguard Worker!54 = !DILocation(line: 11, column: 10, scope: !55) 268*9880d681SAndroid Build Coastguard Worker!55 = distinct !DILexicalBlock(scope: !49, file: !1, line: 10, column: 22) 269*9880d681SAndroid Build Coastguard Worker!56 = !DILocation(line: 12, column: 11, scope: !55) 270*9880d681SAndroid Build Coastguard Worker!57 = !DILocation(line: 13, column: 7, scope: !55) 271*9880d681SAndroid Build Coastguard Worker!58 = !DILocalVariable(name: "j", scope: !59, file: !1, line: 14, type: !61) 272*9880d681SAndroid Build Coastguard Worker!59 = distinct !DILexicalBlock(scope: !60, file: !1, line: 14, column: 9) 273*9880d681SAndroid Build Coastguard Worker!60 = distinct !DILexicalBlock(scope: !49, file: !1, line: 13, column: 14) 274*9880d681SAndroid Build Coastguard Worker!61 = !DIBasicType(name: "long long int", size: 64, align: 64, encoding: DW_ATE_signed) 275*9880d681SAndroid Build Coastguard Worker!62 = !DILocation(line: 14, column: 24, scope: !59) 276*9880d681SAndroid Build Coastguard Worker!63 = !DILocation(line: 14, column: 14, scope: !59) 277*9880d681SAndroid Build Coastguard Worker!64 = !DILocation(line: 14, column: 31, scope: !65) 278*9880d681SAndroid Build Coastguard Worker!65 = !DILexicalBlockFile(scope: !66, file: !1, discriminator: 1) 279*9880d681SAndroid Build Coastguard Worker!66 = distinct !DILexicalBlock(scope: !59, file: !1, line: 14, column: 9) 280*9880d681SAndroid Build Coastguard Worker!67 = !DILocation(line: 14, column: 33, scope: !65) 281*9880d681SAndroid Build Coastguard Worker!68 = !DILocation(line: 14, column: 9, scope: !65) 282*9880d681SAndroid Build Coastguard Worker!69 = !DILocation(line: 15, column: 16, scope: !70) 283*9880d681SAndroid Build Coastguard Worker!70 = distinct !DILexicalBlock(scope: !66, file: !1, line: 14, column: 45) 284*9880d681SAndroid Build Coastguard Worker!71 = !DILocation(line: 15, column: 13, scope: !70) 285*9880d681SAndroid Build Coastguard Worker!72 = !DILocation(line: 16, column: 13, scope: !70) 286*9880d681SAndroid Build Coastguard Worker!73 = !DILocation(line: 17, column: 9, scope: !70) 287*9880d681SAndroid Build Coastguard Worker!74 = !DILocation(line: 14, column: 41, scope: !75) 288*9880d681SAndroid Build Coastguard Worker!75 = !DILexicalBlockFile(scope: !66, file: !1, discriminator: 2) 289*9880d681SAndroid Build Coastguard Worker!76 = !DILocation(line: 14, column: 9, scope: !75) 290*9880d681SAndroid Build Coastguard Worker!77 = !DILocation(line: 19, column: 5, scope: !41) 291*9880d681SAndroid Build Coastguard Worker!78 = !DILocation(line: 7, column: 30, scope: !79) 292*9880d681SAndroid Build Coastguard Worker!79 = !DILexicalBlockFile(scope: !35, file: !1, discriminator: 2) 293*9880d681SAndroid Build Coastguard Worker!80 = !DILocation(line: 7, column: 5, scope: !79) 294*9880d681SAndroid Build Coastguard Worker!81 = !DILocation(line: 21, column: 10, scope: !6) 295*9880d681SAndroid Build Coastguard Worker!82 = !DILocation(line: 21, column: 14, scope: !6) 296*9880d681SAndroid Build Coastguard Worker!83 = !DILocation(line: 21, column: 12, scope: !6) 297*9880d681SAndroid Build Coastguard Worker!84 = !DILocation(line: 21, column: 3, scope: !6) 298*9880d681SAndroid Build Coastguard Worker!85 = !DILocation(line: 22, column: 1, scope: !6) 299*9880d681SAndroid Build Coastguard Worker!86 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 24, type: !87, isLocal: false, isDefinition: true, scopeLine: 24, flags: DIFlagPrototyped, isOptimized: false, unit: !0, variables: !2) 300*9880d681SAndroid Build Coastguard Worker!87 = !DISubroutineType(types: !88) 301*9880d681SAndroid Build Coastguard Worker!88 = !{!10} 302*9880d681SAndroid Build Coastguard Worker!89 = !DILocalVariable(name: "x", scope: !86, file: !1, line: 25, type: !10) 303*9880d681SAndroid Build Coastguard Worker!90 = !DILocation(line: 25, column: 7, scope: !86) 304*9880d681SAndroid Build Coastguard Worker!91 = !DILocalVariable(name: "y", scope: !86, file: !1, line: 26, type: !10) 305*9880d681SAndroid Build Coastguard Worker!92 = !DILocation(line: 26, column: 7, scope: !86) 306*9880d681SAndroid Build Coastguard Worker!93 = !DILocalVariable(name: "N", scope: !86, file: !1, line: 27, type: !9) 307*9880d681SAndroid Build Coastguard Worker!94 = !DILocation(line: 27, column: 8, scope: !86) 308*9880d681SAndroid Build Coastguard Worker!95 = !DILocation(line: 28, column: 38, scope: !86) 309*9880d681SAndroid Build Coastguard Worker!96 = !DILocation(line: 28, column: 41, scope: !86) 310*9880d681SAndroid Build Coastguard Worker!97 = !DILocation(line: 28, column: 44, scope: !86) 311*9880d681SAndroid Build Coastguard Worker!98 = !DILocation(line: 28, column: 51, scope: !86) 312*9880d681SAndroid Build Coastguard Worker!99 = !DILocation(line: 28, column: 54, scope: !86) 313*9880d681SAndroid Build Coastguard Worker!100 = !DILocation(line: 28, column: 57, scope: !86) 314*9880d681SAndroid Build Coastguard Worker!101 = !DILocation(line: 28, column: 47, scope: !86) 315*9880d681SAndroid Build Coastguard Worker!102 = !DILocation(line: 28, column: 3, scope: !103) 316*9880d681SAndroid Build Coastguard Worker!103 = !DILexicalBlockFile(scope: !86, file: !1, discriminator: 1) 317*9880d681SAndroid Build Coastguard Worker!104 = !DILocation(line: 29, column: 3, scope: !86) 318