Skip to content

Conversation

@blackboxprogramming
Copy link
Owner

Summary

  • add a --trace CLI flag to show step-by-step execution of a Turing machine
  • implement optional tracing in the simulator runtime
  • document how to use the trace flag in the README

Testing

  • python3 utm.py machines/incrementer.json --tape "1" --max-steps 10 --trace

Codex Task

Copilot AI review requested due to automatic review settings December 3, 2025 03:06
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copy link

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 adds an optional execution tracing feature to the Universal Turing Machine simulator, allowing users to observe step-by-step execution for debugging and educational purposes.

Key Changes:

  • Added a --trace CLI flag that enables step-by-step execution output
  • Enhanced the run() method with an optional trace parameter that prints transition details for each step
  • Updated README documentation with a usage example of the trace feature

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
utm.py Added trace parameter to the run() method, implemented trace output logic showing state transitions, and added --trace CLI argument
README.md Added documentation and usage example demonstrating the --trace flag with the incrementer machine

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants