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] NullPointerException when kompiling simple file

Đang mở
#4,716 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Lĩnh vực
compilers

Hướng nghiên cứu

Start by running kompile on the provided INTEGERS definition under Linux with K v7.1.170, confirming the NullPointerException and capturing its stack trace. Trace the failing compiler entry point and add a regression test for this definition; done means the file compiles successfully without the exception.

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.170

Operating System

Linux

K Definitions (If Possible)

module INTEGERS-SYNTAX
imports INT-SYNTAX

   syntax Addr ::= r" [\\+|\\-] " [token]
   syntax Mulx ::= r" [\\*|/] " [token]

   syntax Exp ::= "(" Exp ")" [bracket]
                  > Int [group(uneg)]
                  > left:
                  Exp Mulx Exp [group(muls), function]
                 | Exp Addr Exp [group(adds), function]

   syntax priority uneg > muls > adds

endmodule

module INTEGERS
imports INTEGERS-SYNTAX
imports INT

   rule A + B => A +Int B
   rule A - B => A -Int B
   rule A * B => A *Int B
   rule A / B => A /Int B

endmodule

Steps to Reproduce

literally just kompile this file and it'll cause the bug

Expected Results

I expected it to compile successfully

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.