blob: 4c3f63093d30e5e2aa381b9f1c186f2fce61a85a [file] [log] [blame]
<!DOCTYPE html>
<!--
Preview this file as rendered HTML from the github source at:
https://htmlpreview.github.io/?https://github.com/rust-lang/rust/blob/master/src/test/run-make-fulldeps/coverage-spanview/expected_mir_dump.inline/inline.swap.-------.InstrumentCoverage.0.html
For revisions in Pull Requests (PR):
* Replace "rust-lang" with the github PR author
* Replace "master" with the PR branch name
-->
<html>
<head>
<title>inline.swap - Coverage Spans</title>
<style>
.line {
counter-increment: line;
}
.line:before {
content: counter(line) ": ";
font-family: Menlo, Monaco, monospace;
font-style: italic;
width: 3.8em;
display: inline-block;
text-align: right;
filter: opacity(50%);
-webkit-user-select: none;
}
.code {
color: #dddddd;
background-color: #222222;
font-family: Menlo, Monaco, monospace;
line-height: 1.4em;
border-bottom: 2px solid #222222;
white-space: pre;
display: inline-block;
}
.odd {
background-color: #55bbff;
color: #223311;
}
.even {
background-color: #ee7756;
color: #551133;
}
.code {
--index: calc(var(--layer) - 1);
padding-top: calc(var(--index) * 0.15em);
filter:
hue-rotate(calc(var(--index) * 25deg))
saturate(calc(100% - (var(--index) * 2%)))
brightness(calc(100% - (var(--index) * 1.5%)));
}
.annotation {
color: #4444ff;
font-family: monospace;
font-style: italic;
display: none;
-webkit-user-select: none;
}
body:active .annotation {
/* requires holding mouse down anywhere on the page */
display: inline-block;
}
span:hover .annotation {
/* requires hover over a span ONLY on its first line */
display: inline-block;
}
</style>
</head>
<body>
<div class="code" style="counter-reset: line 34"><span class="line"><span><span class="code even" style="--layer: 1" title="36:16-36:17: @0[2]: _5 = _2
36:13-36:18: @0[3]: _6 = Len((*_1))
36:13-36:18: @0[4]: _7 = Lt(_5, _6)
36:13-36:18: @1[0]: _4 = (*_1)[_5]
36:9-36:10: @1[1]: FakeRead(ForLet, _4)
37:16-37:17: @1[5]: _9 = _3
37:13-37:18: @1[6]: _10 = Len((*_1))
37:13-37:18: @1[7]: _11 = Lt(_9, _10)
37:13-37:18: @2[0]: _8 = (*_1)[_9]
37:8-37:9: @2[2]: _12 = _2
37:5-37:10: @2[3]: _13 = Len((*_1))
37:5-37:10: @2[4]: _14 = Lt(_12, _13)
37:5-37:18: @3[0]: (*_1)[_12] = move _8
38:13-38:14: @3[5]: _15 = _4
38:8-38:9: @3[7]: _16 = _3
38:5-38:10: @3[8]: _17 = Len((*_1))
38:5-38:10: @3[9]: _18 = Lt(_16, _17)
38:5-38:14: @4[0]: (*_1)[_16] = move _15
35:52-39:2: @4[3]: _0 = const ()
39:2-39:2: @4.Return: return"><span class="annotation">@0,1,2,3,4⦊</span>fn swap&lt;T: Copy&gt;(xs: &amp;mut [T], i: usize, j: usize) {</span></span>
<span class="line"><span class="code even" style="--layer: 1" title="36:16-36:17: @0[2]: _5 = _2
36:13-36:18: @0[3]: _6 = Len((*_1))
36:13-36:18: @0[4]: _7 = Lt(_5, _6)
36:13-36:18: @1[0]: _4 = (*_1)[_5]
36:9-36:10: @1[1]: FakeRead(ForLet, _4)
37:16-37:17: @1[5]: _9 = _3
37:13-37:18: @1[6]: _10 = Len((*_1))
37:13-37:18: @1[7]: _11 = Lt(_9, _10)
37:13-37:18: @2[0]: _8 = (*_1)[_9]
37:8-37:9: @2[2]: _12 = _2
37:5-37:10: @2[3]: _13 = Len((*_1))
37:5-37:10: @2[4]: _14 = Lt(_12, _13)
37:5-37:18: @3[0]: (*_1)[_12] = move _8
38:13-38:14: @3[5]: _15 = _4
38:8-38:9: @3[7]: _16 = _3
38:5-38:10: @3[8]: _17 = Len((*_1))
38:5-38:10: @3[9]: _18 = Lt(_16, _17)
38:5-38:14: @4[0]: (*_1)[_16] = move _15
35:52-39:2: @4[3]: _0 = const ()
39:2-39:2: @4.Return: return"> let t = xs[i];</span></span>
<span class="line"><span class="code even" style="--layer: 1" title="36:16-36:17: @0[2]: _5 = _2
36:13-36:18: @0[3]: _6 = Len((*_1))
36:13-36:18: @0[4]: _7 = Lt(_5, _6)
36:13-36:18: @1[0]: _4 = (*_1)[_5]
36:9-36:10: @1[1]: FakeRead(ForLet, _4)
37:16-37:17: @1[5]: _9 = _3
37:13-37:18: @1[6]: _10 = Len((*_1))
37:13-37:18: @1[7]: _11 = Lt(_9, _10)
37:13-37:18: @2[0]: _8 = (*_1)[_9]
37:8-37:9: @2[2]: _12 = _2
37:5-37:10: @2[3]: _13 = Len((*_1))
37:5-37:10: @2[4]: _14 = Lt(_12, _13)
37:5-37:18: @3[0]: (*_1)[_12] = move _8
38:13-38:14: @3[5]: _15 = _4
38:8-38:9: @3[7]: _16 = _3
38:5-38:10: @3[8]: _17 = Len((*_1))
38:5-38:10: @3[9]: _18 = Lt(_16, _17)
38:5-38:14: @4[0]: (*_1)[_16] = move _15
35:52-39:2: @4[3]: _0 = const ()
39:2-39:2: @4.Return: return"> xs[i] = xs[j];</span></span>
<span class="line"><span class="code even" style="--layer: 1" title="36:16-36:17: @0[2]: _5 = _2
36:13-36:18: @0[3]: _6 = Len((*_1))
36:13-36:18: @0[4]: _7 = Lt(_5, _6)
36:13-36:18: @1[0]: _4 = (*_1)[_5]
36:9-36:10: @1[1]: FakeRead(ForLet, _4)
37:16-37:17: @1[5]: _9 = _3
37:13-37:18: @1[6]: _10 = Len((*_1))
37:13-37:18: @1[7]: _11 = Lt(_9, _10)
37:13-37:18: @2[0]: _8 = (*_1)[_9]
37:8-37:9: @2[2]: _12 = _2
37:5-37:10: @2[3]: _13 = Len((*_1))
37:5-37:10: @2[4]: _14 = Lt(_12, _13)
37:5-37:18: @3[0]: (*_1)[_12] = move _8
38:13-38:14: @3[5]: _15 = _4
38:8-38:9: @3[7]: _16 = _3
38:5-38:10: @3[8]: _17 = Len((*_1))
38:5-38:10: @3[9]: _18 = Lt(_16, _17)
38:5-38:14: @4[0]: (*_1)[_16] = move _15
35:52-39:2: @4[3]: _0 = const ()
39:2-39:2: @4.Return: return"> xs[j] = t;</span></span>
<span class="line"><span class="code even" style="--layer: 1" title="36:16-36:17: @0[2]: _5 = _2
36:13-36:18: @0[3]: _6 = Len((*_1))
36:13-36:18: @0[4]: _7 = Lt(_5, _6)
36:13-36:18: @1[0]: _4 = (*_1)[_5]
36:9-36:10: @1[1]: FakeRead(ForLet, _4)
37:16-37:17: @1[5]: _9 = _3
37:13-37:18: @1[6]: _10 = Len((*_1))
37:13-37:18: @1[7]: _11 = Lt(_9, _10)
37:13-37:18: @2[0]: _8 = (*_1)[_9]
37:8-37:9: @2[2]: _12 = _2
37:5-37:10: @2[3]: _13 = Len((*_1))
37:5-37:10: @2[4]: _14 = Lt(_12, _13)
37:5-37:18: @3[0]: (*_1)[_12] = move _8
38:13-38:14: @3[5]: _15 = _4
38:8-38:9: @3[7]: _16 = _3
38:5-38:10: @3[8]: _17 = Len((*_1))
38:5-38:10: @3[9]: _18 = Lt(_16, _17)
38:5-38:14: @4[0]: (*_1)[_16] = move _15
35:52-39:2: @4[3]: _0 = const ()
39:2-39:2: @4.Return: return">}<span class="annotation">⦉@0,1,2,3,4</span></span></span></span></div>
</body>
</html>