⚡ Sangsakala Proxy 🏠 Home
Skip to content

Name refined call results after the method, as the other generated values - #483

Merged
CatarinaGamboa merged 1 commit into
mainfrom
study-call-result-names
Nov 4, 2026
Merged

CatarinaGamboa merged 1 commit into
mainfrom
study-call-result-names

Conversation

@CatarinaGamboa

Copy link
Copy Markdown
Collaborator

Follow-up to #477 (refs #373).

Problem

The result of a call to a method with a contract was still named #<method>_N, so messages showed it like a program variable: undoManager⁵⁵⁷ == getUndoManager⁵⁵⁵. All other generated values got descriptive names in #477.

Change

MethodsFunctionsChecker names those results with GeneratedNames.valueOf, like the other generated values: #<method>_result, and #new_<Class> for a refined constructor.

Study exercise Before After
A1_56 JabRef EditCommand.java:69 undoManager⁵⁵⁷ == getUndoManager⁵⁵⁵ undoManager⁵⁵⁷ == #getUndoManager_result⁵⁵⁵
A1_19 AccessKeyGenerator.java:17 dceSecurityNameRandom(randomUUID³⁸¹) dceSecurityNameRandom(#randomUUID_result³⁸¹)

Checked on the four exercises-oss study workspaces: only generated names change; no error appears, disappears or moves. Nothing depends on the old format: state checks compare the stored return-variable name, hints use method names, and the simplification and counterexample code check only the ## prefix.

Tests

  • TestGeneratedNames: the three condition messages now read #ready_result instead of ready.
  • Full suite locally: 690 tests, 0 failures. Codex review on the change: no findings.

🤖 Generated with Claude Code

…lues

The result of a call to a method with a contract was named #<method>_N
and shown as getUndoManager⁵⁵⁵, like a program variable. It is now a
generated name, #getUndoManager_result⁵⁵⁵, as the results of the calls
inside an expression already were.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@CatarinaGamboa CatarinaGamboa added the study Needed before the error-message user study label Nov 4, 2026
@CatarinaGamboa
CatarinaGamboa merged commit 03b2d8b into main Nov 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

study Needed before the error-message user study

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant