non-evaluator attribute requires manual propagation across entire call chain
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 591
- Forks
- 163
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de runtimeverification/k
-
Introduce composable symbolic execution interface in pyxQuizá libre de nuevo @Stevengre la tomó hace 98 días y no hay ningún pull request abierto. Abierto
runtimeverification/k#4939 · 1 asignado ·
-
Concolic ExplorerAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 32/100
runtimeverification/k#4937 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
runtimeverification/k#4936 ·
-
Accelerating all-path reachability proofs with one-path reachability proofsQuizá libre de nuevo @Stevengre la tomó hace 104 días y no hay ningún pull request abierto. Abiertotype:epic
runtimeverification/k#4934 · 4 comentarios · 1 asignado ·
-
Support progressive depth halving as a generic policy in `Prover.advance_proof`Quizá libre de nuevo @Stevengre la tomó hace 123 días y no hay ningún pull request abierto. Abierto
runtimeverification/k#4924 · 1 asignado ·
Todos los issues de runtimeverification/k
Issues similares
-
Claiming namespace `apoint`Abiertonamespace operations
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
EclipseFdn/open-vsx.org#13573 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
collective/icalendar#1854 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
rancher/rancher-ai-agent#412 ·
Los mantenedores suelen responder en 6 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
TUDelftGeodesy/DePSI#134 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
HenriquesLab/rxiv-maker#335 ·