Back to Liquid War 6 Homepage

Liquid War 6 Cyclomatic Complexity Report

Report generated at: Thu May 7 07:29:31 CEST 2015

Resume

Total number of functions 4443
Number of low risk functions 4103
Number of moderate risk functions 222
Number of high risk functions 104
Number of untestable functions 14

Details for all functions

Used ranges:

  Cyclomatic Complexity Risk Evaluation
  0 - 10 Simple module, without much risk
  11 - 20 More complex module, moderate risk
  21 - 50 Complex module, high risk
  greater than 50 Untestable module, very high risk

Function Name Cyclomatic
Complexity
Number of
Statements
Number of
Lines
Source File
_get_rules_int_ptr 155 310 625 src/lib/map/map-rules.c
lw6hlp_process_non_run_options 147 438 745 src/lib/hlp/hlp-options.c
lw6_register_funcs_sys 125 126 179 src/lib/lw6-funcssys.c
_test_dmat4 101 296 479 src/lib/mat/mat-test.c
_test_fmat4 101 296 479 src/lib/mat/mat-test.c
_init_nodes 70 120 290 src/lib/p2p/p2p-test.c
lw6map_style_set 66 136 278 src/lib/map/map-style.c
lw6_register_funcs_gui 64 65 76 src/lib/lw6-funcsgui.c
_test_list_r 61 310 487 src/lib/sys/sys-test.c
lw6map_style_get 59 120 242 src/lib/map/map-style.c
_key_up 57 33 98 src/lib/gfx/shared-sdl/shared-sdl-event.c
_pop_param 56 63 72 src/lib/map/map-hexa.c
_analyse_info 56 189 417 src/lib/msg/msg-cmd.c
_push_param 54 60 67 src/lib/map/map-hexa.c
_test_more 50 214 501 src/lib/dat/dat-test.c
_test_stack 50 172 386 src/lib/dat/dat-test.c
_test_list 49 250 371 src/lib/sys/sys-test.c
_test_dmat3 49 168 279 src/lib/mat/mat-test.c
_test_fmat3 49 168 279 src/lib/mat/mat-test.c
_draft_zones_group 48 82 180 src/lib/ker/ker-mapstruct.c
lw6gui_viewport_init 45 105 224 src/lib/gui/gui-viewport.c
lw6msg_envelope_analyse 44 112 288 src/lib/msg/msg-envelope.c
_update_msg_list_by_seq_with_search 42 97 227 src/lib/dat/dat-stack.c
_lw6ker_map_state_frag 42 80 161 src/lib/ker/ker-mapstate.c
_test_tcp 42 104 207 src/lib/net/net-test.c
lw6_register_funcs_pil 41 42 54 src/lib/lw6-funcspil.c
_lw6p2p_recv_process 41 146 452 src/lib/p2p/p2p-recv.c
_lw6dat_stack_put_atom 40 95 191 src/lib/dat/dat-stack.c
_display 40 81 151 src/lib/gfx/mod-gl1/mod-gl1-backend.c
_test_dmat2 40 139 236 src/lib/mat/mat-test.c
_test_fmat2 40 139 236 src/lib/mat/mat-test.c
_test_str 39 119 216 src/lib/sys/sys-test.c
_lw6ker_score_array_update 39 119 207 src/lib/ker/ker-scorearray.c
_lw6p2p_node_new 38 75 174 src/lib/p2p/p2p-node.c
_pop_map_struct 38 62 113 src/lib/ker/ker-hexa.c
lw6_process_non_run_options 38 129 241 src/lib/lw6-options.c
_test_oob 37 123 267 src/lib/msg/msg-test.c
lw6map_teams_set 36 76 158 src/lib/map/map-teams.c
_test_cmd 36 194 368 src/lib/msg/msg-test.c
lw6hlp_print_audit 36 117 209 src/lib/hlp/hlp-print.c
_register_and_run_tests 35 12 47 src/lib/lw6-options.c
_draft_zones_new 34 87 137 src/lib/ker/ker-mapstruct.c
_test_community 34 128 285 src/lib/nod/nod-test.c
lw6msg_oob_analyse_request 32 82 151 src/lib/msg/msg-oob.c
_test_warehouse 32 167 341 src/lib/dat/dat-test.c
_fix_one_way 32 102 166 src/lib/ker/ker-mapstruct.c
_mod_gl1_init 30 85 168 src/lib/gfx/mod-gl1/mod-gl1-setup.c
lw6ldr_resampler_init 30 83 175 src/lib/ldr/ldr-resampler.c
lw6net_tcp_send 30 69 165 src/lib/net/net-tcp.c
mod_gl1_utils_texture_1x1_update 30 40 99 src/lib/gfx/mod-gl1/gl1-utils/gl1-utils-texture1x1.c
_test_dump 30 108 217 src/lib/pil/pil-test.c
_key_down 29 23 50 src/lib/gfx/mod-caca/mod-caca-event.c
_key_down 29 23 50 src/lib/gfx/shared-sdl/shared-sdl-event.c
_test_sort 29 106 230 src/lib/sys/sys-test.c
_test_hexa 28 86 177 src/lib/sys/sys-test.c
lw6_register_funcs_p2p 28 29 38 src/lib/lw6-funcsp2p.c
lw6map_dup 28 118 222 src/lib/map/map-dup.c
_test_word 28 118 268 src/lib/msg/msg-test.c
lw6map_teams_get 27 56 114 src/lib/map/map-teams.c
_lw6ldr_guess_colors 27 122 194 src/lib/ldr/ldr-color.c
_lw6ker_map_state_move_fighters 27 117 186 src/lib/ker/ker-mapstate.c
_init_places 26 87 130 src/lib/ker/ker-mapstruct.c
_lw6ker_move_update_fighters_universal 26 85 146 src/lib/ker/ker-move.c
_test_line 26 80 149 src/lib/net/net-test.c
_mod_gl1_menu_cylinder_display_meta 26 71 168 src/lib/gfx/mod-gl1/gl1-menu/gl1-cylinder/gl1-cylinder-display.c
lw6pil_coords_fix 26 59 130 src/lib/pil/pil-coords.c
lw6_register_funcs 26 28 44 src/lib/lw6-funcs.c
lw6_register_funcs_map 26 27 36 src/lib/lw6-funcsmap.c
lw6gui_menu_is_same 26 24 46 src/lib/gui/gui-menu.c
_write_xml 33 71 137 src/lib/cfg/cfg-xml.c
_test_path 25 96 175 src/lib/sys/sys-test.c
lw6ldr_read 25 75 142 src/lib/ldr/ldr-read.c
_lw6nod_const_info_init 25 40 100 src/lib/nod/nod-constinfo.c
_lw6ker_move_get_best_next_pos 24 78 126 src/lib/ker/ker-move.c
_lw6p2p_cli_oob_verify_callback_func 24 70 120 src/lib/p2p/p2p-clioob.c
_lw6p2p_tentacle_init 24 68 162 src/lib/p2p/p2p-tentacle.c
lw6net_tcp_accept 24 61 125 src/lib/net/net-tcp.c
_lw6p2p_node_client_join 24 60 145 src/lib/p2p/p2p-node.c
lw6dyn_dlopen_backend 24 59 155 src/lib/dyn/dyn-dl.c
lw6ldr_body_read 24 53 99 src/lib/ldr/ldr-body.c
lw6ldr_texture_read 24 47 122 src/lib/ldr/ldr-texture.c
lw6map_style_is_same 24 25 31 src/lib/map/map-style.c
lw6_register_funcs_ker 24 25 34 src/lib/lw6-funcsker.c
lw6_register_funcs_hlp 24 25 34 src/lib/lw6-funcshlp.c
lw6sys_log 27 61 135 src/lib/sys/sys-log.c
_test_hexa 23 97 182 src/lib/ker/ker-test.c
_test_node_api_node2_callback 23 92 169 src/lib/p2p/p2p-test.c
_find_cylinder_limits 23 86 89 src/lib/gfx/mod-gl1/gl1-menu/gl1-cylinder/gl1-cylinder-pick.c
_lw6pil_compute_thread_func 23 84 184 src/lib/pil/pil-compute.c
_tentacle_with_backends 23 77 173 src/lib/p2p/p2p-test.c
lw6dsp_update 23 60 144 src/lib/dsp/dsp-display.c
_dir_if_not_found 23 60 114 src/lib/sys/sys-options.c
lw6ldr_hints_set 23 50 106 src/lib/ldr/ldr-hints.c
lw6ldr_hints_get 23 48 98 src/lib/ldr/ldr-hints.c
_mod_httpd_process_oob 23 46 136 src/lib/srv/mod-httpd/mod-httpd-oob.c
_pop_map_state 23 41 72 src/lib/ker/ker-hexa.c
lw6hlp_list 23 11 32 src/lib/hlp/hlp-list.c
_api_with_backends 22 91 135 src/lib/p2p/p2p-test.c
_mod_http_get 22 71 207 src/lib/cli/mod-http/mod-http-get.c
_command_parse 22 68 130 src/lib/pil/pil-command.c
_lw6net_log_init 22 44 94 src/lib/net/net-log.c
_lw6dat_stack_seq2serial 22 35 106 src/lib/dat/dat-stack.c
lw6gui_button_update_repeat 22 22 63 src/lib/gui/gui-button.c
lw6net_tcp_connect 29 74 214 src/lib/net/net-tcp.c
_mod_httpd_response_send 26 92 147 src/lib/srv/mod-httpd/mod-httpd-response.c
_poll 23 67 151 src/lib/dsp/dsp-thread.c
mod_gl1_utils_set_video_mode 23 105 215 src/lib/gfx/mod-gl1/gl1-utils/gl1-utils-mode.c
_mod_gles2_set_video_mode 23 101 215 src/lib/gfx/mod-gles2/mod-gles2-mode.c
_lw6ldr_bw_read 21 83 161 src/lib/ldr/ldr-bw.c
_lw6dsp_thread_func 21 78 155 src/lib/dsp/dsp-thread.c
_mod_soft_init 21 54 119 src/lib/gfx/mod-soft/mod-soft-setup.c
_mod_gles2_init 21 54 119 src/lib/gfx/mod-gles2/mod-gles2-setup.c
lw6map_weapon_key_to_index 21 43 92 src/lib/map/map-weapon.c
lw6gui_coords_fix_xy_float 21 39 87 src/lib/gui/gui-coord.c
lw6msg_word_first_x 21 31 72 src/lib/msg/msg-word.c
_lw6hlp_populate_references 21 22 28 src/lib/hlp/hlp-ref.c
_prepare_update_param_bootstrap 21 129 221 src/lib/lw6-funcsdsp.c
_stage1 21 104 171 src/lib/tsk/tsk-loader.c
lw6msg_envelope_generate 21 54 126 src/lib/msg/msg-envelope.c
_lw6ker_map_struct_sanity_check 21 52 90 src/lib/ker/ker-mapstruct.c
lw6img_screenshot_new 20 84 148 src/lib/img/img-screenshot.c
_lw6dat_stack_get_miss 20 47 107 src/lib/dat/dat-stack.c
_new_entry 20 34 88 src/lib/ldr/ldr-dir.c
lw6sys_escape_http_uri 20 29 60 src/lib/sys/sys-escape.c
_test_menu 19 98 195 src/lib/gui/gui-test.c
lw6map_body_check_and_fix_holes 19 96 129 src/lib/map/map-body.c
_do_test_envelope 19 77 200 src/lib/msg/msg-test.c
lw6net_tcp_recv 19 55 114 src/lib/net/net-tcp.c
_mod_brute_next_move 19 55 93 src/lib/bot/mod-brute/mod-brute-move.c
_lw6pil_pilot_new 19 53 106 src/lib/pil/pil-pilot.c
_lw6p2p_db_open 19 49 118 src/lib/p2p/p2p-db.c
_fix_library_path 19 48 123 src/lib/lw6-fix.c
lw6net_recv_lines_udp 19 47 85 src/lib/net/net-line.c
_lw6p2p_node_update_peer_info_x 19 44 96 src/lib/p2p/p2p-node.c
lw6gfx_create_backend 19 44 113 src/lib/gfx/gfx-register.c
lw6bot_create_backend 19 44 101 src/lib/bot/bot-register.c
lw6msg_utils_parse_key_value_to_ptr 19 42 72 src/lib/msg/msg-utils.c
_mod_httpd_analyse_tcp 19 41 112 src/lib/srv/mod-httpd/mod-httpd-handshake.c
_display_gauges 18 95 160 src/lib/gfx/mod-gl1/gl1-hud/gl1-floating/gl1-floating-display.c
_test_pilot 18 86 165 src/lib/pil/pil-test.c
_lw6ldr_rgba_read_png 18 78 158 src/lib/ldr/ldr-rgba.c
lw6sys_str_reformat 18 52 92 src/lib/sys/sys-str.c
_lw6dat_stack_shift 18 50 131 src/lib/dat/dat-stack.c
_lw6ker_map_state_apply_cursors 18 47 106 src/lib/ker/ker-mapstate.c
_mod_tcpd_process_oob 18 46 106 src/lib/srv/mod-tcpd/mod-tcpd-oob.c
lw6cli_create_backend 18 45 107 src/lib/cli/cli-register.c
lw6srv_create_backend 18 45 104 src/lib/srv/srv-register.c
base64_decode_ctx 18 37 77 src/lib/glb/gnulib-base64.c
lw6net_if_guess_local 18 35 94 src/lib/net/net-if.c
lw6msg_word_first 18 31 72 src/lib/msg/msg-word.c
lw6sys_find_in_dir_and_path 18 30 63 src/lib/sys/sys-path.c
_pop_armies 18 29 46 src/lib/ker/ker-hexa.c
_pop_texture 18 25 42 src/lib/map/map-hexa.c
_lw6ker_cursor_sanity_check 18 15 45 src/lib/ker/ker-cursor.c
_test_dvec4 18 122 219 src/lib/mat/mat-test.c
_test_fvec4 18 122 219 src/lib/mat/mat-test.c
_test_dvec3 18 110 207 src/lib/mat/mat-test.c