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: 3b461aa. Current time (UTC): 2024-01-25T16:04:32Z Lines: 45 45 100.0 %
Date: 2024-01-25 16:05:28 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         214 : int LAGraph_Finalize (char *msg)
      21             : {
      22             : 
      23             :     //--------------------------------------------------------------------------
      24             :     // check inputs
      25             :     //--------------------------------------------------------------------------
      26             : 
      27         214 :     LG_CLEAR_MSG ;
      28             : 
      29             :     //--------------------------------------------------------------------------
      30             :     // free global objects
      31             :     //--------------------------------------------------------------------------
      32             : 
      33         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_int8  )) ;
      34         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_int16 )) ;
      35         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_int32 )) ;
      36         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_int64 )) ;
      37         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_uint8 )) ;
      38         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_uint16)) ;
      39         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_uint32)) ;
      40         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_uint64)) ;
      41         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_fp32  )) ;
      42         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_first_fp64  )) ;
      43             : 
      44         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_int8  )) ;
      45         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_int16 )) ;
      46         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_int32 )) ;
      47         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_int64 )) ;
      48         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_uint8 )) ;
      49         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_uint16)) ;
      50         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_uint32)) ;
      51         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_uint64)) ;
      52         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_fp32  )) ;
      53         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_second_fp64  )) ;
      54             : 
      55         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_int8  )) ;
      56         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_int16 )) ;
      57         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_int32 )) ;
      58         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_int64 )) ;
      59         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_uint8 )) ;
      60         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_uint16)) ;
      61         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_uint32)) ;
      62         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_uint64)) ;
      63         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_fp32  )) ;
      64         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_plus_one_fp64  )) ;
      65             : 
      66         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_bool  )) ;
      67         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_int8  )) ;
      68         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_int16 )) ;
      69         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_int32 )) ;
      70         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_int64 )) ;
      71         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_uint8 )) ;
      72         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_uint16)) ;
      73         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_uint32)) ;
      74         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_uint64)) ;
      75         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_fp32  )) ;
      76         214 :     GRB_TRY (GrB_Semiring_free (&LAGraph_any_one_fp64  )) ;
      77             : 
      78             :     //--------------------------------------------------------------------------
      79             :     // finalize GraphBLAS
      80             :     //--------------------------------------------------------------------------
      81             : 
      82         214 :     GRB_TRY (GrB_finalize ( )) ;
      83         214 :     return (GrB_SUCCESS) ;
      84             : }

Generated by: LCOV version 1.14