@@ -542,7 +542,7 @@ namespace adiar::internal
542
542
{
543
543
if (a.source ().is_nil () || (a.source ().label () < _next_inner && a.target ().is_node ())) {
544
544
#ifdef ADIAR_STATS
545
- nested_sweeping::stats.inner_down .requests .preserving += 1 ;
545
+ nested_sweeping::stats.inner_down .requests .preserving += 1u ;
546
546
#endif
547
547
_outer_roots.push (a);
548
548
} else {
@@ -571,7 +571,7 @@ namespace adiar::internal
571
571
adiar_assert (e.data .source .is_nil () || e.data .source .label () < _next_inner);
572
572
if (e.target .first ().is_terminal ()) {
573
573
#ifdef ADIAR_STATS
574
- nested_sweeping::stats.inner_down .requests .terminals += 1 ;
574
+ nested_sweeping::stats.inner_down .requests .terminals += 1u ;
575
575
#endif
576
576
_outer_pq.push ({ e.data .source , e.target .first () });
577
577
} else {
@@ -1004,11 +1004,11 @@ namespace adiar::internal
1004
1004
1005
1005
if (use_random_access) {
1006
1006
#ifdef ADIAR_STATS
1007
- stats.inner_down .ra_runs += 1 ;
1007
+ stats.inner_down .ra_runs += 1u ;
1008
1008
#endif
1009
1009
} else {
1010
1010
#ifdef ADIAR_STATS
1011
- stats.inner_down .pq_runs += 1 ;
1011
+ stats.inner_down .pq_runs += 1u ;
1012
1012
#endif
1013
1013
}
1014
1014
@@ -1218,12 +1218,12 @@ namespace adiar::internal
1218
1218
{
1219
1219
if (v.source ().is_flagged ()) {
1220
1220
#ifdef ADIAR_STATS
1221
- stats.inner_up .outer_arcs += 1 ;
1221
+ stats.inner_up .outer_arcs += 1u ;
1222
1222
#endif
1223
1223
_outer_pq.push (arc (unflag (v.source ()), v.target ()));
1224
1224
} else {
1225
1225
#ifdef ADIAR_STATS
1226
- stats.inner_up .inner_arcs += 1 ;
1226
+ stats.inner_up .inner_arcs += 1u ;
1227
1227
#endif
1228
1228
_inner_pq.push (v);
1229
1229
}
@@ -1500,13 +1500,13 @@ namespace adiar::internal
1500
1500
" level and priority queue should be in sync" );
1501
1501
1502
1502
#ifdef ADIAR_STATS
1503
- nested_sweeping::stats.inner_up .reduced_levels += 1 ;
1503
+ nested_sweeping::stats.inner_up .reduced_levels += 1u ;
1504
1504
#endif
1505
1505
1506
1506
if (/* constexpr*/ !nesting_policy::final_canonical
1507
1507
|| (!is_last_inner && auto_fast_reduce)) {
1508
1508
#ifdef ADIAR_STATS
1509
- nested_sweeping::stats.inner_up .reduced_levels__fast += 1 ;
1509
+ nested_sweeping::stats.inner_up .reduced_levels__fast += 1u ;
1510
1510
#endif
1511
1511
1512
1512
nested_sweeping::__reduce_level__fast<nesting_policy>(
@@ -1677,12 +1677,12 @@ namespace adiar::internal
1677
1677
// classic Reduce sweep.
1678
1678
if (next_inner == inner_iter_t ::end) {
1679
1679
#ifdef ADIAR_STATS
1680
- nested_sweeping::stats.skips += 1 ;
1680
+ nested_sweeping::stats.skips += 1u ;
1681
1681
#endif
1682
1682
return reduce<nesting_policy>(typename nesting_policy::__dd_type (dag, ep));
1683
1683
}
1684
1684
#ifdef ADIAR_STATS
1685
- nested_sweeping::stats.runs += 1 ;
1685
+ nested_sweeping::stats.runs += 1u ;
1686
1686
1687
1687
nested_sweeping::stats.outer_up .sum_node_arcs += dag->size (0 );
1688
1688
nested_sweeping::stats.outer_up .sum_terminal_arcs += dag->size (1 ) + dag->size (2 );
@@ -1761,12 +1761,12 @@ namespace adiar::internal
1761
1761
// Reduce this level (without decorators).
1762
1762
if (next_inner == inner_iter_t ::end) {
1763
1763
#ifdef ADIAR_STATS
1764
- nested_sweeping::stats.outer_up .reduced_levels += 1 ;
1764
+ nested_sweeping::stats.outer_up .reduced_levels += 1u ;
1765
1765
#endif
1766
1766
1767
1767
if constexpr (!nesting_policy::final_canonical) {
1768
1768
#ifdef ADIAR_STATS
1769
- nested_sweeping::stats.outer_up .reduced_levels__fast += 1 ;
1769
+ nested_sweeping::stats.outer_up .reduced_levels__fast += 1u ;
1770
1770
#endif
1771
1771
1772
1772
nested_sweeping::__reduce_level__fast<nesting_policy>(outer_arcs,
@@ -1805,12 +1805,12 @@ namespace adiar::internal
1805
1805
outer_pq_decorator_t outer_pq_decorator (outer_pq, outer_roots, next_inner);
1806
1806
1807
1807
#ifdef ADIAR_STATS
1808
- nested_sweeping::stats.outer_up .reduced_levels += 1 ;
1808
+ nested_sweeping::stats.outer_up .reduced_levels += 1u ;
1809
1809
#endif
1810
1810
1811
1811
if (/* constexpr*/ !nesting_policy::final_canonical || auto_fast_reduce) {
1812
1812
#ifdef ADIAR_STATS
1813
- nested_sweeping::stats.outer_up .reduced_levels__fast += 1 ;
1813
+ nested_sweeping::stats.outer_up .reduced_levels__fast += 1u ;
1814
1814
#endif
1815
1815
1816
1816
nested_sweeping::__reduce_level__fast<nesting_policy>(outer_arcs,
@@ -1893,13 +1893,13 @@ namespace adiar::internal
1893
1893
return reduced_t (reduction_rule_ret.value ());
1894
1894
}
1895
1895
#ifdef ADIAR_STATS
1896
- nested_sweeping::stats.inner_down .removed_by_rule_1 += 1 ;
1896
+ nested_sweeping::stats.inner_down .removed_by_rule_1 += 1u ;
1897
1897
#endif
1898
1898
outer_pq_decorator.push (arc (node::pointer_type::nil (), flag (reduction_rule_ret)));
1899
1899
} else {
1900
1900
do {
1901
1901
#ifdef ADIAR_STATS
1902
- nested_sweeping::stats.inner_down .removed_by_rule_1 += 1 ;
1902
+ nested_sweeping::stats.inner_down .removed_by_rule_1 += 1u ;
1903
1903
#endif
1904
1904
outer_pq_decorator.push (
1905
1905
arc (outer_arcs.pull_internal ().source (), flag (reduction_rule_ret)));
@@ -1953,7 +1953,7 @@ namespace adiar::internal
1953
1953
// ---------------------------------------------------------------------
1954
1954
// Inner Down Sweep
1955
1955
#ifdef ADIAR_STATS
1956
- nested_sweeping::stats.outer_up .nested_levels += 1 ;
1956
+ nested_sweeping::stats.outer_up .nested_levels += 1u ;
1957
1957
#endif
1958
1958
adiar_assert (outer_roots.size () > 0 , " Nested Sweep needs some number of requests" );
1959
1959
@@ -2018,7 +2018,7 @@ namespace adiar::internal
2018
2018
// Bail out requests for a GC-only Inner Sweep (postponing doing so for
2019
2019
// a later sweep)
2020
2020
#ifdef ADIAR_STATS
2021
- nested_sweeping::stats.outer_up .skipped_nested_levels += 1 ;
2021
+ nested_sweeping::stats.outer_up .skipped_nested_levels += 1u ;
2022
2022
#endif
2023
2023
adiar_assert (next_inner <= nesting_policy::pointer_type::max_label,
2024
2024
" Has another later sweep to do possible garbage collection" );
@@ -2042,8 +2042,8 @@ namespace adiar::internal
2042
2042
// ---------------------------------------------------------------------
2043
2043
// Nothing within 'outer_file' should survive
2044
2044
#ifdef ADIAR_STATS
2045
- nested_sweeping::stats.outer_up .skipped_nested_levels += 1 ;
2046
- nested_sweeping::stats.outer_up .skipped_nested_levels__prune += 1 ;
2045
+ nested_sweeping::stats.outer_up .skipped_nested_levels += 1u ;
2046
+ nested_sweeping::stats.outer_up .skipped_nested_levels__prune += 1u ;
2047
2047
#endif
2048
2048
if (outer_writer.size () != 0 ) {
2049
2049
outer_writer.detach ();
@@ -2089,7 +2089,7 @@ namespace adiar::internal
2089
2089
outer_pq.setup_next_level (stop_level);
2090
2090
} else if (outer_file->is_terminal ()) {
2091
2091
#ifdef ADIAR_STATS
2092
- nested_sweeping::stats.outer_up .collapse_to_terminal += 1 ;
2092
+ nested_sweeping::stats.outer_up .collapse_to_terminal += 1u ;
2093
2093
#endif
2094
2094
return outer_file;
2095
2095
}
0 commit comments