Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Valstack Bug

Aperta
#140 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
wasm
Ambito
compilers, testing

Direzione di ricerca

Inizia con il caso di test nell’issue e traccia il comportamento delle asserzioni dello stack del backend Java quando il valstack contiene lo stato #take mostrato. Confronta questo risultato con l’output del backend OCaml; il lavoro è completato quando le asserzioni non valide non hanno tutte esito positivo e il backend OCaml stampa la configurazione completa.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

I have a test case:

(module
  (func (export "unmatch") (result i32) (i64.const 700))
)

(invoke "unmatch")
#assertTopStackExactly < i32 > 123 "dummy test 1"
#assertTopStack < i32 > 456 "dummy test 1"

#clearConfig

The return type of function "unmatch" is not matched with the top of stack, so instead of returning a value, it will keep a #take ( i32 .ValTypes , < i64 > 700 : .ValStack ) ++ .ValStack on the <valstack>.

The interesting thing is that when using Java backend if the <valstack> is at the state above, any stack assertion will pass no matter what value you assert, therefore all assertions becomes useless.

Also, the output of the program above with Ocaml backend is also abnormal. All it outputs is:

#take ( i32  .ValTypes , < i64 > 700 : .ValStack )

, but I think it should output the whole configuration.

Lingua principale
WebAssembly
Stelle
106
Fork
24
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di runtimeverification/wasm-semantics

Tutte le issue di runtimeverification/wasm-semantics

Issue simili

Altre issue su Compilers

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.