Research Article
Detecting Resource Release Bugs with Analogical Reasoning
Table 2
Identified secondary seed function pairs.
| Rank | Allocation function name | Release function name | 3CosAvg similarity |
| 1 | mlxsw_sp_kvdl_alloc | mlxsw_sp_kvdl_free | 0.96307445 | 2 | mlx4_mr_alloc | mlx4_mr_free | 0.95947766 | 3 | mlx5_db_alloc | mlx5_db_free | 0.9594188 | 4 | mlxsw_sp_counter_alloc | mlxsw_sp_counter_free | 0.954844 | 5 | mlx4_db_alloc | mlx4_db_free | 0.9546761 | 6 | nfp_port_alloc | nfp_port_free | 0.95387816 | 7 | mlx4_buf_alloc | mlx4_buf_free | 0.95332044 | 8 | devlink_alloc | devlink_free | 0.95299953 | 9 | mlx4_pd_alloc | mlx4_pd_free | 0.9513632 | 10 | mlxsw_sp_vr_get | mlxsw_sp_vr_put | 0.9465025 |
|
|