Opened 16 years ago

Closed 16 years ago

#191 closed defect (fixed)

source text not set correctly

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

Description

Running in verbose on adder example you will see that some of the source texts are "off by one" character. The "i<" is one character short. The "i++)" is one character too long.

Step 2: State 1 -- adder_seq.mmp line 10 [main@1->main@2] "i<" [true] -> State 2
Step 3: State 2 -- adder_seq.mmp line 10 [main@2->main@3] "result += a[i];" -> State 3
Step 4: State 3 -- adder_seq.mmp line 10 [main@3->main@1] "i++)" -> State 4
Step 5: State 4 -- adder_seq.mmp line 10 [main@1->main@2] "i<" [true]

Change History (2)

comment:1 by ywei, 16 years ago

Status: newaccepted

comment:2 by ywei, 16 years ago

Resolution: fixed
Status: acceptedclosed

Fixed. I modified the way the source information is calculated and I believe this should be correct.

Note: See TracTickets for help on using tickets.