Open Source Routing Machine - C++ backend
This report summarizes scanner evidence for Project-OSRM/osrm-backend, a C++ project with 8,187 GitHub stars. SynthScan examined 160,504 lines of code across 880 source files, recording 341 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 2.2 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 325 finding(s).
Are imports declared and package/API names verified? 13 finding(s).
Are wrappers, guards, and repeated structures necessary? 44 finding(s).
Which changes need focused human review? 341 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 341 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pyproject.toml | 121 | COMMENT | |
| LOW | test/python/test_table.py | 61 | # ) | COMMENT |
| LOW | test/python/test_table.py | 81 | # destinations = [0,1], | COMMENT |
| LOW | test/python/test_match.py | 181 | # match_params = osrm.MatchParameters( | COMMENT |
| LOW | unit_tests/contractor/graph_contractor.cpp | 1 | #include "contractor/graph_contractor.hpp" | COMMENT |
| LOW | unit_tests/util/coordinate_calculation.cpp | 161 | // | t | COMMENT |
| LOW | unit_tests/util/fingerprint.cpp | 1 | #include "util/fingerprint.hpp" | COMMENT |
| LOW | unit_tests/util/entry_class.cpp | 21 | BOOST_CHECK(entries.activate(0)); | COMMENT |
| LOW | unit_tests/util/rectangle.cpp | 1 | #include "util/rectangle.hpp" | COMMENT |
| LOW | unit_tests/util/packed_vector.cpp | 1 | #include "util/packed_vector.hpp" | COMMENT |
| LOW | unit_tests/util/static_rtree.cpp | 1 | #include "util/static_rtree.hpp" | COMMENT |
| LOW | unit_tests/partitioner/cell_storage.cpp | 181 | {9, 8}, // i i i i | COMMENT |
| LOW | unit_tests/partitioner/cell_storage.cpp | 201 | // 11 b b i i | COMMENT |
| LOW | unit_tests/server/parameters_parser.cpp | 1 | #include "server/api/parameters_parser.hpp" | COMMENT |
| LOW | unit_tests/server/json_parameters_parser.cpp | 1 | #include "server/api/json_parameters_parser.hpp" | COMMENT |
| LOW | unit_tests/server/request_handler.cpp | 1 | #include "server/request_handler.hpp" | COMMENT |
| LOW | unit_tests/library/limits.cpp | 1 | #include <boost/test/unit_test.hpp> | COMMENT |
| LOW | unit_tests/library/route.cpp | 1 | #include <boost/test/unit_test.hpp> | COMMENT |
| LOW | unit_tests/library/tile.cpp | 1 | #include <boost/test/unit_test.hpp> | COMMENT |
| LOW | unit_tests/library/extract.cpp | 1 | #include <boost/test/unit_test.hpp> | COMMENT |
| LOW | unit_tests/updater/turn_id_uniqueness.cpp | 1 | #include "extractor/edge_based_edge.hpp" | COMMENT |
| LOW | unit_tests/extractor/restriction_graph.cpp | 401 | BOOST_AUTO_TEST_CASE(partially_nested_restriction) | COMMENT |
| LOW | unit_tests/extractor/car_profile_width_penalty.cpp | 1 | #include "extractor/extraction_node.hpp" | COMMENT |
| LOW | unit_tests/extractor/area/visibility_graph.cpp | 181 | // | COMMENT |
| LOW | unit_tests/extractor/area/util.cpp | 61 | COMMENT | |
| LOW | unit_tests/extractor/area/util.cpp | 101 | // point carries a 1 nm (sub-resolution) perturbation. This is a DETERMINISTIC | COMMENT |
| LOW | unit_tests/extractor/area/util.cpp | 141 | // A segment that ends on, or passes through, the endpoint of another does not cross it. | COMMENT |
| LOW | unit_tests/extractor/area/util.cpp | 181 | BOOST_CHECK(intersect(&a, &b, &g, &h)); | COMMENT |
| LOW | unit_tests/extractor/area/area_mesher.cpp | 1 | #include "extractor/area/area_mesher.hpp" | COMMENT |
| LOW | example/example.cpp | 1 | #include "osrm/match_parameters.hpp" | COMMENT |
| LOW | include/nodejs/node_osrm_support.hpp | 1 | #ifndef OSRM_BINDINGS_NODE_SUPPORT_HPP | COMMENT |
| LOW | include/nodejs/node_osrm_support.hpp | 21 | #include <napi.h> | COMMENT |
| LOW | include/contractor/contracted_edge_container.hpp | 1 | #ifndef OSRM_CONTRACTOR_CONTRACTED_EDGE_CONTAINER_HPP | COMMENT |
| LOW | include/util/dynamic_graph.hpp | 1 | #ifndef DYNAMICGRAPH_HPP | COMMENT |
| LOW | include/util/bearing.hpp | 1 | #ifndef BEARING_HPP | COMMENT |
| LOW | include/util/bearing.hpp | 61 | // | COMMENT |
| LOW | include/util/packed_vector.hpp | 1 | #ifndef PACKED_VECTOR_HPP | COMMENT |
| LOW | include/util/browse_resistant_cache.hpp | 1 | #ifndef OSRM_UTIL_BROWSE_RESISTANT_CACHE_HPP | COMMENT |
| LOW | include/util/isatty.hpp | 1 | #ifndef ISATTY_HPP | COMMENT |
| LOW | include/util/graph_utils.hpp | 41 | { | COMMENT |
| LOW | include/util/json_renderer.hpp | 1 | // based on | COMMENT |
| LOW | include/util/static_rtree.hpp | 1 | #ifndef STATIC_RTREE_HPP | COMMENT |
| LOW | include/util/static_rtree.hpp | 21 | COMMENT | |
| LOW | include/util/static_rtree.hpp | 421 | COMMENT | |
| LOW | include/util/opening_hours.hpp | 1 | #ifndef OSRM_OPENING_HOURS_HPP | COMMENT |
| LOW | include/util/group_by.hpp | 1 | #ifndef OSRM_GROUP_BY | COMMENT |
| LOW | include/util/static_graph.hpp | 1 | #ifndef STATIC_GRAPH_HPP | COMMENT |
| LOW | include/util/debug.hpp | 1 | #ifndef OSRM_UTIL_DEBUG_HPP_ | COMMENT |
| LOW | include/util/vector_view.hpp | 1 | #ifndef UTIL_VECTOR_VIEW_HPP | COMMENT |
| LOW | include/util/indexed_data.hpp | 1 | #ifndef OSRM_INDEXED_DATA_HPP | COMMENT |
| LOW | include/util/fingerprint.hpp | 1 | #ifndef FINGERPRINT_H | COMMENT |
| LOW | include/util/geojson_debug_logger.hpp | 1 | #ifndef OSRM_GEOJSON_DEBUG_LOGGER_HPP | COMMENT |
| LOW | include/util/tarjan_scc.hpp | 1 | #ifndef TARJAN_SCC_HPP | COMMENT |
| LOW | include/util/timezones.hpp | 1 | #ifndef OSRM_TIMEZONES_HPP | COMMENT |
| LOW | include/util/meminfo.hpp | 41 | #endif | COMMENT |
| LOW | include/util/exception_utils.hpp | 1 | #ifndef EXCEPTION_UTILS_HPP | COMMENT |
| LOW | include/util/hilbert_value.hpp | 1 | #ifndef HILBERT_VALUE_HPP | COMMENT |
| LOW | include/util/hilbert_value.hpp | 21 | // state is of x and y are to result state | COMMENT |
| LOW | include/util/guidance/name_announcements.hpp | 1 | #ifndef OSRM_UTIL_GUIDANCE_NAME_ANNOUNCEMENT_HPP_ | COMMENT |
| LOW | include/util/guidance/name_announcements.hpp | 161 | (!from_name.empty() && from_ref.empty() && to_name.empty() && !to_ref.empty()) || | COMMENT |
| 210 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/python/test_table.py | 99 | def test_table_withoutwaypoints(self): | CODE |
| LOW | test/python/test_table.py | 106 | def test_table_fallbackspeeds(self): | CODE |
| LOW | test/python/test_table.py | 117 | def test_table_invalidfallbackspeeds(self): | CODE |
| LOW | test/python/test_table.py | 131 | def test_table_invalidscalefactor(self): | CODE |
| LOW⚡ | test/python/test_trip.py | 26 | def test_trip_geometrycompression(self): | CODE |
| LOW⚡ | test/python/test_trip.py | 35 | def test_trip_nogeometrycompression(self): | CODE |
| LOW⚡ | test/python/test_trip.py | 42 | def test_trip_speedannotations(self): | CODE |
| LOW | test/python/test_trip.py | 64 | def test_trip_severalannotations(self): | CODE |
| LOW⚡ | test/python/test_match.py | 51 | def test_match_no_geometrycompression(self): | CODE |
| LOW⚡ | test/python/test_match.py | 58 | def test_match_geometrycompression(self): | CODE |
| LOW⚡ | test/python/test_match.py | 66 | def test_match_speedannotations(self): | CODE |
| LOW | test/python/test_match.py | 91 | def test_match_severalannotations(self): | CODE |
| LOW⚡ | test/python/test_match.py | 166 | def test_match_invalidtimestamps(self): | CODE |
| LOW⚡ | test/python/test_match.py | 172 | def test_match_without_motorways(self): | CODE |
| LOW⚡ | test/python/test_match.py | 180 | # def test_match_invalidwaypoints_needtwo(self): | COMMENT |
| LOW⚡ | test/python/test_match.py | 190 | # def test_match_invalidwaypoints_needcoordindices(self): | COMMENT |
| LOW⚡ | test/python/test_match.py | 200 | # def test_match_invalidwaypoints_ordermatters(self): | COMMENT |
| LOW⚡ | test/python/test_match.py | 209 | def test_match_invalidwaypoints_mustcorrespond(self): | CODE |
| LOW⚡ | test/python/test_match.py | 216 | def test_match_error_on_splittrace(self): | CODE |
| LOW | test/python/test_index.py | 14 | def test_throwifnecessarynotexist(self): | CODE |
| LOW | test/python/test_index.py | 70 | def test_datasetnamenotstring(self): | CODE |
| LOW | test/python/test_route.py | 68 | def test_route_geometrycompression(self): | CODE |
| LOW | test/python/test_route.py | 89 | def test_route_speedannotations(self): | CODE |
| LOW | test/python/test_route.py | 121 | def test_route_severalannotations(self): | CODE |
| LOW | test/python/test_route.py | 215 | def test_route_validapproaches(self): | CODE |
| LOW | test/python/test_route.py | 229 | def test_route_invalidapproach(self): | CODE |
| LOW | test/python/test_route.py | 233 | def test_route_customlimitsmld(self): | CODE |
| LOW | test/python/test_route.py | 256 | def test_route_invalidwaypoints(self): | CODE |
| LOW | test/python/test_nearest.py | 21 | def test_nearest_numberofresults(self): | CODE |
| LOW | test/python/test_nearest.py | 28 | def test_nearest_validbearings(self): | CODE |
| LOW | test/python/test_nearest.py | 48 | def test_nearest_validapproaches(self): | CODE |
| LOW | test/python/test_nearest.py | 57 | def test_nearest_invalidapproach(self): | CODE |
| LOW | include/server/request_handler.hpp | 32 | class RequestHandler | CODE |
| LOW | include/server/connection.hpp | 22 | class RequestHandler; | CODE |
| LOW | features/lib/utils.js | 15 | function verifyExistenceOfBinaries(env) { | CODE |
| LOW | scripts/ci/post_benchmark_results.py | 43 | def collect_benchmark_results(base_folder, pr_folder): | CODE |
| LOW | scripts/ci/e2e_benchmark.py | 79 | def bootstrap_confidence_interval(data, num_samples=1000, confidence_level=0.95): | CODE |
| LOW | scripts/ci/e2e_benchmark.py | 89 | def calculate_confidence_interval(data, min_is_best=True): | CODE |
| LOW | scripts/ci/bench.js | 142 | function bootstrapConfidenceInterval(data, numSamples = 1000, confidenceLevel = 0.95) { | CODE |
| LOW | scripts/ci/bench.js | 166 | function calculateConfidenceInterval(data) { | CODE |
| LOW | scripts/debug/area_snapping_report.py | 169 | def two_entrances_at_the_bottom(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/gdb_printers.py | 82 | CODE | |
| LOW | src/python/osrm/__init__.py | 2 | CODE | |
| LOW | src/python/osrm/__init__.py | 2 | CODE | |
| LOW | src/python/osrm/__init__.py | 2 | CODE | |
| LOW | src/python/osrm/__init__.py | 2 | CODE | |
| LOW | src/python/osrm/__init__.py | 2 | CODE | |
| LOW | src/python/osrm/__init__.py | 2 | CODE | |
| LOW | src/python/osrm/__init__.py | 2 | CODE | |
| LOW | src/python/osrm/__init__.py | 2 | CODE | |
| LOW | src/python/osrm/__init__.py | 2 | CODE | |
| LOW | src/python/osrm/__init__.py | 2 | CODE | |
| LOW | src/python/osrm/__init__.py | 2 | CODE | |
| LOW | src/python/osrm/__init__.py | 2 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | package-lock.json | 12025 | "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz", | CODE |
| MEDIUM | package-lock.json | 12610 | "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-2.0.4.tgz", | CODE |
| MEDIUM | features/step_definitions/trip.js | 76 | // trip order. This is robust against route-geometry details and still | COMMENT |
| MEDIUM | src/updater/updater.cpp | 490 | // we utilize the via node (first on ways) to represent the turn restriction | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/routed_benchmark.py | 75 | CODE | |
| LOW | scripts/routed_benchmark.py | 100 | CODE | |
| LOW | scripts/routed_benchmark.py | 159 | CODE | |
| LOW | scripts/contractor_benchmark.py | 34 | CODE | |
| LOW | scripts/contractor_benchmark.py | 83 | CODE | |
| LOW | scripts/ci/download_gps_traces.py | 7 | CODE | |
| LOW | scripts/ci/e2e_benchmark.py | 47 | CODE | |
| LOW | scripts/debug/area_snapping_report.py | 609 | CODE | |
| LOW | scripts/debug/area_mesh_stages.py | 96 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/ci/download_gps_traces.py | 40 | print(f"Error fetching data for bbox {bbox_str}: {response.status_code} {response.text}", file=sys.s | CODE |
| MEDIUM | scripts/ci/download_gps_traces.py | 51 | print(f"Error parsing GPX data: {e}", file=sys.stderr) | CODE |
| LOW | scripts/debug/area_snapping_report.py | 304 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | include/util/static_rtree.hpp | 273 | // Step 1 - create a vector of Hilbert Code/original position pairs | COMMENT |