c++/8226: g++ unable to complete compilation

kalbun@inwind.it kalbun@inwind.it
Mon Oct 14 12:46:00 GMT 2002


>Number:         8226
>Category:       c++
>Synopsis:       g++ unable to complete compilation
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 14 12:46:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     kalbun@inwind.it
>Release:        2.96
>Organization:
>Environment:
Mandrake linux 8.2
>Description:
Compilation of this file only succeeds with optimisation disabled. Using any level beyond zero results in the compilator never terminating the work and allocating an increasing amount of memory (I saw up to 300 Mb before stopping).
The problem is systematic.
>How-To-Repeat:
g++ -DHAVE_CONFIG_H -I. -I/home/sauron/cemento/cemento -I..   -DNDEBUG -DNO_DEBUG -O2 -O0 -Wall -I/usr/include/SDL -I/usr/include/paragui -I/usr/include/freetype2 -fno_exceptions -fno-check-new -fexceptions .c resources.cpp
>Fix:
Compile with -O0
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="resources.i"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="resources.i"

IyA5ICJyZXNvdXJjZXMuY3BwIgojIDEgIi91c3IvaW5jbHVkZS9zdGRpby5oIiAxIDMKIyAyOCAi
L3Vzci9pbmNsdWRlL3N0ZGlvLmgiIDMKIyAxICIvdXNyL2luY2x1ZGUvZmVhdHVyZXMuaCIgMSAz
CiMgMjgzICIvdXNyL2luY2x1ZGUvZmVhdHVyZXMuaCIgMwojIDEgIi91c3IvaW5jbHVkZS9zeXMv
Y2RlZnMuaCIgMSAzCiMgMjg0ICIvdXNyL2luY2x1ZGUvZmVhdHVyZXMuaCIgMiAzCiMgMzEyICIv
dXNyL2luY2x1ZGUvZmVhdHVyZXMuaCIgMwojIDEgIi91c3IvaW5jbHVkZS9nbnUvc3R1YnMuaCIg
MSAzCiMgMzEzICIvdXNyL2luY2x1ZGUvZmVh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XRhOwoKCgp0eXBlZGVmIGludCAoKl9fZ2NvbnZfZmN0KSAoc3RydWN0IF9fZ2Nv
bnZfc3RlcCAqLCBzdHJ1Y3QgX19nY29udl9zdGVwX2RhdGEgKiwKICAgICAgICAgICAgICAgICAg
ICAgICAgICAgIGNvbnN0IHVuc2lnbmVkIGNoYXIgKiosIGNvbnN0IHVuc2lnbmVkIGNoYXIgKiwK
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVuc2lnbmVkIGNoYXIgKiosIHNpemVfdCAqLCBp
bnQsIGludCk7CgoKdHlwZWRlZiBpbnQgKCpfX2djb252X2luaXRfZmN0KSAoc3RydWN0IF9fZ2Nv
bnZfc3RlcCAqKTsKdHlwZWRlZiB2b2lkICgqX19nY29udl9lbmRfZmN0KSAoc3RydWN0IF9fZ2Nv
bnZfc3RlcCAqKTsKCgoKdHlwZWRlZiBpbnQgKCpfX2djb252X3RyYW5zX2ZjdCkgKHN0cnVjdCBf
X2djb252X3N0ZXAgKiwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cnVjdCBf
X2djb252X3N0ZXBfZGF0YSAqLCB2b2lkICosCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICBjb25zdCB1bnNpZ25lZCBjaGFyICosCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICBjb25zdCB1bnNpZ25lZCBjaGFyICoqLAogICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgY29uc3QgdW5zaWduZWQgY2hhciAqLCB1bnNpZ25lZCBjaGFyICoqLAogICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgc2l6ZV90ICopOwoKCnR5cGVkZWYgaW50ICgqX19nY29u
dl90cmFuc19jb250ZXh0X2ZjdCkgKHZvaWQgKiwgY29uc3QgdW5zaWduZWQgY2hhciAqLAogICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCB1bnNpZ25lZCBjaGFy
ICosC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JuIGludCB2cHJpbnRmIChjb25zdCBj
aGFyICogX19mb3JtYXQsIF9fZ251Y192YV9saXN0IF9fYXJnKQogICAgICAgICAgICA7CgpleHRl
cm4gaW50IHZzcHJpbnRmIChjaGFyICogX19zLCBjb25zdCBjaGFyICogX19mb3JtYXQsCiAgICAg
ICAgICAgICAgICAgICAgIF9fZ251Y192YV9saXN0IF9fYXJnKSA7CgoKCmV4dGVybiBpbnQgc25w
cmludGYgKGNoYXIgKiBfX3MsIHNpemVfdCBfX21heGxlbiwKICAgICAgICAgICAgICAgICAgICAg
Y29uc3QgY2hhciAqIF9fZm9ybWF0LCAuLi4pCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDsKCmV4dGVybiBpbnQgdnNucHJpbnRmIChj
aGFyICogX19zLCBzaXplX3QgX19tYXhsZW4sCiAgICAgICAgICAgICAgICAgICAgICBjb25zdCBj
aGFyICogX19mb3JtYXQsIF9fZ251Y192YV9saXN0IF9fYXJnKQogICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA7CiMgMzI3ICIvdXNyL2lu
Y2x1ZGUvc3RkaW8uaCIgMwpleHRlcm4gaW50IGZzY2FuZiAoRklMRSAqIF9fc3RyZWFtLAogICAg
ICAgICAgICAgICAgICAgY29uc3QgY2hhciAqIF9fZm9ybWF0LCAuLi4pIDsKCmV4dGVybiBpbnQg
c2NhbmYgKGNvbnN0IGNoYXIgKiBfX2Zvcm1hdCwgLi4uKSA7CgpleHRlcm4gaW50IHNzY2FuZiAo
Y29uc3QgY2hhciAqIF9fcywKICAgICAgICAgICAgICAgICAgIGNvbnN0IGNoYXIgKiBfX2Zvcm1h
dCwgLi4uKSA7CiMgMzUzICIvdXNyL2luY2x1ZGUvc3RkaW8uaCIgMwpleHRlcm4gaW50IGZnZXRj
IChGSUxFICpfX3N0cmVhbSkgOwpleHRlcm4gaW50IGdldGMgK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1vdmUgKHZvaWQgKl9fZGVzdCwgY29uc3Qgdm9pZCAqX19zcmMs
IHNpemVfdCBfX24pCiAgICAgICAgICAgIDsKCgoKCgpleHRlcm4gdm9pZCAqbWVtY2NweSAodm9p
ZCAqIF9fZGVzdCwgY29uc3Qgdm9pZCAqIF9fc3JjLAogICAgICAgICAgICAgICAgICAgICAgaW50
IF9fYywgc2l6ZV90IF9fbikKICAgICAgICAgICAgOwoKCgoKZXh0ZXJuIHZvaWQgKm1lbXNldCAo
dm9pZCAqX19zLCBpbnQgX19jLCBzaXplX3QgX19uKSA7CgoKZXh0ZXJuIGludCBtZW1jbXAgKGNv
bnN0IHZvaWQgKl9fczEsIGNvbnN0IHZvaWQgKl9fczIsIHNpemVfdCBfX24pCiAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICA7CgoKZXh0ZXJuIHZvaWQgKm1lbWNociAoY29uc3Qgdm9pZCAq
X19zLCBpbnQgX19jLCBzaXplX3QgX19uKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
IDsKIyA3NyAiL3Vzci9pbmNsdWRlL3N0cmluZy5oIiAzCmV4dGVybiBjaGFyICpzdHJjcHkgKGNo
YXIgKiBfX2Rlc3QsIGNvbnN0IGNoYXIgKiBfX3NyYykKICAgICAgICAgICAgOwoKZXh0ZXJuIGNo
YXIgKnN0cm5jcHkgKGNoYXIgKiBfX2Rlc3QsCiAgICAgICAgICAgICAgICAgICAgICBjb25zdCBj
aGFyICogX19zcmMsIHNpemVfdCBfX24pIDsKCgpleHRlcm4gY2hhciAqc3RyY2F0IChjaGFyICog
X19kZXN0LCBjb25zdCBjaGFyICogX19zcmMpCiAgICAgICAgICAgIDsKCmV4dGVybiBjaGFyICpz
dHJuY2F0IChjaGFyICogX19kZXN0LCBjb25zdCBjaGFyICogX19zcmMsCiAgICAgICAgICAgICAg
ICAgICAgICBzaXplX3QgX19uKSA7CgoKZXh0ZXJuIGludCBzdHJjbXAgKGNvbnN0IGNoYXIgKl9f
czEsIGNvbnN0IGNoYXIgKl9fczIpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA7Cgpl
eHRlcm4gaW50IHN0cm5jbXAgKGNvbnN0IGNoYXIgKl9fczEsIGNvbnN0IGNoYXIgKl9fczIsIHNp
emVfdCBfX24pCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA7CgoKZXh0ZXJuIGludCBz
dHJjb2xsIChjb25zdCBjaGFyICpfX3MxLCBjb25zdCBjaGFyICpfX3MyKQogICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgOwoKZXh0ZXJuIHNpemVfdCBzdHJ4ZnJtIChjaGFyICogX19kZXN0
LAogICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGNoYXIgKiBfX3NyYywgc2l6ZV90IF9fbikg
OwojIDEyMCAiL3Vzci9pbmNsdWRlL3N0cmluZy5oIiAzCmV4dGVybiBjaGFyICpzdHJkdXAgKGNv
bnN0IGNoYXIgKl9fcykgOwojIDE1NSAiL3Vzci9pbmNsdWRlL3N0cmluZy5oIiAzCmV4dGVybiBj
aGFyICpzdHJjaHIgKGNvbnN0IGNoYXIgKl9fcywgaW50IF9fYykgOwoKZXh0ZXJuIGNoYXIgKnN0
cnJjaHIgKGNvbnN0IGNoYXIgKl9fcywgaW50IF9fYykgOwojIDE2NyAiL3Vzci9pbmNsdWRlL3N0
cmluZy5oIiAzCmV4dGVybiBzaXplX3Qgc3RyY3NwbiAoY29uc3QgY2hhciAqX19zLCBjb25zdCBj
aGFyICpfX3JlamVjdCkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDsKCgpleHRlcm4g
c2l6ZV90IHN0cnNwbiAoY29uc3QgY2hhciAqX19zLCBjb25zdCBjaGFyICpfX2FjY2VwdCkKICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIDsKCmV4dGVybiBjaGFyICpzdHJwYnJrIChjb25z
dCBjaGFyICpfX3MsIGNvbnN0IGNoYXIgKl9fYWNjZXB0KQogICAgICAgICA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cmVhbSYgcmVhZChjaGFyICpwdHIsIHN0cmVhbXNpemUgbik7
CiAgICBpc3RyZWFtJiByZWFkKHVuc2lnbmVkIGNoYXIgKnB0ciwgc3RyZWFtc2l6ZSBuKQogICAg
ICB7IHJldHVybiByZWFkKChjaGFyKilwdHIsIG4pOyB9CiAgICBpc3RyZWFtJiByZWFkKHNpZ25l
ZCBjaGFyICpwdHIsIHN0cmVhbXNpemUgbikKICAgICAgeyByZXR1cm4gcmVhZCgoY2hhciopcHRy
LCBuKTsgfQogICAgaXN0cmVhbSYgcmVhZCh2b2lkICpwdHIsIHN0cmVhbXNpemUgbikKICAgICAg
eyByZXR1cm4gcmVhZCgoY2hhciopcHRyLCBuKTsgfQogICAgaXN0cmVhbSYgZ2V0KHN0cmVhbWJ1
ZiYgc2IsIGNoYXIgZGVsaW0gPSAnXG4nKTsKICAgIGlzdHJlYW0mIGdldHMoY2hhciAqKnMsIGNo
YXIgZGVsaW0gPSAnXG4nKTsKICAgIGludCBpcGZ4KGludCBuZWVkID0gMCkgewogICAgICAgIGlm
ICghZ29vZCgpKSB7IHNldChpb3M6OmZhaWxiaXQpOyByZXR1cm4gMDsgfQogICAgICAgIGVsc2Ug
ewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDsKICAgICAgICAgIGlmIChfdGllICYm
IChuZWVkID09IDAgfHwgcmRidWYoKS0+aW5fYXZhaWwoKSA8IG5lZWQpKSBfdGllLT5mbHVzaCgp
OwogICAgICAgICAgaWYgKCFuZWVkICYmIChmbGFncygpICYgaW9zOjpza2lwd3MpKSByZXR1cm4g
X3NraXBfd3MoKTsKICAgICAgICAgIGVsc2UgcmV0dXJuIDE7CiAgICAgICAgfQogICAgfQogICAg
aW50IGlwZngwKCkgewogICAgICAgIGlmICghZ29vZCgpKSB7IHNldChpb3M6OmZhaWxiaXQpOyBy
ZXR1cm4gMDsgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
IDsKICAgICAgICAgIGlmIChfdGllKSBfdGllLT5mbHVzaCgpOwogICAgICAgICAgaWYgKGZsYWdz
KCkgJiBpb3M6OnNraXB3cykgcmV0dXJuIF9za2lwX3dzKCk7CiAgICAgICAgICBlbHNlIHJldHVy
biAxOwogICAgICAgIH0KICAgIH0KICAgIGludCBpcGZ4MSgpIHsKICAgICAgICBpZiAoIWdvb2Qo
KSkgeyBzZXQoaW9zOjpmYWlsYml0KTsgcmV0dXJuIDA7IH0KICAgICAgICBlbHNlIHsKICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICA7CiAgICAgICAgICBpZiAoX3RpZSAmJiByZGJ1Zigp
LT5pbl9hdmFpbCgpID09IDApIF90aWUtPmZsdXNoKCk7CiAgICAgICAgICByZXR1cm4gMTsKICAg
ICAgICB9CiAgICB9CiAgICB2b2lkIGlzZngoKSB7IDsgfQogICAgaW50IGdldCgpIHsgaWYgKCFp
cGZ4MSgpKSByZXR1cm4gKC0xKTsKICAgICAgICAgICAgICAgIGVsc2UgeyBpbnQgY2ggPSBfc3Ry
YnVmLT5zYnVtcGMoKTsKICAgICAgICAgICAgICAgICAgICAgICBpZiAoY2ggPT0gKC0xKSkgc2V0
KGlvczo6ZW9mYml0KTsKICAgICAgICAgICAgICAgICAgICAgICBpc2Z4KCk7CiAgICAgICAgICAg
ICAgICAgICAgICAgcmV0dXJuIGNoOwogICAgICAgICAgICAgICAgICAgICB9IH0KICAgIGludCBw
ZWVrKCk7CiAgICBzaXplX3QgZ2NvdW50KCkgeyByZXR1cm4gX2djb3VudDsgfQogICAgaXN0cmVh
bSYgaWdub3JlKGludCBuPTEsIGludCBkZWxpbSA9ICgtMSkpOwogICAgaW50IHN5bmMgKCk7CiAg
ICBpc3RyZWFtJiBzZWVrZyhzdHJlYW1wb3MpOwogICAgaXN0cmVhbSYgc2Vla2coc3RyZWFtb2Zm
LCBfc2Vla19kaXIpOwogICAgc3RyZWFtcG9zIHRlbGxnKCk7CiAgICBpc3RyZWFtJiBwdXRiYWN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dWRlL3N0ZGxpYi5oIiAzCmV4
dGVybiBkb3VibGUgc3RydG9kIChjb25zdCBjaGFyICogX19ucHRyLAogICAgICAgICAgICAgICAg
ICAgICAgY2hhciAqKiBfX2VuZHB0cikgOwojIDE2MyAiL3Vzci9pbmNsdWRlL3N0ZGxpYi5oIiAz
CmV4dGVybiBsb25nIGludCBzdHJ0b2wgKGNvbnN0IGNoYXIgKiBfX25wdHIsCiAgICAgICAgICAg
ICAgICAgICAgICAgIGNoYXIgKiogX19lbmRwdHIsIGludCBfX2Jhc2UpIDsKCmV4dGVybiB1bnNp
Z25lZCBsb25nIGludCBzdHJ0b3VsIChjb25zdCBjaGFyICogX19ucHRyLAogICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgY2hhciAqKiBfX2VuZHB0ciwgaW50IF9fYmFzZSkKICAgICAg
ICAgICAgOwojIDI1MCAiL3Vzci9pbmNsdWRlL3N0ZGxpYi5oIiAzCmV4dGVybiBkb3VibGUgX19z
dHJ0b2RfaW50ZXJuYWwgKGNvbnN0IGNoYXIgKiBfX25wdHIsCiAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgIGNoYXIgKiogX19lbmRwdHIsIGludCBfX2dyb3VwKQogICAgICAgICAgICA7
CmV4dGVybiBmbG9hdCBfX3N0cnRvZl9pbnRlcm5hbCAoY29uc3QgY2hhciAqIF9fbnB0ciwKICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjaGFyICoqIF9fZW5kcHRyLCBpbnQgX19ncm91
cCkKICAgICAgICAgICAgOwpleHRlcm4gbG9uZyBkb3VibGUgX19zdHJ0b2xkX2ludGVybmFsIChj
b25zdCBjaGFyICogX19ucHRyLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICBjaGFyICoqIF9fZW5kcHRyLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICBpbnQgX19ncm91cCkgOwoKZXh0ZXJuIGxvbmcgaW50IF9fc3RydG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90IF9fc2l6ZSwgX19j
b21wYXJfZm5fdCBfX2NvbXBhcik7CgoKCmV4dGVybiB2b2lkIHFzb3J0ICh2b2lkICpfX2Jhc2Us
IHNpemVfdCBfX25tZW1iLCBzaXplX3QgX19zaXplLAogICAgICAgICAgICAgICAgICAgX19jb21w
YXJfZm5fdCBfX2NvbXBhcik7CgoKCmV4dGVybiBpbnQgYWJzIChpbnQgX194KSA7CmV4dGVybiBs
b25nIGludCBsYWJzIChsb25nIGludCBfX3gpIDsKIyA3MTAgIi91c3IvaW5jbHVkZS9zdGRsaWIu
aCIgMwpleHRlcm4gZGl2X3QgZGl2IChpbnQgX19udW1lciwgaW50IF9fZGVub20pCiAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA7CmV4dGVybiBsZGl2X3QgbGRpdiAobG9u
ZyBpbnQgX19udW1lciwgbG9uZyBpbnQgX19kZW5vbSkKICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgIDsKIyA3MjggIi91c3IvaW5jbHVkZS9zdGRsaWIuaCIgMwpleHRlcm4g
Y2hhciAqZWN2dCAoZG91YmxlIF9fdmFsdWUsIGludCBfX25kaWdpdCwgaW50ICogX19kZWNwdCwK
ICAgICAgICAgICAgICAgICAgIGludCAqIF9fc2lnbikgOwoKCgoKZXh0ZXJuIGNoYXIgKmZjdnQg
KGRvdWJsZSBfX3ZhbHVlLCBpbnQgX19uZGlnaXQsIGludCAqIF9fZGVjcHQsCiAgICAgICAgICAg
ICAgICAgICBpbnQgKiBfX3NpZ24pIDsKCgoKCmV4dGVybiBjaGFyICpnY3Z0IChkb3VibGUgX192
YWx1ZSwgaW50IF9fbmRpZ2l0LCBjaGFyICpfX2J1ZikgOwoKCgoKZXh0ZXJuIGNoYXIgKnFlY3Z0
IChsb25nIGRvdWJsZSBfX3ZhbHVlLCBpbnQgX19uZGlnaXQsCiAgICAgICAgICAgICAgICAgICAg
aW50ICogX19kZWNwdCwgaW50ICogX19zaWduKSA7CmV4dGVybiBjaGFyICpxZmN2dCAobG9uZyBk
b3VibGUgX192YWx1ZSwgaW50IF9fbmRpZ2l0LAogICAgICAgICAgICAgICAgICAgIGludCAqIF9f
ZGVjcHQsIGludCAqIF9fc2lnbikgOwpleHRlcm4gY2hhciAqcWdjdnQgKGxvbmcgZG91YmxlIF9f
dmFsdWUsIGludCBfX25kaWdpdCwgY2hhciAqX19idWYpIDsKCgoKCmV4dGVybiBpbnQgZWN2dF9y
IChkb3VibGUgX192YWx1ZSwgaW50IF9fbmRpZ2l0LCBpbnQgKiBfX2RlY3B0LAogICAgICAgICAg
ICAgICAgICAgaW50ICogX19zaWduLCBjaGFyICogX19idWYsCiAgICAgICAgICAgICAgICAgICBz
aXplX3QgX19sZW4pIDsKZXh0ZXJuIGludCBmY3Z0X3IgKGRvdWJsZSBfX3ZhbHVlLCBpbnQgX19u
ZGlnaXQsIGludCAqIF9fZGVjcHQsCiAgICAgICAgICAgICAgICAgICBpbnQgKiBfX3NpZ24sIGNo
YXIgKiBfX2J1ZiwKICAgICAgICAgICAgICAgICAgIHNpemVfdCBfX2xlbikgOwoKZXh0ZXJuIGlu
dCBxZWN2dF9yIChsb25nIGRvdWJsZSBfX3ZhbHVlLCBpbnQgX19uZGlnaXQsCiAgICAgICAgICAg
ICAgICAgICAgaW50ICogX19kZWNwdCwgaW50ICogX19zaWduLAogICAgICAgICAgICAgICAgICAg
IGNoYXIgKiBfX2J1Ziwgc2l6ZV90IF9fbGVuKSA7CmV4dGVybiBpbnQgcWZjdnRfciAobG9uZyBk
b3VibGUgX192YWx1ZSwgaW50IF9fbmRpZ2l0LAogICAgICAgICAgICAgICAgICAgIGludCAqIF9f
ZGVjcHQsIGludCAqIF9fc2lnbiwKICAgICAgICAgICAgICAgICAgICBjaGFyICogX19idWYsIHNp
emVfdCBfX2xlbikgOwoKCgoKCgpleHRlcm4gaW50IG1ibGVuIChjb25zdCBjaGFyICpfX3MsIHNp
emVfdCBfX24pIDsKCgpleHRlcm4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AgICBfU19zdGFydF9mcmVlICs9IF9fdG90YWxfYnl0ZXM7CiAgICAgICAgcmV0
dXJuKF9fcmVzdWx0KTsKICAgIH0gZWxzZSB7CiAgICAgICAgc2l6ZV90IF9fYnl0ZXNfdG9fZ2V0
ID0KICAgICAgICAgIDIgKiBfX3RvdGFsX2J5dGVzICsgX1Nfcm91bmRfdXAoX1NfaGVhcF9zaXpl
ID4+IDQpOwoKICAgICAgICBpZiAoX19ieXRlc19sZWZ0ID4gMCkgewogICAgICAgICAgICBfT2Jq
KiAqIF9fbXlfZnJlZV9saXN0ID0KICAgICAgICAgICAgICAgICAgICAgICAgX1NfZnJlZV9saXN0
ICsgX1NfZnJlZWxpc3RfaW5kZXgoX19ieXRlc19sZWZ0KTsKCiAgICAgICAgICAgICgoX09iaiop
X1Nfc3RhcnRfZnJlZSkgLT4gX01fZnJlZV9saXN0X2xpbmsgPSAqX19teV9mcmVlX2xpc3Q7CiAg
ICAgICAgICAgICpfX215X2ZyZWVfbGlzdCA9IChfT2JqKilfU19zdGFydF9mcmVlOwogICAgICAg
IH0KICAgICAgICBfU19zdGFydF9mcmVlID0gKGNoYXIqKW1hbGxvYyhfX2J5dGVzX3RvX2dldCk7
CiAgICAgICAgaWYgKDAgPT0gX1Nfc3RhcnRfZnJlZSkgewogICAgICAgICAgICBzaXplX3QgX19p
OwogICAgICAgICAgICBfT2JqKiAqIF9fbXlfZnJlZV9saXN0OwogICAgICAgICAgICBfT2JqKiBf
X3A7CgoKCiAgICAgICAgICAgIGZvciAoX19pID0gX19zaXplOyBfX2kgPD0gX01BWF9CWVRFUzsg
X19pICs9IF9BTElHTikgewogICAgICAgICAgICAgICAgX19teV9mcmVlX2xpc3QgPSBfU19mcmVl
X2xpc3QgKyBfU19mcmVlbGlzdF9pbmRleChfX2kpOwogICAgICAgICAgICAgICAgX19wID0gKl9f
bXlfZnJlZV9saXN0OwogICAgICAgICAgICAgICAgaWYgKDAgIT0gX19wKSB7CiAgICAgICAgICAg
ICAgIC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gX19ub2JqcykgcmV0dXJuKF9fY2h1bmsp
OwogICAgX19teV9mcmVlX2xpc3QgPSBfU19mcmVlX2xpc3QgKyBfU19mcmVlbGlzdF9pbmRleChf
X24pOwoKCiAgICAgIF9fcmVzdWx0ID0gKF9PYmoqKV9fY2h1bms7CiAgICAgICpfX215X2ZyZWVf
bGlzdCA9IF9fbmV4dF9vYmogPSAoX09iaiopKF9fY2h1bmsgKyBfX24pOwogICAgICBmb3IgKF9f
aSA9IDE7IDsgX19pKyspIHsKICAgICAgICBfX2N1cnJlbnRfb2JqID0gX19uZXh0X29iajsKICAg
ICAgICBfX25leHRfb2JqID0gKF9PYmoqKSgoY2hhciopX19uZXh0X29iaiArIF9fbik7CiAgICAg
ICAgaWYgKF9fbm9ianMgLSAxID09IF9faSkgewogICAgICAgICAgICBfX2N1cnJlbnRfb2JqIC0+
IF9NX2ZyZWVfbGlzdF9saW5rID0gMDsKICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgfSBlbHNl
IHsKICAgICAgICAgICAgX19jdXJyZW50X29iaiAtPiBfTV9mcmVlX2xpc3RfbGluayA9IF9fbmV4
dF9vYmo7CiAgICAgICAgfQogICAgICB9CiAgICByZXR1cm4oX19yZXN1bHQpOwp9Cgp0ZW1wbGF0
ZSA8Ym9vbCB0aHJlYWRzLCBpbnQgaW5zdD4Kdm9pZCoKX19kZWZhdWx0X2FsbG9jX3RlbXBsYXRl
PHRocmVhZHMsIGluc3Q+OjpyZWFsbG9jYXRlKHZvaWQqIF9fcCwKICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNpemVfdCBfX29sZF9zeiwKICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNpemVfdCBfX25l
d19zeikKewogICAgdm9pZCogX19yZXN1bHQ7CiAgICBzaXplX3QgX19jb3B5X3N6OwoKICAgIGlm
IChfX29sZF9zeiA+IChzaXplX3QpIF9NQVhfQ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IHB1YmxpYyB1bmFyeV9mdW5jdGlvbjx1bnNp
Z25lZCBpbnQsIHVuc2lnbmVkIGludD4gewpwcml2YXRlOgogIHVuc2lnbmVkIGludCBfTV90YWJs
ZVs1NV07CiAgc2l6ZV90IF9NX2luZGV4MTsKICBzaXplX3QgX01faW5kZXgyOwpwdWJsaWM6CiAg
dW5zaWduZWQgaW50IG9wZXJhdG9yKCkodW5zaWduZWQgaW50IF9fbGltaXQpIHsKICAgIF9NX2lu
ZGV4MSA9IChfTV9pbmRleDEgKyAxKSAlIDU1OwogICAgX01faW5kZXgyID0gKF9NX2luZGV4MiAr
IDEpICUgNTU7CiAgICBfTV90YWJsZVtfTV9pbmRleDFdID0gX01fdGFibGVbX01faW5kZXgxXSAt
IF9NX3RhYmxlW19NX2luZGV4Ml07CiAgICByZXR1cm4gX01fdGFibGVbX01faW5kZXgxXSAlIF9f
bGltaXQ7CiAgfQoKICB2b2lkIF9NX2luaXRpYWxpemUodW5zaWduZWQgaW50IF9fc2VlZCkKICB7
CiAgICB1bnNpZ25lZCBpbnQgX19rID0gMTsKICAgIF9NX3RhYmxlWzU0XSA9IF9fc2VlZDsKICAg
IHNpemVfdCBfX2k7CiAgICBmb3IgKF9faSA9IDA7IF9faSA8IDU0OyBfX2krKykgewogICAgICAg
IHNpemVfdCBfX2lpID0gKDIxICogKF9faSArIDEpICUgNTUpIC0gMTsKICAgICAgICBfTV90YWJs
ZVtfX2lpXSA9IF9fazsKICAgICAgICBfX2sgPSBfX3NlZWQgLSBfX2s7CiAgICAgICAgX19zZWVk
ID0gX01fdGFibGVbX19paV07CiAgICB9CiAgICBmb3IgKGludCBfX2xvb3AgPSAwOyBfX2xvb3Ag
PCA0OyBfX2xvb3ArKykgewogICAgICAgIGZvciAoX19pID0gMDsgX19pIDwgNTU7IF9faSsrKQog
ICAgICAgICAgICBfTV90YWJsZVtfX2ldID0gX01fdGFibGVbX19pXSAtIF9NX3RhYmxlWygxICsg
X19pICsgMzApICUgNTVdOwogICA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ktPl9NX3JpZ2h0ID09IDApCiAgICAgIF9feCA9IF9feS0+X01fbGVmdDsKICAgIGVs
c2UgewogICAgICBfX3kgPSBfX3ktPl9NX3JpZ2h0OwogICAgICB3aGlsZSAoX195LT5fTV9sZWZ0
ICE9IDApCiAgICAgICAgX195ID0gX195LT5fTV9sZWZ0OwogICAgICBfX3ggPSBfX3ktPl9NX3Jp
Z2h0OwogICAgfQogIGlmIChfX3kgIT0gX196KSB7CiAgICBfX3otPl9NX2xlZnQtPl9NX3BhcmVu
dCA9IF9feTsKICAgIF9feS0+X01fbGVmdCA9IF9fei0+X01fbGVmdDsKICAgIGlmIChfX3kgIT0g
X196LT5fTV9yaWdodCkgewogICAgICBfX3hfcGFyZW50ID0gX195LT5fTV9wYXJlbnQ7CiAgICAg
IGlmIChfX3gpIF9feC0+X01fcGFyZW50ID0gX195LT5fTV9wYXJlbnQ7CiAgICAgIF9feS0+X01f
cGFyZW50LT5fTV9sZWZ0ID0gX194OwogICAgICBfX3ktPl9NX3JpZ2h0ID0gX196LT5fTV9yaWdo
dDsKICAgICAgX196LT5fTV9yaWdodC0+X01fcGFyZW50ID0gX195OwogICAgfQogICAgZWxzZQog
ICAgICBfX3hfcGFyZW50ID0gX195OwogICAgaWYgKF9fcm9vdCA9PSBfX3opCiAgICAgIF9fcm9v
dCA9IF9feTsKICAgIGVsc2UgaWYgKF9fei0+X01fcGFyZW50LT5fTV9sZWZ0ID09IF9feikKICAg
ICAgX196LT5fTV9wYXJlbnQtPl9NX2xlZnQgPSBfX3k7CiAgICBlbHNlCiAgICAgIF9fei0+X01f
cGFyZW50LT5fTV9yaWdodCA9IF9feTsKICAgIF9feS0+X01fcGFyZW50ID0gX196LT5fTV9wYXJl
bnQ7CiAgICAgICAgIDo6c3dhcChfX3ktPl9NX2NvbG9yLCBfX3otPl9NX2NvbG9yKTsKICAgIF9f
eSA9IF9fejsKCiAgfQogIGVsc2UgewogICAgX194X3BhcmVudCA9IF9feS0+X01fcGFyZW50Owog
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AgICAgICAgX193LT5fTV9jb2xvciA9IF9TX3Ji
X3RyZWVfYmxhY2s7CiAgICAgICAgICBfX3hfcGFyZW50LT5fTV9jb2xvciA9IF9TX3JiX3RyZWVf
cmVkOwogICAgICAgICAgX1JiX3RyZWVfcm90YXRlX2xlZnQoX194X3BhcmVudCwgX19yb290KTsK
ICAgICAgICAgIF9fdyA9IF9feF9wYXJlbnQtPl9NX3JpZ2h0OwogICAgICAgIH0KICAgICAgICBp
ZiAoKF9fdy0+X01fbGVmdCA9PSAwIHx8CiAgICAgICAgICAgICBfX3ctPl9NX2xlZnQtPl9NX2Nv
bG9yID09IF9TX3JiX3RyZWVfYmxhY2spICYmCiAgICAgICAgICAgIChfX3ctPl9NX3JpZ2h0ID09
IDAgfHwKICAgICAgICAgICAgIF9fdy0+X01fcmlnaHQtPl9NX2NvbG9yID09IF9TX3JiX3RyZWVf
YmxhY2spKSB7CiAgICAgICAgICBfX3ctPl9NX2NvbG9yID0gX1NfcmJfdHJlZV9yZWQ7CiAgICAg
ICAgICBfX3ggPSBfX3hfcGFyZW50OwogICAgICAgICAgX194X3BhcmVudCA9IF9feF9wYXJlbnQt
Pl9NX3BhcmVudDsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgaWYgKF9fdy0+X01fcmlnaHQg
PT0gMCB8fAogICAgICAgICAgICAgIF9fdy0+X01fcmlnaHQtPl9NX2NvbG9yID09IF9TX3JiX3Ry
ZWVfYmxhY2spIHsKICAgICAgICAgICAgaWYgKF9fdy0+X01fbGVmdCkgX193LT5fTV9sZWZ0LT5f
TV9jb2xvciA9IF9TX3JiX3RyZWVfYmxhY2s7CiAgICAgICAgICAgIF9fdy0+X01fY29sb3IgPSBf
U19yYl90cmVlX3JlZDsKICAgICAgICAgICAgX1JiX3RyZWVfcm90YXRlX3JpZ2h0KF9fdywgX19y
b290KTsKICAgICAgICAgICAgX193ID0gX194X3BhcmVudC0+X01fcmlnaHQ7CiAgICAgICAgICB9
CiAgICAgICAgICBfX3ctPl9NX2NvbG9yID0gX194X3BhcmVudC0+X01fY29sb3I7CiAgICAgICAg
ICBfX3hfcGFyZW50LT5fTV9jb2xvciA9IF9TX3JiX3RyZWVfYmxhY2s7CiAgICAgICAgICBpZiAo
X193LT5fTV9yaWdodCkgX193LT5fTV9yaWdodC0+X01fY29sb3IgPSBfU19yYl90cmVlX2JsYWNr
OwogICAgICAgICAgX1JiX3RyZWVfcm90YXRlX2xlZnQoX194X3BhcmVudCwgX19yb290KTsKICAg
ICAgICAgIGJyZWFrOwogICAgICAgIH0KICAgICAgfSBlbHNlIHsKICAgICAgICBfUmJfdHJlZV9u
b2RlX2Jhc2UqIF9fdyA9IF9feF9wYXJlbnQtPl9NX2xlZnQ7CiAgICAgICAgaWYgKF9fdy0+X01f
Y29sb3IgPT0gX1NfcmJfdHJlZV9yZWQpIHsKICAgICAgICAgIF9fdy0+X01fY29sb3IgPSBfU19y
Yl90cmVlX2JsYWNrOwogICAgICAgICAgX194X3BhcmVudC0+X01fY29sb3IgPSBfU19yYl90cmVl
X3JlZDsKICAgICAgICAgIF9SYl90cmVlX3JvdGF0ZV9yaWdodChfX3hfcGFyZW50LCBfX3Jvb3Qp
OwogICAgICAgICAgX193ID0gX194X3BhcmVudC0+X01fbGVmdDsKICAgICAgICB9CiAgICAgICAg
aWYgKChfX3ctPl9NX3JpZ2h0ID09IDAgfHwKICAgICAgICAgICAgIF9fdy0+X01fcmlnaHQtPl9N
X2NvbG9yID09IF9TX3JiX3RyZWVfYmxhY2spICYmCiAgICAgICAgICAgIChfX3ctPl9NX2xlZnQg
PT0gMCB8fAogICAgICAgICAgICAgX193LT5fTV9sZWZ0LT5fTV9jb2xvciA9PSBfU19yYl90cmVl
X2JsYWNrKSkgewogICAgICAgICAgX193LT5fTV9jb2xvciA9IF9TX3JiX3RyZWVfcmVkOwogICAg
ICAgICAgX194ID0gX194X3BhcmVudDsKICAgICAgICAgIF9feF9wYXJlbnQgPSBfX3hfcGFyZW50
LT5fTV9wYXJlbnQ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F9feCk7CiAgfQogIHBhaXI8Y29uc3RfaXRlcmF0b3IsY29uc3RfaXRl
cmF0b3I+IGVxdWFsX3JhbmdlKGNvbnN0IGtleV90eXBlJiBfX3gpIGNvbnN0IHsKICAgIHJldHVy
biBfTV90LmVxdWFsX3JhbmdlKF9feCk7CiAgfQogIGZyaWVuZCBib29sIG9wZXJhdG9yPT0gKGNv
bnN0IG11bHRpbWFwJiwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICBjb25zdCBtdWx0aW1hcCYpOwogIGZyaWVuZCBib29sIG9wZXJhdG9yPCAoY29uc3QgbXVs
dGltYXAmLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29u
c3QgbXVsdGltYXAmKTsKfTsKCnRlbXBsYXRlIDxjbGFzcyBfS2V5LCBjbGFzcyBfVHAsIGNsYXNz
IF9Db21wYXJlLCBjbGFzcyBfQWxsb2M+CmlubGluZSBib29sIG9wZXJhdG9yPT0oY29uc3QgbXVs
dGltYXA8X0tleSxfVHAsX0NvbXBhcmUsX0FsbG9jPiYgX194LAogICAgICAgICAgICAgICAgICAg
ICAgIGNvbnN0IG11bHRpbWFwPF9LZXksX1RwLF9Db21wYXJlLF9BbGxvYz4mIF9feSkgewogIHJl
dHVybiBfX3guX01fdCA9PSBfX3kuX01fdDsKfQoKdGVtcGxhdGUgPGNsYXNzIF9LZXksIGNsYXNz
IF9UcCwgY2xhc3MgX0NvbXBhcmUsIGNsYXNzIF9BbGxvYz4KaW5saW5lIGJvb2wgb3BlcmF0b3I8
KGNvbnN0IG11bHRpbWFwPF9LZXksX1RwLF9Db21wYXJlLF9BbGxvYz4mIF9feCwKICAgICAgICAg
ICAgICAgICAgICAgIGNvbnN0IG11bHRpbWFwPF9LZXksX1RwLF9Db21wYXJlLF9BbGxvYz4mIF9f
eSkgewogIHJldHVybiBfX3guX01fdCA8IF9feS5fTV90Owp9CiMgMzUgIi91c3IvaW5jbHV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TsKIyAxMSAicmVzb3VyY2VzLmNwcCIgMgojIDEgInByb3RvY29sLmgiIDEKIyAx
MiAicHJvdG9jb2wuaCIKIyAxICIvdXNyL2luY2x1ZGUvZysrLTMvc3RyaW5nIiAxIDMKIyAxMyAi
cHJvdG9jb2wuaCIgMgojIDEgIi91c3IvaW5jbHVkZS9nKystMy9tYXAiIDEgMwojIDE0ICJwcm90
b2NvbC5oIiAyCgplbnVtIENvbW1hbmRDb2RlcyB7CiAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgQ1RFPTEsQ1RMPTIsRU1HPTQsTlJNPTgsTUJBPTE2LFBFQz0xNyxNR1U9MzIsCiAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgV0FCPTUwLFdBRT01MSwKICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICBUTU89NjQsUlRZPTY1LEFCVD02NiwKICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICBNQ009NzAsT05FPTk2LEFJUz0xMDAsQU9TPTEwMSxESVM9MTAyLERPUz0x
MDMsUFJEPTExMCwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBSRE89MTIwLFNETz0x
MjEsU0FPPTEyMixSUVM9MTMwLFNUQz0xMzEsU1RQPTEzMixFU1Q9MTMzLAogICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgIFNUTz0xMzQsCiAgICAgICAgICAgICAgICAgICAgICAgIH07Cgpj
bGFzcyBUUHJvdG9jb2wKewogcHJpdmF0ZToKICAgICAgICBzdGQ6OnN0cmluZyBhU3RyaW5nOwog
cHJvdGVjdGVkOgogICAgICAgIG1hcDxzdGQ6OnN0cmluZywgdW5zaWduZWQgbG9uZz4gQVNDSUky
Q29kZTsKICAgICAgICBtYXA8dW5zaWduZWQgbG9uZywgc3RkOjpzdHJpbmc+IENvZGUyQVNDSUk7
CiAgICAgICAgbWFwPHVuc2lnbmVkIGxvbmcsIHN0ZDo6c3RyaW5nPiBGdWxsQ29kZTJBU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E8sc3RyaW5nKCJBdXRvbWF0aWNvIikpKTsKICAgICAgICAgICAgICAg
IGluc2VydChtYWtlX3BhaXIoQlROX1NUQVJULHN0cmluZygiU3RhcnQiKSkpOwogICAgICAgICAg
ICAgICAgaW5zZXJ0KG1ha2VfcGFpcihCVE5fU1RPUCxzdHJpbmcoIlN0b3AiKSkpOwogICAgICAg
ICAgICAgICAgaW5zZXJ0KG1ha2VfcGFpcihCVE5fU0VNSUFVVE8sc3RyaW5nKCJTZW1pYXV0byIp
KSk7CiAgICAgICAgICAgICAgICBpbnNlcnQobWFrZV9wYWlyKEJUTl9NQU5VQUwsc3RyaW5nKCJN
YW51YWxlIikpKTsKICAgICAgICAgICAgICAgIGluc2VydChtYWtlX3BhaXIoQlROX0ZPUk1VTEFT
LHN0cmluZygiRm9ybXVsZSIpKSk7CiAgICAgICAgICAgICAgICBpbnNlcnQobWFrZV9wYWlyKEJU
Tl9SRVBPUlRTLHN0cmluZygiUmVwb3J0IikpKTsKICAgICAgICAgICAgICAgIGluc2VydChtYWtl
X3BhaXIoQlROX1NBVkUsc3RyaW5nKCJTYWx2YSIpKSk7CiAgICAgICAgICAgICAgICBpbnNlcnQo
bWFrZV9wYWlyKEJUTl9FWElULHN0cmluZygiRXNjaSIpKSk7CiAgICAgICAgICAgICAgICBpbnNl
cnQobWFrZV9wYWlyKEJUTl9PUEVOLHN0cmluZygiQXByaSIpKSk7CiAgICAgICAgICAgICAgICBp
bnNlcnQobWFrZV9wYWlyKEJUTl9DTE9TRSxzdHJpbmcoIkNoaXVkaSIpKSk7CiAgICAgICAgICAg
ICAgICBpbnNlcnQobWFrZV9wYWlyKEJUTl9VUERBVEVGT1JNVUxBLHN0cmluZygiQWdnLiBmb3Jt
dWxhIikpKTsKICAgICAgICAgICAgICAgIGluc2VydChtYWtlX3BhaXIoQlROX1JFU0VULHN0cmlu
ZygiUmVzZXQiKSkpOwogICAgICAgICAgICAgICAgaW5zZXJ0KG1ha2VfcGFpcihCVE5fQ0xFQ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pKSk7CiAgICAgICAgICAgICAgICBpbnNlcnQobWFrZV9wYWlyKExC
TF9USU1FUjQsc3RyaW5nKCJTdnVvdGFtZW50byBuYXN0cm8gc2NhcmljbyIpKSk7CiAgICAgICAg
ICAgICAgICBpbnNlcnQobWFrZV9wYWlyKExCTF9USU1FT1VUMSxzdHJpbmcoIlRpbWVvdXQgY29t
dW5pY2F6aW9uZSIpKSk7CiAgICAgICAgICAgICAgICBpbnNlcnQobWFrZV9wYWlyKExCTF9USU1F
T1VUMixzdHJpbmcoIlRpbWVvdXQgY29tcG9uZW50aSIpKSk7CiAgICAgICAgICAgICAgICBpbnNl
cnQobWFrZV9wYWlyKExCTF9USU1FT1VUMyxzdHJpbmcoIlRpbWVvdXQgZmluZWNvcnNhIGJlbm5h
IikpKTsKICAgICAgICAgICAgICAgIGluc2VydChtYWtlX3BhaXIoTEJMX1RJTUVPVVQ0LHN0cmlu
ZygiVGltZW91dCBmaW5lY29yc2EgcG9ydGEgbWl4IikpKTsKICAgICAgICAgICAgICAgIGluc2Vy
dChtYWtlX3BhaXIoTEJMX1RJTUVPVVQ1LHN0cmluZygiVGltZW91dCBtYW5jYW56YSBhY3F1YSIp
KSk7CiAgICAgICAgICAgICAgICBpbnNlcnQobWFrZV9wYWlyKExCTF9USU1FT1VUNixzdHJpbmco
IlRpbWVvdXQgcmllbXBpbWVudG8gZGVwb3NpdG8iKSkpOwogICAgICAgICAgICAgICAgaW5zZXJ0
KG1ha2VfcGFpcihMQkxfWkVST1RPTEwsc3RyaW5nKCJUb2xsZXJhbnphIHRhcmEgemVybyIpKSk7
CiAgICAgICAgICAgICAgICBpbnNlcnQobWFrZV9wYWlyKExCTF9RVFlNSVgsc3RyaW5nKCJDYXBp
ZW56YSBtaXhlciIpKSk7CiAgICAgICAgICAgICAgICBpbnNlcnQobWFrZV9wYWlyKExCTF9JUEFE
RFIsc3RyaW5nKCJJbmRpcml6em8gSVAgc2VydmVyIikpKTsKICAgICAgICAgICAgICAgIGluc2Vy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zZXJ0KG1ha2VfcGFpcihMQkxfTk8sc3RyaW5nKCJObyIpKSk7CiAgICAg
ICAgICAgICAgICBpbnNlcnQobWFrZV9wYWlyKExCTF9SRVRSWSxzdHJpbmcoIlJldHJ5IikpKTsK
ICAgICAgICAgICAgICAgIGluc2VydChtYWtlX3BhaXIoTEJMX0FCT1JULHN0cmluZygiQWJvcnQi
KSkpOwogICAgICAgICAgICAgICAgaW5zZXJ0KG1ha2VfcGFpcihMQkxfVElNRVIxLHN0cmluZygi
RG9zaW5nIGJlbHQgZW1wdHlpbmcgb3V0IikpKTsKICAgICAgICAgICAgICAgIGluc2VydChtYWtl
X3BhaXIoTEJMX1RJTUVSMixzdHJpbmcoIkJ1Y2tldCBlbXB0eWluZyBvdXQiKSkpOwogICAgICAg
ICAgICAgICAgaW5zZXJ0KG1ha2VfcGFpcihMQkxfVElNRVIzLHN0cmluZygiTWl4ZXIgZW1wdHlp
bmcgb3V0IikpKTsKICAgICAgICAgICAgICAgIGluc2VydChtYWtlX3BhaXIoTEJMX1RJTUVSNCxz
dHJpbmcoIlVubG9hZGluZyBiZWx0IGVtcHR5aW5nIG91dCIpKSk7CiAgICAgICAgICAgICAgICBp
bnNlcnQobWFrZV9wYWlyKExCTF9USU1FT1VUMSxzdHJpbmcoIkNvbW11bmljYXRpb24gdGltZW91
dCIpKSk7CiAgICAgICAgICAgICAgICBpbnNlcnQobWFrZV9wYWlyKExCTF9USU1FT1VUMixzdHJp
bmcoIk91dCBvZiBjb21wb25lbnQgdGltZW91dCIpKSk7CiAgICAgICAgICAgICAgICBpbnNlcnQo
bWFrZV9wYWlyKExCTF9USU1FT1VUMyxzdHJpbmcoIkJ1Y2tldCBsaW1pdCBzd2l0Y2ggdGltZW91
dCIpKSk7CiAgICAgICAgICAgICAgICBpbnNlcnQobWFrZV9wYWlyKExCTF9USU1FT1VUNCxzdHJp
bmcoIk1peGVyIGRvb3IgbGltaXQgc3dpdGNoIHRpbWVvdXQiKSkpOwogICAgICAgICAgIC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GFwcHJvcHJpYXRlIHRleHQgYm94
IgoKCiAgICAgICAgICAgICAgICApKSk7CiAgICAgICAgICAgICAgICBpbnNlcnQobWFrZV9wYWly
KE1TR19DQUxTRVRSRUZFUkVOQ0Usc3RyaW5nKCJQSEFTRSA1KSBBY3F1aXJlIHRoZSByZWZlcmVu
Y2Ugd2VpZ3RoIGJ5IHByZXNzaW5nIFJFRi4iCgogICAgICAgICAgICAgICAgKSkpOwogICAgICAg
ICAgICAgICAgaW5zZXJ0KG1ha2VfcGFpcihNU0dfQ0FMRU5ELHN0cmluZygiVGhlIG1hY2hpbmUg
aXMgbm93IGNhbGlicmF0ZWQiKSkpOwogICAgICAgICAgICAgICAgaW5zZXJ0KG1ha2VfcGFpcihM
QkxfVElNRUZPUk1BVCxzdHJpbmcoIiVtLyVkLyVZIikpKTsKICAgICAgICAgICAgICAgIGluc2Vy
dChtYWtlX3BhaXIoTEJMX1RJTUVGT1JNQVRfSElTVCxzdHJpbmcoIiVtLyVkLyVZIChvbmx5IHRv
dGFscykiKSkpOwogICAgICAgIH0KfQoKY29uc3QgY2hhciogVExvb2t1cFRhYmxlOjpUZXh0T2Yo
aW50IG5Db2RlKQp7CgogICAgICAgIGl0ZXJJMlMgaXRlciA9IGZpbmQobkNvZGUpOwogICAgICAg
IGlmIChpdGVyICE9IGVuZCgpKQogICAgICAgICAgICAgICAgcmV0dXJuIGl0ZXItPnNlY29uZC5j
X3N0cigpOwogICAgICAgIGVsc2UKICAgICAgICAgICAgICAgIHJldHVybiAiVW5rbm93biBtZXNz
YWdlIjsKfQo=



More information about the Gcc-bugs mailing list