Skip to content

Add explicit symbol name for isKResult function on Readme #4807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

0xkohe
Copy link

@0xkohe 0xkohe commented May 5, 2025

This PR updates the definition of the isKResult function by explicitly specifying its symbol name using [symbol(isKResult)].
Previously, [symbol] was used without an argument, which could lead to an Error like

[Error] Compiler: Definition is missing function isKResult required for
strictness. Please either declare sort KResult or declare 'syntax Bool ::=
isKResult(K) [symbol(isKResult), function]'
  while executing phase "resolving heat and cool attributes" on sentence at
        Source(/app/lesson-14-a.k/lesson-14-a.k)
        Location(30,8,30,55)

@ehildenb
Copy link
Member

ehildenb commented May 5, 2025

@0xkohe did you find this when compiling the tutorial programs?

@0xkohe
Copy link
Author

0xkohe commented May 6, 2025

@ehildenb

I compiled this yesterday using Docker image kframework-k:ubuntu-noble-7.1.248 on Ubuntu 22.04.5 LTS.

To be more specific, I used the following Dockerfile.

FROM runtimeverificationinc/kframework-k:ubuntu-noble-7.1.248
RUN apt-get update && apt-get install -y vim gdb
RUN mkdir -p /root/.config/gdb && \
echo "set auto-load safe-path /" >> /root/.config/gdb/gdbinit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants