non-evaluator attribute requires manual propagation across entire call chain
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start by finding the original PR or issue that introduced the non-evaluator attribute, then survey its use outside mir-semantics, including the EXPERIMENT-no-llvm-kompile-updated branch. Trace how the Haskell backend sends call chains and requires clauses to the LLVM backend; done means identifying the root cause, choosing a solution direction, and implementing and verifying it.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
The non-evaluator attribute marks a function so it is not evaluated by the LLVM backend. However, in practice, marking a single function as non-evaluator is not enough — every function in the call chain above it must also be manually marked, otherwise the Haskell backend will still send the caller to the LLVM backend, which then encounters a non-evaluator function it cannot handle.
Example:
syntax Int ::= A(Int) [function, non-evaluator]
syntax Int ::= B(Int) [function]
rule B(X) => A(X) +Int 1
Ais markednon-evaluatorBis not markednon-evaluator- When the Haskell backend simplifies
B(42), sinceBis notnon-evaluator, it sendsB(42)to the LLVM backend - The LLVM backend attempts to evaluate, unfolds the rule, and encounters
A(42)— butAisnon-evaluatorand the LLVM backend cannot handle it correctly - Workaround: manually add
non-evaluatortoBas well. But then all callers ofBalso need it, and so on — propagating up the entire call chain
The same issue occurs when a requires clause references a non-evaluator function.
This was discovered in the mir-semantics project (EXPERIMENT-no-llvm-kompile-updated branch), which has many functions unsuitable for LLVM backend execution.
Expected Behavior
non-evaluator should not require manual propagation. Possible directions:
- The compiler automatically analyzes the call graph and propagates the attribute
- The Haskell backend recognizes when a term contains
non-evaluatorfunctions and handles them itself - The LLVM backend gracefully returns unevaluated terms when encountering
non-evaluatorfunctions
Suggested First Steps
Before choosing a solution, some investigation is needed:
- Find the original PR/issue that introduced
non-evaluatorto understand the design intent - Survey
non-evaluatorusage in projects other than mir-semantics — do they encounter the same propagation problem? - Assess the semantics of
non-evaluatorin concrete execution (pure LLVM backend) scenarios (currently a potential concern, no observed issues yet)
Acceptance Criteria
- Research
non-evaluatorintroduction history and usage across projects - Identify root cause and solution direction
- Implement and verify
- Lingua principale
- Python
- Stelle
- 591
- Fork
- 163
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di runtimeverification/k
-
Introduce composable symbolic execution interface in pyxForse di nuovo libera @Stevengre l’ha presa 97 giorni fa e non c’è nessuna pull request aperta. Aperta
runtimeverification/k#4939 · 1 assegnatario ·
-
Concolic ExplorerAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 32/100
runtimeverification/k#4937 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
runtimeverification/k#4936 ·
-
Accelerating all-path reachability proofs with one-path reachability proofsForse di nuovo libera @Stevengre l’ha presa 103 giorni fa e non c’è nessuna pull request aperta. Apertatype:epic
runtimeverification/k#4934 · 4 commenti · 1 assegnatario ·
-
Support progressive depth halving as a generic policy in `Prover.advance_proof`Forse di nuovo libera @Stevengre l’ha presa 123 giorni fa e non c’è nessuna pull request aperta. Aperta
runtimeverification/k#4924 · 1 assegnatario ·
Tutte le issue di runtimeverification/k
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
https://search.utilibre.orgApertainstance instance add
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
searxng/searx-instances#941 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
FluidNumerics/fluid-walk-blocker#89 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno