(saveFormat "2.0")
(date "Tue 19/Dec/1995 09:22:15 MST")
(veerev "3.2")
(platform "HP9000s700")
(SaveCF no)
(filterNAN 0)
(component 0 ROOTCONTEXT
 (name "Looping with Flow Branching")
 (implementation
  (retainGlobals YES)
  (locked no)
  (trigMode deg)
  (nextID 20)
  (component 0 IFTHENELSE
   (interface
	(input 1
	 (name "A")
	 (optional yes)
	)
	(output 1
	 (name "Then")
	 (lock name constraints)
	)
	(output 2
	 (name "Else")
	 (lock name constraints)
	)
   )
   (implementation
	(expr "a MOD 5")
   )
  )
  (component 6 COUNTER
   (name "Counter1")
   (interface
	(input 1
	 (name "Data")
	)
	(output 1
	 (name "Count")
	 (tag "Count")
	 (lock name constraints)
	)
   )
   (implementation
   )
  )
  (component 7 COUNTER
   (name "Counter2")
   (interface
	(input 1
	 (name "Data")
	)
	(output 1
	 (name "Count")
	 (tag "Count")
	 (lock name constraints)
	)
   )
   (implementation
   )
  )
  (component 11 NOTE
   (implementation
   )
  )
  (component 14 FORCOUNT
   (interface
	(output 1
	 (name "Count")
	 (lock name constraints)
	)
   )
   (implementation
	(count 10)
   )
  )
  (component 15 START25
  )
  (component 16 CONSTANT
   (name "Integer")
   (interface
	(output 1
	 (name "Int32")
	 (lock name constraints)
	)
   )
   (implementation
	(value Int32
	 (data  3)
	)
	(initValue Int32
	 (data  0)
	)
   )
  )
  (component 17 FORMULA
   (name "a + b")
   (interface
	(input 1
	 (name "A")
	 (optional yes)
	)
	(input 2
	 (name "B")
	 (optional yes)
	)
	(output 1
	 (name "Result")
	 (lock name constraints)
	)
   )
   (implementation
	(expr 1 "A+B")
   )
  )
  (component 18 TEXTDISPLAY
   (interface
	(input 1
	 (name "Data")
	)
   )
   (implementation
   )
  )
  (component 19 NOTE
   (name "Information")
   (implementation
	(text2 6
	  "This example shows how looping with flow "
	  "branching can lead to a problem, which can "
	  "be solved using the Sample & Hold object.    "
	  "For further information, see \"To Loop Part of"
	  "an HP VEE Program\" in your \"How to Use HP VEE\""
	  "manual."
	)
   )
  )
  (configuration
   (connect D4:1 D0:1)
   (connect D0:1 D1:1)
   (connect D0:2 D2:1)
   (connect D5:0 D4:0)
   (connect D4:0 D6:0)
   (connect D2:1 D7:1)
   (connect D6:1 D7:2)
   (connect D7:1 D8:1)
  )
 )
 (viewFor -1
  (active detail)
  (detail
   (geometry 0 53 900 447)
   (configuration
	(viewFor 0
	 (active detail)
	 (icon
	 )
	 (detail
	  (geometry 290 285 91 70)
	 )
	 (terminals on)
	)
	(viewFor 6
	 (active detail)
	 (icon
	  (geometry 0 0 110 0)
	 )
	 (detail
	  (geometry 470 263 120 35)
	 )
	)
	(viewFor 7
	 (active detail)
	 (icon
	  (geometry 0 0 110 0)
	 )
	 (detail
	  (geometry 470 344 121 33)
	 )
	)
	(viewFor 11
	 (active icon)
	 (icon
	  (geometry 521 116 338 48)
	  (iconImage "disclaim.icn")
	  (label off)
	 )
	 (detail
	  (geometry 830 250 200 100)
	  (editing enabled)
	 )
	)
	(viewFor 14
	 (active detail)
	 (icon
	  (iconImage "loop.icn")
	 )
	 (detail
	  (geometry 67 304 106 32)
	 )
	)
	(viewFor 15
	 (active detail)
	 (icon
	 )
	 (detail
	  (geometry 95 228 51 24)
	 )
	 (title off)
	)
	(viewFor 16
	 (active detail)
	 (icon
	 )
	 (detail
	  (geometry 78 435 104 30)
	  (showFormat int)
	 )
	)
	(viewFor 17
	 (active icon)
	 (icon
	  (geometry 332 438 36 25)
	 )
	 (detail
	 )
	 (terminals on)
	)
	(viewFor 18
	 (active detail)
	 (icon
	 )
	 (detail
	  (geometry 486 455 148 30)
	 )
	)
	(viewFor 19
	 (active detail)
	 (icon
	  (geometry 0 0 77 0)
	  (iconImage "notepad.icn")
	 )
	 (detail
	  (geometry 48 78 444 124)
	  (editing disabled)
	 )
	 (title off)
	)
	(connect D4:1 D0:1
	 (points 2 175 320 257 320)
	)
	(connect D0:1 D1:1
	 (points 4 433 300 440 300 440 280 467 280)
	)
	(connect D0:2 D2:1
	 (points 4 433 340 440 340 440 360 467 360)
	)
	(connect D5:0 D4:0
	 (points 2 120 254 120 283)
	)
	(connect D4:0 D6:0
	 (points 4 120 338 120 360 130 360 130 414)
	)
	(connect D2:1 D7:1
	 (points 6 593 360 610 360 610 400 320 400 320 440 329 440)
	)
	(connect D6:1 D7:2
	 (points 4 184 450 200 450 200 460 329 460)
	)
	(connect D7:1 D8:1
	 (points 4 370 450 390 450 390 470 483 470)
	)
   )
   (stackingOrder 0 5 4 6 7 2 1 9 3 8)
  )
  (titleBg "Gray")
  (titleFg "Black")
  (numberFormats
   (realFormat standard)
   (realSigDigits 4)
   (realRadixSpec 4)
   (integerBase decimal)
  )
 )
)
