Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lukaszcz
Copy link
Collaborator

@lukaszcz lukaszcz commented Sep 4, 2025

  • Simplifies AVM.Program.
  • Renames AVM.Task.Parameters to AVM.Program.Parameters.
  • Removes a few functions which are no longer needed after the refactor.

@lukaszcz lukaszcz self-assigned this Sep 4, 2025
@lukaszcz lukaszcz marked this pull request as ready for review September 4, 2025 11:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the AVM.Program module by simplifying its structure and moving parameter definitions from Task to Program. The main change replaces a complex parameter-threaded program structure with a simpler direct representation that eliminates intermediate parameter handling.

  • Simplifies Program by removing parameter threading and complex conversion functions
  • Moves Task.Parameters to Program.Parameters and updates all references
  • Updates syntax macros to generate simpler program representations

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Tests/Applib/Surface/Program/Syntax.lean Updates test syntax to use simplified call format without class names
Apps/TwoCounter.lean Updates method call syntax to match new simplified format
Applib/Surface/Program/Syntax.lean Simplifies macro rules to generate direct program calls instead of parameter-threaded versions
Applib/Surface/Program.lean Major refactor removing parameter threading and complex conversion logic
Applib/Surface/Member.lean Updates return statement to use simplified syntax
AVM/Task/Translation.lean Updates reference from Task.Parameters to Program.Parameters
AVM/Task/Parameters.lean File deleted as parameters moved to Program module
AVM/Task.lean Updates import and references to use Program.Parameters
AVM/Program/Parameters.lean New file containing moved parameter definitions from Task
AVM/Program.lean Simplifies Program structure removing parameter threading
AVM/Class/Translation.lean Updates to work with simplified Program structure

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@janmasrovira janmasrovira merged commit 5708344 into main Sep 4, 2025
2 checks passed
@janmasrovira janmasrovira deleted the refactor-program branch September 4, 2025 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants