Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/profiling/tst/tstall/   (GAP Algebra Version 4.15.1©)  Datei vom 21.5.2025 mit Größe 1 kB image not shown  

Quelle  checknoreturn.tst   Sprache: unbekannt

 
Spracherkennung für: .tst vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

gap> START_TEST("checknoreturn.tst");
gap> IsLineByLineProfileActive();
false
gap> LoadPackage("IO", false);
true
gap> LoadPackage("profiling", false);
true
gap> dir := DirectoryTemporary();;
gap> file := Filename(dir, "out.gz");;
gap> testdir:= DirectoriesPackageLibrary( "profiling", "tst" )[1];;
gap> Read(Filename(testdir, "testcodenoreturn.g"));
gap> ProfileLineByLine(file);
true
gap> f1(0);
1
gap> f2(1);
gap> UnprofileLineByLine();
true
gap> x := ReadLineByLineProfile(file);;
gap> SortedList(RecNames(x)) = 
> [ "info", "line_calling_function_calls", "line_function_calls", "line_info", "stack_runtimes" ];
true
gap> filenames := List(x.line_info, y -> y[1]);;
gap> file := Filtered(filenames, x -> EndsWith(x, "testcodenoreturn.g"));;
gap> Length(file);
1
gap> datapos := PositionProperty(filenames, x -> EndsWith(x, "testcodenoreturn.g"));;
gap> data := x.line_info[datapos][2];;
gap> sample := [ [ 0000 ], [ 0000 ], [ 0000 ], [ 0000 ], [ 0110 ],
>  [ 0110 ], [ 01210 ], [ 0120 ], [ 0000 ], [ 0000 ],
>  [ 0000 ], [ 0000 ], [ 0120 ], [ 0170 ], [ 0000 ],
>  [ 0100 ] ];;
gap> Filtered([1..Length(data)], x -> not (data[x]{[1..2]} = sample[x]{[1..2]}) );
[  ]
gap> STOP_TEST("checknoreturn.tst", 1);

[Dauer der Verarbeitung: 0.21 Sekunden, vorverarbeitet 2026-06-17]