Back to Liquid War 6 Homepage

Liquid War 6 Cyclomatic Complexity Report

Report generated at: Sat Apr 19 04:24:22 CEST 2014

Resume

Total number of functions 4336
Number of low risk functions 4006
Number of moderate risk functions 215
Number of high risk functions 104
Number of untestable functions 11

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 773 src/lib/map/map-rules.c
lw6hlp_process_non_run_options 146 435 749 src/lib/hlp/hlp-options.c
lw6_register_funcs_sys 122 123 450 src/lib/lw6-funcssys.c
_init_nodes 70 103 297 src/lib/p2p/p2p-test.c
lw6map_style_set 66 136 298 src/lib/map/map-style.c
lw6_register_funcs_gui 64 65 206 src/lib/lw6-funcsgui.c
lw6map_style_get 59 120 266 src/lib/map/map-style.c
key_up 57 33 110 src/lib/gfx/shared-sdl/shared-sdl-event.c
pop_param 56 63 194 src/lib/map/map-hexa.c
_analyse_info 56 189 437 src/lib/msg/msg-cmd.c
push_param 54 60 189 src/lib/map/map-hexa.c
_test_more 50 213 676 src/lib/dat/dat-test.c
_test_stack 50 171 510 src/lib/dat/dat-test.c
_test_list 49 249 387 src/lib/sys/sys-test.c
draft_zones_group 48 82 231 src/lib/ker/ker-mapstruct.c
lw6gui_viewport_init 45 105 280 src/lib/gui/gui-viewport.c
lw6msg_envelope_analyse 44 112 362 src/lib/msg/msg-envelope.c
_update_msg_list_by_seq_with_search 42 97 282 src/lib/dat/dat-stack.c
_lw6ker_map_state_frag 42 80 181 src/lib/ker/ker-mapstate.c
_test_tcp 42 103 265 src/lib/net/net-test.c
lw6_register_funcs_pil 41 42 144 src/lib/lw6-funcspil.c
_lw6p2p_recv_process 41 146 598 src/lib/p2p/p2p-recv.c
_lw6dat_stack_put_atom 40 95 222 src/lib/dat/dat-stack.c
_display 40 81 197 src/lib/gfx/mod-gl1/mod-gl1-backend.c
_test_dmat4 39 125 261 src/lib/mat/mat-test.c
_test_fmat4 39 125 261 src/lib/mat/mat-test.c
_lw6ker_score_array_update 39 119 238 src/lib/ker/ker-scorearray.c
_test_str 39 118 263 src/lib/sys/sys-test.c
_lw6p2p_node_new 38 75 201 src/lib/p2p/p2p-node.c
pop_map_struct 38 62 153 src/lib/ker/ker-hexa.c
lw6_process_non_run_options 38 129 259 src/lib/lw6-options.c
_test_dmat3 37 125 257 src/lib/mat/mat-test.c
_test_fmat3 37 125 257 src/lib/mat/mat-test.c
_test_oob 37 122 346 src/lib/msg/msg-test.c
lw6map_teams_set 36 76 177 src/lib/map/map-teams.c
_test_cmd 36 193 485 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 144 src/lib/ker/ker-mapstruct.c
_test_community 34 127 361 src/lib/nod/nod-test.c
lw6msg_oob_analyse_request 32 82 161 src/lib/msg/msg-oob.c
_test_warehouse 32 166 462 src/lib/dat/dat-test.c
_test_dmat2 32 114 235 src/lib/mat/mat-test.c
_test_fmat2 32 114 235 src/lib/mat/mat-test.c
_fix_one_way 32 102 178 src/lib/ker/ker-mapstruct.c
_mod_gl1_init 30 85 221 src/lib/gfx/mod-gl1/mod-gl1-setup.c
lw6ldr_resampler_init 30 83 208 src/lib/ldr/ldr-resampler.c
lw6net_tcp_send 30 69 195 src/lib/net/net-tcp.c
mod_gl1_utils_texture_1x1_update 30 40 178 src/lib/gfx/mod-gl1/gl1-utils/gl1-utils-texture1x1.c
_test_dump 30 107 287 src/lib/pil/pil-test.c
key_down 29 23 61 src/lib/gfx/mod-caca/mod-caca-event.c
key_down 29 23 61 src/lib/gfx/shared-sdl/shared-sdl-event.c
_test_hexa 28 85 234 src/lib/sys/sys-test.c
lw6_register_funcs_p2p 28 29 95 src/lib/lw6-funcsp2p.c
lw6map_dup 28 118 259 src/lib/map/map-dup.c
_test_word 28 117 357 src/lib/msg/msg-test.c
lw6map_teams_get 27 56 126 src/lib/map/map-teams.c
_lw6ldr_guess_colors 27 122 236 src/lib/ldr/ldr-color.c
_lw6ker_map_state_move_fighters 27 117 243 src/lib/ker/ker-mapstate.c
_lw6pil_compute_thread_func 26 90 233 src/lib/pil/pil-compute.c
init_places 26 87 161 src/lib/ker/ker-mapstruct.c
_lw6ker_move_update_fighters_universal 26 85 219 src/lib/ker/ker-move.c
_test_line 26 79 167 src/lib/net/net-test.c
_mod_gl1_menu_cylinder_display_meta 26 71 243 src/lib/gfx/mod-gl1/gl1-menu/gl1-cylinder/gl1-cylinder-display.c
lw6pil_coords_fix 26 59 131 src/lib/pil/pil-coords.c
lw6_register_funcs 26 28 49 src/lib/lw6-funcs.c
lw6_register_funcs_map 26 27 92 src/lib/lw6-funcsmap.c
lw6gui_menu_is_same 26 24 56 src/lib/gui/gui-menu.c
write_xml 33 71 155 src/lib/cfg/cfg-xml.c
_test_path 25 95 198 src/lib/sys/sys-test.c
lw6ldr_read 25 75 166 src/lib/ldr/ldr-read.c
_lw6nod_const_info_init 25 40 106 src/lib/nod/nod-constinfo.c
_lw6ker_move_get_best_next_pos 24 78 147 src/lib/ker/ker-move.c
_lw6p2p_cli_oob_verify_callback_func 24 70 190 src/lib/p2p/p2p-clioob.c
_lw6p2p_tentacle_init 24 68 203 src/lib/p2p/p2p-tentacle.c
lw6net_tcp_accept 24 61 140 src/lib/net/net-tcp.c
_lw6p2p_node_client_join 24 60 179 src/lib/p2p/p2p-node.c
lw6dyn_dlopen_backend 24 59 246 src/lib/dyn/dyn-dl.c
lw6ldr_body_read 24 53 141 src/lib/ldr/ldr-body.c
lw6ldr_texture_read 24 47 129 src/lib/ldr/ldr-texture.c
lw6map_style_is_same 24 25 37 src/lib/map/map-style.c
lw6_register_funcs_ker 24 25 81 src/lib/lw6-funcsker.c
lw6_register_funcs_hlp 24 25 79 src/lib/lw6-funcshlp.c
lw6sys_log 27 61 145 src/lib/sys/sys-log.c
_test_hexa 23 96 250 src/lib/ker/ker-test.c
_test_node_api_node2_callback 23 89 198 src/lib/p2p/p2p-test.c
dir_if_not_found 23 60 135 src/lib/sys/sys-options.c
lw6dsp_update 23 58 150 src/lib/dsp/dsp-display.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 173 src/lib/srv/mod-httpd/mod-httpd-oob.c
pop_map_state 23 41 90 src/lib/ker/ker-hexa.c
lw6hlp_list 23 11 34 src/lib/hlp/hlp-list.c
_api_with_backends 22 89 163 src/lib/p2p/p2p-test.c
_test_sort 22 78 195 src/lib/sys/sys-test.c
_mod_http_get 22 70 265 src/lib/cli/mod-http/mod-http-get.c
command_parse 22 68 149 src/lib/pil/pil-command.c
_lw6net_log_init 22 44 100 src/lib/net/net-log.c
_lw6dat_stack_seq2serial 22 35 118 src/lib/dat/dat-stack.c
lw6gui_button_update_repeat 22 22 75 src/lib/gui/gui-button.c
lw6net_tcp_connect 29 74 250 src/lib/net/net-tcp.c
_mod_httpd_response_send 26 92 169 src/lib/srv/mod-httpd/mod-httpd-response.c
_mod_gl1_menu_cylinder_pick_item 23 72 165 src/lib/gfx/mod-gl1/gl1-menu/gl1-cylinder/gl1-cylinder-pick.c
poll 23 65 164 src/lib/dsp/dsp-thread.c
mod_gl1_utils_set_video_mode 23 105 253 src/lib/gfx/mod-gl1/gl1-utils/gl1-utils-mode.c
_mod_gles2_set_video_mode 23 101 253 src/lib/gfx/mod-gles2/mod-gles2-mode.c
_lw6ldr_bw_read 21 83 187 src/lib/ldr/ldr-bw.c
_lw6dsp_thread_func 21 78 189 src/lib/dsp/dsp-thread.c
_mod_gles2_init 21 54 142 src/lib/gfx/mod-gles2/mod-gles2-setup.c
_mod_soft_init 21 54 141 src/lib/gfx/mod-soft/mod-soft-setup.c
lw6map_weapon_key_to_index 21 43 92 src/lib/map/map-weapon.c
lw6gui_coords_fix_xy_float 21 39 88 src/lib/gui/gui-coord.c
lw6msg_word_first_x 21 31 75 src/lib/msg/msg-word.c
prepare_update_param_bootstrap 21 129 289 src/lib/lw6-funcsdsp.c
stage1 21 104 189 src/lib/tsk/tsk-loader.c
lw6msg_envelope_generate 21 54 134 src/lib/msg/msg-envelope.c
_lw6ker_map_struct_sanity_check 21 52 104 src/lib/ker/ker-mapstruct.c
lw6img_screenshot_new 20 84 164 src/lib/img/img-screenshot.c
_lw6dat_stack_get_miss 20 47 121 src/lib/dat/dat-stack.c
new_entry 20 34 104 src/lib/ldr/ldr-dir.c
lw6sys_escape_http_uri 20 29 67 src/lib/sys/sys-escape.c
_test_menu 19 97 236 src/lib/gui/gui-test.c
lw6map_body_check_and_fix_holes 19 96 151 src/lib/map/map-body.c
_do_test_envelope 19 77 250 src/lib/msg/msg-test.c
_lw6p2p_tentacle_poll 19 77 199 src/lib/p2p/p2p-tentacle.c
_tentacle_with_backends 19 67 178 src/lib/p2p/p2p-test.c
lw6net_tcp_recv 19 55 137 src/lib/net/net-tcp.c
_mod_brute_next_move 19 55 121 src/lib/bot/mod-brute/mod-brute-move.c
_lw6pil_pilot_new 19 53 125 src/lib/pil/pil-pilot.c
_lw6p2p_db_open 19 49 139 src/lib/p2p/p2p-db.c
_fix_library_path 19 48 125 src/lib/lw6-fix.c
lw6net_recv_lines_udp 19 47 94 src/lib/net/net-line.c
_lw6p2p_node_update_peer_info_x 19 44 100 src/lib/p2p/p2p-node.c
lw6msg_utils_parse_key_value_to_ptr 19 42 75 src/lib/msg/msg-utils.c
_mod_httpd_analyse_tcp 19 41 130 src/lib/srv/mod-httpd/mod-httpd-handshake.c
_display_gauges 18 95 248 src/lib/gfx/mod-gl1/gl1-hud/gl1-floating/gl1-floating-display.c
_test_pilot 18 85 224 src/lib/pil/pil-test.c
_lw6ldr_rgba_read_png 18 78 181 src/lib/ldr/ldr-rgba.c
lw6sys_str_reformat 18 52 93 src/lib/sys/sys-str.c
_lw6dat_stack_shift 18 50 160 src/lib/dat/dat-stack.c
_lw6ker_map_state_apply_cursors 18 47 136 src/lib/ker/ker-mapstate.c
_mod_tcpd_process_oob 18 46 134 src/lib/srv/mod-tcpd/mod-tcpd-oob.c
base64_decode_ctx 18 37 79 src/lib/glb/gnulib-base64.c
lw6net_if_guess_local 18 35 108 src/lib/net/net-if.c
lw6msg_word_first 18 31 74 src/lib/msg/msg-word.c
lw6sys_find_in_dir_and_path 18 30 65 src/lib/sys/sys-path.c
pop_armies 18 29 63 src/lib/ker/ker-hexa.c
pop_texture 18 25 66 src/lib/map/map-hexa.c
_lw6ker_cursor_sanity_check 18 15 55 src/lib/ker/ker-cursor.c
_test_dvec2 17 97 231 src/lib/mat/mat-test.c
_test_fvec2 17 97 231 src/lib/mat/mat-test.c
_mod_soft_set_video_mode 17 74 182 src/lib/gfx/mod-soft/mod-soft-mode.c
_test_manager_ldr 17 69 132 src/lib/tsk/tsk-test.c
_test_x 17 59 214 src/lib/mat/mat-test.c
_do_grease 17 56 107 src/lib/ldr/ldr-grease.c
lw6gui_menu_sync 17 47 118 src/lib/gui/gui-menu.c
file_if_not_found 17 46 92 src/lib/sys/sys-options.c
_lw6sys_bazooka_register_realloc_2 17 45 91 src/lib/sys/sys-bazooka.c
lw6net_tcp_peek 17 44 123 src/lib/net/net-tcp.c
lw6map_coords_fix_xy 17 41 86 src/lib/map/map-coords.c
_send_best_filter 17 41 109 src/lib/p2p/p2p-tentacle.c
_lw6ker_game_state_from_hexa 17 41 88 src/lib/ker/ker-hexa.c
lw6gfx_create_backend 17 36 101 src/lib/gfx/gfx-register.c
lw6bot_create_backend 17 36 89 src/lib/bot/bot-register.c
_mod_ogg_unload_consts 17 33 69 src/lib/snd/mod-ogg/mod-ogg-const.c
_lw6p2p_tentacle_clear 17 32 63 src/lib/p2p/p2p-tentacle.c
_test_display 17 162 266 src/lib/dsp/dsp-test.c
_test_dvec4 17 117 251 src/lib/mat/mat-test.c
_test_fvec4 17 117 251 src/lib/mat/mat-test.c
_test_dvec3 17 105 239 src/lib/mat/mat-test.c
_test_fvec3 17 105 239 src/lib/mat/mat-test.c
joystick_button_index 17 30 73 src/lib/gfx/shared-sdl/shared-sdl-event.c
_test_node_msg 16 75 155 src/lib/p2p/p2p-test.c
_test_url 16 59 126 src/lib/sys/sys-test.c