Opened 17 years ago

Closed 17 years ago

#6 closed enhancement (fixed)

text associated to branch statements

Reported by: Stephen Siegel Owned by: ywei
Priority: minor Milestone:
Component: front Version: 1.0
Keywords: branch Cc:

Description (last modified by Stephen Siegel)

For branch statements (if (expr) S1 else S2) the text associated to the two "noop" transitions is all of S1 (for the true branch) or all of S2 (for false). For example:

impl.mmp line 21 proc 0 [4->5] "{ hi = i + B; }" [true]

This is problematic because (a) that could be a lot of text, and (b) that is not the statement that gets executed when the noop transition is executed.

It would be better to label both transitions with the text "if (expr)". When the statement is printed, it will automatically append "[true]" or "[false]". This is the same way it works for while loops.

Change History (2)

comment:1 by Stephen Siegel, 17 years ago

Description: modified (diff)

comment:2 by ywei, 17 years ago

Resolution: fixed
Status: newclosed

Fixed. The branch statements now associate with correct source program fragments.

Note: See TracTickets for help on using tickets.