@@ -387,9 +387,6 @@ namespace aalwines {
387387 auto eid = ((&entry) - s._inf ->table ().entries ().data ());
388388 auto rid = ((&forward) - entry._rules .data ());
389389 res = add_state (n, s._inf , appmode, eid, rid, 0 );
390- if constexpr (is_weighted) {
391- ar._weight = _weight_f (forward, false );
392- }
393390 }
394391 ar._dest = res.second ;
395392
@@ -476,7 +473,7 @@ namespace aalwines {
476473 auto res = add_state (s._nfastate , r._via ->match (), s._appmode );
477474 nr._dest = res.second ;
478475 if constexpr (is_weighted) {
479- // nr._weight = _weight_f(r, true);
476+ nr._weight = _weight_f (r, true );
480477 }
481478 } else {
482479 auto res = add_state (s._nfastate , s._inf , s._appmode , s._eid , s._rid , s._opid + 1 );
@@ -782,21 +779,6 @@ namespace aalwines {
782779
783780 // Do the printing
784781 write_concrete_trace (stream, trace, entries, rules);
785-
786- if constexpr (is_weighted){
787- auto weight = _weight_f (*rules[0 ], true );
788- for (size_t i = 1 ; i < rules.size (); i++){
789- for (size_t j = 0 ; j < weight.size (); j++){
790- weight[j] += _weight_f (*rules[i], true )[j];
791- }
792- }
793- stream << " \n\t\t\t\" weight\" : [" ;
794- for (size_t j = 0 ; j < weight.size (); j++){
795- if (j != 0 ) stream << " , " ;
796- stream << weight[j];
797- }
798- stream << " ]" ;
799- }
800782 return true ;
801783 }
802784
0 commit comments