Skip to content

Facade proof: a return reason that names the function itself with no cause ('SDL_GetEnvironment is unproven (SDL_GetEnvironment is unproven ())'), 126 functions in sdl #3172

Closed

Description

@ehartford

Part of #3115; cluster from the #3116 survey (docs/spec/toolchain/facade-coverage.md): 'returns a record pointer, unproven: a callee is unproven: no reason given (the proof names itself)', 126 functions in sdl (its dynapi _REAL aliases), 1 in raylib (stb_vorbis). The proof chases a callee that is the function's own alias and gives up with an empty reason. Fix the alias resolution (a function whose body is a jump to X_REAL is X_REAL) and never emit an empty cause.

Activity

  1. added
    bug
    on Nov 9, 2026
  2. added 2 commits that reference this issue on Nov 9, 2026
  3. ehartford commented on Nov 9, 2026

    @ehartford
    ContributorAuthor

    Fixed in #3185 (main b6f0899): a call through a function-pointer field is an indirect source; the verdict names the field. Fixture conan_facade_jump_table_callee_test.

  4. ehartford commented on Nov 9, 2026

    @ehartford
    ContributorAuthor

    Measured after the merge (survey rerun on main 48fd633): sdl's archive 504'd this time so its 126 self-named reasons could not be re-counted, but yyjson shows the expected other side of the fix: 5 producers that were presented (yyjson_mut_doc_new, yyjson_alc_dyn_new, …) are now raw with 'returns what the function pointer field malloc returns, which no unit decides'. They allocate through alc->malloc(ctx, size); the old reading matched the field's name against the allocator list, which Law 4 forbids. The honest answer is a registry fact for yyjson's allocator convention (tracked on #3150).

  5. added 4 commits that reference this issue on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions