Skip to content

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
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.

2 participants