GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — State hint "with mode == N" uses one example value without checking it always works · Issue #473 · liquid-java/liquidjava

State hint "with mode == N" uses one example value without checking it always works #473

New issue
Copy link
New issue
Copy link
Closed
#474
Closed
State hint "with mode == N" uses one example value without checking it always works#473
#474
Copy link
Labels
bugSomething isn't workingSomething isn't working

Description

@CatarinaGamboa
CatarinaGamboa
opened on Nov 3, 2026
Issue body actions

When a method's `to` state depends on an argument, the hint picks one example argument value and suggests the condition it satisfies, without checking that every value meeting that condition reaches the target state.

Example spec:

```java
@StateRefinement(to = "mode == 2 ? (a(this) || b(this)) : b(this)")
void set(int mode)
```

A later call needing `a(this)` gets the hint "… with mode == 2". After changing the call to `set(2)` the program still fails (the result is only `a || b`), and the same hint comes back.

Expected: suggest an argument condition only when the solver proves the target state holds for all arguments satisfying it; otherwise make no claim.

Found while prototyping the design for #454(b)/#455.

🤖 Generated with Claude Code

Activity

  1. CatarinaGamboa
    added
    bugSomething isn't workingSomething isn't working
    on Nov 3, 2026
  2. CatarinaGamboa
    closed this as completedin 9e4b5e6on Nov 4, 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

    bugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.