Skip to content

Semantic search returns no results #7

@keremc

Description

@keremc

Semantic search returns no results.

Steps to reproduce the issue:

  1. Run Goblint & start an HTTP server in the run directory:
$ ./goblint --enable gobview tests/regression/03-practical/06-callback.c && cd run && python3 -m http.server
  1. Open the web UI. Scroll down until you see "Switch to JSON editor" and click it.
  2. Enter the following query and click "Execute":
{"kind":["var"],"target":["name","x"],"find":["uses"],"expression":"x == 5","mode":["Must"]}

If you save the same query in a file (e.g., query.json) and execute the semantic search in the terminal like this, it returns the expected results:

$ ./goblint tests/regression/03-practical/06-callback.c --set 'trans.activated[+]' expeval --set trans.expeval.query_file_name query.json
tests/regression/03-practical/06-callback.c:9:3-9:8 [16587]
tests/regression/03-practical/06-callback.c:19:3-19:17 [16685]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions