proc str2poly
	local	0,001000,str
	local	1,000020,poly
	local	2,000020,var
	local	3,000020,vars
	local	4,000020,term
	local	5,000020,factor
	local	6,000020,power
	local	7,000000,table
	local	8,000000,move
	local	9,000000,tab
	local	10,000000,upto
	local	11,000000,many
	local	12,000000,integer
	local	13,000000,repl
	local	14,000000,csort
	con	0,002000,1,0
	con	1,002000,1,1
	con	2,020000,2,055,053
	con	3,020000,2,053,055
	con	4,010000,0
	declend
	filen	polynom.icn
	line	29
	colm	11
	mark	L1
	pnull
	var	1
	var	7
	int	0
	line	32
	colm	17
	invoke	1
	line	32
	colm	9
	asgn
	unmark
lab L1
	mark	L2
	var	0
	line	34
	colm	8
	bscan
lab L3
	mark0
	pnull
	var	4
	pnull
	var	8
	int	1
	line	35
	colm	26
	invoke	1
	var	9
	mark	L6
	var	10
	cset	2
	line	35
	colm	41
	invoke	1
	esusp
	goto	L7
lab L6
	int	0
lab L7
	line	35
	colm	36
	invoke	1
	line	35
	colm	30
	cat
	line	35
	colm	18
	asgn
	unmark
	mark	L3
	var	4
	line	36
	colm	15
	bscan
	mark	L8
	pnull
	var	5
	int	1
	line	37
	colm	20
	asgn
	unmark
lab L8
	mark	L9
	pnull
	var	5
	var	9
	var	11
	pnull
	line	38
	colm	32
	keywd	digits
	cset	3
	line	38
	colm	40
	unions
	line	38
	colm	31
	invoke	1
	line	38
	colm	26
	invoke	1
	line	38
	colm	20
	asgn
	unmark
lab L9
	mark	L10
	var	9
	int	0
	line	39
	colm	16
	invoke	1
	line	39
	colm	20
	bscan
	mark	L11
	pnull
	var	3
	str	4
	line	40
	colm	21
	asgn
	unmark
lab L11
lab L12
	mark0
	pnull
	var	2
	var	8
	int	1
	line	41
	colm	33
	invoke	1
	line	41
	colm	26
	asgn
	unmark
	mark	L12
	mark	L15
	pnull
	var	6
	int	1
	line	42
	colm	25
	asgn
	unmark
lab L15
	mark	L16
	pnull
	var	6
	var	12
	var	9
	var	11
	line	43
	colm	45
	keywd	digits
	line	43
	colm	44
	invoke	1
	line	43
	colm	39
	invoke	1
	line	43
	colm	35
	invoke	1
	line	43
	colm	25
	asgn
	unmark
lab L16
	pnull
	var	3
	dup
	var	13
	var	2
	var	6
	line	44
	colm	33
	invoke	2
	line	44
	colm	24
	cat
	asgn
lab L13
	unmark
	goto	L12
lab L14
	line	39
	colm	20
	escan
	unmark
lab L10
	pnull
	pnull
	var	1
	var	14
	var	3
	line	47
	colm	23
	invoke	1
	line	47
	colm	17
	subsc
	dup
	var	12
	var	5
	line	47
	colm	42
	invoke	1
	line	47
	colm	31
	plus
	asgn
	line	36
	colm	15
	escan
lab L4
	unmark
	goto	L3
lab L5
	line	34
	colm	8
	escan
	unmark
lab L2
	mark	L17
	mark	L18
	var	1
	line	52
	colm	4
	pret
lab L18
	pfail
	unmark
lab L17
	pnull
	line	54
	colm	1
	pfail
	end
proc polyadd
	local	0,001000,poly1
	local	1,001000,poly2
	local	2,000020,poly
	local	3,000020,keys
	local	4,000020,k
	local	5,000000,sort
	local	6,000000,set
	local	7,000000,keylist
	local	8,000000,table
	con	0,002000,1,0
	declend
	line	56
	colm	11
	mark	L1
	pnull
	var	3
	var	5
	pnull
	var	6
	var	7
	var	0
	line	59
	colm	28
	invoke	1
	line	59
	colm	20
	invoke	1
	var	6
	var	7
	var	1
	line	59
	colm	51
	invoke	1
	line	59
	colm	43
	invoke	1
	line	59
	colm	37
	unions
	line	59
	colm	16
	invoke	1
	line	59
	colm	9
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	2
	var	8
	int	0
	line	61
	colm	17
	invoke	1
	line	61
	colm	9
	asgn
	unmark
lab L2
	mark	L3
	mark0
	pnull
	var	4
	pnull
	var	3
	line	63
	colm	15
	bang
	line	63
	colm	12
	asgn
	pop
	mark0
	pnull
	pnull
	var	2
	var	4
	line	64
	colm	11
	subsc
	pnull
	pnull
	var	0
	var	4
	line	64
	colm	23
	subsc
	pnull
	var	1
	var	4
	line	64
	colm	34
	subsc
	line	64
	colm	27
	plus
	line	64
	colm	15
	asgn
	unmark
lab L4
	efail
lab L5
	unmark
lab L3
	mark	L6
	mark	L7
	var	2
	line	66
	colm	4
	pret
lab L7
	pfail
	unmark
lab L6
	pnull
	line	68
	colm	1
	pfail
	end
proc polysub
	local	0,001000,poly1
	local	1,001000,poly2
	local	2,000020,poly
	local	3,000020,keys
	local	4,000020,k
	local	5,000000,sort
	local	6,000000,set
	local	7,000000,keylist
	local	8,000000,table
	con	0,002000,1,0
	declend
	line	70
	colm	11
	mark	L1
	pnull
	var	3
	var	5
	pnull
	var	6
	var	7
	var	0
	line	73
	colm	28
	invoke	1
	line	73
	colm	20
	invoke	1
	var	6
	var	7
	var	1
	line	73
	colm	51
	invoke	1
	line	73
	colm	43
	invoke	1
	line	73
	colm	37
	unions
	line	73
	colm	16
	invoke	1
	line	73
	colm	9
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	2
	var	8
	int	0
	line	75
	colm	17
	invoke	1
	line	75
	colm	9
	asgn
	unmark
lab L2
	mark	L3
	mark0
	pnull
	var	4
	pnull
	var	3
	line	77
	colm	15
	bang
	line	77
	colm	12
	asgn
	pop
	mark0
	pnull
	pnull
	var	2
	var	4
	line	78
	colm	11
	subsc
	pnull
	pnull
	var	0
	var	4
	line	78
	colm	23
	subsc
	pnull
	var	1
	var	4
	line	78
	colm	34
	subsc
	line	78
	colm	27
	minus
	line	78
	colm	15
	asgn
	unmark
lab L4
	efail
lab L5
	unmark
lab L3
	mark	L6
	mark	L7
	var	2
	line	80
	colm	4
	pret
lab L7
	pfail
	unmark
lab L6
	pnull
	line	82
	colm	1
	pfail
	end
proc polymul
	local	0,001000,poly1
	local	1,001000,poly2
	local	2,000020,poly
	local	3,000020,keys1
	local	4,000020,keys2
	local	5,000020,k1
	local	6,000020,k2
	local	7,000000,keylist
	local	8,000000,table
	local	9,000000,csort
	con	0,002000,1,0
	declend
	line	84
	colm	11
	mark	L1
	pnull
	var	3
	var	7
	var	0
	line	87
	colm	20
	invoke	1
	line	87
	colm	10
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	4
	var	7
	var	1
	line	88
	colm	20
	invoke	1
	line	88
	colm	10
	asgn
	unmark
lab L2
	mark	L3
	pnull
	var	2
	var	8
	int	0
	line	90
	colm	17
	invoke	1
	line	90
	colm	9
	asgn
	unmark
lab L3
	mark	L4
	mark0
	pnull
	var	5
	pnull
	var	3
	line	92
	colm	16
	bang
	line	92
	colm	13
	asgn
	pop
	mark0
	mark0
	pnull
	var	6
	pnull
	var	4
	line	93
	colm	19
	bang
	line	93
	colm	16
	asgn
	pop
	mark0
	pnull
	pnull
	var	2
	var	9
	pnull
	var	5
	var	6
	line	94
	colm	24
	cat
	line	94
	colm	20
	invoke	1
	line	94
	colm	14
	subsc
	dup
	pnull
	pnull
	var	0
	var	5
	line	94
	colm	41
	subsc
	pnull
	var	1
	var	6
	line	94
	colm	53
	subsc
	line	94
	colm	46
	mult
	line	94
	colm	32
	plus
	asgn
	unmark
lab L7
	efail
lab L8
	unmark
lab L5
	efail
lab L6
	unmark
lab L4
	mark	L9
	mark	L10
	var	2
	line	96
	colm	4
	pret
lab L10
	pfail
	unmark
lab L9
	pnull
	line	98
	colm	1
	pfail
	end
proc polyexp
	local	0,001000,poly1
	local	1,001000,i
	local	2,000020,poly
	local	3,000000,copy
	local	4,000000,polymul
	con	0,002000,1,1
	declend
	line	100
	colm	11
	mark	L1
	pnull
	var	2
	var	3
	var	0
	line	103
	colm	16
	invoke	1
	line	103
	colm	9
	asgn
	unmark
lab L1
	mark	L2
	mark0
	pnull
	int	0
	pnull
	var	1
	int	0
	line	105
	colm	17
	minus
	push1
	line	105
	colm	12
	toby
	pop
	mark0
	pnull
	var	2
	var	4
	var	2
	var	0
	line	106
	colm	22
	invoke	2
	line	106
	colm	12
	asgn
	unmark
lab L3
	efail
lab L4
	unmark
lab L2
	mark	L5
	mark	L6
	var	2
	line	108
	colm	4
	pret
lab L6
	pfail
	unmark
lab L5
	pnull
	line	110
	colm	1
	pfail
	end
proc poly2str
	local	0,001000,poly
	local	1,000020,str
	local	2,000020,keys
	local	3,000020,k
	local	4,000020,count
	local	5,000020,var
	local	6,000000,keylist
	local	7,000000,move
	local	8,000000,tab
	local	9,000000,many
	con	0,010000,0
	con	1,002000,1,0
	con	2,002000,1,1
	con	3,010000,1,053
	con	4,010000,1,055
	con	5,002000,1,2
	declend
	line	112
	colm	11
	mark	L1
	pnull
	var	2
	var	6
	var	0
	line	115
	colm	19
	invoke	1
	line	115
	colm	9
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	1
	str	0
	line	117
	colm	8
	asgn
	unmark
lab L2
	mark	L3
	mark0
	pnull
	var	3
	pnull
	var	2
	line	119
	colm	15
	bang
	line	119
	colm	12
	asgn
	pop
	mark0
	mark	L6
	mark	L7
	pnull
	pnull
	var	0
	var	3
	line	120
	colm	14
	subsc
	int	1
	line	120
	colm	18
	numeq
	unmark
	unmark
	unmark
	goto	L4
	goto	L8
lab L7
	mark	L9
	pnull
	pnull
	var	0
	var	3
	line	121
	colm	19
	subsc
	int	2
	line	121
	colm	23
	numgt
	unmark
	pnull
	var	1
	dup
	pnull
	str	3
	pnull
	var	0
	var	3
	line	121
	colm	52
	subsc
	line	121
	colm	45
	cat
	line	121
	colm	36
	cat
	asgn
	goto	L10
lab L9
	mark	L11
	pnull
	pnull
	var	0
	var	3
	line	122
	colm	19
	subsc
	pnull
	int	2
	line	122
	colm	25
	neg
	line	122
	colm	23
	numeq
	unmark
	pnull
	var	1
	dup
	str	4
	line	122
	colm	37
	cat
	asgn
	goto	L12
lab L11
	mark	L13
	pnull
	pnull
	var	0
	var	3
	line	123
	colm	19
	subsc
	int	1
	line	123
	colm	23
	numlt
	unmark
	pnull
	var	1
	dup
	pnull
	var	0
	var	3
	line	123
	colm	45
	subsc
	line	123
	colm	36
	cat
	asgn
	goto	L14
lab L13
	pnull
	var	1
	dup
	str	3
	line	124
	colm	16
	cat
	asgn
lab L14
lab L12
lab L10
lab L8
	unmark
lab L6
	var	3
	line	125
	colm	9
	bscan
lab L15
	mark0
	pnull
	var	5
	var	7
	int	2
	line	126
	colm	27
	invoke	1
	line	126
	colm	20
	asgn
	unmark
	mark	L15
	mark	L18
	pnull
	var	4
	int	2
	line	127
	colm	19
	asgn
	unmark
lab L18
	mark	L19
	pnull
	var	4
	dup
	pnull
	var	8
	var	9
	var	5
	line	128
	colm	32
	invoke	1
	line	128
	colm	27
	invoke	1
	line	128
	colm	23
	size
	line	128
	colm	19
	plus
	asgn
	unmark
lab L19
	mark	L20
	pnull
	var	4
	int	2
	line	129
	colm	22
	numeq
	unmark
	pnull
	var	1
	dup
	var	5
	line	129
	colm	35
	cat
	asgn
	goto	L21
lab L20
	pnull
	var	1
	dup
	pnull
	var	5
	var	4
	line	130
	colm	31
	cat
	line	130
	colm	22
	cat
	asgn
lab L21
lab L16
	unmark
	goto	L15
lab L17
	line	125
	colm	9
	escan
	unmark
lab L4
	efail
lab L5
	unmark
lab L3
	mark	L22
	mark	L23
	pnull
	var	1
	int	5
	int	1
	line	135
	colm	16
	sect
	line	135
	colm	4
	pret
lab L23
	pfail
	unmark
lab L22
	pnull
	line	137
	colm	1
	pfail
	end
proc poly2profile
	local	0,001000,poly
	local	1,000020,str
	local	2,000020,keys
	local	3,000020,k
	local	4,000020,count
	local	5,000020,var
	local	6,000000,keylist
	local	7,000000,repl
	con	0,010000,0
	con	1,002000,1,0
	declend
	line	139
	colm	11
	mark	L1
	pnull
	var	2
	var	6
	var	0
	line	142
	colm	19
	invoke	1
	line	142
	colm	9
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	1
	str	0
	line	144
	colm	8
	asgn
	unmark
lab L2
	mark	L3
	mark0
	pnull
	var	3
	pnull
	var	2
	line	146
	colm	15
	bang
	line	146
	colm	12
	asgn
	pop
	mark0
	pnull
	var	1
	dup
	var	7
	var	3
	pnull
	int	1
	pnull
	var	0
	var	3
	line	147
	colm	33
	subsc
	line	147
	colm	27
	numlt
	line	147
	colm	20
	invoke	2
	line	147
	colm	11
	cat
	asgn
	unmark
lab L4
	efail
lab L5
	unmark
lab L3
	mark	L6
	mark	L7
	var	1
	line	149
	colm	4
	pret
lab L7
	pfail
	unmark
lab L6
	pnull
	line	151
	colm	1
	pfail
	end
