Skip to content

Add execution trace option to UTM#3

Draft
Copilot wants to merge 1 commit intocodex/proceed-with-next-stepsfrom
copilot/sub-pr-2
Draft

Add execution trace option to UTM#3
Copilot wants to merge 1 commit intocodex/proceed-with-next-stepsfrom
copilot/sub-pr-2

Conversation

Copy link

Copilot AI commented Dec 25, 2025

Adds a --trace flag to the Universal Turing Machine simulator for step-by-step execution visibility.

Changes

  • CLI: Added --trace argument to enable execution tracing
  • Runtime: Enhanced run() method with optional trace parameter that prints state transitions, tape contents, and head position at each step
  • Documentation: Added usage example to README

Usage

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

Outputs each transition showing current state, symbol read, symbol written, head movement, and next state.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add execution trace option to UTM Add execution trace option to UTM Dec 25, 2025
@blackboxprogramming blackboxprogramming requested review from Copilot and removed request for blackboxprogramming February 28, 2026 15:04
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.

Copilot wasn't able to review any files in this pull request.


💡 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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants