Skip to content

Commit

Permalink
Use Info in FinitePolycyclicCollector_IsConfluent (#5911)
Browse files Browse the repository at this point in the history
... instead of commented out debug messages. The new `Info` statements are
taken from the `IsConfluent` method for `IsPcGroup` from `lib/rwspcgrp.gi`.
  • Loading branch information
fingolfin authored Jan 28, 2025
1 parent 50fb70e commit 6800c66
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions lib/rwspcclt.gi
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,15 @@ end );
#F FinitePolycyclicCollector_IsConfluent( <col> )
##
BindGlobal( "FinitePolycyclicCollector_IsConfluent", function( col, failed )
local gens, rods, k, gk, j, gj, i, gi, r1, r2;
local gens, rods, k, gk, j, gj, i, gi, r1, r2, R, R1;

gens := GeneratorsOfRws(col);
rods := RelativeOrders(col);

# be verbose for debugging
#Print( "#I 'IsConfluent' part 1\n" );
#R := Runtime();
Info( InfoTiming + InfoConfluence, 2,
"'IsConfluent' starting part 1" );
R := Runtime(); R1 := R;

# consistency relations: gk * ( gj * gi ) = ( gk * gj ) * gi
for k in [ 1 .. Length(gens) ] do
Expand All @@ -86,8 +87,10 @@ BindGlobal( "FinitePolycyclicCollector_IsConfluent", function( col, failed )
od;

# be verbose for debugging
#Print( "#I 'IsConfluent' part 2, ", Runtime()-R, "\n" );
#R := Runtime();
Info( InfoTiming + InfoConfluence, 2,
"'IsConfluent' part 1 took ", Runtime()-R, " ms, ",
"starting part 2" );
R := Runtime();

# consistency relations: gj^ej-1 * ( gj * gi ) = ( gj^ej-1 * gj ) * gi
for j in [ 1 .. Length(gens) ] do
Expand All @@ -109,8 +112,10 @@ BindGlobal( "FinitePolycyclicCollector_IsConfluent", function( col, failed )
od;

# be verbose for debugging
#Print( "#I 'IsConfluent' part 3, ", Runtime()-R, "\n" );
#R := Runtime();
Info( InfoTiming + InfoConfluence, 2,
"'IsConfluent' part 2 took ", Runtime()-R, " ms, ",
"starting part 3" );
R := Runtime();

# consistency relations: gj * ( gi^ei-1 * gi ) = ( gj * gi^ei-1 ) * gi
for j in [ 1 .. Length( gens ) ] do
Expand All @@ -132,8 +137,10 @@ BindGlobal( "FinitePolycyclicCollector_IsConfluent", function( col, failed )
od;

# be verbose for debugging
#Print( "#I 'IsConfluent' part 4, ", Runtime()-R, "\n" );
#R := Runtime();
Info( InfoTiming + InfoConfluence, 2,
"'IsConfluent' part 3 took ", Runtime()-R, " ms, ",
"starting part 4" );
R := Runtime();

# consistency relations: gi * ( gi^ei-1 * gi ) = ( gi * gi^ei-1 ) * gi
for i in [ 1 .. Length( gens ) ] do
Expand All @@ -150,7 +157,10 @@ BindGlobal( "FinitePolycyclicCollector_IsConfluent", function( col, failed )
fi;
fi;
od;
#Print( "#I 'IsConfluent' done, ", Runtime()-R, "\n" );
Info( InfoTiming + InfoConfluence, 2,
"'IsConfluent' part 4 took, ", Runtime()-R, " ms" );
Info( InfoTiming + InfoConfluence, 1,
"'IsConfluent' took ", Runtime()-R1, " ms" );

# we passed all consistency checks
if failed = false then
Expand Down

0 comments on commit 6800c66

Please sign in to comment.