Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[K-Bug] Broken MInt literal parsing

Đang mở
#4,609 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
compilers

Hướng nghiên cứu

Reproduce the issue with the shown a.k definition using kompile and krun, then compare the krun result with kast parsing of 100p64. Trace the krun path responsible for MInt literal evaluation; done means the input literal remains 100p64 and the displayed k cell matches the expected result.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

What component is the issue in?

None

Which command
  • kompile
  • kast
  • krun
  • kprove
  • kprovex
  • ksearch
What K Version?

v7.1.104-0-g34892bf1cc

Operating System

Linux

K Definitions (If Possible)

module A-SYNTAX
imports INT
imports MINT

syntax MInt{64}
syntax A ::= a(Int, MInt{64})

endmodule

module A
imports A-SYNTAX
syntax A ::= b(MInt{64}, MInt{64}, MInt{64})

rule a(I, M) => b(Int2MInt(I), M, 100p64)

configuration <k> $PGM:A </k>

endmodule

Steps to Reproduce
kompile a.k
krun -cPGM='a(100, 100p64)'

Note that the result is

<k>
  b ( 100p64 , 6p64 , 100p64 ) ~> .K
</k>

i.e., 100p64 in the input was parsed, for some reason as 6p64. Note that 100p64 is parsed properly in the k file. Also, a simple kast call parses the value properly:

$ kast -e 'a(100,100p64)'
`a(_,_)_A-SYNTAX_A_Int_MInt`(#token("100","Int"),#token("100p64","MInt{64}"))
Expected Results
b ( 100p64 , 100p64 , 100p64 ) ~> .K
Ngôn ngữ chính
Python
Star
591
Fork
163
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của runtimeverification/k

Tất cả issue của runtimeverification/k

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.