Skip to main content

Synopsis

kong eval ANALYSIS_JSON SOURCE_FILE

Description

Compare Kong’s analysis output against ground-truth source code. Computes symbol accuracy (name matching) and type accuracy (signature matching) for each function, then reports aggregate scores.

Arguments

ArgumentTypeRequiredDescription
ANALYSIS_JSONPathYesPath to Kong’s analysis.json output file.
SOURCE_FILEPathYesPath to the ground-truth C source file.

Example

kong eval ./kong_output/analysis.json ./original_source.c
Output:
Binary: binary
Functions: 156 analyzed / 200 in source
Symbol Accuracy: 87.3%
Type Accuracy: 72.1%

Per-Function Scores:
  OK parse_http_header             -> parse_http_header  sym=1.00  type=0.95
  ~~ process_data                  -> process_request    sym=0.60  type=0.45
  NO FUN_00401000                  -> (no match)         sym=0.00  type=0.00

Further reading

Last modified on March 20, 2026