./
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
104 / 111
93.7%
Branches:
99 / 111
89.2%
Functions:
6 / 6, 2 excl
100.0%

src/layers/prefetched_ground.h
Line Branch Exec Source
1 // SPDX-License-Identifier: BSD-3-Clause
2
3 /// @file
4 /// @brief Ground reads recorded, read up front in one pass and replayed, and `MapReadingGround`.
5 #pragma once
6
7 #include "terraingen/geometry/geometry.h"
8 #include "terraingen/layers/ground.h"
9 #include "terraingen/util/bits.h"
10 #include "terraingen/util/parallel.h"
11 #include "terraingen/util/span.h"
12
13 #include <algorithm>
14 #include <cstddef>
15 #include <cstdint>
16 #include <vector>
17
18 namespace terraingen {
19
20 /// One read of a ground: a point and the sample spacing it is read at.
21 struct GroundRead {
22 Vec2d point;
23 double spacing = 0.0;
24 };
25
26 /// A ground that records where it is read and gives 0 m everywhere; not thread-safe.
27 164177 class RecordingGround final : public Ground {
28 public:
29 /// A ground recording into `reads`, which must outlive it.
30
5/5
✓ Branch 0 taken 972 times.
✓ Branch 1 taken 163165 times.
✓ Branch 2 taken 308 times.
✓ Branch 3 taken 6 times.
✓ Branch 5 taken 1 time.
164452 explicit RecordingGround(std::vector<GroundRead>& reads) : m_reads(reads) {}
31
32 protected:
33 void FillSamples(SampleBlock& samples, double spacing, unsigned threads) const override;
34
35 private:
36 std::vector<GroundRead>& m_reads;
37 };
38
39 /// The heights of a ground at recorded reads, each distinct read (point and spacing, to the bit)
40 /// read once in one `HeightsAt` pass per spacing: every read's height in order, and any distinct
41 /// read's found by its point and spacing. Thread-safe.
42 class GroundReads {
43 public:
44 /// Reads `ground` at `reads` on `threads` threads (0 for every hardware thread); `ground` must
45 /// outlive it.
46 GroundReads(const Ground& ground, Span<const GroundRead> reads, unsigned threads = 1);
47
48 /// The ground read.
49 13922 const Ground& Read() const {
50
1/1
✓ Branch 1 taken 1 time.
13922 return m_ground;
51 }
52
53 /// The height of each read, in their order.
54 671 const std::vector<float>& Heights() const {
55 671 return m_heights;
56 }
57
58 /// The height read at (`x`, `y`) and `spacing`, or null when it was not read.
59 const float* Find(double x, double y, double spacing) const;
60
61 /// The number of distinct reads.
62 1 std::size_t Distinct() const {
63
1/1
✓ Branch 1 taken 1 time.
1 return m_distinct.size();
64 }
65
66 private:
67 struct Held {
68 std::uint64_t x = 0;
69 std::uint64_t y = 0;
70 std::uint64_t spacing = 0;
71 float height = 0.0f;
72 };
73
74 /// The slot of the table where (`x`, `y`, `spacing`) is held or would go.
75 std::size_t Slot(std::uint64_t x, std::uint64_t y, std::uint64_t spacing) const;
76
77 const Ground& m_ground;
78 std::vector<float> m_heights;
79 std::vector<Held> m_distinct;
80 std::vector<std::uint32_t> m_table;
81 };
82
83 /// A ground that replays reads recorded by a `RecordingGround`: a read matching the next one
84 /// recorded, its point and spacing to the bit, takes that read's height, any other one `held`
85 /// read, and the rest are read from the ground. Gives the heights of the ground, to the bit; not
86 /// thread-safe.
87 357 class ReplayedGround final : public Ground {
88 public:
89 /// Replays `reads`, which are those of `held` from `first` on; both must outlive it.
90 671 ReplayedGround(const GroundReads& held, Span<const GroundRead> reads, std::size_t first)
91 671 : m_held(held), m_reads(reads),
92 671 m_heights(Span<const float>(held.Heights()).subspan(first, reads.size())) {}
93
94 /// The number of recorded reads replayed in order so far.
95 4 std::size_t Replayed() const {
96
4/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
4 return m_next;
97 }
98
99 protected:
100 void FillSamples(SampleBlock& samples, double spacing, unsigned threads) const override;
101
102 private:
103 /// The height of the next recorded read if it is at (`x`, `y`) and `spacing`, else of any
104 /// held read there, else null.
105 const float* Held(double x, double y, double spacing) const;
106
107 const GroundReads& m_held;
108 Span<const GroundRead> m_reads;
109 Span<const float> m_heights;
110 mutable std::size_t m_next = 0;
111 };
112
113 /// Calls `store(i, value(i, ahead))` for each i in [0, `count`), where `ahead` serves the points
114 /// `value` reads of `ground` from one batched read, so a layer whose samples each read the ground
115 /// at many points reads it once per block rather than once per point.
116 ///
117 /// Samples are taken in blocks: `value` first runs on a `RecordingGround`, and a sample that read
118 /// nothing keeps that value; every point recorded is read in one `GroundReads`, and the others run
119 /// again on a `ReplayedGround` of their task's reads. The results are those of `value` on `ground`
120 /// itself, to the bit, as long as `value` is deterministic and reads the ground only through the
121 /// one it is given.
122 /// @param threads Threads to split each block over; 0 for every hardware thread.
123 template <typename T, typename Value, typename Store>
124 168592 void MapReadingGround(std::size_t count, unsigned threads, const Ground& ground, const Value& value,
125 const Store& store) {
126 168592 constexpr std::size_t kBlock = std::size_t{1} << 14U;
127 168592 constexpr std::size_t kTask = 256;
128 168592 std::vector<T> values;
129 168592 std::vector<unsigned char> read;
130
6/6
void terraingen::MapReadingGround<double, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1} const&):
✓ Branch 2 taken 1 time.
✓ Branch 3 taken 1 time.
void terraingen::MapReadingGround<float, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 2 taken 6 times.
✓ Branch 3 taken 2 times.
void terraingen::MapReadingGround<float, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1}, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1} const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 2 taken 162982 times.
✓ Branch 3 taken 168572 times.
331767 for (std::size_t begin = 0; begin < count; begin += kBlock) {
131
5/6
void terraingen::MapReadingGround<double, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1} const&):
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
void terraingen::MapReadingGround<float, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 4 times.
void terraingen::MapReadingGround<float, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1}, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1} const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 162966 times.
✓ Branch 1 taken 16 times.
162989 const std::size_t size = std::min(kBlock, count - begin);
132
3/3
void terraingen::MapReadingGround<double, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1} const&):
✓ Branch 1 taken 1 time.
void terraingen::MapReadingGround<float, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 6 times.
void terraingen::MapReadingGround<float, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1}, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1} const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 162953 times.
162989 const std::size_t tasks = CeilDiv(size, kTask);
133
3/3
void terraingen::MapReadingGround<double, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1} const&):
✓ Branch 1 taken 1 time.
void terraingen::MapReadingGround<float, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 6 times.
void terraingen::MapReadingGround<float, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1}, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1} const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 162953 times.
162989 values.assign(size, T{});
134
6/6
void terraingen::MapReadingGround<double, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1} const&):
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
void terraingen::MapReadingGround<float, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
void terraingen::MapReadingGround<float, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1}, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1} const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 162925 times.
✓ Branch 4 taken 162922 times.
162960 read.assign(size, 0);
135
3/3
void terraingen::MapReadingGround<double, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1} const&):
✓ Branch 1 taken 1 time.
void terraingen::MapReadingGround<float, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 6 times.
void terraingen::MapReadingGround<float, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1}, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1} const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 162922 times.
162932 std::vector<std::vector<GroundRead>> reads(tasks);
136
9/9
terraingen::MapReadingGround<float, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1}, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1} const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1} const&)::{lambda(unsigned long)#1}::operator()(unsigned long) const:
✓ Branch 1 taken 162951 times.
✓ Branch 4 taken 163183 times.
✓ Branch 7 taken 163095 times.
void terraingen::MapReadingGround<double, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1} const&):
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
void terraingen::MapReadingGround<float, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
326074 ParallelFor(tasks, threads, [&](std::size_t task) {
137
2/2
✓ Branch 0 taken 969 times.
✓ Branch 1 taken 163164 times.
164133 const RecordingGround recording(reads[task]);
138
2/2
✓ Branch 0 taken 969 times.
✓ Branch 1 taken 163164 times.
164133 const std::size_t end = std::min(size, (task + 1) * kTask);
139
2/2
✓ Branch 0 taken 580088 times.
✓ Branch 1 taken 164176 times.
744264 for (std::size_t i = task * kTask; i < end; ++i) {
140 580088 const std::size_t before = reads[task].size();
141
2/2
✓ Branch 1 taken 551319 times.
✓ Branch 2 taken 28812 times.
580088 values[i] = value(begin + i, static_cast<const Ground&>(recording));
142
2/2
✓ Branch 0 taken 551319 times.
✓ Branch 1 taken 28812 times.
1131450 read[i] = reads[task].size() != before ? 1 : 0;
143 }
144 164176 });
145
3/3
terraingen::MapReadingGround<float, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1}, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1} const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1} const&)::{lambda(unsigned long)#1}::operator()(unsigned long) const:
✓ Branch 1 taken 163095 times.
void terraingen::MapReadingGround<double, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1} const&):
✓ Branch 1 taken 1 time.
void terraingen::MapReadingGround<float, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 6 times.
163145 std::vector<std::size_t> first(tasks + 1, 0);
146
6/6
terraingen::MapReadingGround<float, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1}, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1} const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1} const&)::{lambda(unsigned long)#1}::operator()(unsigned long) const:
✓ Branch 0 taken 164139 times.
✓ Branch 1 taken 163095 times.
void terraingen::MapReadingGround<double, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1} const&):
✓ Branch 0 taken 4 times.
✓ Branch 1 taken 1 time.
void terraingen::MapReadingGround<float, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 314 times.
✓ Branch 1 taken 6 times.
327559 for (std::size_t task = 0; task < tasks; ++task) {
147 164457 first[task + 1] = first[task] + reads[task].size();
148 }
149
4/6
terraingen::MapReadingGround<float, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1}, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1} const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1} const&)::{lambda(unsigned long)#1}::operator()(unsigned long) const:
✓ Branch 0 taken 254 times.
✓ Branch 1 taken 162841 times.
void terraingen::MapReadingGround<double, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1} const&):
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
void terraingen::MapReadingGround<float, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
163102 if (first[tasks] > 0) {
150 260 std::vector<GroundRead> all;
151
2/3
terraingen::MapReadingGround<float, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1}, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1} const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1} const&)::{lambda(unsigned long)#1}::operator()(unsigned long) const:
✓ Branch 1 taken 254 times.
void terraingen::MapReadingGround<double, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1} const&):
✗ Branch 1 not taken.
void terraingen::MapReadingGround<float, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 6 times.
260 all.reserve(first[tasks]);
152
6/9
terraingen::MapReadingGround<float, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1}, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1} const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1} const&)::{lambda(unsigned long)#1}::operator()(unsigned long) const:
✓ Branch 1 taken 356 times.
✓ Branch 3 taken 356 times.
✓ Branch 4 taken 254 times.
void terraingen::MapReadingGround<double, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1} const&):
✗ Branch 1 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
void terraingen::MapReadingGround<float, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 314 times.
✓ Branch 3 taken 314 times.
✓ Branch 4 taken 6 times.
930 for (std::vector<GroundRead>& some : reads) {
153
2/3
terraingen::MapReadingGround<float, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1}, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1} const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1} const&)::{lambda(unsigned long)#1}::operator()(unsigned long) const:
✓ Branch 1 taken 356 times.
void terraingen::MapReadingGround<double, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1} const&):
✗ Branch 1 not taken.
void terraingen::MapReadingGround<float, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 314 times.
670 all.insert(all.end(), some.begin(), some.end());
154
2/3
terraingen::MapReadingGround<float, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1}, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1} const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1} const&)::{lambda(unsigned long)#1}::operator()(unsigned long) const:
✓ Branch 1 taken 356 times.
void terraingen::MapReadingGround<double, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1} const&):
✗ Branch 1 not taken.
void terraingen::MapReadingGround<float, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 314 times.
670 some = {};
155 }
156
2/3
terraingen::MapReadingGround<float, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1}, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1} const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1} const&)::{lambda(unsigned long)#1}::operator()(unsigned long) const:
✓ Branch 2 taken 254 times.
void terraingen::MapReadingGround<double, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1} const&):
✗ Branch 2 not taken.
void terraingen::MapReadingGround<float, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 2 taken 6 times.
260 const GroundReads held(ground, all, threads);
157
4/6
terraingen::MapReadingGround<float, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1}, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1} const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1} const&)::{lambda(unsigned long)#2}::operator()(unsigned long) const:
✓ Branch 1 taken 254 times.
✓ Branch 4 taken 254 times.
void terraingen::MapReadingGround<double, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1} const&):
✗ Branch 1 not taken.
✗ Branch 4 not taken.
void terraingen::MapReadingGround<float, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
260 ParallelFor(tasks, threads, [&](std::size_t task) {
158 356 const std::size_t reads = first[task + 1] - first[task];
159 356 const ReplayedGround replay(
160 356 held, Span<const GroundRead>(all).subspan(first[task], reads), first[task]);
161
2/2
✓ Branch 0 taken 102 times.
✓ Branch 1 taken 254 times.
356 const std::size_t end = std::min(size, (task + 1) * kTask);
162
2/2
✓ Branch 0 taken 29358 times.
✓ Branch 1 taken 356 times.
29714 for (std::size_t i = task * kTask; i < end; ++i) {
163
2/2
✓ Branch 0 taken 28940 times.
✓ Branch 1 taken 418 times.
29358 if (read[i] != 0) {
164 28940 values[i] = value(begin + i, static_cast<const Ground&>(replay));
165 }
166 }
167 356 });
168 260 }
169
6/6
terraingen::MapReadingGround<float, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1}, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, terraingen::Ground const&)#1} const&, terraingen::FormulaLayer::ApplySamples(terraingen::SampleBlock&, terraingen::LayerContext const&) const::{lambda(unsigned long, float)#1} const&)::{lambda(unsigned long)#2}::operator()(unsigned long) const:
✓ Branch 0 taken 583628 times.
✓ Branch 1 taken 163168 times.
void terraingen::MapReadingGround<double, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_EvaluatesSamplesThatReadNothingOnce_Test::TestBody()::{lambda(unsigned long, double)#1} const&):
✓ Branch 0 taken 1000 times.
✓ Branch 1 taken 1 time.
void terraingen::MapReadingGround<float, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1}, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, unsigned int, terraingen::Ground const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, terraingen::Ground const&)#1} const&, MapReadingGround_GivesTheValuesOfReadingTheGroundDirectly_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 80000 times.
✓ Branch 1 taken 6 times.
827803 for (std::size_t i = 0; i < size; ++i) {
170 664628 store(begin + i, values[i]);
171 }
172 }
173 168575 }
174
175 } // namespace terraingen
176