LCOV - code coverage report
Current view: top level - src/utility - LAGraph_Finalize.c (source / functions) Hit Total Coverage
Test: LAGraph code coverage report. Commit id: 50cd0c8. Current time (UTC): 2025-07-25T16:32:50Z Lines: 46 46 100.0 %
Date: 2025-07-25 16:38:41 Functions: 1 1 100.0 %

          Line data    Source code
       1             : //------------------------------------------------------------------------------
       2             : // LAGraph_Finalize: finish LAGraph
       3             : //------------------------------------------------------------------------------
       4             : 
       5             : // LAGraph, (c) 2019-2022 by The LAGraph Contributors, All Rights Reserved.
       6             : // SPDX-License-Identifier: BSD-2-Clause
       7             : //
       8             : // For additional details (including references to third party source code and
       9             : // other files) see the LICENSE file or contact permission@sei.cmu.edu. See
      10             : // Contributors.txt for a full list of contributors. Created, in part, with
      11             : // funding and support from the U.S. Government (see Acknowledgments.txt file).
      12             : // DM22-0790
      13             : 
      14             : // Contributed by Timothy A. Davis, Texas A&M University
      15             : 
      16             : //------------------------------------------------------------------------------
      17             : 
      18             : #include "LG_internal.h"
      19             : 
      20         284 : int LAGraph_Finalize (char *msg)
      21             : {
      22             : 
      23             :     //--------------------------------------------------------------------------
      24             :     // check inputs
      25             :     //--------------------------------------------------------------------------
      26             : 
      27         284 :     LG_CLEAR_MSG ;
      28             : 
      29             :     //--------------------------------------------------------------------------
      30             :     // free global objects
      31             :     //--------------------------------------------------------------------------
      32             : 
      33         284 :     LG_TRY (LG_Random_Finalize (msg)) ;
      34             : 
      35         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_int8  )) ;
      36         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_int16 )) ;
      37         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_int32 )) ;
      38         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_int64 )) ;
      39         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_uint8 )) ;
      40         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_uint16)) ;
      41         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_uint32)) ;
      42         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_uint64)) ;
      43         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_fp32  )) ;
      44         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_fp64  )) ;
      45             : 
      46         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_int8  )) ;
      47         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_int16 )) ;
      48         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_int32 )) ;
      49         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_int64 )) ;
      50         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_uint8 )) ;
      51         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_uint16)) ;
      52         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_uint32)) ;
      53         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_uint64)) ;
      54         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_fp32  )) ;
      55         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_fp64  )) ;
      56             : 
      57         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_int8  )) ;
      58         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_int16 )) ;
      59         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_int32 )) ;
      60         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_int64 )) ;
      61         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_uint8 )) ;
      62         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_uint16)) ;
      63         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_uint32)) ;
      64         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_uint64)) ;
      65         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_fp32  )) ;
      66         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_fp64  )) ;
      67             : 
      68         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_bool  )) ;
      69         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_int8  )) ;
      70         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_int16 )) ;
      71         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_int32 )) ;
      72         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_int64 )) ;
      73         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_uint8 )) ;
      74         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_uint16)) ;
      75         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_uint32)) ;
      76         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_uint64)) ;
      77         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_fp32  )) ;
      78         284 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_fp64  )) ;
      79             : 
      80             :     //--------------------------------------------------------------------------
      81             :     // finalize GraphBLAS
      82             :     //--------------------------------------------------------------------------
      83             : 
      84         284 :     GRB_TRY (GrB_finalize ( )) ;
      85         284 :     return (GrB_SUCCESS) ;
      86             : }
      87             : 

Generated by: LCOV version 1.14