[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

giac failed tests with new pari



Hi Julien,

I applied pari.patch to fix the compile issues with new upstream version of giac 1.9.0.21 and using new pari version 2.15.0. giac compiles without error now, but I am seeing several errors from the test outputs, mostly segmentation faults involving pari functions (see giac_test_failures.txt). I think this is an issue with the pari library and not with pari.cc in giac. If you can reproduce this and agree then I can write a bug for pari or any action you think is best. But right now it is not ready for release.

Ileana Dumitrescu

GPG Public Key: FA26 CA78 4BE1 8892 7F22 B99F 6570 EA01 146F 7354
PASS: chk_partfrac
PASS: chk_factor
PASS: chk_integrate
PASS: chk_geo
PASS: chk_cas
PASS: chk_xavier
PASS: chk_limit
PASS: chk_morley_demo
PASS: chk_fhan3
PASS: chk_fhan2
PASS: chk_normalize
FAIL: chk_fhan4
FAIL: chk_fhan6
FAIL: chk_fhan8
PASS: chk_fhan0
FAIL: chk_fhan12
FAIL: chk_fhan13
PASS: chk_fhan5
PASS: chk_fhan14
PASS: chk_fhan15
PASS: chk_fhan17
PASS: chk_fhan16
PASS: chk_fhan1
PASS: chk_fhan20
PASS: chk_fhan19
PASS: chk_fhan21
PASS: chk_fhan18
FAIL: chk_fhan11
PASS: chk_fhan7
PASS: chk_fhan9
======================================
   giac 1.9.0: check/test-suite.log
======================================

# TOTAL: 30
# PASS:  24
# SKIP:  0
# XFAIL: 0
# FAIL:  6
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: chk_fhan4
===============

// Using locale /usr/share/locale/
// C
// /usr/share/locale/
// giac
// UTF-8
// Maximum number of parallel threads 4
// Unable to find keyword file doc/en/keywords
Added 0 synonyms
// Warning: a, declared as global variable(s). If symbolic variables are required, declare them as local and run purge
// Success
// Success
// Success
// Success
// Success
// Success
// Success
// Success
// End defining T
============== restarted ===============
// Time 0.01
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
0
0
0
0
0
0
0
0
0
// Time 0.02
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
0
0
0
0
// Time 0.02
// Time 0
// Time 0
// Time 0
// Time 0
0
// Time 0.04
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0.01
// Time 0
// Time 0.01
  ***   bug in PARI/GP (Segmentation Fault), please report.  *** matdet: Warning: increasing stack size to 2048000.
  ***   at top-level: matdet([-10,-7,6,-7,1,4,-1,-2,-2,-5,1,7,-6,7,-
  ***                 ^----------------------------------------------
  *** matdet: the thread stack overflows !
  current stack size: 1024000 (0.977 Mbytes)
  [hint] set 'threadsizemax' to a nonzero value in your GPRC
Error in PARI subsystem
Segmentation fault
49c49,108
< 
---
> "Done",
> "Done",
> "Done",
> 0,
> 0,
> 50,
> "Done",
> "Done",
> "Done",
> "Done",
> 0,
> 0,
> 30,
> "Done",
> "Done",
> "Done",
> "Done",
> "Done",
> "Done",
> 0,
> 0,
> 0,
> 40,
> "Done",
> "Done",
> 0,
> 50,
> "Done",
> "Done",
> 0,
> [[0,-2,1,3],[0,0,0,1],[1,1,0,0],[-3,4,1,0]],
> "Done",
> "Done",
> "Done",
> "Done",
> "Done",
> [[0,1,0,0],[1,0,0,0],[0,0,1,0],[0,0,0,1]],
> [[0,0,0,1],[0,-2,1,3],[1,1,0,0],[-3,4,1,0]],
> proc(i,j,a) 
>   local TT; 
>   TT:=identity(4);  
>   TT[i,j]:=a;  
>   TT;  
>  
> end;,
> [[0,0,0,1],[0,-2,1,3],[1,1,0,1/2],[-3,4,1,0]],
> [[0,0,0,1],[0,-2,1,3],[1,1,0,1/2],[-3,4,1,3/2]],
> "Done",
> "Done",
> "Done",
> "Done",
> "Done",
> [[1,0,0,0],[0,0,0,1],[0,0,1,0],[0,1,0,0]],
> [[0,0,0,1],[-3,4,1,3/2],[1,1,0,1/2],[0,-2,1,3]],
> [[0,0,1,0],[1,0,0,0],[0,0,0,1],[0,1,0,0]],
> [[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],
> [[0,0,0,1],[-3,4,1,3/2],[1,1,0,1/2],[-2,-4,1,2]],
> [[1,0,0,0],[-3/2,1,0,0],[-1/2,0,1,0],[0,0,2,1]],
> [[0,0,0,1],[1,0,0,0],[0,0,1,0],[0,1,0,0]],
> [[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]]
FAIL chk_fhan4 (exit status: 1)

FAIL: chk_fhan6
===============

// Using locale /usr/share/locale/
// C
// /usr/share/locale/
// giac
// UTF-8
// Maximum number of parallel threads 4
// Unable to find keyword file doc/en/keywords
Added 0 synonyms
// Warning: x, declared as global variable(s). If symbolic variables are required, declare them as local and run purge
// End defining monlagrange
// Success
// Success
// Success
// Success
============== restarted ===============
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0.13
// Time 0
// Time 0
// Time 0
// Time 0
  ***   invalid flag in charpoly.  ***   variable name expected: ...,-7,7,-2,-8,4,-5,-1,5,2],0)
  ***                                                       ^--Error in PARI subsystem
Segmentation fault
26c26,64
< 
---
> poly1[1,-31,-2022,123635,-251766,-103090999,4182662387,-41451141688,-8022359112299,416152954730242,4177344029930032,-844396479840954874,24218768721172315816,391251849404736164524,-46549703110671685451500,1392577696358403748041340,5181017157107180520657627,-2643884145201343201568980663,109741771903208349344673461886,-175150709436626668118361574774,-117445953301049382229381718063738,3969525807197401486999224425277696,-44299562034492237546241987506524978,-1793777913030072566778742889603878877,124159323585122187902860026933655237731,-2800905964290210772630149457240035722124,-29475744993330987537788628575660087904419,3769930973039240282813482105020819361110746,-99422049472454281950204164582604568259119369,179859897620243884985696773720049191753752007,60589743994002952295818664939013728057098870333,-1745617909768309395960688915944987352733054851574,21103457414354678286283566718427029809626291202507,-45637860150265281055454591916339190934602873229297,-13056361725527582045804989160565012818991041744402880,211706123204191353423853257535853967909662138691925630,3331616526567075513504719091979873343545528955931512123,-134777615906931618685020730107460226975600318629603216003,3391864345546432921533807967677245891965008659740538607649,-52575540167721682809978326688131151045034422951025625468772,1919770751068671911307503080834529246856922198982863596575296,-27147088666252262751685484950928853174468263867112525335115342,-212407079935729071160135512583441209266227045604343899211014363,1597122667363216978471304860437125390341067267187020888076763035,-147791776785604135439394845053084405762004939693666641070838596922,3946448441571972815910277809464894624496283306668328446493973758410,-8876932284738157620851427899583834145111908294500394890189200738243,-478187379184690479777354838773611226168746865982719857160704017400664,3015446930679197542831693866898542713929656165675018260791625147339076,-6598890833260183615423396696644336875014320919956992266775727049551976,73585896952033432242293228404127739435373759392255315777210637517828244],
> (((((((((((((((((((((((((((((((((((((((((((((((((x-31)*x-2022)*x+123635)*x-251766)*x-103090999)*x+4182662387)*x-41451141688)*x-8022359112299)*x+416152954730242)*x+4177344029930032)*x-844396479840954874)*x+24218768721172315816)*x+391251849404736164524)*x-46549703110671685451500)*x+1392577696358403748041340)*x+5181017157107180520657627)*x-2643884145201343201568980663)*x+109741771903208349344673461886)*x-175150709436626668118361574774)*x-117445953301049382229381718063738)*x+3969525807197401486999224425277696)*x-44299562034492237546241987506524978)*x-1793777913030072566778742889603878877)*x+124159323585122187902860026933655237731)*x-2800905964290210772630149457240035722124)*x-29475744993330987537788628575660087904419)*x+3769930973039240282813482105020819361110746)*x-99422049472454281950204164582604568259119369)*x+179859897620243884985696773720049191753752007)*x+60589743994002952295818664939013728057098870333)*x-1745617909768309395960688915944987352733054851574)*x+21103457414354678286283566718427029809626291202507)*x-45637860150265281055454591916339190934602873229297)*x-13056361725527582045804989160565012818991041744402880)*x+211706123204191353423853257535853967909662138691925630)*x+3331616526567075513504719091979873343545528955931512123)*x-134777615906931618685020730107460226975600318629603216003)*x+3391864345546432921533807967677245891965008659740538607649)*x-52575540167721682809978326688131151045034422951025625468772)*x+1919770751068671911307503080834529246856922198982863596575296)*x-27147088666252262751685484950928853174468263867112525335115342)*x-212407079935729071160135512583441209266227045604343899211014363)*x+1597122667363216978471304860437125390341067267187020888076763035)*x-147791776785604135439394845053084405762004939693666641070838596922)*x+3946448441571972815910277809464894624496283306668328446493973758410)*x-8876932284738157620851427899583834145111908294500394890189200738243)*x-478187379184690479777354838773611226168746865982719857160704017400664)*x+3015446930679197542831693866898542713929656165675018260791625147339076)*x-6598890833260183615423396696644336875014320919956992266775727049551976)*x+73585896952033432242293228404127739435373759392255315777210637517828244,
> (((((((((((((((((((((((((((((((((((((((((((((((((x-74+2444)*(x-73)+2869672)*(x-72)+2156738407)*(x-71)+1166278023376)*(x-70)+483630901351987)*(x-69)+160061545540584124)*(x-68)+43447549150628166621)*(x-67)+9865012670793641976061)*(x-66)+1901518964861364472777994)*(x-65)+314723211781201362981491661)*(x-64)+45132305732056678049484731317)*(x-63)+5648095795572215702028325518670)*(x-62)+620439024703670319953595110820454)*(x-61)+60108314781265273344319136612522099)*(x-60)+5155673028744657384665029216853730553)*(x-59)+392751190857995535437354850063036237163)*(x-58)+26640173558314928879412250658969474513968)*(x-57)+1612238668563471265943190782548220953436656)*(x-56)+87194578117181159693258089215303674414538015)*(x-55)+4219358786561222224098191626540509387708325292)*(x-54)+182844686667762691762929250314921403649021156643)*(x-53)+7099831163063101735906052273004833705053130640956)*(x-52)+247101926944111190650872550896602591117957205432002)*(x-51)+7708894543819328327601821322195869365450213074489965)*(x-50)+215537987087942060008088157243692941972696435620142832)*(x-49)+5398965792164220702715381219178239473753995749335285238)*(x-48)+121091025019713299170464052539730875668008938267404490871)*(x-47)+2430063073365972242241600047903207853997968488137875638377)*(x-46)+43597198043482623892957288619707966540504428208417466134852)*(x-45)+698591373389661835136842965815870067847464079141682969644867)*(x-44)+9987985028662611538232858419713447288621114709528131415994249)*(x-43)+127291049677218276481570325940846940283314180130885097876231210)*(x-42)+1444812344067614118825955605198381805810287149751033390412627454)*(x-41)+14596940441758354507773150202029201517387561384183295226245003673)*(x-40)+131247188002841657145785544861296176203027924513693013369102954179)*(x-39)+1050837653620924074337431007689752737817623743864801201635627260786)*(x-38)+7503103551312311512842683080068446613477742847959442146291937437075)*(x-37)+47898241516635460166234147114258414337826625315340933380957607682584)*(x-36)+274360469040618121589266179564538723881944035206455175211408903031476)*(x-35)+1415794279292911822798593666453532508383283638800960840515619991267986)*(x-34)+6603573578613551924861718783648077786453069787459557394315786264453358)*(x-33)+27845954258045829105502190303565986430979466141991700784424490823092715)*(x-32)+105366815813186491186499937369087714555630350306168470577191404571409491)*(x-31)+348256695479059347258413464875103360249719987193839767879193288251055457)*(x-30)+928717890321672492502781155800895925337192414926080965922165110011261895)*(x-29)+1533566262699224031941911927554411251436752210367872691699510340870514482)*(x-28)-838576234932768755405048626997712982825528833517137182799941688282456255)*(x-27)-12673857443571570679225595549985135551992327505358454415585852588831351589)*(x-26)-29025570502040326690766975062807825204635099120914733142120268147262406028)*(x-25)-24668970068338847269398887048903905734087309479524944229210381666710048656,
> x^50-31*x^49-2022*x^48+123635*x^47-251766*x^46-103090999*x^45+4182662387*x^44-41451141688*x^43-8022359112299*x^42+416152954730242*x^41+4177344029930032*x^40-844396479840954874*x^39+24218768721172315816*x^38+391251849404736164524*x^37-46549703110671685451500*x^36+1392577696358403748041340*x^35+5181017157107180520657627*x^34-2643884145201343201568980663*x^33+109741771903208349344673461886*x^32-175150709436626668118361574774*x^31-117445953301049382229381718063738*x^30+3969525807197401486999224425277696*x^29-44299562034492237546241987506524978*x^28-1793777913030072566778742889603878877*x^27+124159323585122187902860026933655237731*x^26-2800905964290210772630149457240035722124*x^25-29475744993330987537788628575660087904419*x^24+3769930973039240282813482105020819361110746*x^23-99422049472454281950204164582604568259119369*x^22+179859897620243884985696773720049191753752007*x^21+60589743994002952295818664939013728057098870333*x^20-1745617909768309395960688915944987352733054851574*x^19+21103457414354678286283566718427029809626291202507*x^18-45637860150265281055454591916339190934602873229297*x^17-13056361725527582045804989160565012818991041744402880*x^16+211706123204191353423853257535853967909662138691925630*x^15+3331616526567075513504719091979873343545528955931512123*x^14-134777615906931618685020730107460226975600318629603216003*x^13+3391864345546432921533807967677245891965008659740538607649*x^12-52575540167721682809978326688131151045034422951025625468772*x^11+1919770751068671911307503080834529246856922198982863596575296*x^10-27147088666252262751685484950928853174468263867112525335115342*x^9-212407079935729071160135512583441209266227045604343899211014363*x^8+1597122667363216978471304860437125390341067267187020888076763035*x^7-147791776785604135439394845053084405762004939693666641070838596922*x^6+3946448441571972815910277809464894624496283306668328446493973758410*x^5-8876932284738157620851427899583834145111908294500394890189200738243*x^4-478187379184690479777354838773611226168746865982719857160704017400664*x^3+3015446930679197542831693866898542713929656165675018260791625147339076*x^2-6598890833260183615423396696644336875014320919956992266775727049551976*x+73585896952033432242293228404127739435373759392255315777210637517828244,
> 0,
> 0,
> [1,-31,-2022,123635,-251766,-103090999,4182662387,-41451141688,-8022359112299,416152954730242,4177344029930032,-844396479840954874,24218768721172315816,391251849404736164524,-46549703110671685451500,1392577696358403748041340,5181017157107180520657627,-2643884145201343201568980663,109741771903208349344673461886,-175150709436626668118361574774,-117445953301049382229381718063738,3969525807197401486999224425277696,-44299562034492237546241987506524978,-1793777913030072566778742889603878877,124159323585122187902860026933655237731,-2800905964290210772630149457240035722124,-29475744993330987537788628575660087904419,3769930973039240282813482105020819361110746,-99422049472454281950204164582604568259119369,179859897620243884985696773720049191753752007,60589743994002952295818664939013728057098870333,-1745617909768309395960688915944987352733054851574,21103457414354678286283566718427029809626291202507,-45637860150265281055454591916339190934602873229297,-13056361725527582045804989160565012818991041744402880,211706123204191353423853257535853967909662138691925630,3331616526567075513504719091979873343545528955931512123,-134777615906931618685020730107460226975600318629603216003,3391864345546432921533807967677245891965008659740538607649,-52575540167721682809978326688131151045034422951025625468772,1919770751068671911307503080834529246856922198982863596575296,-27147088666252262751685484950928853174468263867112525335115342,-212407079935729071160135512583441209266227045604343899211014363,1597122667363216978471304860437125390341067267187020888076763035,-147791776785604135439394845053084405762004939693666641070838596922,3946448441571972815910277809464894624496283306668328446493973758410,-8876932284738157620851427899583834145111908294500394890189200738243,-478187379184690479777354838773611226168746865982719857160704017400664,3015446930679197542831693866898542713929656165675018260791625147339076,-6598890833260183615423396696644336875014320919956992266775727049551976,73585896952033432242293228404127739435373759392255315777210637517828244],
> x^50-31*x^49-2022*x^48+123635*x^47-251766*x^46-103090999*x^45+4182662387*x^44-41451141688*x^43-8022359112299*x^42+416152954730242*x^41+4177344029930032*x^40-844396479840954874*x^39+24218768721172315816*x^38+391251849404736164524*x^37-46549703110671685451500*x^36+1392577696358403748041340*x^35+5181017157107180520657627*x^34-2643884145201343201568980663*x^33+109741771903208349344673461886*x^32-175150709436626668118361574774*x^31-117445953301049382229381718063738*x^30+3969525807197401486999224425277696*x^29-44299562034492237546241987506524978*x^28-1793777913030072566778742889603878877*x^27+124159323585122187902860026933655237731*x^26-2800905964290210772630149457240035722124*x^25-29475744993330987537788628575660087904419*x^24+3769930973039240282813482105020819361110746*x^23-99422049472454281950204164582604568259119369*x^22+179859897620243884985696773720049191753752007*x^21+60589743994002952295818664939013728057098870333*x^20-1745617909768309395960688915944987352733054851574*x^19+21103457414354678286283566718427029809626291202507*x^18-45637860150265281055454591916339190934602873229297*x^17-13056361725527582045804989160565012818991041744402880*x^16+211706123204191353423853257535853967909662138691925630*x^15+3331616526567075513504719091979873343545528955931512123*x^14-134777615906931618685020730107460226975600318629603216003*x^13+3391864345546432921533807967677245891965008659740538607649*x^12-52575540167721682809978326688131151045034422951025625468772*x^11+1919770751068671911307503080834529246856922198982863596575296*x^10-27147088666252262751685484950928853174468263867112525335115342*x^9-212407079935729071160135512583441209266227045604343899211014363*x^8+1597122667363216978471304860437125390341067267187020888076763035*x^7-147791776785604135439394845053084405762004939693666641070838596922*x^6+3946448441571972815910277809464894624496283306668328446493973758410*x^5-8876932284738157620851427899583834145111908294500394890189200738243*x^4-478187379184690479777354838773611226168746865982719857160704017400664*x^3+3015446930679197542831693866898542713929656165675018260791625147339076*x^2-6598890833260183615423396696644336875014320919956992266775727049551976*x+73585896952033432242293228404127739435373759392255315777210637517828244,
> "Done",
> 123,
> "Done",
> poly1[1,-3301/260,38296189/270400,41695522299/35152000,-3311748582867987/73116160000,1246154877566525689/2924646400000,-6866279263361099721687/9885304832000000,-381970607252686798423353477/10280717025280000000,38522205507378226222872681223/411228681011200000000,9107637538161836010942097798548427/2779905883635712000000000,-16455573902523222635705575444659912099/722775529745285120000000000,180030759003638143506097339494396900117391/751686550935096524800000000000,11145796550927593933475801278185749777654997/19543850324312509644800000000000,564765299722684802648603026919109869224036273291/50814010843212525076480000000000000,-31993892453111224852746562341884977352138458993572399/52846571276941026079539200000000000000,4498186204750239436933926383296178386504299491824722359/27480217064009333561360384000000000000000,453690568391295757170610153975854335714556038976744080082109/7144856436642426725953699840000000000000000,-337686205333204541821976419727644848250131808962005049910221071/928831336763515474373980979200000000000000000,1780893140502418333626924795188323428676688103663296430778607475803/482992295117028046674470109184000000000000000000,-23101374070223753664714468662412394047099346131104422396521977343978367/251155993460854584270724456775680000000000000000000,19821527347678378500567463565636835171927342842690327365493372498173190979/522404466398577535283106870093414400000000000000000000,189744627250239274336721926378857871317603654941314634122502842813627333563471/135825161263630159173607786224287744000000000000000000000,729592077723778442823402187847606139676860413973039933936682773359409312144227811/70629083857087682770276048836629626880000000000000000000000,-38224036179413511833339352085300917928403179780464386043857730383012309966499329581/1836356180284279752027177269752370298880000000000000000000000,1603120468440164237796145025470417371149517926188292208148475473724678724695210972548233/1193631517184781838817665225339040694272000000000000000000000000,8183370914231065196184960294447613515769973243103643078676658714056659820536333925366532633/1241376777872173112370371834352602322042880000000000000000000000000,241052062702930568675781092372075016606786332676747843573452505620926107709081777209545240993/161378981123382504608148338465838301865574400000000000000000000000000,5633497648528570028036355727500929984616340932951814187172032549834449288821558270898224165359933/20979267546039725599059284000558979242524672000000000000000000000000000,-6500025586526479277683142140337643271472600448377487158183247582917255274762635646449907796577062081/2727304780985164327877706920072667301528207360000000000000000000000000000,7000401080728793588216154889317803267727098907841369379586365617832289543939748345632885632494177157427/709099243056142725248203799218893498397333913600000000000000000000000000000,-27410450002428114167806982890713355457815923102161969900941366171844849834799704453552054314807560924579/56727939444491418019856303937511479871786713088000000000000000000000000000000],
> poly1[1,-3301/260,38296189/270400,41695522299/35152000,-3311748582867987/73116160000,1246154877566525689/2924646400000,-6866279263361099721687/9885304832000000,-381970607252686798423353477/10280717025280000000,38522205507378226222872681223/411228681011200000000,9107637538161836010942097798548427/2779905883635712000000000,-16455573902523222635705575444659912099/722775529745285120000000000,180030759003638143506097339494396900117391/751686550935096524800000000000,11145796550927593933475801278185749777654997/19543850324312509644800000000000,564765299722684802648603026919109869224036273291/50814010843212525076480000000000000,-31993892453111224852746562341884977352138458993572399/52846571276941026079539200000000000000,4498186204750239436933926383296178386504299491824722359/27480217064009333561360384000000000000000,453690568391295757170610153975854335714556038976744080082109/7144856436642426725953699840000000000000000,-337686205333204541821976419727644848250131808962005049910221071/928831336763515474373980979200000000000000000,1780893140502418333626924795188323428676688103663296430778607475803/482992295117028046674470109184000000000000000000,-23101374070223753664714468662412394047099346131104422396521977343978367/251155993460854584270724456775680000000000000000000,19821527347678378500567463565636835171927342842690327365493372498173190979/522404466398577535283106870093414400000000000000000000,189744627250239274336721926378857871317603654941314634122502842813627333563471/135825161263630159173607786224287744000000000000000000000,729592077723778442823402187847606139676860413973039933936682773359409312144227811/70629083857087682770276048836629626880000000000000000000000,-38224036179413511833339352085300917928403179780464386043857730383012309966499329581/1836356180284279752027177269752370298880000000000000000000000,1603120468440164237796145025470417371149517926188292208148475473724678724695210972548233/1193631517184781838817665225339040694272000000000000000000000000,8183370914231065196184960294447613515769973243103643078676658714056659820536333925366532633/1241376777872173112370371834352602322042880000000000000000000000000,241052062702930568675781092372075016606786332676747843573452505620926107709081777209545240993/161378981123382504608148338465838301865574400000000000000000000000000,5633497648528570028036355727500929984616340932951814187172032549834449288821558270898224165359933/20979267546039725599059284000558979242524672000000000000000000000000000,-6500025586526479277683142140337643271472600448377487158183247582917255274762635646449907796577062081/2727304780985164327877706920072667301528207360000000000000000000000000000,7000401080728793588216154889317803267727098907841369379586365617832289543939748345632885632494177157427/709099243056142725248203799218893498397333913600000000000000000000000000000,-27410450002428114167806982890713355457815923102161969900941366171844849834799704453552054314807560924579/56727939444491418019856303937511479871786713088000000000000000000000000000000],
> [1,2,3,4,5,6,7,8],
> ((((((x+2)*x+3)*x+4)*x+5)*x+6)*x+7)*x+8,
> [8,7,6,5,4,3,2,1],
> x^2+1,
> [1,0,1],
> 3,
> 3,
> sqrt(2)*sqrt(2)+1,
> "Done",
> 8,
> [1,2,3,4,5,6,7,8],
> matrix[[-3,2,-4,4,-10,-9,8,2],[-5,3,-3,-5,3,-5,0,-4],[-10,9,-9,5,9,-2,4,0],[-2,5,-7,8,-10,9,9,-3],[-6,7,8,5,-1,0,-4,-6],[-4,6,-6,-6,-5,8,6,-9],[-9,-6,6,-2,2,-7,-4,8],[-5,-4,7,1,-2,7,-9,2]],
> [1,2,3,4,5,6,7,8],
> [1,2,3,4,5,6,7,8],
> [1,2,3,4,5,6,7,8],[-27,-75,62,62,-29,-41,-7,-3],[528,-456,-860,-392,518,-1284,1174,759],[16662,5470,8322,-8899,-24968,-9985,5008,-26300],[219079,32850,-421493,148367,123135,281342,-325521,-173466],[-5026625,-817642,1883579,2754916,-1494888,2202669,-6803271,277002],[-41817366,-13351135,-5342573,-12468229,80325428,-30847174,66957760,124535564],[329350698,144472187,1336209697,-897334462,-1043005330,-1173450582,1554378670,-517504656],[22757844230,4072961834,-19328449006,-1057563976,3168724973,6727414838,1751529188,-14921069577],
> [76463112,-13325458,1786523,-278347,39623,-2205,-118,4,-1],
> (((((((-x+4)*x-118)*x-2205)*x+39623)*x-278347)*x+1786523)*x-13325458)*x+76463112,
> matrix[[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0]],
> [[0,0,0,1,0,0,0,0],[1,0,0,0,0,0,0,0],[0,1,0,0,0,0,0,0],[0,0,1,0,0,0,0,0],[0,0,0,0,0,0,0,-1],[0,0,0,0,1,0,0,0],[0,0,0,0,0,1,0,2],[0,0,0,0,0,0,1,0]],
> [1,2,3,4,5,6,7,8],
> [1,2,3,4,5,6,7,8],
> [1,2,3,4,5,6,7,8],[4,1,2,3,-8,5,22,7],[3,4,1,2,-7,-8,19,22],[2,3,4,1,-22,-7,36,19],[1,2,3,4,-19,-22,31,36],[4,1,2,3,-36,-19,50,31],[3,4,1,2,-31,-36,43,50],[2,3,4,1,-50,-31,64,43],[1,2,3,4,-43,-50,55,64],
> [[9/5,4/5,9/5,4/5,-1,0,-1,0],[4/5,9/5,4/5,9/5,0,-1,0,-1]],
> [-1,0,1,0,1,0,-1,0,0],
> ((-x*x+1)*x*x+1)*x*x-1,
> matrix[[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0]]
FAIL chk_fhan6 (exit status: 1)

FAIL: chk_fhan8
===============

// Using locale /usr/share/locale/
// setlocale returns 0
// /usr/share/locale/
// giac
// UTF-8
// Maximum number of parallel threads 4
// Unable to find keyword file doc/en/keywords
Added 0 synonyms
// Success
// End defining M
// Success
// End defining f
// Warning: a,b,c, declared as global variable(s). If symbolic variables are required, declare them as local and run purge
// End defining egal
// Warning: y,z,x,egal,t, declared as global variable(s). If symbolic variables are required, declare them as local and run purge
// End defining pointresiduel
// Warning: pointresiduel, declared as global variable(s). If symbolic variables are required, declare them as local and run purge
// End defining plus
// Warning: plus, declared as global variable(s). If symbolic variables are required, declare them as local and run purge
// End defining nplus
// Success
// End defining egalomega
// Warning: egalomega,plus, declared as global variable(s). If symbolic variables are required, declare them as local and run purge
// End defining factell
// Time 0
// Time 0
// Time 0
// Time 0.01
Near [0,0], 1/epsilon^2*f([0,0]+epsilon*[1,t])=-3*t roots [0.0]
Singular points directions: [cell_i, cell_j, singularity, next solution] [[50,50,0.0,0.0333333333333+0.00037036986232*i],[50,50,0.0,-0.0333333333333+0.000370370878425*i]]
Bad branch, questionnable accuracy
Bad branch, questionnable accuracy
Bad branch, questionnable accuracy
// Time 0.04
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
noneg:noneg
// Time 0
eg:eg
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0.01
  ***   bug in PARI/GP (Segmentation Fault), please report.Segmentation fault
77a78,118
> [37247908142/10128208321,7601802384416381/1019292757217119],
> [-427565988743127340745490673457692672,-867064742032008311629520873313009664,-116260955875848891425809428000014336],
> [0,0],
> proc(P,N) 
>   local Q,a,b,c,g; 
>   Q:=copy([0,1,0]);  
>   a:=expand(P[1]*Q[2]-P[2]*Q[1]);  
>   b:=expand(P[3]*Q[2]-P[2]*Q[3]);  
>   c:=expand(P[1]*Q[3]-P[3]*Q[1]);  
>   g:=igcd(a,b,c,N);  
>   if (g<>1) and (g<>N) then g; else 1; 
>   fi ;  
>  
> end;,
> proc(a,b,c,P,n,N) 
>   local Y,m,X; 
>   Y:=copy([0,1,0]);  
>   X:=P;  
>   m:=n;  
>   while (m>0) and ((egalomega(Y,N)) = 1) do  
>     if odd(m) then  
>       Y:=plus(a,b,c,X,Y); 
>       X:=plus(a,b,c,X,X); 
>       m:=(m-1)/2 else  
>       X:=plus(a,b,c,X,X); 
>       m:=m/2 
>     fi ; 
>     Y:=mods(Y,N); 
>     X:=mods(X,N); 
>    od;  
>   egalomega(Y,N);  
>  
> end;,
> 232792560,
> [2,1,1],
> 800620099,
> 1,
> "Done",
> 9449868410449,
> 3099044504245996706400,
> "Done"
FAIL chk_fhan8 (exit status: 1)

FAIL: chk_fhan11
================

// Using locale /usr/share/locale/
// C
// /usr/share/locale/
// giac
// UTF-8
// Maximum number of parallel threads 4
// Unable to find keyword file doc/en/keywords
Added 0 synonyms
============== restarted ===============
// Time 0.01
// Time 0
// Time 0
// Time 0.12
// Time 0.19
// Time 0.2
// Time 0.01
// Time 0
// Time 0.2
// Time 0
// Time 0
// Time 0
  ***   invalid flag in gisprime.  *** isprime: Warning: increasing stack size to 2048000.
  *** isprime: Warning: increasing stack size to 4096000.
  *** isprime: Warning: increasing stack size to 8192000.
Segmentation fault
13c13,71
< 
---
> 1,
> 0,
> [],
> 1,
> matrix[[2,3,5,7,13,17,47,101,107,241,359,409,1051,2339,9907],[7,5,6,2,1,1,1,1,1,1,1,1,1,1,1]],
> [2,3,5,7,13,17,47,101,107,241,359,409,1051,2339,9907],
> [7,5,6,2,1,1,1,1,1,1,1,1,1,1,1],
> [],
> [1522708248470303217714986384022195699,1954458605222613921436482606772576440,2,2,2,2,2,2,2,2,2,2,2,2,2],
> 1,
> -464189140560363299305566580574209126,
> "Warning: some commands like subs might change arguments order",
> 1 % 2303761585990411075868763673158000001,
> "Warning: some commands like subs might change arguments order",
> 1 % 2303761585990411075868763673158000001,
> "Done",
> 1 % 2303761585990411075868763673158000001,
> -464189140560363299305566580574209126 % 2303761585990411075868763673158000001,
> 2303761585990411075868763673158000000,
> 0,
> 10000000000037,
> 0,
> [],
> "Done",
> [40000000000733,40000000002629,40000000011053,40000000016309,40000000017917,40000000019117,40000000019549,40000000019933,40000000021109,40000000021277],
> 10000000000129,
> 7 % 10000000000129,
> 2552475531946,
> 2^7*3*98867*263401,
> 40000000011053,
> 40000000011053,
> 2 % 40000000011053,
> NULL,
> 0.3333333333,0.5,0.4244105409,0.3272089853,0.2202077051,0.2198137118,0.3979271525,0.3003920778,0.2630136986,0.4943820225,0.5,0.499994284,0.3238346858,0.5,0.4666595401,0.4301716967,0.2708528165,0.3902439024,0.4615384577,0.3333333333,0.2857142857,0.4099378882,0.389984174,0.4951455976,0.4,0.4974456126,0.2660016625,0.4995808577,0.4977973568,0.3333333314,
> 7.388384879,4.321928095,5.423508087,7.558862288,12.04422537,12.06873506,5.904353699,8.385881829,9.816087661,4.392737554,4.321928095,4.321999377,7.655499322,4.321928095,4.765756738,5.326502051,9.483776775,6.055700489,4.839325631,7.388384879,8.903356496,5.678817549,6.060918088,4.383024328,5.864491001,4.353936674,9.687135506,4.327159121,4.349510633,7.38838493,
> NULL,
> [2 % 39727992159163149869,1],[2 % 39307680517027445443,1],[5 % 61188454866351188687,30594227433175594344],[3 % 3940793382110980061,3152634705688784049],[5 % 98522708173571321317,87575740598730063393],[3 % 86515672478084536073,43257836239042268037],[3 % 26607719631721106369,26132581781154658041],[2 % 51913519161193472131,1],[2 % 17609394100950375653,1],[2 % 88821404870323701643,1],[2 % 72158232300158605493,1],[14 % 98973741189513301021,65982494126342200681],[2 % 60024052033438802171,1],[3 % 98759349862755352721,93821382369617585085],[5 % 47953376102202412367,23976688051101206184],[3 % 70000041463793413543,35000020731896706772],[3 % 68970179224763858369,34485089612381929185],[5 % 79991265201910127563,68563941601637252197],[6 % 20304666138064518631,10152333069032259316],[5 % 60515825434599288167,30257912717299644084],[2 % 28474996239025941421,1],[2 % 58436043634937188867,1],[5 % 20023718900686749407,10011859450343374704],[6 % 2855763114140924849,2677277919507117046],[7 % 72469587931040981591,36234793965520490796],[2 % 30810013390382959483,1],[3 % 21021287673220193369,10510643836610096685],[3 % 84404564245218052711,70337136871015043926],[5 % 28475038907952560543,14237519453976280272],[5 % 47887614978630828143,44467071051585768990],
> 100000000003677906312417649500520066316186689905131,
> "Done",
> "Done",
> "Done",
> 100000000003677906312417649500520066316186689905137,
> "Done",
> "Done",
> "Done",
> 40000000011053,
> "ABCDA, Remarquez que des lettres identiques ne sont pas codees de la meme maniere!",
> [65,66,67,68,65,44,32,82,101,109,97,114,113,117,101,122,32,113,117,101,32,100,101,115,32,108,101,116,116,114,101,115,32,105,100,101,110,116,105,113,117,101,115,32,110,101,32,115,111,110,116,32,112,97,115,32,99,111,100,101,101,115,32,100,101,32,108,97,32,109,101,109,101,32,109,97,110,105,101,114,101,33],
> poly1[-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65,-65+asc(messsage)],
> 12345,
> 54321,
> 1,
> 33473253573817,
> [65,66,67,68,65,44,32,82,101,109,97,114,113,117,101,122,32,113,117,101,32,100,101,115,32,108,101,116,116,114,101,115,32,105,100,101,110,116,105,113,117,101,115,32,110,101,32,115,111,110,116,32,112,97,115,32,99,111,100,101,101,115,32,100,101,32,108,97,32,109,101,109,101,32,109,97,110,105,101,114,101,33],
> [15,32,35,4,17,15,1,34,29,31,10,28,0,8,41,0,20,4,30,43,27,32,43,34,15,46,33,23,7,28,25,43,16,49,7,48,45,24,8,21,6,21,35,45,17,39,3,43,14,17,48,46,33,22,30,0,23,34,26,29,48,5,19,40,43,47,47,34,14,22,19,18,41,48,40,23,41,35,19,28,15,11],
> [[3180286786257,11746629544230],[8898364078510,7416288204688],[26072565355155,10455445731869],[25462814539885,26852214564959],[5312023043230,27040742569055],[3180286786257,11028487692329],[12345,31144114074766],[9285222567600,35270483679439],[18689839150260,11669393435458],[23119392340457,10370996263128],[33580041883645,30853043801439],[16088998776349,26582553799061],[1,113],[22289850177970,716865680835],[2504656109032,4175642461830],[1,122],[3060797962643,13971757153093],[25462814539885,26386768316143],[6064246205996,19199216711093],[28871295273866,29013315976917],[20485709928607,21849838143576],[8898364078510,24570133647151],[28871295273866,29013315976917],[9285222567600,3123239293725],[3180286786257,33475263783273],[9539852682575,36370106791277],[10304518854412,5530469661717],[18072155013312,31142081727532],[38090100443913,25060082299897],[16088998776349,26582553799061],[2916562363890,37949595973344],[28871295273866,20361696405859],[20640365499672,390446431320],[33787696362125,23733281494656],[38090100443913,2293174391127],[7066325453257,25251140844423],[9008468196307,38671366899668],[20753577694059,3027232228382],[22289850177970,19104879462261],[25550838393803,36260517821948],[28562016216919,25347204943217],[25550838393803,35595684071825],[26072565355155,37647406858652],[9008468196307,21431670373626],[5312023043230,27299718188684],[15764341295284,8282183145499],[1881365963625,11547547202085],[28871295273866,20361696405859],[33604145840536,5118260660346],[5312023043230,27299718188684],[7066325453257,882498387805],[9539852682575,12257809420047],[10304518854412,17617946558741],[25099884345130,11714671836600],[6064246205996,34939401045258],[1,32],[18072155013312,30716086992744],[9285222567600,8231996189298],[4962372274350,38826222235842],[18689839150260,11669393435458],[7066325453257,25251140844423],[18445408025851,20096060165399],[12342086742816,2108530445276],[10793236508135,15938434791356],[28871295273866,29013315976917],[9481333848343,17361975891447],[9481333848343,13596668621199],[9285222567600,6112645318277],[33604145840536,38232291371698],[25099884345130,1205146699679],[12342086742816,11655049219284],[16924450558483,18505093669303],[2504656109032,4175642461830],[7066325453257,33346896116128],[10793236508135,30172893926115],[18072155013312,9489499371035],[2504656109032,26329907637715],[26072565355155,16982414953094],[12342086742816,11655049219284],[16088998776349,26582553799061],[3180286786257,24406301293504],[25616939055286,17375694815342]],
> 39999999956731,
> [65,66,67,68,65,44,32,82,101,109,97,114,113,117,101,122,32,113,117,101,32,100,101,115,32,108,101,116,116,114,101,115,32,105,100,101,110,116,105,113,117,101,115,32,110,101,32,115,111,110,116,32,112,97,115,32,99,111,100,101,101,115,32,100,101,32,108,97,32,109,101,109,101,32,109,97,110,105,101,114,101,33],
> "ABCDA, Remarquez que des lettres identiques ne sont pas codees de la meme maniere!"
FAIL chk_fhan11 (exit status: 1)

FAIL: chk_fhan12
================

// Using locale /usr/share/locale/
// C
// /usr/share/locale/
// giac
// UTF-8
// Maximum number of parallel threads 4
// Unable to find keyword file doc/en/keywords
Added 0 synonyms
// Success
// End defining orbites
// Warning: X, declared as global variable(s). If symbolic variables are required, declare them as local and run purge
// End defining phi
// Warning: P, declared as global variable(s). If symbolic variables are required, declare them as local and run purge
// End defining puiss
// Warning: P,x, declared as global variable(s). If symbolic variables are required, declare them as local and run purge
// End defining puiss
// Warning: puiss,q, declared as global variable(s). If symbolic variables are required, declare them as local and run purge
// End defining testcarre
// Warning: puiss,q, declared as global variable(s). If symbolic variables are required, declare them as local and run purge
// End defining inve
// Success
// End defining ordre
============== restarted ===============
// Time 0
// Time 0
// Time 0
Assigning variables a and K
Now e.g. a^200+1 will build an element of K
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0.02
Assigning variables b and L
Now e.g. b^200+1 will build an element of L
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0.01
// Time 0
1,2
2,4
2,8
4,16
8,32
16,64
32,128
64,256
// Time 0
(X-1)*(X+1),2
(X-1)*(X+1)*(X^2+1),4
(X-1)*(X+1)*(X^2+1)*(X^4+1),8
(X-1)*(X+1)*(X^2+1)*(X^4+1)*(X^8+1),16
(X-1)*(X+1)*(X^2+1)*(X^4+1)*(X^8+1)*(X^16+1),32
(X-1)*(X+1)*(X^2+1)*(X^4+1)*(X^8+1)*(X^16+1)*(X^32+1),64
(X-1)*(X+1)*(X^2+1)*(X^4+1)*(X^8+1)*(X^16+1)*(X^32+1)*(X^64+1),128
(X-1)*(X+1)*(X^2+1)*(X^4+1)*(X^8+1)*(X^16+1)*(X^32+1)*(X^64+1)*(X^128+1),256
// Time 0
// Time 0
1*X+1
1*X^2+1
(1*X^2+1*X-1)*(1*X^2-1*X-1)
(1*X^4+1*X^2-1)*(1*X^4-1*X^2-1)
(1*X^8+1*X^4-1)*(1*X^8-1*X^4-1)
(1*X^16+1*X^8-1)*(1*X^16-1*X^8-1)
(1*X^32+1*X^16-1)*(1*X^32-1*X^16-1)
(1*X^64+1*X^32-1)*(1*X^64-1*X^32-1)
// Time 0.01
i_i_:64
// Time 0
// Time 0.01
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0.01
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0.01
// Time 0
// Time 0
// Time 0.01
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0.01
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
  ***   bug in PARI/GP (Segmentation Fault), please report.Segmentation fault
129a130
> 0
FAIL chk_fhan12 (exit status: 1)

FAIL: chk_fhan13
================

// Using locale /usr/share/locale/
// C
// /usr/share/locale/
// giac
// UTF-8
// Maximum number of parallel threads 4
// Unable to find keyword file doc/en/keywords
Added 0 synonyms
// Warning: x, declared as global variable(s). If symbolic variables are required, declare them as local and run purge
// End defining facto1
// Warning: x, declared as global variable(s). If symbolic variables are required, declare them as local and run purge
// End defining facto2
============== restarted ===============
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
// Time 0
  ***     ***   bug in type, please report.Segmentation fault
15c15,98
< 
---
> (1 % 7)*X^6-1 % 7,
> ((1 % 7)*X+1 % 7)*((1 % 7)*X-1 % 7)*((1 % 7)*X+2 % 7)*((1 % 7)*X-2 % 7)*((1 % 7)*X+3 % 7)*((1 % 7)*X-3 % 7),
> (-3 % 7)*X^3+(0 % 7)*X^2+(0 % 7)*X-3 % 7,
> X^6-1,
> 2*X^3-2 % 7,
> (2*X^3-2 % 7)*(1 % 7),
> (-3 % 7)*X^3+(0 % 7)*X^2+(0 % 7)*X-3 % 7,
> (-3 % 7)*X^3+(0 % 7)*X^2+(0 % 7)*X-3 % 7,
> (1 % 7)*X^3-1 % 7,
> "No such variable a","No such variable b","No such variable c","No such variable d","No such variable e",
> a*b^2*c^3*d^4*e^6,
> a*b*d,
> a*b^2*c^3*d^4*e^6,
> a*b*d,
> a*b*d,
> b*c^3*d^3*e^6,
> b*d,
> c^3*d^2*e^6,
> a,
> d,
> c^3*d*e^6,
> b,
> d,
> c^3*e^6,
> 1,
> c*e^2,
> c*e,
> c*e,
> e,
> e,
> 1,
> c,
> 1,
> e,
> proc(P,p) 
>   local VV,T,V,k,L; 
>   T:=irem(Gcd(P,diff(P,x)),p);  
>   V:=irem(Quo(P,T),p);  
>   V:=irem(Gcd(P,V),p);  
>   T:=irem(Quo(P,V),p);  
>   L:=copy([]);  
>   k:=1;  
>   while (degree(V))>0 do  
>     VV:=V; 
>     V:=irem(Gcd(T,V),p); 
>     T:=irem(Quo(T,V),p); 
>     if (degree(V))<(degree(VV)) then L:=copy([op(L),[irem(Quo(VV,V),p),k]]); 
>     fi ; 
>     k:=k+1; 
>    od;  
>   L;  
>  
> end;,
> 1*x*(1*x+1)*(1*x-1)*(1*x+2)*(1*x-2)*(1*x+3)*(1*x-3)*(1*x^2+1)*(1*x^2+2)*(1*x^2-3)*(1*x^2+1*x-1)*(1*x^2+1*x+3)*(1*x^2+1*x-3)*(1*x^2-1*x-1)*(1*x^2-1*x+3)*(1*x^2-1*x-3)*(1*x^2+2*x+2)*(1*x^2+2*x-2)*(1*x^2+2*x+3)*(1*x^2-2*x+2)*(1*x^2-2*x-2)*(1*x^2-2*x+3)*(1*x^2+3*x+1)*(1*x^2+3*x-1)*(1*x^2+3*x-2)*(1*x^2-3*x+1)*(1*x^2-3*x-1)*(1*x^2-3*x-2),
> x^81+3*x^80+5*x^79+4*x^78+4*x^77+4*x^75+3*x^74+4*x^73+3*x^71+5*x^70+6*x^69+6*x^68+x^67+5*x^66+2*x^64+6*x^63+6*x^62+x^61+3*x^59+5*x^58+4*x^57+2*x^56+2*x^55+x^54+6*x^52+5*x^51+x^50+3*x^49+4*x^48+4*x^47+6*x^45+6*x^44+x^43+6*x^42+4*x^41+5*x^40+5*x^39+4*x^38+x^37+3*x^36+5*x^35+2*x^34+6*x^33+x^32+x^31+6*x^29+x^27+4*x^26+3*x^24+6*x^23+4*x^22+5*x^21+2*x^20+2*x^19+x^18+6*x^17+x^16+x^15+2*x^13+3*x^12+5*x^11+x^10+5*x^9+6*x^8+2*x^7,
> (1*x)^7*(1*x+1)*(1*x-1)^4*(1*x+2)^3*(1*x^2-1*x-1)^9*(1*x^2-1*x-3)^7*(1*x^2-2*x-2)^14*(1*x^2+3*x-2)^3,
> [[1*x+1,1],[1*x^3-2*x^2-3*x+3,3],[1*x-1,4],[1*x^2-1*x-1,9]],
> proc(P,p) 
>   local VV,T,V,k,L,j; 
>   T:=irem(Gcd(P,diff(P,x)),p);  
>   V:=irem(Quo(P,T),p);  
>   T:=irem(Quo(P,V),p);  
>   L:=copy([]);  
>   k:=1;  
>   j:=1;  
>   while (degree(T))>0 do  
>     while (degree(V))>0 do  
>       VV:=V; 
>       V:=irem(Gcd(T,V),p); 
>       T:=irem(Quo(T,V),p); 
>       if (degree(V))<(degree(VV)) then L:=copy([op(L),[irem(Quo(VV,V),p),k]]); 
>       fi ; 
>       k:=k+j; 
>      od; 
>     j:=j*p; 
>     k:=j; 
>     T:=poly2symb([seq(coeff(T,i*p),i=((degree(T)/p) .. 1))],x); 
>     V:=irem(Quo(T,irem(Gcd(T,diff(T,x)),p)),p); 
>     T:=irem(Quo(T,V),p); 
>    od;  
>   L;  
>  
> end;,
> [[1*x+1,1],[1*x^3-2*x^2-3*x+3,3],[1*x-1,4],[1*x^2-1*x-1,9],[1*x^2-1*x-3,7],[1*x^2-2*x-2,14]]
FAIL chk_fhan13 (exit status: 1)

============================================================================
Testsuite summary for giac 1.9.0
============================================================================
# TOTAL: 30
# PASS:  24
# SKIP:  0
# XFAIL: 0
# FAIL:  6
# XPASS: 0
# ERROR: 0
From 92c886ee6cf79de39f36f6877cf65ec847e10f14 Mon Sep 17 00:00:00 2001
From: Ileana Dumitrescu <ileanadumi95@protonmail.com>
Date: Wed, 12 Oct 2022 16:36:59 +0300
Subject: [PATCH] pari

---
 src/pari.cc | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/pari.cc b/src/pari.cc
index 76ce8e1..0f2fa84 100644
--- a/src/pari.cc
+++ b/src/pari.cc
@@ -749,7 +749,7 @@ namespace giac {
     RET_INT=2,
     RET_LONG=3
   };
-  typedef GEN (*PFGEN)(ANYARG);
+  typedef GEN (*PFGEN)();
 
   extern const unary_function_ptr * const  at_pari;
   static gen in_pari(const gen & args,GIAC_CONTEXT){
@@ -880,19 +880,19 @@ namespace giac {
 	  switch (ret)
 	    {
 	    case RET_GEN:
-	      res = ((PFGEN)call)(_ARGS_);
+	      res = ((PFGEN)call)();
 	      break;
 
 	    case RET_INT:
-	      m = (long)((int (*)(ANYARG))call)(_ARGS_);
+	      m = (long)((int (*)())call)();
 	      res = stoi(m); break;
 
 	    case RET_LONG:
-	      m = ((long (*)(ANYARG))call)(_ARGS_);
+	      m = ((long (*)())call)();
 	      res = stoi(m); break;
 
 	    case RET_VOID:
-	      ((void (*)(ANYARG))call)(_ARGS_);
+	      ((void (*)())call)();
 	      res = gnil; break;
 	    }
 
-- 
2.37.2


Reply to: