version	U12.1.00
uid	capture.u1-1784908790-0
impl	error
global	7
	0,000005,capture,2
	1,000005,write_capture_,-1
	2,000005,writes_capture_,-1
	3,000005,stop_capture_,-1
	4,000005,uncaptured_write,-1
	5,000005,uncaptured_writes,-1
	6,000005,uncaptured_stop,-1

proc capture
	local	0,001000,p
	local	1,001000,x
	local	2,000020,keepxi
	local	3,000020,xi
	local	4,000020,y
	local	5,000040,f
	local	6,000000,type
	local	7,000000,runerr
	local	8,000000,put
	local	9,000000,push
	local	10,000000,write
	local	11,000000,write_capture_
	local	12,000000,writes
	local	13,000000,writes_capture_
	local	14,000000,stop
	local	15,000000,stop_capture_
	con	0,010000,9,160,162,157,143,145,144,165,162,145
	con	1,002000,3,500
	con	2,002000,1,1
	con	3,010000,4,146,151,154,145
	con	4,002000,1,0
	con	5,010000,4,156,165,154,154
	declend
	filen	capture.icn
	line	89
	colm	11
	synt	any
	mark	L1
	line	97
	colm	1
	synt	case
	mark0
	var	6
	var	0
	line	97
	colm	10
	synt	any
	invoke	1
	eret
	mark	L3
	ccase
	str	0
	line	99
	colm	16
	synt	any
	eqv
	unmark
	pop
	mark	L4
	var	7
	pnull
	var	5
	line	103
	colm	14
	synt	any
	null
	pop
	int	1
	line	103
	colm	13
	synt	any
	invoke	1
	unmark
lab L4
	mark	L5
	pnull
	var	2
	int	2
	line	105
	colm	14
	synt	any
	asgn
	unmark
lab L5
	mark	L6
	pnull
	var	4
	pnull
	line	106
	colm	12
	synt	any
	llist	0
	line	106
	colm	9
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	line	108
	colm	7
	synt	every
	mark0
	pnull
	var	3
	pnull
	var	1
	line	108
	colm	19
	synt	any
	bang
	line	108
	colm	16
	synt	any
	asgn
	pop
	mark0
	line	110
	colm	10
	synt	ifelse
	mark	L10
	pnull
	var	3
	line	110
	colm	20
	synt	any
	keywd	output
	line	110
	colm	16
	synt	any
	eqv
	unmark
	pnull
	var	2
	int	2
	line	111
	colm	20
	synt	any
	asgn
	goto	L11
lab L10
	line	113
	colm	13
	synt	ifelse
	mark	L12
	pnull
	var	6
	var	3
	line	113
	colm	20
	synt	any
	invoke	1
	str	3
	line	113
	colm	25
	synt	any
	lexeq
	unmark
	pnull
	var	2
	line	114
	colm	26
	synt	any
	keywd	null
	line	114
	colm	23
	synt	any
	asgn
	goto	L13
lab L12
	line	116
	colm	16
	synt	if
	mark0
	pnull
	var	2
	line	116
	colm	19
	synt	any
	nonnull
	unmark
	var	8
	var	4
	var	3
	line	117
	colm	22
	synt	any
	invoke	2
	line	116
	colm	16
	synt	endif
lab L13
	line	113
	colm	13
	synt	endifelse
lab L11
	line	110
	colm	10
	synt	endifelse
	unmark
lab L8
	efail
lab L9
	line	108
	colm	7
	synt	endevery
	unmark
lab L7
	line	120
	colm	7
	synt	if
	mark0
	mark	L14
	pnull
	pnull
	var	4
	line	120
	colm	12
	synt	any
	size
	int	4
	line	120
	colm	15
	synt	any
	numgt
	line	120
	colm	21
	synt	any
	esusp
	goto	L15
lab L14
	pnull
	pnull
	var	1
	line	120
	colm	25
	synt	any
	size
	int	4
	line	120
	colm	28
	synt	any
	numeq
lab L15
	unmark
	mark	L16
	var	9
	var	4
	var	5
	line	122
	colm	14
	synt	any
	invoke	2
	unmark
lab L16
	mark	L17
	int	2
	var	0
	var	4
	invoke	-1
	pnull
	var	4
	line	123
	colm	30
	synt	any
	keywd	null
	line	123
	colm	27
	synt	any
	asgn
	line	123
	colm	18
	synt	any
	invoke	2
	line	123
	colm	10
	synt	any
	pret
lab L17
	synt	any
	pfail
	line	120
	colm	7
	synt	endif
	goto	L2
lab L3
	mark	L18
	ccase
	str	5
	line	127
	colm	13
	synt	any
	eqv
	unmark
	pop
	line	131
	colm	7
	synt	ifelse
	mark	L19
	pnull
	var	5
	line	131
	colm	10
	synt	any
	null
	unmark
	line	132
	colm	10
	synt	any
	pfail
	goto	L20
lab L19
	mark	L21
	pnull
	line	134
	colm	10
	synt	any
	pret
lab L21
	synt	any
	pfail
lab L20
	line	131
	colm	7
	synt	endifelse
	goto	L2
lab L18
	mark	L22
	ccase
	str	3
	line	138
	colm	11
	synt	any
	eqv
	unmark
	pop
	mark	L23
	line	145
	colm	7
	synt	if
	mark0
	pnull
	var	5
	line	145
	colm	10
	synt	any
	null
	unmark
	mark	L24
	pnull
	var	10
	var	11
	line	147
	colm	17
	synt	any
	swap
	unmark
lab L24
	mark	L25
	pnull
	var	12
	var	13
	line	148
	colm	17
	synt	any
	swap
	unmark
lab L25
	pnull
	var	14
	var	15
	line	149
	colm	17
	synt	any
	swap
	line	145
	colm	7
	synt	endif
	unmark
lab L23
	mark	L26
	pnull
	var	5
	var	0
	line	151
	colm	16
	synt	any
	asgn
	line	151
	colm	7
	synt	any
	pret
lab L26
	synt	any
	pfail
	goto	L2
lab L22
	efail
lab L2
	line	97
	colm	1
	synt	endcase
	unmark
lab L1
	pnull
	line	154
	colm	1
	synt	any
	pfail
	end
proc write_capture_
	local	0,001000,x
	local	1,000020,tr
	local	2,000000,capture
	local	3,000000,write_capture_
	con	0,002000,1,0
	con	1,002000,1,1
	declend
	line	159
	colm	11
	synt	any
	mark	L1
	pnull
	var	1
	line	162
	colm	7
	synt	any
	keywd	trace
	line	162
	colm	4
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	line	162
	colm	16
	synt	any
	keywd	trace
	int	0
	line	162
	colm	23
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	var	2
	var	3
	var	0
	line	163
	colm	8
	synt	any
	invoke	2
	unmark
lab L3
	mark	L4
	mark	L5
	int	1
	var	3
	var	0
	invoke	-1
	pnull
	line	164
	colm	29
	synt	any
	keywd	trace
	var	1
	line	164
	colm	36
	synt	any
	asgn
	line	164
	colm	9
	synt	any
	invoke	2
	line	164
	colm	1
	synt	any
	pret
lab L5
	synt	any
	pfail
	unmark
lab L4
	pnull
	line	165
	colm	1
	synt	any
	pfail
	end
proc writes_capture_
	local	0,001000,x
	local	1,000020,tr
	local	2,000000,capture
	local	3,000000,writes_capture_
	con	0,002000,1,0
	con	1,002000,1,1
	declend
	line	167
	colm	11
	synt	any
	mark	L1
	pnull
	var	1
	line	170
	colm	7
	synt	any
	keywd	trace
	line	170
	colm	4
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	line	170
	colm	16
	synt	any
	keywd	trace
	int	0
	line	170
	colm	23
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	var	2
	var	3
	var	0
	line	171
	colm	8
	synt	any
	invoke	2
	unmark
lab L3
	mark	L4
	mark	L5
	int	1
	var	3
	var	0
	invoke	-1
	pnull
	line	172
	colm	30
	synt	any
	keywd	trace
	var	1
	line	172
	colm	37
	synt	any
	asgn
	line	172
	colm	9
	synt	any
	invoke	2
	line	172
	colm	1
	synt	any
	pret
lab L5
	synt	any
	pfail
	unmark
lab L4
	pnull
	line	173
	colm	1
	synt	any
	pfail
	end
proc stop_capture_
	local	0,001000,x
	local	1,000020,tr
	local	2,000000,capture
	local	3,000000,write_capture_
	local	4,000000,stop_capture_
	con	0,002000,1,0
	con	1,002000,1,1
	declend
	line	175
	colm	11
	synt	any
	mark	L1
	pnull
	var	1
	line	178
	colm	7
	synt	any
	keywd	trace
	line	178
	colm	4
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	line	178
	colm	16
	synt	any
	keywd	trace
	int	0
	line	178
	colm	23
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	var	2
	var	3
	var	0
	line	179
	colm	8
	synt	any
	invoke	2
	unmark
lab L3
	mark	L4
	mark	L5
	int	1
	var	4
	var	0
	invoke	-1
	pnull
	line	180
	colm	28
	synt	any
	keywd	trace
	var	1
	line	180
	colm	35
	synt	any
	asgn
	line	180
	colm	9
	synt	any
	invoke	2
	line	180
	colm	1
	synt	any
	pret
lab L5
	synt	any
	pfail
	unmark
lab L4
	pnull
	line	181
	colm	1
	synt	any
	pfail
	end
proc uncaptured_write
	local	0,001000,x
	local	1,000020,tr
	local	2,000000,capture
	local	3,000000,write_capture_
	local	4,000000,write
	con	0,002000,1,0
	con	1,002000,1,1
	declend
	line	183
	colm	11
	synt	any
	mark	L1
	pnull
	var	1
	line	186
	colm	7
	synt	any
	keywd	trace
	line	186
	colm	4
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	line	186
	colm	16
	synt	any
	keywd	trace
	int	0
	line	186
	colm	23
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	mark	L4
	int	1
	mark	L5
	var	2
	line	187
	colm	20
	synt	any
	invoke	0
	pop
	var	3
	line	187
	colm	41
	synt	any
	esusp
	goto	L6
lab L5
	var	4
lab L6
	var	0
	invoke	-1
	pnull
	line	187
	colm	53
	synt	any
	keywd	trace
	var	1
	line	187
	colm	60
	synt	any
	asgn
	line	187
	colm	9
	synt	any
	invoke	2
	line	187
	colm	1
	synt	any
	pret
lab L4
	synt	any
	pfail
	unmark
lab L3
	pnull
	line	188
	colm	1
	synt	any
	pfail
	end
proc uncaptured_writes
	local	0,001000,x
	local	1,000020,tr
	local	2,000000,capture
	local	3,000000,writes_capture_
	local	4,000000,writes
	con	0,002000,1,0
	con	1,002000,1,1
	declend
	line	190
	colm	11
	synt	any
	mark	L1
	pnull
	var	1
	line	193
	colm	7
	synt	any
	keywd	trace
	line	193
	colm	4
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	line	193
	colm	16
	synt	any
	keywd	trace
	int	0
	line	193
	colm	23
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	mark	L4
	int	1
	mark	L5
	var	2
	line	194
	colm	20
	synt	any
	invoke	0
	pop
	var	3
	line	194
	colm	42
	synt	any
	esusp
	goto	L6
lab L5
	var	4
lab L6
	var	0
	invoke	-1
	pnull
	line	194
	colm	55
	synt	any
	keywd	trace
	var	1
	line	194
	colm	62
	synt	any
	asgn
	line	194
	colm	9
	synt	any
	invoke	2
	line	194
	colm	1
	synt	any
	pret
lab L4
	synt	any
	pfail
	unmark
lab L3
	pnull
	line	195
	colm	1
	synt	any
	pfail
	end
proc uncaptured_stop
	local	0,001000,x
	local	1,000020,tr
	local	2,000000,capture
	local	3,000000,stop_capture_
	local	4,000000,stop
	con	0,002000,1,0
	con	1,002000,1,1
	declend
	line	197
	colm	11
	synt	any
	mark	L1
	pnull
	var	1
	line	200
	colm	7
	synt	any
	keywd	trace
	line	200
	colm	4
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	line	200
	colm	16
	synt	any
	keywd	trace
	int	0
	line	200
	colm	23
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	mark	L4
	int	1
	mark	L5
	var	2
	line	201
	colm	20
	synt	any
	invoke	0
	pop
	var	3
	line	201
	colm	40
	synt	any
	esusp
	goto	L6
lab L5
	var	4
lab L6
	var	0
	invoke	-1
	pnull
	line	201
	colm	51
	synt	any
	keywd	trace
	var	1
	line	201
	colm	58
	synt	any
	asgn
	line	201
	colm	9
	synt	any
	invoke	2
	line	201
	colm	1
	synt	any
	pret
lab L4
	synt	any
	pfail
	unmark
lab L3
	pnull
	line	202
	colm	1
	synt	any
	pfail
	end
