text
stringlengths
1
22.8M
François Joseph Lagrange-Chancel (January 1, 1677 – December 26, 1758) was a French playwright and satirist. Biography He was an extremely precocious boy, and at Bordeaux, where he was educated, he produced a play when he was nine years old. Five years later his mother took him to Paris, where he found a patron. in the princesse de Conti, to whom he dedicated his tragedy of Jugurtha or, as it was called later, Adherbal (1694). Racine had given him advice and was present at the first performance, although he had long lived in complete retirement. Other plays followed: Oreste et Pylade (1697), Méleagre (1699), Amasis (1701), and Ino et Mélicerte (1715). Lagrange hardly realized the high hopes raised by his precocity, although his only serious rival on the tragic stage was Campistron, but he obtained high favour at court, becoming maître d'hôtel to the duchess of Orléans. This prosperity ended with the publication in 1720 of his Philippiques, odes accusing the regent, Philip, duke of Orléans, of the most odious crimes, such as committing incest with his eldest daughter, Marie Louise Élisabeth d'Orléans, Duchess of Berry, a debauched young widow rumored to have hidden several pregnancies by her father and who died at age 23, her health prematurely destroyed by her secret maternities. Lagrange might have escaped the consequences of this libel but for the bitter enmity of a former patron, the duc de La Force. He found sanctuary at Avignon, but was enticed beyond the boundary of the papal jurisdiction, when he was arrested and sent as a prisoner to the Île Sainte-Marguerite. He contrived, however, to escape to Sardinia and thence to Spain and Holland, where he produced his fourth and fifth Philippiques. On the death of the Regent he was able to return to France. He was part author of a Histoire de Périgord left unfinished, and made a further contribution to history, or perhaps, more exactly, to romance, in a letter to Élie Fréron on the identity of the Man with the Iron Mask. Lagrange's family life was embittered by a long lawsuit against his son. He died at Périgueux at the end of December 1758. He had collected his own works (5 vols, 1758) some months before his death. His most famous work, the Philippiques, was edited by M. de Lescure in 1858, and a sixth philippic by M. Diancourt in 1886. Works Literary legacy When Lagrange-Chancel appeared in Paris, some wanted to see in him the successor to Racine. But none of his plays - some of which were successful - justified hopes. The best of them, Amasis, suffers from the comparison with the Merope (1743) by Voltaire, on the same subject. "If the author has a sense of theater and dramatic situations, the characters are cold and false and versification is hard and prosaic" (Gustave Vapereau). The Philippics are not without talent and are animated by a breath, but it's one of hatred and more exaggeration than poetry. Theatre 1694: Adherbal roy de Numidie (ou Jurgurtha), tragedy, presented 8 January 1697: Oreste et Pylade, tragedy, 1699: Méléagre, tragedy, 1699: Athénaïs, tragedy, 1701: Amasis, tragedy, 1702: Médus, Roi des Mèdes, tragédie lyrique in 5 acts and a prologue, music by François Bouvard, presented at the Académie royale de musique, 23 July 1703: Alceste, tragedy 1706: Cassandre, tragédie lyrique, presented at the Académie royale de musique, 22 June 1713: Ino et Mélicerte, tragedy, 1713: La Fille supposée, comedy in five acts in verse, presented without success at the Théâtre-Français, 11 May, not printed. 1717: Ariane, tragédie lyrique in 5 acts and one prologue, in collaboration with Pierre-Charles Roy, music by Jean-Joseph Mouret, presented at the Académie royale de musique, 6 April 1729: Les Jeux olympiques ou le prince malade, comédie héroïque, premiered at the Comédie-Italienne, 12 November 1731: Erigone, tragedy played in Versailles 20 December. This play was not successful 1732: Cassius et Victorinus, martyrs, Christian tragedy after Grégoire de Tours, presented 6 October 1736: Orphée, tragedy in machinery, not shown, La Mort d'Ulysse, tragedy, not shown, Le Crime puni, tragedy, not shown, which appears in the 4th volume of the works of Chancel. It is an imitation of ''Dom Juan ou le Festin de pierre. References Bibliography External links His plays on CÉSAR 1677 births 1758 deaths 17th-century French dramatists and playwrights 17th-century French male writers 18th-century French dramatists and playwrights
EARLY FLOWERING 3 (ELF3) is a plant-specific gene that encodes the hydroxyproline-rich glycoprotein and is required for the function of the circadian clock. ELF3 is one of the three components that make up the Evening Complex (EC) within the plant circadian clock, in which all three components reach peak gene expression and protein levels at dusk. ELF3 serves as a scaffold to bind EARLY FLOWERING 4 (ELF4) and LUX ARRHYTHMO (LUX), two other components of the EC, and functions to control photoperiod sensitivity in plants. ELF3 also plays an important role in temperature and light input within plants for circadian clock entrainment. Additionally, it plays roles in light and temperature signaling that are independent from its role in the EC. Discovery Along with ELF1 and ELF2, ELF3 was first identified by a research team consisting of Michelle T. Zagotta, S. Shannon, Carolyn I. Jacobs, and D. Ry Meeks‐Wagner. Their 1992 study published in Functional Plant Biology examined Arabidopsis thaliana mutants experiencing altered flowering. In Arabidopsis, the transition from vegetative to floral growth is initiated by floral signals in the shoot apex that regulate activity in the shoot meristem, and their study sought to identify the corresponding genetic components of this process by isolating early-flowering mutants. This procedure led the scientists to discover an early-flowering, photoperiod-insensitive Arabidopsis variant that was named elf3, as well as early-flowering, photoperiod-sensitive mutants named elf1 and elf2. Members of the research team behind the discovery of ELF3 then published a 1996 paper in The Plant Journal that detailed further insights about the nature of ELF3. The authors found that the elf3 mutation on chromosome 2 was at a novel genetic locus. Furthermore, they found that elf3 mutants were less sensitive to light of all wavelengths, suggesting that that ELF3 regulated flowering through an alternate photoreceptive pathway. Structure In Arabidopsis thaliana, the ELF3 gene is located on the second chromosome and contains four exons and three introns. A cis-regulatory element known as the evening element (EE, AAAATATCT) is present in the promoters of the other evening complex genes, LUX and ELF4. The EE serves as a binding site for the morning clock factors CIRCADIAN CLOCK ASSOCIATED 1 (CCA1) and LATE ELONGATED HYPOCOTYL (LHY) to specifically inhibit the transcription of evening-expressed clock genes. The ELF3 promoter does not contain an EE; instead, it has an EE-like element (AATATCT) and two CCA1 binding sites, which allow CCA1 to repress ELF3 expression in the morning. The ELF3 gene encodes a novel, nuclear-localized protein that is 695 amino acids in length. It contains an acidic region (residues 206–320) in its N-terminal, a proline-rich region (440-540) in the middle segment of the peptide sequence, and a glutamine/threonine-rich region (544-653) in its C-terminal. Despite these known characteristics, only one domain of known function has been identified for ELF3. A putative prion-like domain, which is found in intrinsically disordered regions of proteins, has been predicted at amino acid residues 430–609. This prion-like domain is required for protein phase separation of ELF3 and the formation of nuclear speckles. It also contains a glutamine-rich (polyQ) sequence that might be responsible for ELF3 temperature sensitivity. Aside from this prion-like domain, any other functional domains that the ELF3 protein might contain have yet to be identified. The proline-rich, acidic, and glutamate/threonine regions are characteristics that are frequently associated with transcriptional regulators, but ELF3 lacks a DNA-binding domain, making it unlikely that it binds and regulates DNA on its own. However, these characteristics are hypothesized to permit ELF3 to regulate transcription in concert with LUX and ELF4 as part of the EC. ELF3 is known to be a hub of protein-protein interactions, and the regions of the ELF3 peptide responsible for these interactions have been identified for some of its binding partners. ELF3 uses its N-terminal region to associate with CONSTITUTIVE PHOTOMORPHOGENIC 1 (COP1) and GIGANTEA (GI) (residues 1–261) as well as with PHYTOCHROME B (PHYB) (residues 1–440). The middle region of ELF3 (residues 261–484) is required for interaction with ELF4, and the C-terminal region (residues 442–695) is required for ELF3 to bind to PHYTOCHROME INTERACTING FACTOR 4 (PIF4). The domain responsible for ELF3 interaction with LUX has not been tested. Function Circadian oscillator In living organisms, circadian oscillators are cyclic biochemical processes that produce daily rhythms. In Arabidopsis, ELF3, ELF4, and LUX comprise the evening complex, or EC, which regulates circadian rhythm in the growth and development of plants. The evening complex works in conjunction with the morning complex to form Arabidopsis’ repressilator circadian oscillator. Throughout the day, CCA1 and LHY, morning complex transcription factors, regulate transcription of evening complex proteins by binding to the evening element regulatory areas, promoters of the evening complex genes. The evening complex, as a result, sees its activity peak at dusk, which is when ELF3, ELF4, and LUX see their expression peak. At night, the EC is responsible for repressing TIMING OF CAB EXPRESSION 1 (TOC1), GI, and the mid-day genes PSEUDO-RESPONSE REGULATOR 7 and 9 (PRR7 and 9), among other genes. While TOC1 and the PRR proteins are repressed during the day by CCA1 and LHY, their expression peaks at dusk, repressing the morning complex proteins. The EC gradually inhibits TOC1 and the PRR proteins throughout the night, indirectly promoting CCA1 and LHY until they peak at dawn, promoting morning complex activity and inhibiting evening complex activity. The EC also represses LUX and ELF4, auto-regulating its own transcription. Inhibition of GI at night causes reduced expression of the flowering-promoting genes CONSTANS (CO) and FLOWERING LOCUS T (FT). The evening complex is also responsible for repressing the transcription growth factors PHYTOCHROME INTERACTING FACTOR 4 (PIF4) and PIF5. Components of the EC, including ELF3 and LUX, interact with PIF4 and PIF5 to inhibit growth during nighttime. Because ELF3 is essential for circadian rhythmicity, loss of ELF3 function in Arabidopsis renders the clock arrhythmic, as seen by observing outputs such as leaf movement and clock gene expression in constant conditions. Regulation of hypocotyl elongation ELF3 is a negative regulator of seedling stem length, known as hypocotyl elongation. The EC suppresses hypocotyl elongation by inhibiting the expression of growth-promoting factors PIF4 and PIF5 in the evening. At elevated temperatures, COP1-dependent degradation of ELF3 is enhanced, which allows the expression of genes like PIF4 and PIF5, promoting hypocotyl elongation in seedlings. Independent of the evening complex, ELF3 directly interacts with the PIF4 protein to prevent it from activating its downstream gene targets, which would lead to elongation growth if activated. ELF3 also inhibits hypocotyl elongation during shade avoidance response. Similar to its interaction with PIF4, under shaded conditions, ELF3 binds to and sequesters the transcriptional activator PIF7, preventing the activation of downstream, growth-promoting genes. Mutations in ELF3 in Arabidopsis promote the growth of long hypocotyls. Defects persist in both red-light and blue-light conditions, although they are less severe when the plants are grown in constant white light. Studies have shown that ELF3 mutations have additive effects on hypocotyl elongation (in interaction with phyB mutations). Temperature signal integration The EC is responsible for integrating temperature inputs into the circadian clock by regulating the expression of both core clock genes, such as PRR7/9, LUX, and GI, and clock outputs, like the gene PIF4, which controls hypocotyl elongation. As part of the EC, association of ELF3 with the promoters of PRR9, LUX, and PIF4 is less stable at high temperatures, indicating that temperature inputs might directly control the recruitment of the evening complex to promoters. In Arabidopsis seedlings shifted to warmer temperatures (from 22°C to 28°C or from 16°C to 22°C), ELF3 was required to regulate the expression of GI, LUX, PIF4, PRR7, and PRR9. Light signal transduction The ELF3 protein is also a component of the PHYB signaling complex to control hypocotyl elongation. PHYB is a protein that mediates the plant's responses to continuous red light. However, ELF3 and PHYB act on independent signal transduction pathways to mediate plant flowering. It is suggested that ELF3 is able to regulate the photoperiodic induction of flowering by interacting with cryptochrome or other blue-light receptors such as ZEITLUPE (ZTL) and FLAVIN-BINDING, KELCH REPEAT, F-BOX1 (FKF1) in Arabidopsis thaliana. Regulation of flowering time In the long day facultative plant Arabidopsis, ELF3 is a key inhibitor of photoperiodic flowering when plants are grown in non-inductive environmental conditions. The EC represses the expression of GI, a positive regulator of flowering, in the early night by binding to the GI promoter and preventing its activation. Independent of the EC complex, ELF3 also regulates the accumulation of GI protein. Mutations in ELF3 result in plants with a loss of photoperiod sensitivity and circadian regulation. Plants with elf3 mutations flower early in long day and short day conditions at the same developmental stage regardless of photoperiod. elf3 mutations also result in plants that are not as responsive to some light wavelengths, especially blue and green light. However, elf3 single mutants retain functional phytochrome-mediated pathways that regulate plant flowering. Regulation of plant senescence Mutations in ELF3 have also been associated with the speed of plant aging, or plant senescence, through the EC inhibition of PIF4 and PIF5. This prevents the process of leaf yellowing, an indicator of plant aging. In plants with ELF3 mutations, leaf yellowing occurred at a faster rate than wild type plants. However, ELF3's regulation pathway for senescence has not been fully established. Homologs ELF3 homologs have been identified across the plant lineage in basal land plants, such as mosses, as well as across angiosperms, in both monocot and dicot species. Angiosperm orthologs Soybean (Glycine max) has two ELF3 orthologs in its genome. One of these two paralogs, GmELF3, has been implicated in regulating photoperiodic flowering. Recently, GmELF3 was identified as being responsible for the long-juvenile trait in some varieties of soybean, which permits its cultivation in the tropics and other low-latitude areas. Unlike in long-day facultative plants like Arabidopsis or barley, in short-day facultative plants (plants that reproduce in response to short days and long night) ELF3 appears to promote the transition from vegetative growth to reproductive growth. Mutations in GmELF3 delay flowering, allowing soybean plants to grow under the short days of low-latitude regions and still produce a reasonably sized harvest. In rice (Oryza sativa), the ELF3 ortholog OsELF3 is required for robust circadian oscillation and is involved in the photoperiodic regulation of flowering. Barley (Hordeum vulgare) has an ELF3 ortholog that is also necessary for circadian oscillation and regulates photoperiodic flowering, repressing the transition from vegetative to reproductive development under short days. In addition to an arrhythmic and early flowering phenotype, loss of elf3 function in barley causes plants grown under long-day conditions to reach reproductive maturity even faster in response to elevated temperatures (15 °C to 25 °C). Under short-days the same increase in temperature inhibited early/juvenile development. This suggested that the HvELF3 ortholog is also involved in temperature perception and temperature-mediated development. Specific varieties of barley with mutations in HvELF3 have been developed to tolerate the extremely short growing seasons and long days in high-latitude regions, such as in Scandinavia. Other homologs Multiple ELF3 homologs have been found in the genome of the model moss Physcomitrella patens, but it is currently unknown whether or not any of these PpELF3 paralogs have conserved function in circadian regulation or photoperiodic regulation of reproduction. No homolog of ELF3 has been found in either Chlamydomonas reinhardtii or Ostreococcus tauri, two representative species of green algae, the organisms that are thought to be the evolutionary ancestors of land plants. References Plant genes
```go // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // Package clock implements facilities for working with wall clock time. package clock import ( "time" ) // NowFn is the function supplied to determine "now". type NowFn func() time.Time // Options represents the options for the clock. type Options interface { // SetNowFn sets the NowFn. SetNowFn(value NowFn) Options // NowFn returns the NowFn. NowFn() NowFn // SetMaxPositiveSkew sets the maximum positive clock skew // with regard to a reference clock. SetMaxPositiveSkew(value time.Duration) Options // MaxPositiveSkew returns the maximum positive clock skew // with regard to a reference clock. MaxPositiveSkew() time.Duration // SetMaxNegativeSkew sets the maximum negative clock skew // with regard to a reference clock. SetMaxNegativeSkew(value time.Duration) Options // MaxNegativeSkew returns the maximum negative clock skew // with regard to a reference clock. MaxNegativeSkew() time.Duration } // ConditionFn specifies a predicate to check. type ConditionFn func() bool // WaitUntil returns true if the condition specified evaluated to // true before the timeout, false otherwise. func WaitUntil(fn ConditionFn, timeout time.Duration) bool { deadline := time.Now().Add(timeout) for time.Now().Before(deadline) { if fn() { return true } time.Sleep(100 * time.Millisecond) } return false } ```
The Suárez Fault () is a sinistral oblique thrust fault in the department of Santander in northeastern Colombia. The fault has a total length of and runs along an average north-northeast to south-southwest strike of 021.1 ± 8 in the Eastern Ranges of the Colombian Andes from Barbosa in the south to Bucaramanga in the north, where it connects with the regional Bucaramanga-Santa Marta Fault. Etymology The fault is named after the Suárez River. Description The Suárez Fault runs from Barbosa in the south, where it displaces the Simití Formation, and joins the Bucaramanga Fault a few kilometers to the north of the city of Bucaramanga. The Suárez Fault cuts Jurassic (Girón Formation), and Cretaceous sedimentary rocks (Simití, Rosablanca and Paja Formations), and Quaternary alluvial deposits and mud flows that form the "Bucaramanga Terrace". The trace of the fault is well defined, controls linear drainages such as the Suárez River for several kilometers, has sag ponds, and locally dams alluvium. The fault vertically offsets debris flows in the area of Girón and La Fuente and displaces a Tertiary erosion surface. The slip rate is estimated at per year on the basis of displaced Quaternary deposits. See also List of earthquakes in Colombia Cimitarra Fault References Bibliography Maps Further reading Seismic faults of Colombia Thrust faults Strike-slip faults Inactive faults Faults
```cmake # header-only vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO cbeck88/strict-variant REF 6378755e3c612cd870c2720232db1e5423dbbe73 SHA512 your_sha256_hashyour_sha256_hash HEAD_REF master ) # Copy header files file(COPY ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.hpp") # Handle copyright file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/strict-variant) file(RENAME ${CURRENT_PACKAGES_DIR}/share/strict-variant/LICENSE ${CURRENT_PACKAGES_DIR}/share/strict-variant/copyright) ```
```scheme (declare (block) (standard-bindings) (extended-bindings)) (begin (define gerbil/compiler/optimize-spec::timestamp 1713631270) (begin (define gxc#::generate-method-specializers::t (let ((__tmp177811 (list gxc#::identity::t)) (__tmp177810 (cons (cons 'final: '#t) '()))) (declare (not safe)) (__make-class-type 'gxc#::generate-method-specializers::t '::generate-method-specializers __tmp177811 '() __tmp177810 '#f))) (define gxc#::generate-method-specializers? (let () (declare (not safe)) (__make-class-predicate gxc#::generate-method-specializers::t))) (define gxc#make-::generate-method-specializers (lambda _%$args176608%_ (apply make-instance gxc#::generate-method-specializers::t _%$args176608%_))) (define gxc#::generate-method-specializers-bind-methods! (let ((__tmp177812 (lambda () (force gxc#::identity-bind-methods!) (let () (declare (not safe)) (bind-method!__0 gxc#::generate-method-specializers::t '%#begin gxc#xform-begin%)) (let () (declare (not safe)) (bind-method!__0 gxc#::generate-method-specializers::t '%#begin-syntax gxc#xform-begin-syntax%)) (let () (declare (not safe)) (bind-method!__0 gxc#::generate-method-specializers::t '%#module gxc#xform-module%)) (let () (declare (not safe)) (bind-method!__0 gxc#::generate-method-specializers::t '%#define-values gxc#generate-method-specializers-define-values%)) (let () (declare (not safe)) (__seal-class! gxc#::generate-method-specializers::t))))) (declare (not safe)) (__make-promise __tmp177812))) (define gxc#apply-generate-method-specializers (lambda (_%stx176600%_) (force gxc#::generate-method-specializers-bind-methods!) (let* ((_%self176603%_ (let ((__obj177803 (let () (declare (not safe)) (##structure gxc#::generate-method-specializers::t)))) __obj177803)) (__tmp177813 (lambda () (let () (declare (not safe)) (gxc#compile-e__1 _%self176603%_ _%stx176600%_))))) (declare (not safe)) (__call-with-parameters __tmp177813 gxc#current-compile-method _%self176603%_)))) (define gxc#::extract-receiver::t (let ((__tmp177815 (list gxc#::false::t)) (__tmp177814 (cons (cons 'final: '#t) '()))) (declare (not safe)) (__make-class-type 'gxc#::extract-receiver::t '::extract-receiver __tmp177815 '() __tmp177814 '#f))) (define gxc#::extract-receiver? (let () (declare (not safe)) (__make-class-predicate gxc#::extract-receiver::t))) (define gxc#make-::extract-receiver (lambda _%$args176597%_ (apply make-instance gxc#::extract-receiver::t _%$args176597%_))) (define gxc#::extract-receiver-bind-methods! (let ((__tmp177816 (lambda () (force gxc#::false-bind-methods!) (let () (declare (not safe)) (bind-method!__0 gxc#::extract-receiver::t '%#begin gxc#apply-last-begin%)) (let () (declare (not safe)) (bind-method!__0 gxc#::extract-receiver::t '%#begin-annotation gxc#extract-receiver-begin-annotation%)) (let () (declare (not safe)) (bind-method!__0 gxc#::extract-receiver::t '%#let-values gxc#apply-body-last-let-values%)) (let () (declare (not safe)) (bind-method!__0 gxc#::extract-receiver::t '%#letrec-values gxc#apply-body-last-let-values%)) (let () (declare (not safe)) (bind-method!__0 gxc#::extract-receiver::t '%#letrec*-values gxc#apply-body-last-let-values%)) (let () (declare (not safe)) (bind-method!__0 gxc#::extract-receiver::t '%#if gxc#extract-receiver-if%)) (let () (declare (not safe)) (__seal-class! gxc#::extract-receiver::t))))) (declare (not safe)) (__make-promise __tmp177816))) (define gxc#apply-extract-receiver (lambda (_%stx176589%_) (force gxc#::extract-receiver-bind-methods!) (let* ((_%self176592%_ (let ((__obj177805 (let () (declare (not safe)) (##structure gxc#::extract-receiver::t)))) __obj177805)) (__tmp177817 (lambda () (let () (declare (not safe)) (gxc#compile-e__1 _%self176592%_ _%stx176589%_))))) (declare (not safe)) (__call-with-parameters __tmp177817 gxc#current-compile-method _%self176592%_)))) (define gxc#::collect-object-refs::t (let ((__tmp177819 (list gxc#::void::t)) (__tmp177818 (cons (cons 'final: '#t) '()))) (declare (not safe)) (__make-class-type 'gxc#::collect-object-refs::t '::collect-object-refs __tmp177819 '(receiver methods slots) __tmp177818 '#f))) (define gxc#::collect-object-refs? (let () (declare (not safe)) (__make-class-predicate gxc#::collect-object-refs::t))) (define gxc#make-::collect-object-refs (lambda _%$args176586%_ (apply make-instance gxc#::collect-object-refs::t _%$args176586%_))) (define gxc#::collect-object-refs-receiver (let () (declare (not safe)) (__make-class-slot-accessor gxc#::collect-object-refs::t 'receiver))) (define gxc#::collect-object-refs-methods (let () (declare (not safe)) (__make-class-slot-accessor gxc#::collect-object-refs::t 'methods))) (define gxc#::collect-object-refs-slots (let () (declare (not safe)) (__make-class-slot-accessor gxc#::collect-object-refs::t 'slots))) (define gxc#::collect-object-refs-receiver-set! (let () (declare (not safe)) (__make-class-slot-mutator gxc#::collect-object-refs::t 'receiver))) (define gxc#::collect-object-refs-methods-set! (let () (declare (not safe)) (__make-class-slot-mutator gxc#::collect-object-refs::t 'methods))) (define gxc#::collect-object-refs-slots-set! (let () (declare (not safe)) (__make-class-slot-mutator gxc#::collect-object-refs::t 'slots))) (define gxc#&::collect-object-refs-receiver (let () (declare (not safe)) (__make-class-slot-unchecked-accessor gxc#::collect-object-refs::t 'receiver))) (define gxc#&::collect-object-refs-methods (let () (declare (not safe)) (__make-class-slot-unchecked-accessor gxc#::collect-object-refs::t 'methods))) (define gxc#&::collect-object-refs-slots (let () (declare (not safe)) (__make-class-slot-unchecked-accessor gxc#::collect-object-refs::t 'slots))) (define gxc#&::collect-object-refs-receiver-set! (let () (declare (not safe)) (__make-class-slot-unchecked-mutator gxc#::collect-object-refs::t 'receiver))) (define gxc#&::collect-object-refs-methods-set! (let () (declare (not safe)) (__make-class-slot-unchecked-mutator gxc#::collect-object-refs::t 'methods))) (define gxc#&::collect-object-refs-slots-set! (let () (declare (not safe)) (__make-class-slot-unchecked-mutator gxc#::collect-object-refs::t 'slots))) (define gxc#::collect-object-refs-bind-methods! (let ((__tmp177820 (lambda () (force gxc#::void-bind-methods!) (let () (declare (not safe)) (bind-method!__0 gxc#::collect-object-refs::t '%#begin gxc#apply-begin%)) (let () (declare (not safe)) (bind-method!__0 gxc#::collect-object-refs::t '%#begin-annotation gxc#apply-begin-annotation%)) (let () (declare (not safe)) (bind-method!__0 gxc#::collect-object-refs::t '%#lambda gxc#apply-body-lambda%)) (let () (declare (not safe)) (bind-method!__0 gxc#::collect-object-refs::t '%#case-lambda gxc#apply-body-case-lambda%)) (let () (declare (not safe)) (bind-method!__0 gxc#::collect-object-refs::t '%#let-values gxc#apply-body-let-values%)) (let () (declare (not safe)) (bind-method!__0 gxc#::collect-object-refs::t '%#letrec-values gxc#apply-body-let-values%)) (let () (declare (not safe)) (bind-method!__0 gxc#::collect-object-refs::t '%#letrec*-values gxc#apply-body-let-values%)) (let () (declare (not safe)) (bind-method!__0 gxc#::collect-object-refs::t '%#call gxc#collect-object-refs-call%)) (let () (declare (not safe)) (bind-method!__0 gxc#::collect-object-refs::t '%#if gxc#apply-operands)) (let () (declare (not safe)) (bind-method!__0 gxc#::collect-object-refs::t '%#set! gxc#apply-body-setq%)) (let () (declare (not safe)) (bind-method!__0 gxc#::collect-object-refs::t '%#struct-ref gxc#apply-operands)) (let () (declare (not safe)) (bind-method!__0 gxc#::collect-object-refs::t '%#struct-set! gxc#apply-operands)) (let () (declare (not safe)) (bind-method!__0 gxc#::collect-object-refs::t '%#struct-direct-ref gxc#apply-operands)) (let () (declare (not safe)) (bind-method!__0 gxc#::collect-object-refs::t '%#struct-direct-set! gxc#apply-operands)) (let () (declare (not safe)) (bind-method!__0 gxc#::collect-object-refs::t '%#struct-unchecked-ref gxc#apply-operands)) (let () (declare (not safe)) (bind-method!__0 gxc#::collect-object-refs::t '%#struct-unchecked-set! gxc#apply-operands)) (let () (declare (not safe)) (__seal-class! gxc#::collect-object-refs::t))))) (declare (not safe)) (__make-promise __tmp177820))) (define gxc#apply-collect-object-refs__% (lambda (_%@@keywords176552%_ _%receiver176547176553%_ _%methods176548176555%_ _%slots176549176557%_ _%stx176559%_) (let* ((_%receiver176562%_ (if (eq? _%receiver176547176553%_ absent-value) (let () (declare (not safe)) (error '"Missing required keyword argument" 'receiver:)) _%receiver176547176553%_)) (_%methods176564%_ (if (eq? _%methods176548176555%_ absent-value) (let () (declare (not safe)) (error '"Missing required keyword argument" 'methods:)) _%methods176548176555%_)) (_%slots176566%_ (if (eq? _%slots176549176557%_ absent-value) (let () (declare (not safe)) (error '"Missing required keyword argument" 'slots:)) _%slots176549176557%_))) (force gxc#::collect-object-refs-bind-methods!) (let* ((_%self176568%_ (let ((__obj177807 (let () (declare (not safe)) (##structure gxc#::collect-object-refs::t '#f '#f '#f)))) (let () (declare (not safe)) (##unchecked-structure-set! __obj177807 _%receiver176562%_ '1 '#f '#f)) (let () (declare (not safe)) (##unchecked-structure-set! __obj177807 _%methods176564%_ '2 '#f '#f)) (let () (declare (not safe)) (##unchecked-structure-set! __obj177807 _%slots176566%_ '3 '#f '#f)) __obj177807)) (__tmp177821 (lambda () (let () (declare (not safe)) (gxc#compile-e__1 _%self176568%_ _%stx176559%_))))) (declare (not safe)) (__call-with-parameters __tmp177821 gxc#current-compile-method _%self176568%_))))) (define gxc#apply-collect-object-refs__@ (lambda (_%@@keywords176575%_ . _%args176576%_) (apply gxc#apply-collect-object-refs__% _%@@keywords176575%_ (let () (declare (not safe)) (symbolic-table-ref _%@@keywords176575%_ 'receiver: absent-value)) (let () (declare (not safe)) (symbolic-table-ref _%@@keywords176575%_ 'methods: absent-value)) (let () (declare (not safe)) (symbolic-table-ref _%@@keywords176575%_ 'slots: absent-value)) _%args176576%_))) (define gxc#apply-collect-object-refs (lambda _%args176550176582%_ (apply keyword-dispatch '#(receiver: slots: methods:) gxc#apply-collect-object-refs__@ _%args176550176582%_))) (define gxc#::subst-object-refs::t (let ((__tmp177823 (list gxc#::basic-xform-expression::t)) (__tmp177822 (cons (cons 'final: '#t) '()))) (declare (not safe)) (__make-class-type 'gxc#::subst-object-refs::t '::subst-object-refs __tmp177823 '(receiver klass methods slots) __tmp177822 '#f))) (define gxc#::subst-object-refs? (let () (declare (not safe)) (__make-class-predicate gxc#::subst-object-refs::t))) (define gxc#make-::subst-object-refs (lambda _%$args176543%_ (apply make-instance gxc#::subst-object-refs::t _%$args176543%_))) (define gxc#::subst-object-refs-receiver (let () (declare (not safe)) (__make-class-slot-accessor gxc#::subst-object-refs::t 'receiver))) (define gxc#::subst-object-refs-klass (let () (declare (not safe)) (__make-class-slot-accessor gxc#::subst-object-refs::t 'klass))) (define gxc#::subst-object-refs-methods (let () (declare (not safe)) (__make-class-slot-accessor gxc#::subst-object-refs::t 'methods))) (define gxc#::subst-object-refs-slots (let () (declare (not safe)) (__make-class-slot-accessor gxc#::subst-object-refs::t 'slots))) (define gxc#::subst-object-refs-receiver-set! (let () (declare (not safe)) (__make-class-slot-mutator gxc#::subst-object-refs::t 'receiver))) (define gxc#::subst-object-refs-klass-set! (let () (declare (not safe)) (__make-class-slot-mutator gxc#::subst-object-refs::t 'klass))) (define gxc#::subst-object-refs-methods-set! (let () (declare (not safe)) (__make-class-slot-mutator gxc#::subst-object-refs::t 'methods))) (define gxc#::subst-object-refs-slots-set! (let () (declare (not safe)) (__make-class-slot-mutator gxc#::subst-object-refs::t 'slots))) (define gxc#&::subst-object-refs-receiver (let () (declare (not safe)) (__make-class-slot-unchecked-accessor gxc#::subst-object-refs::t 'receiver))) (define gxc#&::subst-object-refs-klass (let () (declare (not safe)) (__make-class-slot-unchecked-accessor gxc#::subst-object-refs::t 'klass))) (define gxc#&::subst-object-refs-methods (let () (declare (not safe)) (__make-class-slot-unchecked-accessor gxc#::subst-object-refs::t 'methods))) (define gxc#&::subst-object-refs-slots (let () (declare (not safe)) (__make-class-slot-unchecked-accessor gxc#::subst-object-refs::t 'slots))) (define gxc#&::subst-object-refs-receiver-set! (let () (declare (not safe)) (__make-class-slot-unchecked-mutator gxc#::subst-object-refs::t 'receiver))) (define gxc#&::subst-object-refs-klass-set! (let () (declare (not safe)) (__make-class-slot-unchecked-mutator gxc#::subst-object-refs::t 'klass))) (define gxc#&::subst-object-refs-methods-set! (let () (declare (not safe)) (__make-class-slot-unchecked-mutator gxc#::subst-object-refs::t 'methods))) (define gxc#&::subst-object-refs-slots-set! (let () (declare (not safe)) (__make-class-slot-unchecked-mutator gxc#::subst-object-refs::t 'slots))) (define gxc#::subst-object-refs-bind-methods! (let ((__tmp177824 (lambda () (force gxc#::basic-xform-expression-bind-methods!) (let () (declare (not safe)) (bind-method!__0 gxc#::subst-object-refs::t '%#begin gxc#xform-begin%)) (let () (declare (not safe)) (bind-method!__0 gxc#::subst-object-refs::t '%#call gxc#subst-object-refs-call%)) (let () (declare (not safe)) (__seal-class! gxc#::subst-object-refs::t))))) (declare (not safe)) (__make-promise __tmp177824))) (define gxc#apply-subst-object-refs__% (lambda (_%@@keywords176505%_ _%receiver176499176506%_ _%klass176500176508%_ _%methods176501176510%_ _%slots176502176512%_ _%stx176514%_) (let* ((_%receiver176517%_ (if (eq? _%receiver176499176506%_ absent-value) (let () (declare (not safe)) (error '"Missing required keyword argument" 'receiver:)) _%receiver176499176506%_)) (_%klass176519%_ (if (eq? _%klass176500176508%_ absent-value) (let () (declare (not safe)) (error '"Missing required keyword argument" 'klass:)) _%klass176500176508%_)) (_%methods176521%_ (if (eq? _%methods176501176510%_ absent-value) (let () (declare (not safe)) (error '"Missing required keyword argument" 'methods:)) _%methods176501176510%_)) (_%slots176523%_ (if (eq? _%slots176502176512%_ absent-value) (let () (declare (not safe)) (error '"Missing required keyword argument" 'slots:)) _%slots176502176512%_))) (force gxc#::subst-object-refs-bind-methods!) (let* ((_%self176525%_ (let ((__obj177809 (let () (declare (not safe)) (##structure gxc#::subst-object-refs::t '#f '#f '#f '#f)))) (let () (declare (not safe)) (##unchecked-structure-set! __obj177809 _%receiver176517%_ '1 '#f '#f)) (let () (declare (not safe)) (##unchecked-structure-set! __obj177809 _%klass176519%_ '2 '#f '#f)) (let () (declare (not safe)) (##unchecked-structure-set! __obj177809 _%methods176521%_ '3 '#f '#f)) (let () (declare (not safe)) (##unchecked-structure-set! __obj177809 _%slots176523%_ '4 '#f '#f)) __obj177809)) (__tmp177825 (lambda () (let () (declare (not safe)) (gxc#compile-e__1 _%self176525%_ _%stx176514%_))))) (declare (not safe)) (__call-with-parameters __tmp177825 gxc#current-compile-method _%self176525%_))))) (define gxc#apply-subst-object-refs__@ (lambda (_%@@keywords176532%_ . _%args176533%_) (apply gxc#apply-subst-object-refs__% _%@@keywords176532%_ (let () (declare (not safe)) (symbolic-table-ref _%@@keywords176532%_ 'receiver: absent-value)) (let () (declare (not safe)) (symbolic-table-ref _%@@keywords176532%_ 'klass: absent-value)) (let () (declare (not safe)) (symbolic-table-ref _%@@keywords176532%_ 'methods: absent-value)) (let () (declare (not safe)) (symbolic-table-ref _%@@keywords176532%_ 'slots: absent-value)) _%args176533%_))) (define gxc#apply-subst-object-refs (lambda _%args176503176539%_ (apply keyword-dispatch '#(receiver: methods: slots: klass:) gxc#apply-subst-object-refs__@ _%args176503176539%_))) (define gxc#generate-method-specializers-define-values% (lambda (_%self173614%_ _%stx173615%_) (letrec ((_%generate-method-bind173617%_ (lambda (_%$klass176491%_ _%$method-table176492%_ _%id176493%_ _%$id176494%_) (let ((_%$tmp176496%_ (let ((__tmp177826 (let () (declare (not safe)) (##gensym '__method)))) (declare (not safe)) (make-symbol__0 __tmp177826)))) (cons (cons _%$id176494%_ '()) (cons (cons '%#call (cons (cons '%#ref (cons 'make-promise '())) (cons (cons '%#lambda (cons '() (cons (cons '%#let-values ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (cons (cons (cons (cons _%$tmp176496%_ '()) (cons (cons '%#call ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (cons (cons '%#ref (cons 'symbolic-table-ref '())) (cons (cons '%#ref (cons _%$method-table176492%_ '())) (cons (cons '%#quote (cons _%id176493%_ '())) (cons (cons '%#quote (cons '#f '())) '()))))) '())) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '()) (cons (cons '%#if (cons (cons '%#ref ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (cons _%$tmp176496%_ '())) (cons (cons '%#ref (cons _%$tmp176496%_ '())) (cons (cons '%#call (cons (cons '%#ref (cons 'error '())) (cons (cons '%#quote (cons '"Missing method" '())) (cons (cons '%#quote (cons _%id176493%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< '())) '())))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '())))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '()))) '()))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '()))) '()))))) (_%generate-slot-bind173618%_ (lambda (_%$klass176485%_ _%id176486%_ _%$id176487%_) (let ((_%$tmp176489%_ (let ((__tmp177827 (let () (declare (not safe)) (##gensym '__slot)))) (declare (not safe)) (make-symbol__0 __tmp177827)))) (cons (cons _%$id176487%_ '()) (cons (cons '%#let-values (cons (cons (cons (cons _%$tmp176489%_ '()) (cons (cons '%#call ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (cons (cons '%#ref (cons 'class-slot-offset '())) (cons (cons '%#ref (cons _%$klass176485%_ '())) (cons (cons '%#quote (cons _%id176486%_ '())) '())))) '())) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '()) (cons (cons '%#if (cons (cons '%#ref ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (cons _%$tmp176489%_ '())) (cons (cons '%#ref (cons _%$tmp176489%_ '())) (cons (cons '%#call (cons (cons '%#ref (cons 'error '())) (cons (cons '%#quote (cons '"Unknown slot" ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< '())) (cons (cons '%#quote (cons _%id176486%_ '())) '())))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '())))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '()))) '()))))) (_%generate-specializer-impl173619%_ (lambda (_%$klass176479%_ _%$method-table176480%_ _%methods-bind176481%_ _%slots-bind176482%_ _%specializer-impl176483%_) (let ((__tmp177828 (cons '%#lambda (cons (cons _%$klass176479%_ (cons _%$method-table176480%_ '())) (cons (cons '%#let-values (cons (let () (declare (not safe)) (__foldr1 cons _%slots-bind176482%_ _%methods-bind176481%_)) (cons _%specializer-impl176483%_ '()))) '()))))) (declare (not safe)) (gxc#xform-wrap-source __tmp177828 _%stx173615%_)))) (_%generate-specializer-def173620%_ (lambda (_%id176475%_ _%specializer-id176476%_ _%specializer-impl176477%_) (let ((__tmp177829 (cons '%#begin (cons _%stx173615%_ (cons (let ((__tmp177830 (cons '%#define-values (cons (cons _%specializer-id176476%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< '()) (cons _%specializer-impl176477%_ '()))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (declare (not safe)) (gxc#xform-wrap-source __tmp177830 _%stx173615%_)) (cons (let ((__tmp177831 (cons '%#call (cons (cons '%#ref ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (cons 'bind-specializer! '())) (cons (cons '%#ref (cons _%id176475%_ '())) (cons (cons '%#ref (cons _%specializer-id176476%_ '())) '())))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (declare (not safe)) (gxc#xform-wrap-source __tmp177831 _%stx173615%_)) '())))))) (declare (not safe)) (gxc#xform-wrap-source __tmp177829 _%stx173615%_))))) (let* ((_%__stx176697176698%_ _%stx173615%_) (_%g173623173643%_ (lambda () (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%__stx176697176698%_))))) (let ((_%__kont176699176700%_ (lambda (_%L173687%_ _%L173688%_) (let ((_%method-calls173707%_ (let () (declare (not safe)) (make-hash-table-eq))) (_%slot-refs173708%_ (let () (declare (not safe)) (make-hash-table-eq))) (_%empty173709%_ (let () (declare (not safe)) (make-hash-table-eq)))) (letrec ((_%no-specializer?173711%_ (lambda () (if (fxzero? (let () (declare (not safe)) (__hash-length _%method-calls173707%_))) (fxzero? (let () (declare (not safe)) (__hash-length _%slot-refs173708%_))) '#f)))) (if (let () (declare (not safe)) (gxc#lambda-expr? _%L173687%_)) (let* ((_%__stx176611176612%_ _%L173687%_) (_%g174099174117%_ (lambda () (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%__stx176611176612%_))))) (let ((_%__kont176613176614%_ (lambda (_%L174153%_ _%L174154%_ _%L174155%_) (let ((_%receiver174175%_ (let ((_%$e174172%_ (gxc#apply-extract-receiver (cons (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (gx#datum->syntax__0 '#f '%#begin)) _%L174153%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (if _%$e174172%_ _%$e174172%_ _%L174155%_)))) (for-each (lambda (_%g174176174178%_) (gxc#apply-collect-object-refs__% '#f _%receiver174175%_ _%method-calls173707%_ _%slot-refs173708%_ _%g174176174178%_)) _%L174153%_) (if (_%no-specializer?173711%_) _%stx173615%_ (let* ((_%specializer-id174187%_ (let* ((_%id174181%_ (let ((__tmp177832 ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (let () (declare (not safe)) (gx#stx-e _%L173688%_)))) (declare (not safe)) (make-symbol__1 __tmp177832 '"::specialize"))) (_%specializer-id174184%_ (let ((__tmp177833 (let () (declare (not safe)) (gx#stx-source _%stx173615%_)))) (declare (not safe)) (gx#core-quote-syntax__1 _%id174181%_ __tmp177833)))) (let () (declare (not safe)) (gx#core-bind-runtime!__0 _%specializer-id174184%_)) _%specializer-id174184%_)) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%$klass174189%_ (let ((__tmp177834 (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (##gensym '__klass)))) (declare (not safe)) (make-symbol__0 __tmp177834))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%$method-table174191%_ (let ((__tmp177835 (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (##gensym '__method-table)))) (declare (not safe)) (make-symbol__0 __tmp177835))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%methods174193%_ (let () (declare (not safe)) (__hash-keys _%method-calls173707%_))) (_%$methods174197%_ (map (lambda (_%id174195%_) (let ((__tmp177836 ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (gensym _%id174195%_))) (declare (not safe)) (make-symbol__1 '"__" __tmp177836))) _%methods174193%_)) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%_174206%_ (for-each (lambda (_%g174198174201%_ _%g174199174203%_) (let () (declare (not safe)) (__hash-put! _%method-calls173707%_ _%g174198174201%_ _%g174199174203%_))) _%methods174193%_ _%$methods174197%_)) (_%methods-bind174216%_ (map (lambda (_%g174208174211%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< _%g174209174213%_) (_%generate-method-bind173617%_ _%$klass174189%_ _%$method-table174191%_ _%g174208174211%_ _%g174209174213%_)) _%methods174193%_ _%$methods174197%_)) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%slots174218%_ (let () (declare (not safe)) (__hash-keys _%slot-refs173708%_))) (_%$slots174222%_ (map (lambda (_%id174220%_) (let ((__tmp177837 ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (gensym _%id174220%_))) (declare (not safe)) (make-symbol__1 '"__" __tmp177837))) _%slots174218%_)) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%_174231%_ (for-each (lambda (_%g174223174226%_ _%g174224174228%_) (let () (declare (not safe)) (__hash-put! _%slot-refs173708%_ _%g174223174226%_ _%g174224174228%_))) _%slots174218%_ _%$slots174222%_)) (_%slots-bind174240%_ (map (lambda (_%g174232174235%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< _%g174233174237%_) (_%generate-slot-bind173618%_ _%$klass174189%_ _%g174232174235%_ _%g174233174237%_)) _%slots174218%_ _%$slots174222%_)) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%specializer-body174246%_ (map (lambda (_%g174241174243%_) (gxc#apply-subst-object-refs__% '#f _%receiver174175%_ _%$klass174189%_ _%method-calls173707%_ _%slot-refs173708%_ _%g174241174243%_)) _%L174153%_)) (_%specializer-impl174248%_ (let ((__tmp177838 (cons '%#lambda ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (cons (cons _%L174155%_ _%L174154%_) _%specializer-body174246%_)))) (declare (not safe)) (gxc#xform-wrap-source __tmp177838 _%stx173615%_))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%specializer-impl174250%_ (_%generate-specializer-impl173619%_ _%$klass174189%_ _%$method-table174191%_ _%methods-bind174216%_ _%slots-bind174240%_ _%specializer-impl174248%_))) (let ((__tmp177840 (let () (declare (not safe)) (gx#stx-e _%L173688%_))) (__tmp177839 (let () (declare (not safe)) (gx#stx-e _%specializer-id174187%_)))) (declare (not safe)) (gxc#verbose '"generate method specializer " __tmp177840 '" => " __tmp177839)) (_%generate-specializer-def173620%_ _%L173688%_ _%specializer-id174187%_ _%specializer-impl174250%_)))))) (_%__kont176615176616%_ (lambda () _%stx173615%_))) (if (let () (declare (not safe)) (gx#stx-pair? _%__stx176611176612%_)) (let ((_%e174104174129%_ (let () (declare (not safe)) (gx#stx-e _%__stx176611176612%_)))) (let ((_%tl174106174134%_ (let () (declare (not safe)) (##cdr _%e174104174129%_))) (_%hd174105174132%_ (let () (declare (not safe)) (##car _%e174104174129%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl174106174134%_)) (let ((_%e174107174137%_ (let () (declare (not safe)) (gx#stx-e _%tl174106174134%_)))) (let ((_%tl174109174142%_ (let () (declare (not safe)) (##cdr _%e174107174137%_))) (_%hd174108174140%_ (let () (declare (not safe)) (##car _%e174107174137%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd174108174140%_)) (let ((_%e174110174145%_ (let () (declare (not safe)) (gx#stx-e _%hd174108174140%_)))) (let ((_%tl174112174150%_ (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (##cdr _%e174110174145%_))) (_%hd174111174148%_ (let () (declare (not safe)) (##car _%e174110174145%_)))) (_%__kont176613176614%_ _%tl174109174142%_ _%tl174112174150%_ _%hd174111174148%_))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%__kont176615176616%_)))) (_%__kont176615176616%_)))) (_%__kont176615176616%_)))) (if (let () (declare (not safe)) (gxc#case-lambda-expr? _%L173687%_)) (let* ((_%g174257174276%_ (lambda (_%g174258174273%_) (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%g174258174273%_)))) (_%g174256174574%_ (lambda (_%g174258174279%_) (if (let () (declare (not safe)) (gx#stx-pair? _%g174258174279%_)) (let ((_%e174260174281%_ (let () (declare (not safe)) (gx#stx-e _%g174258174279%_)))) (let ((_%hd174261174284%_ (let () (declare (not safe)) (##car _%e174260174281%_))) (_%tl174262174286%_ (let () (declare (not safe)) (##cdr _%e174260174281%_)))) (if (let () (declare (not safe)) (gx#stx-pair/null? _%tl174262174286%_)) (let ((_g177841_ (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (gx#syntax-split-splice _%tl174262174286%_ '0)))) (begin (let ((_g177842_ (let () (declare (not safe)) (if (##values? _g177841_) (##vector-length _g177841_) 1)))) (if (not (let () (declare (not safe)) (##fx= _g177842_ 2))) (error "Context expects 2 values" _g177842_))) (let ((_%target174263174289%_ (let () (declare (not safe)) (##vector-ref _g177841_ 0))) (_%tl174265174291%_ (let () (declare (not safe)) (##vector-ref _g177841_ 1)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl174265174291%_)) (letrec ((_%loop174266174294%_ (lambda (_%hd174264174297%_ _%clause174270174299%_) (if (let () (declare (not safe)) (gx#stx-pair? _%hd174264174297%_)) (let ((_%e174267174302%_ (let () (declare (not safe)) (gx#stx-e _%hd174264174297%_)))) (let ((_%lp-hd174268174305%_ (let () (declare (not safe)) (##car _%e174267174302%_))) (_%lp-tl174269174307%_ (let () (declare (not safe)) (##cdr _%e174267174302%_)))) (_%loop174266174294%_ _%lp-tl174269174307%_ (cons _%lp-hd174268174305%_ _%clause174270174299%_)))) (let ((_%clause174271174310%_ (reverse _%clause174270174299%_))) ((lambda (_%L174313%_) (for-each (lambda (_%clause174327%_) (let* ((_%__stx176637176638%_ _%clause174327%_) (_%g174330174345%_ (lambda () (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%__stx176637176638%_))))) (let ((_%__kont176639176640%_ (lambda (_%L174373%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< _%L174374%_ _%L174375%_) (let ((_%receiver174394%_ (let ((_%$e174391%_ (gxc#apply-extract-receiver (cons (let () (declare (not safe)) (gx#datum->syntax__0 '#f '%#begin)) _%L174373%_)))) (if _%$e174391%_ _%$e174391%_ _%L174375%_)))) (for-each (lambda (_%g174395174397%_) (gxc#apply-collect-object-refs__% '#f _%receiver174394%_ _%method-calls173707%_ _%slot-refs173708%_ _%g174395174397%_)) _%L174373%_)))) (_%__kont176641176642%_ (lambda () '#!void))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (if (let () (declare (not safe)) (gx#stx-pair? _%__stx176637176638%_)) (let ((_%e174335174357%_ (let () ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (declare (not safe)) (gx#stx-e _%__stx176637176638%_)))) (let ((_%tl174337174362%_ (let () (declare (not safe)) (##cdr _%e174335174357%_))) (_%hd174336174360%_ (let () (declare (not safe)) (##car _%e174335174357%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd174336174360%_)) (let ((_%e174338174365%_ (let () (declare (not safe)) (gx#stx-e _%hd174336174360%_)))) (let ((_%tl174340174370%_ (let () (declare (not safe)) (##cdr _%e174338174365%_))) (_%hd174339174368%_ (let () (declare (not safe)) (##car _%e174338174365%_)))) (_%__kont176639176640%_ _%tl174337174362%_ _%tl174340174370%_ _%hd174339174368%_))) (_%__kont176641176642%_)))) (_%__kont176641176642%_))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (let ((__tmp177843 (lambda (_%g174402174405%_ _%g174403174407%_) (cons _%g174402174405%_ _%g174403174407%_)))) (declare (not safe)) (__foldr1 __tmp177843 '() _%L174313%_))) (if (_%no-specializer?173711%_) _%stx173615%_ (let* ((_%specializer-id174416%_ (let* ((_%id174410%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (let ((__tmp177844 (let () (declare (not safe)) (gx#stx-e _%L173688%_)))) (declare (not safe)) (make-symbol__1 __tmp177844 '"::specialize"))) (_%specializer-id174413%_ (let ((__tmp177845 (let () (declare (not safe)) (gx#stx-source _%stx173615%_)))) (declare (not safe)) (gx#core-quote-syntax__1 _%id174410%_ __tmp177845)))) (let () (declare (not safe)) (gx#core-bind-runtime!__0 _%specializer-id174413%_)) _%specializer-id174413%_)) (_%$klass174418%_ (let ((__tmp177846 (let () (declare (not safe)) (##gensym '__klass)))) (declare (not safe)) (make-symbol__0 __tmp177846))) (_%$method-table174420%_ (let ((__tmp177847 (let () (declare (not safe)) (##gensym '__method-table)))) (declare (not safe)) (make-symbol__0 __tmp177847))) (_%methods174422%_ (let () (declare (not safe)) (__hash-keys _%method-calls173707%_))) (_%$methods174426%_ (map (lambda (_%id174424%_) (let ((__tmp177848 (gensym _%id174424%_))) (declare (not safe)) (make-symbol__1 '"__" __tmp177848))) _%methods174422%_)) (_%_174435%_ (for-each (lambda (_%g174427174430%_ _%g174428174432%_) (let () (declare (not safe)) (__hash-put! _%method-calls173707%_ _%g174427174430%_ _%g174428174432%_))) _%methods174422%_ _%$methods174426%_)) (_%methods-bind174445%_ (map (lambda (_%g174437174440%_ _%g174438174442%_) (_%generate-method-bind173617%_ _%$klass174418%_ _%$method-table174420%_ _%g174437174440%_ _%g174438174442%_)) _%methods174422%_ _%$methods174426%_)) (_%slots174447%_ (let () (declare (not safe)) (__hash-keys _%slot-refs173708%_))) (_%$slots174451%_ (map (lambda (_%id174449%_) (let ((__tmp177849 (gensym _%id174449%_))) (declare (not safe)) (make-symbol__1 '"__" __tmp177849))) _%slots174447%_)) (_%_174460%_ (for-each (lambda (_%g174452174455%_ _%g174453174457%_) (let () (declare (not safe)) (__hash-put! _%slot-refs173708%_ _%g174452174455%_ _%g174453174457%_))) _%slots174447%_ _%$slots174451%_)) (_%slots-bind174469%_ (map (lambda (_%g174461174464%_ _%g174462174466%_) (_%generate-slot-bind173618%_ _%$klass174418%_ _%g174461174464%_ _%g174462174466%_)) _%slots174447%_ _%$slots174451%_)) (_%specializer-clauses174567%_ (map (lambda (_%clause174471%_) (let* ((_%__stx176657176658%_ _%clause174471%_) (_%g174474174489%_ (lambda () (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%__stx176657176658%_))))) (let ((_%__kont176659176660%_ (lambda (_%L174517%_ _%L174518%_ _%L174519%_) (let* ((_%receiver174548%_ (let ((_%$e174545%_ (gxc#apply-extract-receiver (cons (let () (declare (not safe)) (gx#datum->syntax__0 '#f '%#begin)) _%L174517%_)))) (if _%$e174545%_ _%$e174545%_ _%L174519%_))) (_%body174554%_ (map (lambda (_%g174549174551%_) (gxc#apply-subst-object-refs__% '#f _%receiver174548%_ _%$klass174418%_ _%method-calls173707%_ _%slot-refs173708%_ _%g174549174551%_)) _%L174517%_))) (cons (cons _%L174519%_ _%L174518%_) _%body174554%_)))) (_%__kont176661176662%_ (lambda () _%clause174471%_))) (if (let () (declare (not safe)) (gx#stx-pair? _%__stx176657176658%_)) (let ((_%e174479174501%_ (let () (declare (not safe)) (gx#stx-e _%__stx176657176658%_)))) (let ((_%tl174481174506%_ (let () (declare (not safe)) (##cdr _%e174479174501%_))) (_%hd174480174504%_ (let () (declare (not safe)) (##car _%e174479174501%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd174480174504%_)) (let ((_%e174482174509%_ (let () (declare (not safe)) (gx#stx-e _%hd174480174504%_)))) (let ((_%tl174484174514%_ (let () (declare (not safe)) (##cdr _%e174482174509%_))) (_%hd174483174512%_ (let () (declare (not safe)) (##car _%e174482174509%_)))) (_%__kont176659176660%_ _%tl174481174506%_ _%tl174484174514%_ _%hd174483174512%_))) (_%__kont176661176662%_)))) (_%__kont176661176662%_))))) (let ((__tmp177850 (lambda (_%g174559174562%_ _%g174560174564%_) (cons _%g174559174562%_ _%g174560174564%_)))) (declare (not safe)) (__foldr1 __tmp177850 '() _%L174313%_)))) (_%specializer-impl174569%_ (let ((__tmp177851 (cons '%#case-lambda _%specializer-clauses174567%_))) (declare (not safe)) (gxc#xform-wrap-source __tmp177851 _%stx173615%_))) (_%specializer-impl174571%_ (_%generate-specializer-impl173619%_ _%$klass174418%_ _%$method-table174420%_ _%methods-bind174445%_ _%slots-bind174469%_ _%specializer-impl174569%_))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (let ((__tmp177853 (let () (declare (not safe)) (gx#stx-e _%L173688%_))) (__tmp177852 (let () (declare (not safe)) (gx#stx-e _%specializer-id174416%_)))) (declare (not safe)) (gxc#verbose '"generate method specializer " __tmp177853 '" => " __tmp177852)) (_%generate-specializer-def173620%_ _%L173688%_ _%specializer-id174416%_ _%specializer-impl174571%_)))) _%clause174271174310%_)))))) (_%loop174266174294%_ _%target174263174289%_ '())) (_%g174257174276%_ _%g174258174279%_))))) (_%g174257174276%_ _%g174258174279%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%g174257174276%_ _%g174258174279%_))))) (_%g174256174574%_ _%L173687%_)) (if (let () (declare (not safe)) (gxc#opt-lambda-expr? _%L173687%_)) (let* ((_%g174578174608%_ (lambda (_%g174579174605%_) (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%g174579174605%_)))) (_%g174577175239%_ (lambda (_%g174579174611%_) (if (let () (declare (not safe)) (gx#stx-pair? _%g174579174611%_)) (let ((_%e174583174613%_ (let () (declare (not safe)) (gx#stx-e _%g174579174611%_)))) (let ((_%hd174584174616%_ (let () (declare (not safe)) (##car _%e174583174613%_))) (_%tl174585174618%_ (let () (declare (not safe)) (##cdr _%e174583174613%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl174585174618%_)) (let ((_%e174586174621%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (let () (declare (not safe)) (gx#stx-e _%tl174585174618%_)))) (let ((_%hd174587174624%_ (let () (declare (not safe)) (##car _%e174586174621%_))) (_%tl174588174626%_ (let () (declare (not safe)) (##cdr _%e174586174621%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd174587174624%_)) (let ((_%e174589174629%_ (let () (declare (not safe)) (gx#stx-e _%hd174587174624%_)))) (let ((_%hd174590174632%_ (let () (declare (not safe)) (##car _%e174589174629%_))) (_%tl174591174634%_ (let () (declare (not safe)) (##cdr _%e174589174629%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd174590174632%_)) (let ((_%e174592174637%_ (let () (declare (not safe)) (gx#stx-e _%hd174590174632%_)))) (let ((_%hd174593174640%_ (let () (declare (not safe)) (##car _%e174592174637%_))) (_%tl174594174642%_ (let () (declare (not safe)) (##cdr _%e174592174637%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd174593174640%_)) (let ((_%e174595174645%_ (let () (declare (not safe)) (gx#stx-e _%hd174593174640%_)))) (let ((_%hd174596174648%_ (let () (declare (not safe)) (##car _%e174595174645%_))) (_%tl174597174650%_ (let () (declare (not safe)) (##cdr _%e174595174645%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl174597174650%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl174594174642%_)) (let ((_%e174598174653%_ (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (gx#stx-e _%tl174594174642%_)))) (let ((_%hd174599174656%_ (let () (declare (not safe)) (##car _%e174598174653%_))) (_%tl174600174658%_ (let () (declare (not safe)) (##cdr _%e174598174653%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl174600174658%_)) (if (let () (declare (not safe)) (gx#stx-null? _%tl174591174634%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl174588174626%_)) (let ((_%e174601174661%_ (let () (declare (not safe)) (gx#stx-e _%tl174588174626%_)))) (let ((_%hd174602174664%_ (let () (declare (not safe)) (##car _%e174601174661%_))) (_%tl174603174666%_ (let () (declare (not safe)) (##cdr _%e174601174661%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl174603174666%_)) ((lambda (_%L174669%_ _%L174670%_ _%L174671%_) (let* ((_%g174695174713%_ (lambda (_%g174696174710%_) (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%g174696174710%_)))) (_%g174694174769%_ (lambda (_%g174696174716%_) (if (let () (declare (not safe)) (gx#stx-pair? _%g174696174716%_)) (let ((_%e174700174718%_ (let () ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (declare (not safe)) (gx#stx-e _%g174696174716%_)))) (let ((_%hd174701174721%_ (let () (declare (not safe)) (##car _%e174700174718%_))) (_%tl174702174723%_ (let () (declare (not safe)) (##cdr _%e174700174718%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl174702174723%_)) (let ((_%e174703174726%_ (let () (declare (not safe)) (gx#stx-e _%tl174702174723%_)))) (let ((_%hd174704174729%_ (let () (declare (not safe)) (##car _%e174703174726%_))) (_%tl174705174731%_ (let () (declare (not safe)) (##cdr _%e174703174726%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd174704174729%_)) (let ((_%e174706174734%_ (let () (declare (not safe)) (gx#stx-e _%hd174704174729%_)))) (let ((_%hd174707174737%_ (let () (declare (not safe)) (##car _%e174706174734%_))) (_%tl174708174739%_ (let () (declare (not safe)) (##cdr _%e174706174734%_)))) ((lambda (_%L174742%_ _%L174743%_ _%L174744%_) (let ((_%receiver174763%_ (let ((_%$e174760%_ (gxc#apply-extract-receiver (cons (let () (declare (not safe)) (gx#datum->syntax__0 '#f '%#begin)) _%L174742%_)))) (if _%$e174760%_ _%$e174760%_ _%L174744%_)))) (for-each (lambda (_%g174764174766%_) (gxc#apply-collect-object-refs__% '#f _%receiver174763%_ _%method-calls173707%_ _%slot-refs173708%_ _%g174764174766%_)) _%L174742%_))) _%tl174705174731%_ _%tl174708174739%_ _%hd174707174737%_))) (_%g174695174713%_ _%g174696174716%_)))) (_%g174695174713%_ _%g174696174716%_)))) (_%g174695174713%_ _%g174696174716%_))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%g174694174769%_ _%L174670%_)) (let* ((_%g174772174791%_ (lambda (_%g174773174788%_) (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%g174773174788%_)))) (_%g174771174915%_ (lambda (_%g174773174794%_) (if (let () (declare (not safe)) (gx#stx-pair? _%g174773174794%_)) (let ((_%e174775174796%_ (let () ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (declare (not safe)) (gx#stx-e _%g174773174794%_)))) (let ((_%hd174776174799%_ (let () (declare (not safe)) (##car _%e174775174796%_))) (_%tl174777174801%_ (let () (declare (not safe)) (##cdr _%e174775174796%_)))) (if (let () (declare (not safe)) (gx#stx-pair/null? _%tl174777174801%_)) (let ((_g177854_ (let () (declare (not safe)) (gx#syntax-split-splice _%tl174777174801%_ '0)))) (begin (let ((_g177855_ (let () (declare (not safe)) (if (##values? _g177854_) (##vector-length _g177854_) 1)))) (if (not (let () (declare (not safe)) (##fx= _g177855_ 2))) (error "Context expects 2 values" _g177855_))) (let ((_%target174778174804%_ (let () (declare (not safe)) (##vector-ref _g177854_ 0))) (_%tl174780174806%_ (let () (declare (not safe)) (##vector-ref _g177854_ 1)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl174780174806%_)) (letrec ((_%loop174781174809%_ (lambda (_%hd174779174812%_ _%clause174785174814%_) (if (let () (declare (not safe)) (gx#stx-pair? _%hd174779174812%_)) (let ((_%e174782174817%_ (let () (declare (not safe)) (gx#stx-e _%hd174779174812%_)))) (let ((_%lp-hd174783174820%_ (let () (declare (not safe)) (##car _%e174782174817%_))) (_%lp-tl174784174822%_ (let () (declare (not safe)) (##cdr _%e174782174817%_)))) (_%loop174781174809%_ _%lp-tl174784174822%_ (cons _%lp-hd174783174820%_ _%clause174785174814%_)))) (let ((_%clause174786174825%_ (reverse _%clause174785174814%_))) ((lambda (_%L174828%_) (for-each (lambda (_%clause174841%_) (let* ((_%g174843174858%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (lambda (_%g174844174855%_) (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%g174844174855%_)))) (_%g174842174905%_ (lambda (_%g174844174861%_) (if (let () (declare (not safe)) (gx#stx-pair? _%g174844174861%_)) (let ((_%e174848174863%_ (let () (declare (not safe)) (gx#stx-e _%g174844174861%_)))) (let ((_%hd174849174866%_ (let () (declare (not safe)) (##car _%e174848174863%_))) (_%tl174850174868%_ (let () (declare (not safe)) (##cdr _%e174848174863%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd174849174866%_)) (let ((_%e174851174871%_ (let () (declare (not safe)) (gx#stx-e _%hd174849174866%_)))) (let ((_%hd174852174874%_ (let () (declare (not safe)) (##car _%e174851174871%_))) (_%tl174853174876%_ (let () (declare (not safe)) (##cdr _%e174851174871%_)))) ((lambda (_%L174879%_ _%L174880%_ _%L174881%_) (let ((_%receiver174899%_ (let ((_%$e174896%_ (gxc#apply-extract-receiver (cons (let () ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (declare (not safe)) (gx#datum->syntax__0 '#f '%#begin)) _%L174879%_)))) (if _%$e174896%_ _%$e174896%_ _%L174881%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (for-each (lambda (_%g174900174902%_) (gxc#apply-collect-object-refs__% '#f _%receiver174899%_ _%method-calls173707%_ _%slot-refs173708%_ _%g174900174902%_)) _%L174879%_))) _%tl174850174868%_ _%tl174853174876%_ _%hd174852174874%_))) (_%g174843174858%_ _%g174844174861%_)))) (_%g174843174858%_ _%g174844174861%_))))) (_%g174842174905%_ _%clause174841%_))) (let ((__tmp177856 (lambda (_%g174907174910%_ _%g174908174912%_) (cons _%g174907174910%_ _%g174908174912%_)))) (declare (not safe)) (__foldr1 __tmp177856 '() _%L174828%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> _%clause174786174825%_)))))) (_%loop174781174809%_ _%target174778174804%_ '())) (_%g174772174791%_ _%g174773174794%_))))) (_%g174772174791%_ _%g174773174794%_)))) (_%g174772174791%_ _%g174773174794%_))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%g174771174915%_ _%L174669%_)) (if (_%no-specializer?173711%_) _%stx173615%_ (let* ((_%specializer-id174924%_ (let* ((_%id174918%_ (let ((__tmp177857 ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (let () (declare (not safe)) (gx#stx-e _%L173688%_)))) (declare (not safe)) (make-symbol__1 __tmp177857 '"::specialize"))) (_%specializer-id174921%_ (let ((__tmp177858 (let () (declare (not safe)) (gx#stx-source _%stx173615%_)))) (declare (not safe)) (gx#core-quote-syntax__1 _%id174918%_ __tmp177858)))) (let () (declare (not safe)) (gx#core-bind-runtime!__0 _%specializer-id174921%_)) _%specializer-id174921%_)) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%$klass174926%_ (let ((__tmp177859 (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (##gensym '__klass)))) (declare (not safe)) (make-symbol__0 __tmp177859))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%$method-table174928%_ (let ((__tmp177860 (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (##gensym '__method-table)))) (declare (not safe)) (make-symbol__0 __tmp177860))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%methods174930%_ (let () (declare (not safe)) (__hash-keys _%method-calls173707%_))) (_%$methods174934%_ (map (lambda (_%id174932%_) (let ((__tmp177861 ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (gensym _%id174932%_))) (declare (not safe)) (make-symbol__1 '"__" __tmp177861))) _%methods174930%_)) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%_174943%_ (for-each (lambda (_%g174935174938%_ _%g174936174940%_) (let () (declare (not safe)) (__hash-put! _%method-calls173707%_ _%g174935174938%_ _%g174936174940%_))) _%methods174930%_ _%$methods174934%_)) (_%methods-bind174953%_ (map (lambda (_%g174945174948%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< _%g174946174950%_) (_%generate-method-bind173617%_ _%$klass174926%_ _%$method-table174928%_ _%g174945174948%_ _%g174946174950%_)) _%methods174930%_ _%$methods174934%_)) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%slots174955%_ (let () (declare (not safe)) (__hash-keys _%slot-refs173708%_))) (_%$slots174959%_ (map (lambda (_%id174957%_) (let ((__tmp177862 ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (gensym _%id174957%_))) (declare (not safe)) (make-symbol__1 '"__" __tmp177862))) _%slots174955%_)) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%_174968%_ (for-each (lambda (_%g174960174963%_ _%g174961174965%_) (let () (declare (not safe)) (__hash-put! _%slot-refs173708%_ _%g174960174963%_ _%g174961174965%_))) _%slots174955%_ _%$slots174959%_)) (_%slots-bind174977%_ (map (lambda (_%g174969174972%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< _%g174970174974%_) (_%generate-slot-bind173618%_ _%$klass174926%_ _%g174969174972%_ _%g174970174974%_)) _%slots174955%_ _%$slots174959%_)) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%specializer-lambda-expr175069%_ (let* ((_%g174979174997%_ (lambda (_%g174980174994%_) (let () ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%g174980174994%_)))) (_%g174978175066%_ (lambda (_%g174980175000%_) (if (let () (declare (not safe)) (gx#stx-pair? _%g174980175000%_)) (let ((_%e174984175002%_ (let () (declare (not safe)) (gx#stx-e _%g174980175000%_)))) (let ((_%hd174985175005%_ (let () (declare (not safe)) (##car _%e174984175002%_))) (_%tl174986175007%_ (let () (declare (not safe)) (##cdr _%e174984175002%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl174986175007%_)) (let ((_%e174987175010%_ (let () (declare (not safe)) (gx#stx-e _%tl174986175007%_)))) (let ((_%hd174988175013%_ (let () (declare (not safe)) (##car _%e174987175010%_))) (_%tl174989175015%_ (let () (declare (not safe)) (##cdr _%e174987175010%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd174988175013%_)) (let ((_%e174990175018%_ (let () (declare (not safe)) (gx#stx-e _%hd174988175013%_)))) (let ((_%hd174991175021%_ (let () (declare (not safe)) (##car _%e174990175018%_))) (_%tl174992175023%_ (let () (declare (not safe)) (##cdr _%e174990175018%_)))) ((lambda (_%L175026%_ _%L175027%_ _%L175028%_) (let* ((_%receiver175057%_ (let ((_%$e175054%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (gxc#apply-extract-receiver (cons (let () (declare (not safe)) (gx#datum->syntax__0 '#f '%#begin)) _%L175026%_)))) (if _%$e175054%_ _%$e175054%_ _%L175028%_))) (_%body175063%_ (map (lambda (_%g175058175060%_) (gxc#apply-subst-object-refs__% '#f _%receiver175057%_ _%$klass174926%_ _%method-calls173707%_ _%slot-refs173708%_ _%g175058175060%_)) _%L175026%_)) (__tmp177863 (cons '%#lambda (cons (cons _%L175028%_ _%L175027%_) _%body175063%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (declare (not safe)) (gxc#xform-wrap-source __tmp177863 _%L174670%_))) _%tl174989175015%_ _%tl174992175023%_ _%hd174991175021%_))) (_%g174979174997%_ _%g174980175000%_)))) (_%g174979174997%_ _%g174980175000%_)))) (_%g174979174997%_ _%g174980175000%_))))) (_%g174978175066%_ _%L174670%_))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%specializer-case-lambda-expr175232%_ (let* ((_%g175071175090%_ (lambda (_%g175072175087%_) (let () ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%g175072175087%_)))) (_%g175070175229%_ (lambda (_%g175072175093%_) (if (let () (declare (not safe)) (gx#stx-pair? _%g175072175093%_)) (let ((_%e175074175095%_ (let () (declare (not safe)) (gx#stx-e _%g175072175093%_)))) (let ((_%hd175075175098%_ (let () (declare (not safe)) (##car _%e175074175095%_))) (_%tl175076175100%_ (let () (declare (not safe)) (##cdr _%e175074175095%_)))) (if (let () (declare (not safe)) (gx#stx-pair/null? _%tl175076175100%_)) (let ((_g177864_ (let () (declare (not safe)) (gx#syntax-split-splice _%tl175076175100%_ '0)))) (begin (let ((_g177865_ (let () (declare (not safe)) (if (##values? _g177864_) (##vector-length _g177864_) 1)))) (if (not (let () (declare (not safe)) (##fx= _g177865_ 2))) (error "Context expects 2 values" _g177865_))) (let ((_%target175077175103%_ (let () (declare (not safe)) (##vector-ref _g177864_ 0))) (_%tl175079175105%_ (let () (declare (not safe)) (##vector-ref _g177864_ 1)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl175079175105%_)) (letrec ((_%loop175080175108%_ (lambda (_%hd175078175111%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< _%clause175084175113%_) (if (let () (declare (not safe)) (gx#stx-pair? _%hd175078175111%_)) (let ((_%e175081175116%_ (let () (declare (not safe)) (gx#stx-e _%hd175078175111%_)))) (let ((_%lp-hd175082175119%_ (let () (declare (not safe)) (##car _%e175081175116%_))) (_%lp-tl175083175121%_ (let () (declare (not safe)) (##cdr _%e175081175116%_)))) (_%loop175080175108%_ _%lp-tl175083175121%_ (cons _%lp-hd175082175119%_ _%clause175084175113%_)))) (let ((_%clause175085175124%_ (reverse _%clause175084175113%_))) ((lambda (_%L175127%_) (let* ((_%clauses175227%_ (map (lambda (_%clause175141%_) (let* ((_%__stx176677176678%_ _%clause175141%_) (_%g175144175159%_ (lambda () (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%__stx176677176678%_))))) (let ((_%__kont176679176680%_ (lambda (_%L175187%_ _%L175188%_ _%L175189%_) (let* ((_%receiver175208%_ (let ((_%$e175205%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (gxc#apply-extract-receiver (cons (let () (declare (not safe)) (gx#datum->syntax__0 '#f '%#begin)) _%L175187%_)))) (if _%$e175205%_ _%$e175205%_ _%L175189%_))) (_%body175214%_ (map (lambda (_%g175209175211%_) (gxc#apply-subst-object-refs__% '#f _%receiver175208%_ _%$klass174926%_ _%method-calls173707%_ _%slot-refs173708%_ _%g175209175211%_)) _%L175187%_))) (cons (cons _%L175189%_ _%L175188%_) _%body175214%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%__kont176681176682%_ (lambda () _%clause175141%_))) (if (let () (declare (not safe)) (gx#stx-pair? _%__stx176677176678%_)) (let ((_%e175149175171%_ (let () (declare (not safe)) (gx#stx-e _%__stx176677176678%_)))) (let ((_%tl175151175176%_ (let () (declare (not safe)) (##cdr _%e175149175171%_))) (_%hd175150175174%_ (let () (declare (not safe)) (##car _%e175149175171%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd175150175174%_)) (let ((_%e175152175179%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (let () (declare (not safe)) (gx#stx-e _%hd175150175174%_)))) (let ((_%tl175154175184%_ (let () (declare (not safe)) (##cdr _%e175152175179%_))) (_%hd175153175182%_ (let () (declare (not safe)) (##car _%e175152175179%_)))) (_%__kont176679176680%_ _%tl175151175176%_ _%tl175154175184%_ _%hd175153175182%_))) (_%__kont176681176682%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%__kont176681176682%_))))) (let ((__tmp177866 (lambda (_%g175219175222%_ _%g175220175224%_) (cons _%g175219175222%_ _%g175220175224%_)))) (declare (not safe)) (__foldr1 __tmp177866 '() _%L175127%_)))) (__tmp177867 (cons '%#case-lambda _%clauses175227%_))) (declare (not safe)) (gxc#xform-wrap-source __tmp177867 _%L174669%_))) _%clause175085175124%_)))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%loop175080175108%_ _%target175077175103%_ '())) (_%g175071175090%_ _%g175072175093%_))))) (_%g175071175090%_ _%g175072175093%_)))) (_%g175071175090%_ _%g175072175093%_))))) (_%g175070175229%_ _%L174669%_))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%specializer-impl175234%_ (let ((__tmp177868 (cons '%#let-values ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (cons (cons (cons (cons _%L174671%_ '()) (cons _%specializer-lambda-expr175069%_ '())) '()) (cons _%specializer-case-lambda-expr175232%_ '()))))) (declare (not safe)) (gxc#xform-wrap-source __tmp177868 _%stx173615%_))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%specializer-impl175236%_ (_%generate-specializer-impl173619%_ _%$klass174926%_ _%$method-table174928%_ _%methods-bind174953%_ _%slots-bind174977%_ _%specializer-impl175234%_))) (let ((__tmp177870 (let () (declare (not safe)) (gx#stx-e _%L173688%_))) (__tmp177869 (let () (declare (not safe)) (gx#stx-e _%specializer-id174924%_)))) (declare (not safe)) (gxc#verbose '"generate method specializer " __tmp177870 '" => " __tmp177869)) (_%generate-specializer-def173620%_ _%L173688%_ _%specializer-id174924%_ _%specializer-impl175236%_)))) _%hd174602174664%_ _%hd174599174656%_ _%hd174596174648%_) (_%g174578174608%_ _%g174579174611%_)))) (_%g174578174608%_ _%g174579174611%_)) (_%g174578174608%_ _%g174579174611%_)) (_%g174578174608%_ _%g174579174611%_)))) (_%g174578174608%_ _%g174579174611%_)) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%g174578174608%_ _%g174579174611%_)))) (_%g174578174608%_ _%g174579174611%_)))) (_%g174578174608%_ _%g174579174611%_)))) (_%g174578174608%_ _%g174579174611%_)))) (_%g174578174608%_ _%g174579174611%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%g174578174608%_ _%g174579174611%_))))) (_%g174577175239%_ _%L173687%_)) (if (let () (declare (not safe)) (gxc#kw-lambda-expr? _%L173687%_)) (let* ((_%g175243175296%_ (lambda (_%g175244175293%_) (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%g175244175293%_)))) (_%g175242176467%_ (lambda (_%g175244175299%_) (if (let () (declare (not safe)) (gx#stx-pair? _%g175244175299%_)) (let ((_%e175250175301%_ (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (gx#stx-e _%g175244175299%_)))) (let ((_%hd175251175304%_ (let () (declare (not safe)) (##car _%e175250175301%_))) (_%tl175252175306%_ (let () (declare (not safe)) (##cdr _%e175250175301%_)))) (if (let () (declare (not safe)) (gx#identifier? _%hd175251175304%_)) (if (let () (declare (not safe)) (gx#stx-eq? '%#let-values _%hd175251175304%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl175252175306%_)) (let ((_%e175253175309%_ (let () (declare (not safe)) (gx#stx-e _%tl175252175306%_)))) (let ((_%hd175254175312%_ (let () (declare (not safe)) (##car _%e175253175309%_))) (_%tl175255175314%_ (let () (declare (not safe)) (##cdr _%e175253175309%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd175254175312%_)) (let ((_%e175256175317%_ (let () (declare (not safe)) (gx#stx-e _%hd175254175312%_)))) (let ((_%hd175257175320%_ (let () (declare (not safe)) (##car _%e175256175317%_))) (_%tl175258175322%_ (let () (declare (not safe)) (##cdr _%e175256175317%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd175257175320%_)) (let ((_%e175259175325%_ (let () (declare (not safe)) (gx#stx-e _%hd175257175320%_)))) (let ((_%hd175260175328%_ (let () (declare (not safe)) (##car _%e175259175325%_))) (_%tl175261175330%_ (let () (declare (not safe)) (##cdr _%e175259175325%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd175260175328%_)) (let ((_%e175262175333%_ (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (gx#stx-e _%hd175260175328%_)))) (let ((_%hd175263175336%_ (let () (declare (not safe)) (##car _%e175262175333%_))) (_%tl175264175338%_ (let () (declare (not safe)) (##cdr _%e175262175333%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl175264175338%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl175261175330%_)) (let ((_%e175265175341%_ (let () (declare (not safe)) (gx#stx-e _%tl175261175330%_)))) (let ((_%hd175266175344%_ (let () (declare (not safe)) (##car _%e175265175341%_))) (_%tl175267175346%_ (let () (declare (not safe)) (##cdr _%e175265175341%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd175266175344%_)) (let ((_%e175268175349%_ (let () (declare (not safe)) (gx#stx-e _%hd175266175344%_)))) (let ((_%hd175269175352%_ (let () (declare (not safe)) (##car _%e175268175349%_))) (_%tl175270175354%_ (let () (declare (not safe)) (##cdr _%e175268175349%_)))) (if (let () (declare (not safe)) (gx#identifier? _%hd175269175352%_)) (if (let () (declare (not safe)) (gx#stx-eq? '%#let-values _%hd175269175352%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl175270175354%_)) (let ((_%e175271175357%_ (let () (declare (not safe)) (gx#stx-e _%tl175270175354%_)))) (let ((_%hd175272175360%_ (let () (declare (not safe)) (##car _%e175271175357%_))) (_%tl175273175362%_ (let () (declare (not safe)) (##cdr _%e175271175357%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd175272175360%_)) (let ((_%e175274175365%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (let () (declare (not safe)) (gx#stx-e _%hd175272175360%_)))) (let ((_%hd175275175368%_ (let () (declare (not safe)) (##car _%e175274175365%_))) (_%tl175276175370%_ (let () (declare (not safe)) (##cdr _%e175274175365%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd175275175368%_)) (let ((_%e175277175373%_ (let () (declare (not safe)) (gx#stx-e _%hd175275175368%_)))) (let ((_%hd175278175376%_ (let () (declare (not safe)) (##car _%e175277175373%_))) (_%tl175279175378%_ (let () (declare (not safe)) (##cdr _%e175277175373%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd175278175376%_)) (let ((_%e175280175381%_ (let () (declare (not safe)) (gx#stx-e _%hd175278175376%_)))) (let ((_%hd175281175384%_ (let () (declare (not safe)) (##car _%e175280175381%_))) (_%tl175282175386%_ (let () (declare (not safe)) (##cdr _%e175280175381%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl175282175386%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl175279175378%_)) (let ((_%e175283175389%_ (let () (declare (not safe)) (gx#stx-e _%tl175279175378%_)))) (let ((_%hd175284175392%_ (let () (declare (not safe)) (##car _%e175283175389%_))) (_%tl175285175394%_ (let () (declare (not safe)) (##cdr _%e175283175389%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl175285175394%_)) (if (let () (declare (not safe)) (gx#stx-null? _%tl175276175370%_)) (if (let () ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (declare (not safe)) (gx#stx-pair? _%tl175273175362%_)) (let ((_%e175286175397%_ (let () (declare (not safe)) (gx#stx-e _%tl175273175362%_)))) (let ((_%hd175287175400%_ (let () (declare (not safe)) (##car _%e175286175397%_))) (_%tl175288175402%_ (let () (declare (not safe)) (##cdr _%e175286175397%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl175288175402%_)) (if (let () (declare (not safe)) (gx#stx-null? _%tl175267175346%_)) (if (let () (declare (not safe)) (gx#stx-null? _%tl175258175322%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl175255175314%_)) (let ((_%e175289175405%_ (let () (declare (not safe)) (gx#stx-e _%tl175255175314%_)))) (let ((_%hd175290175408%_ (let () (declare (not safe)) (##car _%e175289175405%_))) (_%tl175291175410%_ (let () (declare (not safe)) (##cdr _%e175289175405%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl175291175410%_)) ((lambda (_%L175413%_ _%L175414%_ _%L175415%_ _%L175416%_ _%L175417%_) (let* ((_%g175457175519%_ (lambda (_%g175458175516%_) (let () ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%g175458175516%_)))) (_%g175456176464%_ (lambda (_%g175458175522%_) (if (let () (declare (not safe)) (gx#stx-pair? _%g175458175522%_)) (let ((_%e175464175524%_ (let () (declare (not safe)) (gx#stx-e _%g175458175522%_)))) (let ((_%hd175465175527%_ (let () (declare (not safe)) (##car _%e175464175524%_))) (_%tl175466175529%_ (let () (declare (not safe)) (##cdr _%e175464175524%_)))) (if (let () (declare (not safe)) (gx#identifier? _%hd175465175527%_)) (if (let () (declare (not safe)) (gx#stx-eq? '%#lambda _%hd175465175527%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl175466175529%_)) (let ((_%e175467175532%_ (let () (declare (not safe)) (gx#stx-e _%tl175466175529%_)))) (let ((_%hd175468175535%_ (let () (declare (not safe)) (##car _%e175467175532%_))) (_%tl175469175537%_ (let () (declare (not safe)) (##cdr _%e175467175532%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl175469175537%_)) (let ((_%e175470175540%_ (let () (declare (not safe)) (gx#stx-e _%tl175469175537%_)))) (let ((_%hd175471175543%_ (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (##car _%e175470175540%_))) (_%tl175472175545%_ (let () (declare (not safe)) (##cdr _%e175470175540%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd175471175543%_)) (let ((_%e175473175548%_ (let () (declare (not safe)) (gx#stx-e _%hd175471175543%_)))) (let ((_%hd175474175551%_ (let () (declare (not safe)) (##car _%e175473175548%_))) (_%tl175475175553%_ (let () (declare (not safe)) (##cdr _%e175473175548%_)))) (if (let () (declare (not safe)) (gx#identifier? _%hd175474175551%_)) (if (let () (declare (not safe)) (gx#stx-eq? '%#call _%hd175474175551%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl175475175553%_)) (let ((_%e175476175556%_ (let () (declare (not safe)) (gx#stx-e _%tl175475175553%_)))) (let ((_%hd175477175559%_ (let () (declare (not safe)) (##car _%e175476175556%_))) (_%tl175478175561%_ (let () (declare (not safe)) (##cdr _%e175476175556%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd175477175559%_)) (let ((_%e175479175564%_ (let () (declare (not safe)) (gx#stx-e _%hd175477175559%_)))) (let ((_%hd175480175567%_ (let () (declare (not safe)) (##car _%e175479175564%_))) (_%tl175481175569%_ (let () (declare (not safe)) (##cdr _%e175479175564%_)))) (if (let () (declare (not safe)) (gx#identifier? _%hd175480175567%_)) (if (let () (declare (not safe)) (gx#stx-eq? '%#ref _%hd175480175567%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl175481175569%_)) (let ((_%e175482175572%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (let () (declare (not safe)) (gx#stx-e _%tl175481175569%_)))) (let ((_%hd175483175575%_ (let () (declare (not safe)) (##car _%e175482175572%_))) (_%tl175484175577%_ (let () (declare (not safe)) (##cdr _%e175482175572%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl175484175577%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl175478175561%_)) (let ((_%e175485175580%_ (let () (declare (not safe)) (gx#stx-e _%tl175478175561%_)))) (let ((_%hd175486175583%_ (let () (declare (not safe)) (##car _%e175485175580%_))) (_%tl175487175585%_ (let () (declare (not safe)) (##cdr _%e175485175580%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd175486175583%_)) (let ((_%e175488175588%_ (let () (declare (not safe)) (gx#stx-e _%hd175486175583%_)))) (let ((_%hd175489175591%_ (let () (declare (not safe)) (##car _%e175488175588%_))) (_%tl175490175593%_ (let () (declare (not safe)) (##cdr _%e175488175588%_)))) (if (let () (declare (not safe)) (gx#identifier? _%hd175489175591%_)) (if (let () (declare (not safe)) (gx#stx-eq? '%#ref _%hd175489175591%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl175490175593%_)) (let ((_%e175491175596%_ (let () ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (declare (not safe)) (gx#stx-e _%tl175490175593%_)))) (let ((_%hd175492175599%_ (let () (declare (not safe)) (##car _%e175491175596%_))) (_%tl175493175601%_ (let () (declare (not safe)) (##cdr _%e175491175596%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl175493175601%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl175487175585%_)) (let ((_%e175494175604%_ (let () (declare (not safe)) (gx#stx-e _%tl175487175585%_)))) (let ((_%hd175495175607%_ (let () (declare (not safe)) (##car _%e175494175604%_))) (_%tl175496175609%_ (let () (declare (not safe)) (##cdr _%e175494175604%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd175495175607%_)) (let ((_%e175497175612%_ (let () (declare (not safe)) (gx#stx-e _%hd175495175607%_)))) (let ((_%hd175498175615%_ (let () (declare (not safe)) (##car _%e175497175612%_))) (_%tl175499175617%_ (let () (declare (not safe)) (##cdr _%e175497175612%_)))) (if (let () (declare (not safe)) (gx#identifier? _%hd175498175615%_)) (if (let () (declare (not safe)) (gx#stx-eq? '%#ref _%hd175498175615%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl175499175617%_)) (let ((_%e175500175620%_ (let () (declare (not safe)) (gx#stx-e _%tl175499175617%_)))) (let ((_%hd175501175623%_ (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (##car _%e175500175620%_))) (_%tl175502175625%_ (let () (declare (not safe)) (##cdr _%e175500175620%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl175502175625%_)) (if (let () (declare (not safe)) (gx#stx-pair/null? _%tl175496175609%_)) (if (let ((__tmp177871 (let () (declare (not safe)) (gx#stx-length _%tl175496175609%_)))) (declare (not safe)) (##fx>= __tmp177871 '1)) (let ((_g177872_ (let () (declare (not safe)) (gx#syntax-split-splice _%tl175496175609%_ '1)))) (begin (let ((_g177873_ (let () (declare (not safe)) (if (##values? _g177872_) (##vector-length _g177872_) 1)))) (if (not (let () (declare (not safe)) (##fx= _g177873_ 2))) (error "Context expects 2 values" _g177873_))) (let ((_%target175503175628%_ (let () (declare (not safe)) (##vector-ref _g177872_ 0))) (_%tl175505175630%_ (let () (declare (not safe)) (##vector-ref _g177872_ 1)))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl175505175630%_)) (let ((_%e175512175633%_ (let () (declare (not safe)) (gx#stx-e _%tl175505175630%_)))) (let ((_%hd175513175636%_ (let () (declare (not safe)) (##car _%e175512175633%_))) (_%tl175514175638%_ (let () (declare (not safe)) (##cdr _%e175512175633%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl175514175638%_)) (letrec ((_%loop175506175641%_ (lambda (_%hd175504175644%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< _%kw-ref175510175646%_) (if (let () (declare (not safe)) (gx#stx-pair? _%hd175504175644%_)) (let ((_%e175507175649%_ (let () (declare (not safe)) (gx#stx-e _%hd175504175644%_)))) (let ((_%lp-hd175508175652%_ (let () (declare (not safe)) (##car _%e175507175649%_))) (_%lp-tl175509175654%_ (let () (declare (not safe)) (##cdr _%e175507175649%_)))) (_%loop175506175641%_ _%lp-tl175509175654%_ (cons _%lp-hd175508175652%_ _%kw-ref175510175646%_)))) (let ((_%kw-ref175511175657%_ (reverse _%kw-ref175510175646%_))) (if (let () (declare (not safe)) (gx#stx-null? _%tl175472175545%_)) ((lambda (_%L175660%_ _%L175661%_ _%L175662%_ _%L175663%_ _%L175664%_) (let* ((_%kw-count175715%_ (length (let ((__tmp177874 (lambda (_%g175707175710%_ _%g175708175712%_) (cons _%g175707175710%_ _%g175708175712%_)))) (declare (not safe)) (__foldr1 __tmp177874 '() _%L175661%_)))) (_%self-index175717%_ (let () (declare (not safe)) (##fx+ _%kw-count175715%_ '1)))) (if (let () (declare (not safe)) (gxc#lambda-expr? _%L175415%_)) (let* ((_%g175721175735%_ (lambda (_%g175722175732%_) (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%g175722175732%_)))) (_%g175720175858%_ (lambda (_%g175722175738%_) (if (let () (declare (not safe)) (gx#stx-pair? _%g175722175738%_)) (let ((_%e175725175740%_ (let () (declare (not safe)) (gx#stx-e _%g175722175738%_)))) (let ((_%hd175726175743%_ (let () (declare (not safe)) (##car _%e175725175740%_))) (_%tl175727175745%_ (let () (declare (not safe)) (##cdr _%e175725175740%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl175727175745%_)) (let ((_%e175728175748%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (let () (declare (not safe)) (gx#stx-e _%tl175727175745%_)))) (let ((_%hd175729175751%_ (let () (declare (not safe)) (##car _%e175728175748%_))) (_%tl175730175753%_ (let () (declare (not safe)) (##cdr _%e175728175748%_)))) ((lambda (_%L175756%_ _%L175757%_) (let* ((_%self175774%_ (list-ref _%L175757%_ _%self-index175717%_)) (_%receiver175779%_ (let ((_%$e175776%_ (gxc#apply-extract-receiver (cons (let () (declare (not safe)) (gx#datum->syntax__0 '#f '%#begin)) _%L175756%_)))) (if _%$e175776%_ _%$e175776%_ _%self175774%_)))) (for-each (lambda (_%g175781175783%_) (gxc#apply-collect-object-refs__% '#f _%receiver175779%_ _%method-calls173707%_ _%slot-refs173708%_ _%g175781175783%_)) _%L175756%_) (if (_%no-specializer?173711%_) _%stx173615%_ (let* ((_%specializer-id175792%_ (let* ((_%id175786%_ (let ((__tmp177875 (let () (declare (not safe)) (gx#stx-e _%L173688%_)))) (declare (not safe)) (make-symbol__1 __tmp177875 '"::specialize"))) (_%specializer-id175789%_ (let ((__tmp177876 (let () (declare (not safe)) (gx#stx-source _%stx173615%_)))) (declare (not safe)) (gx#core-quote-syntax__1 _%id175786%_ __tmp177876)))) (let () (declare (not safe)) (gx#core-bind-runtime!__0 _%specializer-id175789%_)) _%specializer-id175789%_)) (_%$klass175794%_ (let ((__tmp177877 (let () (declare (not safe)) (##gensym '__klass)))) (declare (not safe)) (make-symbol__0 __tmp177877))) (_%$method-table175796%_ (let ((__tmp177878 (let () (declare (not safe)) (##gensym '__method-table)))) (declare (not safe)) (make-symbol__0 __tmp177878))) (_%methods175798%_ (let () (declare (not safe)) (__hash-keys _%method-calls173707%_))) (_%$methods175802%_ (map (lambda (_%id175800%_) (let ((__tmp177879 (gensym _%id175800%_))) (declare (not safe)) (make-symbol__1 '"__" __tmp177879))) _%methods175798%_)) (_%_175811%_ (for-each (lambda (_%g175803175806%_ _%g175804175808%_) (let () (declare (not safe)) (__hash-put! _%method-calls173707%_ _%g175803175806%_ _%g175804175808%_))) _%methods175798%_ _%$methods175802%_)) (_%methods-bind175821%_ (map (lambda (_%g175813175816%_ _%g175814175818%_) (_%generate-method-bind173617%_ _%$klass175794%_ _%$method-table175796%_ _%g175813175816%_ _%g175814175818%_)) _%methods175798%_ _%$methods175802%_)) (_%slots175823%_ (let () (declare (not safe)) (__hash-keys _%slot-refs173708%_))) (_%$slots175827%_ (map (lambda (_%id175825%_) (let ((__tmp177880 (gensym _%id175825%_))) (declare (not safe)) (make-symbol__1 '"__" __tmp177880))) _%slots175823%_)) (_%_175836%_ (for-each (lambda (_%g175828175831%_ _%g175829175833%_) (let () (declare (not safe)) (__hash-put! _%slot-refs173708%_ _%g175828175831%_ _%g175829175833%_))) _%slots175823%_ _%$slots175827%_)) (_%slots-bind175845%_ (map (lambda (_%g175837175840%_ _%g175838175842%_) (_%generate-slot-bind173618%_ _%$klass175794%_ _%g175837175840%_ _%g175838175842%_)) _%slots175823%_ _%$slots175827%_)) (_%specializer-impl175853%_ (let* ((_%specializer-body175851%_ (map (lambda (_%g175846175848%_) (gxc#apply-subst-object-refs__% '#f _%receiver175779%_ _%$klass175794%_ _%method-calls173707%_ _%slot-refs173708%_ _%g175846175848%_)) _%L175756%_)) (__tmp177881 (cons '%#let-values (cons (cons (cons (cons _%L175417%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< '()) (cons (cons '%#let-values (cons (cons (cons (cons _%L175416%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< '()) (cons (let ((__tmp177882 (cons '%#lambda (cons _%L175757%_ _%specializer-body175851%_)))) (declare (not safe)) (gxc#xform-wrap-source __tmp177882 _%L175415%_)) '())) '()) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (cons _%L175414%_ '()))) '())) '()) (cons _%L175413%_ '()))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (declare (not safe)) (gxc#xform-wrap-source __tmp177881 _%stx173615%_))) (_%specializer-impl175855%_ (_%generate-specializer-impl173619%_ _%$klass175794%_ _%$method-table175796%_ _%methods-bind175821%_ _%slots-bind175845%_ _%specializer-impl175853%_))) (let ((__tmp177884 (let () (declare (not safe)) (gx#stx-e _%L173688%_))) (__tmp177883 (let () (declare (not safe)) (gx#stx-e _%specializer-id175792%_)))) (declare (not safe)) (gxc#verbose '"generate method specializer " __tmp177884 '" => " __tmp177883)) (_%generate-specializer-def173620%_ _%L173688%_ _%specializer-id175792%_ _%specializer-impl175855%_))))) _%tl175730175753%_ _%hd175729175751%_))) (_%g175721175735%_ _%g175722175738%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%g175721175735%_ _%g175722175738%_))))) (_%g175720175858%_ _%L175415%_)) (if (let () (declare (not safe)) (gxc#opt-lambda-expr? _%L175415%_)) (let* ((_%g175862175892%_ (lambda (_%g175863175889%_) (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%g175863175889%_)))) (_%g175861176460%_ (lambda (_%g175863175895%_) (if (let () (declare (not safe)) (gx#stx-pair? _%g175863175895%_)) (let ((_%e175867175897%_ (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (gx#stx-e _%g175863175895%_)))) (let ((_%hd175868175900%_ (let () (declare (not safe)) (##car _%e175867175897%_))) (_%tl175869175902%_ (let () (declare (not safe)) (##cdr _%e175867175897%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl175869175902%_)) (let ((_%e175870175905%_ (let () (declare (not safe)) (gx#stx-e _%tl175869175902%_)))) (let ((_%hd175871175908%_ (let () (declare (not safe)) (##car _%e175870175905%_))) (_%tl175872175910%_ (let () (declare (not safe)) (##cdr _%e175870175905%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd175871175908%_)) (let ((_%e175873175913%_ (let () (declare (not safe)) (gx#stx-e _%hd175871175908%_)))) (let ((_%hd175874175916%_ (let () (declare (not safe)) (##car _%e175873175913%_))) (_%tl175875175918%_ (let () (declare (not safe)) (##cdr _%e175873175913%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd175874175916%_)) (let ((_%e175876175921%_ (let () (declare (not safe)) (gx#stx-e _%hd175874175916%_)))) (let ((_%hd175877175924%_ (let () (declare (not safe)) (##car _%e175876175921%_))) (_%tl175878175926%_ (let () (declare (not safe)) (##cdr _%e175876175921%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd175877175924%_)) (let ((_%e175879175929%_ (let () (declare (not safe)) (gx#stx-e _%hd175877175924%_)))) (let ((_%hd175880175932%_ (let () (declare (not safe)) (##car _%e175879175929%_))) (_%tl175881175934%_ (let () (declare (not safe)) (##cdr _%e175879175929%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl175881175934%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl175878175926%_)) (let ((_%e175882175937%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (let () (declare (not safe)) (gx#stx-e _%tl175878175926%_)))) (let ((_%hd175883175940%_ (let () (declare (not safe)) (##car _%e175882175937%_))) (_%tl175884175942%_ (let () (declare (not safe)) (##cdr _%e175882175937%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl175884175942%_)) (if (let () (declare (not safe)) (gx#stx-null? _%tl175875175918%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl175872175910%_)) (let ((_%e175885175945%_ (let () (declare (not safe)) (gx#stx-e _%tl175872175910%_)))) (let ((_%hd175886175948%_ (let () (declare (not safe)) (##car _%e175885175945%_))) (_%tl175887175950%_ (let () (declare (not safe)) (##cdr _%e175885175945%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl175887175950%_)) ((lambda (_%L175953%_ _%L175954%_ _%L175955%_) (let* ((_%g175979175993%_ (lambda (_%g175980175990%_) (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%g175980175990%_)))) (_%g175978176040%_ (lambda (_%g175980175996%_) (if (let () (declare (not safe)) (gx#stx-pair? _%g175980175996%_)) (let ((_%e175983175998%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (let () (declare (not safe)) (gx#stx-e _%g175980175996%_)))) (let ((_%hd175984176001%_ (let () (declare (not safe)) (##car _%e175983175998%_))) (_%tl175985176003%_ (let () (declare (not safe)) (##cdr _%e175983175998%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl175985176003%_)) (let ((_%e175986176006%_ (let () (declare (not safe)) (gx#stx-e _%tl175985176003%_)))) (let ((_%hd175987176009%_ (let () (declare (not safe)) (##car _%e175986176006%_))) (_%tl175988176011%_ (let () (declare (not safe)) (##cdr _%e175986176006%_)))) ((lambda (_%L176014%_ _%L176015%_) (let* ((_%self176028%_ (list-ref _%L176015%_ _%self-index175717%_)) (_%receiver176033%_ (let ((_%$e176030%_ (gxc#apply-extract-receiver (cons (let () (declare (not safe)) (gx#datum->syntax__0 '#f '%#begin)) _%L176014%_)))) (if _%$e176030%_ _%$e176030%_ _%self176028%_)))) (for-each (lambda (_%g176035176037%_) (gxc#apply-collect-object-refs__% '#f _%receiver176033%_ _%method-calls173707%_ _%slot-refs173708%_ _%g176035176037%_)) _%L176014%_))) _%tl175988176011%_ _%hd175987176009%_))) (_%g175979175993%_ _%g175980175996%_)))) (_%g175979175993%_ _%g175980175996%_))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%g175978176040%_ _%L175954%_)) (let* ((_%g176043176062%_ (lambda (_%g176044176059%_) (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%g176044176059%_)))) (_%g176042176173%_ (lambda (_%g176044176065%_) (if (let () (declare (not safe)) (gx#stx-pair? _%g176044176065%_)) (let ((_%e176046176067%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (let () (declare (not safe)) (gx#stx-e _%g176044176065%_)))) (let ((_%hd176047176070%_ (let () (declare (not safe)) (##car _%e176046176067%_))) (_%tl176048176072%_ (let () (declare (not safe)) (##cdr _%e176046176067%_)))) (if (let () (declare (not safe)) (gx#stx-pair/null? _%tl176048176072%_)) (let ((_g177885_ (let () (declare (not safe)) (gx#syntax-split-splice _%tl176048176072%_ '0)))) (begin (let ((_g177886_ (let () (declare (not safe)) (if (##values? _g177885_) (##vector-length _g177885_) 1)))) (if (not (let () (declare (not safe)) (##fx= _g177886_ 2))) (error "Context expects 2 values" _g177886_))) (let ((_%target176049176075%_ (let () (declare (not safe)) (##vector-ref _g177885_ 0))) (_%tl176051176077%_ (let () (declare (not safe)) (##vector-ref _g177885_ 1)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl176051176077%_)) (letrec ((_%loop176052176080%_ (lambda (_%hd176050176083%_ _%clause176056176085%_) (if (let () (declare (not safe)) (gx#stx-pair? _%hd176050176083%_)) (let ((_%e176053176088%_ (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (gx#stx-e _%hd176050176083%_)))) (let ((_%lp-hd176054176091%_ (let () (declare (not safe)) (##car _%e176053176088%_))) (_%lp-tl176055176093%_ (let () (declare (not safe)) (##cdr _%e176053176088%_)))) (_%loop176052176080%_ _%lp-tl176055176093%_ (cons _%lp-hd176054176091%_ _%clause176056176085%_)))) (let ((_%clause176057176096%_ (reverse _%clause176056176085%_))) ((lambda (_%L176099%_) (for-each (lambda (_%clause176112%_) (let* ((_%g176114176125%_ (lambda (_%g176115176122%_) (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%g176115176122%_)))) (_%g176113176163%_ (lambda (_%g176115176128%_) (if (let () (declare (not safe)) (gx#stx-pair? _%g176115176128%_)) (let ((_%e176118176130%_ (let () (declare (not safe)) (gx#stx-e _%g176115176128%_)))) (let ((_%hd176119176133%_ (let () (declare (not safe)) (##car _%e176118176130%_))) (_%tl176120176135%_ (let () (declare (not safe)) (##cdr _%e176118176130%_)))) ((lambda (_%L176138%_ _%L176139%_) (let* ((_%self176151%_ (list-ref _%L176139%_ _%self-index175717%_)) (_%receiver176156%_ (let ((_%$e176153%_ (gxc#apply-extract-receiver (cons (let () ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (declare (not safe)) (gx#datum->syntax__0 '#f '%#begin)) _%L176138%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (if _%$e176153%_ _%$e176153%_ _%self176151%_)))) (for-each (lambda (_%g176158176160%_) (gxc#apply-collect-object-refs__% '#f _%receiver176156%_ _%method-calls173707%_ _%slot-refs173708%_ _%g176158176160%_)) _%L176138%_))) _%tl176120176135%_ _%hd176119176133%_))) (_%g176114176125%_ _%g176115176128%_))))) (_%g176113176163%_ _%clause176112%_))) (let ((__tmp177887 (lambda (_%g176165176168%_ _%g176166176170%_) (cons _%g176165176168%_ _%g176166176170%_)))) (declare (not safe)) (__foldr1 __tmp177887 '() _%L176099%_)))) _%clause176057176096%_)))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%loop176052176080%_ _%target176049176075%_ '())) (_%g176043176062%_ _%g176044176065%_))))) (_%g176043176062%_ _%g176044176065%_)))) (_%g176043176062%_ _%g176044176065%_))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%g176042176173%_ _%L175953%_)) (if (_%no-specializer?173711%_) _%stx173615%_ (let* ((_%specializer-id176182%_ (let* ((_%id176176%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (let ((__tmp177888 (let () (declare (not safe)) (gx#stx-e _%L173688%_)))) (declare (not safe)) (make-symbol__1 __tmp177888 '"::specialize"))) (_%specializer-id176179%_ (let ((__tmp177889 (let () (declare (not safe)) (gx#stx-source _%stx173615%_)))) (declare (not safe)) (gx#core-quote-syntax__1 _%id176176%_ __tmp177889)))) (let () (declare (not safe)) (gx#core-bind-runtime!__0 _%specializer-id176179%_)) _%specializer-id176179%_)) (_%$klass176184%_ (let ((__tmp177890 (let () (declare (not safe)) (##gensym '__klass)))) (declare (not safe)) (make-symbol__0 __tmp177890))) (_%$method-table176186%_ (let ((__tmp177891 (let () (declare (not safe)) (##gensym '__method-table)))) (declare (not safe)) (make-symbol__0 __tmp177891))) (_%methods176188%_ (let () (declare (not safe)) (__hash-keys _%method-calls173707%_))) (_%$methods176192%_ (map (lambda (_%id176190%_) (let ((__tmp177892 (gensym _%id176190%_))) (declare (not safe)) (make-symbol__1 '"__" __tmp177892))) _%methods176188%_)) (_%_176201%_ (for-each (lambda (_%g176193176196%_ _%g176194176198%_) (let () (declare (not safe)) (__hash-put! _%method-calls173707%_ _%g176193176196%_ _%g176194176198%_))) _%methods176188%_ _%$methods176192%_)) (_%methods-bind176211%_ (map (lambda (_%g176203176206%_ _%g176204176208%_) (_%generate-method-bind173617%_ _%$klass176184%_ _%$method-table176186%_ _%g176203176206%_ _%g176204176208%_)) _%methods176188%_ _%$methods176192%_)) (_%slots176213%_ (let () (declare (not safe)) (__hash-keys _%slot-refs173708%_))) (_%$slots176217%_ (map (lambda (_%id176215%_) (let ((__tmp177893 (gensym _%id176215%_))) (declare (not safe)) (make-symbol__1 '"__" __tmp177893))) _%slots176213%_)) (_%_176226%_ (for-each (lambda (_%g176218176221%_ _%g176219176223%_) (let () (declare (not safe)) (__hash-put! _%slot-refs173708%_ _%g176218176221%_ _%g176219176223%_))) _%slots176213%_ _%$slots176217%_)) (_%slots-bind176235%_ (map (lambda (_%g176227176230%_ _%g176228176232%_) (_%generate-slot-bind173618%_ _%$klass176184%_ _%g176227176230%_ _%g176228176232%_)) _%slots176213%_ _%$slots176217%_)) (_%specializer-lambda-expr176313%_ (let* ((_%g176237176251%_ (lambda (_%g176238176248%_) (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%g176238176248%_)))) (_%g176236176310%_ (lambda (_%g176238176254%_) (if (let () (declare (not safe)) (gx#stx-pair? _%g176238176254%_)) (let ((_%e176241176256%_ (let () (declare (not safe)) (gx#stx-e _%g176238176254%_)))) (let ((_%hd176242176259%_ (let () (declare (not safe)) (##car _%e176241176256%_))) (_%tl176243176261%_ (let () (declare (not safe)) (##cdr _%e176241176256%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl176243176261%_)) (let ((_%e176244176264%_ (let () (declare (not safe)) (gx#stx-e _%tl176243176261%_)))) (let ((_%hd176245176267%_ (let () (declare (not safe)) (##car _%e176244176264%_))) (_%tl176246176269%_ (let () (declare (not safe)) (##cdr _%e176244176264%_)))) ((lambda (_%L176272%_ _%L176273%_) (let* ((_%self176296%_ (list-ref _%L176273%_ _%self-index175717%_)) (_%receiver176301%_ (let ((_%$e176298%_ (gxc#apply-extract-receiver (cons (let () ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (declare (not safe)) (gx#datum->syntax__0 '#f '%#begin)) _%L176272%_)))) (if _%$e176298%_ _%$e176298%_ _%self176296%_))) (_%body176307%_ (map (lambda (_%g176302176304%_) (gxc#apply-subst-object-refs__% '#f _%receiver176301%_ _%$klass176184%_ _%method-calls173707%_ _%slot-refs173708%_ _%g176302176304%_)) _%L176272%_)) (__tmp177894 (cons '%#lambda (cons _%L176273%_ _%body176307%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (declare (not safe)) (gxc#xform-wrap-source __tmp177894 _%L175954%_))) _%tl176246176269%_ _%hd176245176267%_))) (_%g176237176251%_ _%g176238176254%_)))) (_%g176237176251%_ _%g176238176254%_))))) (_%g176236176310%_ _%L175954%_))) (_%specializer-case-lambda-expr176453%_ (let* ((_%g176315176334%_ (lambda (_%g176316176331%_) (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%g176316176331%_)))) (_%g176314176450%_ (lambda (_%g176316176337%_) (if (let () (declare (not safe)) (gx#stx-pair? _%g176316176337%_)) (let ((_%e176318176339%_ (let () (declare (not safe)) (gx#stx-e _%g176316176337%_)))) (let ((_%hd176319176342%_ (let () (declare (not safe)) (##car _%e176318176339%_))) (_%tl176320176344%_ (let () (declare (not safe)) (##cdr _%e176318176339%_)))) (if (let () (declare (not safe)) (gx#stx-pair/null? _%tl176320176344%_)) (let ((_g177895_ (let () (declare (not safe)) (gx#syntax-split-splice _%tl176320176344%_ '0)))) (begin (let ((_g177896_ (let () (declare (not safe)) (if (##values? _g177895_) (##vector-length _g177895_) 1)))) (if (not (let () (declare (not safe)) (##fx= _g177896_ 2))) (error "Context expects 2 values" _g177896_))) (let ((_%target176321176347%_ (let () (declare (not safe)) (##vector-ref _g177895_ 0))) (_%tl176323176349%_ (let () (declare (not safe)) (##vector-ref _g177895_ 1)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl176323176349%_)) (letrec ((_%loop176324176352%_ (lambda (_%hd176322176355%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< _%clause176328176357%_) (if (let () (declare (not safe)) (gx#stx-pair? _%hd176322176355%_)) (let ((_%e176325176360%_ (let () (declare (not safe)) (gx#stx-e _%hd176322176355%_)))) (let ((_%lp-hd176326176363%_ (let () (declare (not safe)) (##car _%e176325176360%_))) (_%lp-tl176327176365%_ (let () (declare (not safe)) (##cdr _%e176325176360%_)))) (_%loop176324176352%_ _%lp-tl176327176365%_ (cons _%lp-hd176326176363%_ _%clause176328176357%_)))) (let ((_%clause176329176368%_ (reverse _%clause176328176357%_))) ((lambda (_%L176371%_) (let* ((_%clauses176448%_ (map (lambda (_%clause176385%_) (let* ((_%g176387176398%_ (lambda (_%g176388176395%_) (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%g176388176395%_)))) (_%g176386176438%_ (lambda (_%g176388176401%_) (if (let () (declare (not safe)) (gx#stx-pair? _%g176388176401%_)) (let ((_%e176391176403%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (let () (declare (not safe)) (gx#stx-e _%g176388176401%_)))) (let ((_%hd176392176406%_ (let () (declare (not safe)) (##car _%e176391176403%_))) (_%tl176393176408%_ (let () (declare (not safe)) (##cdr _%e176391176403%_)))) ((lambda (_%L176411%_ _%L176412%_) (let* ((_%self176424%_ (list-ref _%L176412%_ _%self-index175717%_)) (_%receiver176429%_ (let ((_%$e176426%_ (gxc#apply-extract-receiver (cons (let () (declare (not safe)) (gx#datum->syntax__0 '#f '%#begin)) _%L176411%_)))) (if _%$e176426%_ _%$e176426%_ _%self176424%_))) (_%body176435%_ (map (lambda (_%g176430176432%_) (gxc#apply-subst-object-refs__% '#f _%receiver176429%_ _%$klass176184%_ _%method-calls173707%_ _%slot-refs173708%_ _%g176430176432%_)) _%L176411%_))) (cons _%L176412%_ _%body176435%_))) _%tl176393176408%_ _%hd176392176406%_))) (_%g176387176398%_ _%g176388176401%_))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%g176386176438%_ _%clause176385%_))) (let ((__tmp177897 (lambda (_%g176440176443%_ _%g176441176445%_) (cons _%g176440176443%_ _%g176441176445%_)))) (declare (not safe)) (__foldr1 __tmp177897 '() _%L176371%_)))) (__tmp177898 (cons '%#case-lambda _%clauses176448%_))) (declare (not safe)) (gxc#xform-wrap-source __tmp177898 _%L175953%_))) _%clause176329176368%_)))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%loop176324176352%_ _%target176321176347%_ '())) (_%g176315176334%_ _%g176316176337%_))))) (_%g176315176334%_ _%g176316176337%_)))) (_%g176315176334%_ _%g176316176337%_))))) (_%g176314176450%_ _%L175953%_))) (_%specializer-impl176455%_ (let ((__tmp177899 (cons '%#let-values (cons (cons (cons (cons _%L175417%_ '()) (cons (cons '%#let-values (cons (cons (cons (cons _%L175416%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< '()) (cons (let ((__tmp177900 (cons '%#let-values (cons (cons (cons (cons _%L175955%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< '()) (cons _%specializer-lambda-expr176313%_ '())) '()) (cons _%specializer-case-lambda-expr176453%_ '()))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (declare (not safe)) (gxc#xform-wrap-source __tmp177900 _%stx173615%_)) '())) '()) (cons _%L175414%_ '()))) '())) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '()) (cons _%L175413%_ '()))))) (declare (not safe)) (gxc#xform-wrap-source __tmp177899 _%stx173615%_))) (_%specializer-impl176457%_ (_%generate-specializer-impl173619%_ _%$klass176184%_ _%$method-table176186%_ _%methods-bind176211%_ _%slots-bind176235%_ _%specializer-impl176455%_))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (let ((__tmp177902 (let () (declare (not safe)) (gx#stx-e _%L173688%_))) (__tmp177901 (let () (declare (not safe)) (gx#stx-e _%specializer-id176182%_)))) (declare (not safe)) (gxc#verbose '"generate method specializer " __tmp177902 '" => " __tmp177901)) (_%generate-specializer-def173620%_ _%L173688%_ _%specializer-id176182%_ _%specializer-impl176457%_)))) _%hd175886175948%_ _%hd175883175940%_ _%hd175880175932%_) (_%g175862175892%_ _%g175863175895%_)))) (_%g175862175892%_ _%g175863175895%_)) (_%g175862175892%_ _%g175863175895%_)) (_%g175862175892%_ _%g175863175895%_)))) (_%g175862175892%_ _%g175863175895%_)) (_%g175862175892%_ _%g175863175895%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%g175862175892%_ _%g175863175895%_)))) (_%g175862175892%_ _%g175863175895%_)))) (_%g175862175892%_ _%g175863175895%_)))) (_%g175862175892%_ _%g175863175895%_)))) (_%g175862175892%_ _%g175863175895%_))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%g175861176460%_ _%L175415%_)) _%stx173615%_)))) _%hd175513175636%_ _%kw-ref175511175657%_ _%hd175501175623%_ _%hd175492175599%_ _%hd175483175575%_) (_%g175457175519%_ _%g175458175522%_))))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%loop175506175641%_ _%target175503175628%_ '())) (_%g175457175519%_ _%g175458175522%_)))) (_%g175457175519%_ _%g175458175522%_))))) (_%g175457175519%_ _%g175458175522%_)) (_%g175457175519%_ _%g175458175522%_)) (_%g175457175519%_ _%g175458175522%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%g175457175519%_ _%g175458175522%_)) (_%g175457175519%_ _%g175458175522%_)) (_%g175457175519%_ _%g175458175522%_)))) (_%g175457175519%_ _%g175458175522%_)))) (_%g175457175519%_ _%g175458175522%_)) (_%g175457175519%_ _%g175458175522%_)))) (_%g175457175519%_ _%g175458175522%_)) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%g175457175519%_ _%g175458175522%_)) (_%g175457175519%_ _%g175458175522%_)))) (_%g175457175519%_ _%g175458175522%_)))) (_%g175457175519%_ _%g175458175522%_)) (_%g175457175519%_ _%g175458175522%_)))) (_%g175457175519%_ _%g175458175522%_)) (_%g175457175519%_ _%g175458175522%_)) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%g175457175519%_ _%g175458175522%_)))) (_%g175457175519%_ _%g175458175522%_)))) (_%g175457175519%_ _%g175458175522%_)) (_%g175457175519%_ _%g175458175522%_)) (_%g175457175519%_ _%g175458175522%_)))) (_%g175457175519%_ _%g175458175522%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%g175457175519%_ _%g175458175522%_)))) (_%g175457175519%_ _%g175458175522%_)) (_%g175457175519%_ _%g175458175522%_)) (_%g175457175519%_ _%g175458175522%_)))) (_%g175457175519%_ _%g175458175522%_))))) (_%g175456176464%_ _%L175414%_))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> _%hd175290175408%_ _%hd175287175400%_ _%hd175284175392%_ _%hd175281175384%_ _%hd175263175336%_) (_%g175243175296%_ _%g175244175299%_)))) (_%g175243175296%_ _%g175244175299%_)) (_%g175243175296%_ _%g175244175299%_)) (_%g175243175296%_ _%g175244175299%_)) (_%g175243175296%_ _%g175244175299%_)))) (_%g175243175296%_ _%g175244175299%_)) (_%g175243175296%_ _%g175244175299%_)) (_%g175243175296%_ _%g175244175299%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%g175243175296%_ _%g175244175299%_)) (_%g175243175296%_ _%g175244175299%_)))) (_%g175243175296%_ _%g175244175299%_)))) (_%g175243175296%_ _%g175244175299%_)))) (_%g175243175296%_ _%g175244175299%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%g175243175296%_ _%g175244175299%_)) (_%g175243175296%_ _%g175244175299%_)) (_%g175243175296%_ _%g175244175299%_)))) (_%g175243175296%_ _%g175244175299%_)))) (_%g175243175296%_ _%g175244175299%_)) (_%g175243175296%_ _%g175244175299%_)))) (_%g175243175296%_ _%g175244175299%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%g175243175296%_ _%g175244175299%_)))) (_%g175243175296%_ _%g175244175299%_)))) (_%g175243175296%_ _%g175244175299%_)) (_%g175243175296%_ _%g175244175299%_)) (_%g175243175296%_ _%g175244175299%_)))) (_%g175243175296%_ _%g175244175299%_))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%g175242176467%_ _%L173687%_)) _%stx173615%_)))))))) (_%__kont176701176702%_ (lambda () _%stx173615%_))) (let ((_%__match176730176731%_ (lambda (_%e173627173655%_ _%hd173628173658%_ _%tl173629173660%_ _%e173630173663%_ _%hd173631173666%_ _%tl173632173668%_ _%e173633173671%_ _%hd173634173674%_ _%tl173635173676%_ _%e173636173679%_ _%hd173637173682%_ _%tl173638173684%_) (let ((_%L173687%_ _%hd173637173682%_) (_%L173688%_ _%hd173634173674%_)) (if (let ((__tmp177903 (let () (declare (not safe)) (gxc#identifier-symbol _%L173688%_)))) (declare (not safe)) (gxc#optimizer-top-level-method? __tmp177903)) (_%__kont176699176700%_ _%L173687%_ _%L173688%_) (_%__kont176701176702%_)))))) (if (let () (declare (not safe)) (gx#stx-pair? _%__stx176697176698%_)) (let ((_%e173627173655%_ (let () (declare (not safe)) (gx#stx-e _%__stx176697176698%_)))) (let ((_%tl173629173660%_ (let () (declare (not safe)) (##cdr _%e173627173655%_))) (_%hd173628173658%_ (let () (declare (not safe)) (##car _%e173627173655%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl173629173660%_)) (let ((_%e173630173663%_ (let () (declare (not safe)) (gx#stx-e _%tl173629173660%_)))) (let ((_%tl173632173668%_ (let () (declare (not safe)) (##cdr _%e173630173663%_))) (_%hd173631173666%_ (let () (declare (not safe)) (##car _%e173630173663%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd173631173666%_)) (let ((_%e173633173671%_ (let () (declare (not safe)) (gx#stx-e _%hd173631173666%_)))) (let ((_%tl173635173676%_ (let () (declare (not safe)) (##cdr _%e173633173671%_))) (_%hd173634173674%_ (let () (declare (not safe)) (##car _%e173633173671%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl173635173676%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl173632173668%_)) (let ((_%e173636173679%_ (let () (declare (not safe)) (gx#stx-e _%tl173632173668%_)))) (let ((_%tl173638173684%_ (let () (declare (not safe)) (##cdr _%e173636173679%_))) (_%hd173637173682%_ (let () (declare (not safe)) (##car _%e173636173679%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl173638173684%_)) (_%__match176730176731%_ _%e173627173655%_ _%hd173628173658%_ _%tl173629173660%_ _%e173630173663%_ _%hd173631173666%_ _%tl173632173668%_ _%e173633173671%_ _%hd173634173674%_ _%tl173635173676%_ _%e173636173679%_ _%hd173637173682%_ _%tl173638173684%_) (_%__kont176701176702%_)))) (_%__kont176701176702%_)) (_%__kont176701176702%_)))) (_%__kont176701176702%_)))) (_%__kont176701176702%_)))) (_%__kont176701176702%_)))))))) (define gxc#extract-receiver-begin-annotation% (lambda (_%self173467%_ _%stx173468%_) (let* ((_%__stx176733176734%_ _%stx173468%_) (_%g173471173504%_ (lambda () (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%__stx176733176734%_))))) (let ((_%__kont176735176736%_ (lambda (_%L173594%_) _%L173594%_)) (_%__kont176737176738%_ (lambda (_%L173533%_ _%L173534%_) (let () (declare (not safe)) (gxc#compile-e__1 _%self173467%_ _%L173533%_))))) (if (let () (declare (not safe)) (gx#stx-pair? _%__stx176733176734%_)) (let ((_%e173474173554%_ (let () (declare (not safe)) (gx#stx-e _%__stx176733176734%_)))) (let ((_%tl173476173559%_ (let () (declare (not safe)) (##cdr _%e173474173554%_))) (_%hd173475173557%_ (let () (declare (not safe)) (##car _%e173474173554%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl173476173559%_)) (let ((_%e173477173562%_ (let () (declare (not safe)) (gx#stx-e _%tl173476173559%_)))) (let ((_%tl173479173567%_ (let () (declare (not safe)) (##cdr _%e173477173562%_))) (_%hd173478173565%_ (let () (declare (not safe)) (##car _%e173477173562%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd173478173565%_)) (let ((_%e173480173570%_ (let () (declare (not safe)) (gx#stx-e _%hd173478173565%_)))) (let ((_%tl173482173575%_ (let () (declare (not safe)) (##cdr _%e173480173570%_))) (_%hd173481173573%_ (let () (declare (not safe)) (##car _%e173480173570%_)))) (if (let () (declare (not safe)) (gx#identifier? _%hd173481173573%_)) (if (let () (declare (not safe)) (gx#stx-eq? '@receiver _%hd173481173573%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl173482173575%_)) (let ((_%e173483173578%_ (let () (declare (not safe)) (gx#stx-e _%tl173482173575%_)))) (let ((_%tl173485173583%_ (let () (declare (not safe)) (##cdr _%e173483173578%_))) (_%hd173484173581%_ (let () (declare (not safe)) (##car _%e173483173578%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl173485173583%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl173479173567%_)) (let ((_%e173486173586%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (let () (declare (not safe)) (gx#stx-e _%tl173479173567%_)))) (let ((_%tl173488173591%_ (let () (declare (not safe)) (##cdr _%e173486173586%_))) (_%hd173487173589%_ (let () (declare (not safe)) (##car _%e173486173586%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl173488173591%_)) (_%__kont176735176736%_ _%hd173484173581%_) (let () (declare (not safe)) (_%g173471173504%_))))) (let () (declare (not safe)) (_%g173471173504%_))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl173479173567%_)) (let ((_%e173497173525%_ (let () (declare (not safe)) (gx#stx-e _%tl173479173567%_)))) (let ((_%tl173499173530%_ (let () (declare (not safe)) (##cdr _%e173497173525%_))) (_%hd173498173528%_ (let () (declare (not safe)) (##car _%e173497173525%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl173499173530%_)) (_%__kont176737176738%_ _%hd173498173528%_ _%hd173478173565%_) (let () (declare (not safe)) (_%g173471173504%_))))) (let () (declare (not safe)) (_%g173471173504%_)))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (if (let () (declare (not safe)) (gx#stx-pair? _%tl173479173567%_)) (let ((_%e173497173525%_ (let () (declare (not safe)) (gx#stx-e _%tl173479173567%_)))) (let ((_%tl173499173530%_ (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (##cdr _%e173497173525%_))) (_%hd173498173528%_ (let () (declare (not safe)) (##car _%e173497173525%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl173499173530%_)) (_%__kont176737176738%_ _%hd173498173528%_ _%hd173478173565%_) (let () (declare (not safe)) (_%g173471173504%_))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (let () (declare (not safe)) (_%g173471173504%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl173479173567%_)) (let ((_%e173497173525%_ (let () (declare (not safe)) (gx#stx-e _%tl173479173567%_)))) (let ((_%tl173499173530%_ (let () (declare (not safe)) (##cdr _%e173497173525%_))) (_%hd173498173528%_ (let () (declare (not safe)) (##car _%e173497173525%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl173499173530%_)) (_%__kont176737176738%_ _%hd173498173528%_ _%hd173478173565%_) (let () (declare (not safe)) (_%g173471173504%_))))) (let () (declare (not safe)) (_%g173471173504%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl173479173567%_)) (let ((_%e173497173525%_ (let () (declare (not safe)) (gx#stx-e _%tl173479173567%_)))) (let ((_%tl173499173530%_ (let () (declare (not safe)) (##cdr _%e173497173525%_))) (_%hd173498173528%_ (let () (declare (not safe)) (##car _%e173497173525%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl173499173530%_)) (_%__kont176737176738%_ _%hd173498173528%_ _%hd173478173565%_) (let () (declare (not safe)) (_%g173471173504%_))))) (let () (declare (not safe)) (_%g173471173504%_)))))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl173479173567%_)) (let ((_%e173497173525%_ (let () (declare (not safe)) (gx#stx-e _%tl173479173567%_)))) (let ((_%tl173499173530%_ (let () (declare (not safe)) (##cdr _%e173497173525%_))) (_%hd173498173528%_ (let () (declare (not safe)) (##car _%e173497173525%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl173499173530%_)) (_%__kont176737176738%_ _%hd173498173528%_ _%hd173478173565%_) (let () (declare (not safe)) (_%g173471173504%_))))) (let () (declare (not safe)) (_%g173471173504%_)))))) (let () (declare (not safe)) (_%g173471173504%_))))) (let () (declare (not safe)) (_%g173471173504%_))))))) (define gxc#extract-receiver-if% (lambda (_%self173383%_ _%stx173384%_) (let* ((_%g173386173407%_ (lambda (_%g173387173404%_) (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%g173387173404%_)))) (_%g173385173464%_ (lambda (_%g173387173410%_) (if (let () (declare (not safe)) (gx#stx-pair? _%g173387173410%_)) (let ((_%e173391173412%_ (let () (declare (not safe)) (gx#stx-e _%g173387173410%_)))) (let ((_%hd173392173415%_ (let () (declare (not safe)) (##car _%e173391173412%_))) (_%tl173393173417%_ (let () (declare (not safe)) (##cdr _%e173391173412%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl173393173417%_)) (let ((_%e173394173420%_ (let () (declare (not safe)) (gx#stx-e _%tl173393173417%_)))) (let ((_%hd173395173423%_ (let () (declare (not safe)) (##car _%e173394173420%_))) (_%tl173396173425%_ (let () (declare (not safe)) (##cdr _%e173394173420%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl173396173425%_)) (let ((_%e173397173428%_ (let () (declare (not safe)) (gx#stx-e _%tl173396173425%_)))) (let ((_%hd173398173431%_ (let () (declare (not safe)) (##car _%e173397173428%_))) (_%tl173399173433%_ (let () (declare (not safe)) (##cdr _%e173397173428%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl173399173433%_)) (let ((_%e173400173436%_ (let () (declare (not safe)) (gx#stx-e _%tl173399173433%_)))) (let ((_%hd173401173439%_ (let () (declare (not safe)) (##car _%e173400173436%_))) (_%tl173402173441%_ (let () (declare (not safe)) (##cdr _%e173400173436%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl173402173441%_)) ((lambda (_%L173444%_ _%L173445%_ _%L173446%_) (let () (declare (not safe)) (gxc#compile-e__1 _%self173383%_ _%L173445%_))) _%hd173401173439%_ _%hd173398173431%_ _%hd173395173423%_) (_%g173386173407%_ _%g173387173410%_)))) (_%g173386173407%_ _%g173387173410%_)))) (_%g173386173407%_ _%g173387173410%_)))) (_%g173386173407%_ _%g173387173410%_)))) (_%g173386173407%_ _%g173387173410%_))))) (_%g173385173464%_ _%stx173384%_)))) (define gxc#collect-object-refs-call% (lambda (_%self172344%_ _%stx172345%_) (let* ((_%__stx176799176800%_ _%stx172345%_) (_%g172353172575%_ (lambda () (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%__stx176799176800%_))))) (let ((_%__kont176801176802%_ (lambda (_%L173332%_ _%L173333%_ _%L173334%_ _%L173335%_) (let ((__tmp177905 (let () (declare (not safe)) (slot-ref__0 _%self172344%_ 'methods))) (__tmp177904 (let () (declare (not safe)) (gx#stx-e _%L173333%_)))) (declare (not safe)) (hash-put! __tmp177905 __tmp177904 '#t)) (for-each (lambda (_%g173368173370%_) (let () (declare (not safe)) (gxc#compile-e__1 _%self172344%_ _%g173368173370%_))) (let ((__tmp177906 (lambda (_%g173372173375%_ _%g173373173377%_) (cons _%g173372173375%_ _%g173373173377%_)))) (declare (not safe)) (__foldr1 __tmp177906 '() _%L173332%_))))) (_%__kont176805176806%_ (lambda (_%L173167%_ _%L173168%_ _%L173169%_ _%L173170%_ _%L173171%_) (let ((__tmp177908 (let () (declare (not safe)) (slot-ref__0 _%self172344%_ 'methods))) (__tmp177907 (let () (declare (not safe)) (gx#stx-e _%L173168%_)))) (declare (not safe)) (hash-put! __tmp177908 __tmp177907 '#t)) (for-each (lambda (_%g173211173213%_) (let () (declare (not safe)) (gxc#compile-e__1 _%self172344%_ _%g173211173213%_))) (let ((__tmp177909 (lambda (_%g173215173218%_ _%g173216173220%_) (cons _%g173215173218%_ _%g173216173220%_)))) (declare (not safe)) (__foldr1 __tmp177909 '() _%L173167%_))))) (_%__kont176809176810%_ (lambda (_%L173000%_ _%L173001%_ _%L173002%_) (let ((__tmp177911 (let () (declare (not safe)) (slot-ref__0 _%self172344%_ 'slots))) (__tmp177910 (let () (declare (not safe)) (gx#stx-e _%L173000%_)))) (declare (not safe)) (hash-put! __tmp177911 __tmp177910 '#t)))) (_%__kont176811176812%_ (lambda (_%L172877%_ _%L172878%_ _%L172879%_ _%L172880%_) (let ((__tmp177913 (let () (declare (not safe)) (slot-ref__0 _%self172344%_ 'slots))) (__tmp177912 (let () (declare (not safe)) (gx#stx-e _%L172878%_)))) (declare (not safe)) (hash-put! __tmp177913 __tmp177912 '#t)) (let () (declare (not safe)) (gxc#compile-e__1 _%self172344%_ _%L172877%_)))) (_%__kont176813176814%_ (lambda (_%L172751%_ _%L172752%_) (let* ((_%accessor172774%_ (let ((__tmp177914 (let () (declare (not safe)) (gxc#identifier-symbol _%L172752%_)))) (declare (not safe)) (gxc#optimizer-resolve-type __tmp177914))) (_%klass172776%_ (let ((__tmp177915 (##structure-ref _%accessor172774%_ '1 gxc#!type::t '#f))) (declare (not safe)) (gxc#optimizer-resolve-class _%stx172345%_ __tmp177915))) (_%slot172778%_ (##structure-ref _%accessor172774%_ '3 gxc#!accessor::t '#f))) (if (if (##structure-ref _%accessor172774%_ '4 gxc#!accessor::t '#f) '#f (or (let () (declare (not safe)) (gxc#!class-struct-slot? _%klass172776%_ _%slot172778%_)) (let () (declare (not safe)) (##unchecked-structure-ref _%klass172776%_ '8 '#f '#f)))) '#!void (let ((__tmp177917 (let () (declare (not safe)) (slot-ref__0 _%self172344%_ 'slots))) (__tmp177916 (##structure-ref _%accessor172774%_ '3 gxc#!accessor::t '#f))) (declare (not safe)) (hash-put! __tmp177917 __tmp177916 '#t)))))) (_%__kont176815176816%_ (lambda (_%L172651%_ _%L172652%_ _%L172653%_) (let* ((_%mutator172680%_ (let ((__tmp177918 (let () (declare (not safe)) (gxc#identifier-symbol _%L172653%_)))) (declare (not safe)) (gxc#optimizer-resolve-type __tmp177918))) (_%klass172682%_ (let ((__tmp177919 (##structure-ref _%mutator172680%_ '1 gxc#!type::t '#f))) (declare (not safe)) (gxc#optimizer-resolve-class _%stx172345%_ __tmp177919))) (_%slot172684%_ (##structure-ref _%mutator172680%_ '3 gxc#!mutator::t '#f))) (if (if (##structure-ref _%mutator172680%_ '4 gxc#!mutator::t '#f) '#f (or (let () (declare (not safe)) (gxc#!class-struct-slot? _%klass172682%_ _%slot172684%_)) (let () (declare (not safe)) (##unchecked-structure-ref _%klass172682%_ '8 '#f '#f)))) '#!void (let ((__tmp177920 (let () (declare (not safe)) (slot-ref__0 _%self172344%_ 'slots)))) (declare (not safe)) (hash-put! __tmp177920 _%slot172684%_ '#t))) (let () (declare (not safe)) (gxc#compile-e__1 _%self172344%_ _%L172651%_))))) (_%__kont176817176818%_ (lambda () (let () (declare (not safe)) (gxc#apply-operands _%self172344%_ _%stx172345%_))))) (let* ((_%__match177298177299%_ (lambda (_%e172547172587%_ _%hd172548172590%_ _%tl172549172592%_ _%e172550172595%_ _%hd172551172598%_ _%tl172552172600%_ _%e172553172603%_ _%hd172554172606%_ _%tl172555172608%_ _%e172556172611%_ _%hd172557172614%_ _%tl172558172616%_ _%e172559172619%_ _%hd172560172622%_ _%tl172561172624%_ _%e172562172627%_ _%hd172563172630%_ _%tl172564172632%_ _%e172565172635%_ _%hd172566172638%_ _%tl172567172640%_ _%e172568172643%_ _%hd172569172646%_ _%tl172570172648%_) (let ((_%L172651%_ _%hd172569172646%_) (_%L172652%_ _%hd172566172638%_) (_%L172653%_ _%hd172557172614%_)) (if (and (let ((__tmp177921 (let ((__tmp177922 (let () (declare (not safe)) (gxc#identifier-symbol _%L172653%_)))) (declare (not safe)) (gxc#optimizer-resolve-type __tmp177922)))) (declare (not safe)) (##structure-instance-of? __tmp177921 'gxc#!mutator::t)) (let ((__tmp177923 (let () (declare (not safe)) (slot-ref__0 _%self172344%_ 'receiver)))) (declare (not safe)) (gx#free-identifier=? _%L172652%_ __tmp177923))) (_%__kont176815176816%_ _%L172651%_ _%L172652%_ _%L172653%_) (_%__kont176817176818%_))))) (_%__match177296177297%_ (lambda (_%e172547172587%_ _%hd172548172590%_ _%tl172549172592%_ _%e172550172595%_ _%hd172551172598%_ _%tl172552172600%_ _%e172553172603%_ _%hd172554172606%_ _%tl172555172608%_ _%e172556172611%_ _%hd172557172614%_ _%tl172558172616%_ _%e172559172619%_ _%hd172560172622%_ _%tl172561172624%_ _%e172562172627%_ _%hd172563172630%_ _%tl172564172632%_ _%e172565172635%_ _%hd172566172638%_ _%tl172567172640%_ _%e172568172643%_ _%hd172569172646%_ _%tl172570172648%_) (if (let () (declare (not safe)) (gx#stx-null? _%tl172570172648%_)) (_%__match177298177299%_ _%e172547172587%_ _%hd172548172590%_ _%tl172549172592%_ _%e172550172595%_ _%hd172551172598%_ _%tl172552172600%_ _%e172553172603%_ _%hd172554172606%_ _%tl172555172608%_ _%e172556172611%_ _%hd172557172614%_ _%tl172558172616%_ _%e172559172619%_ _%hd172560172622%_ _%tl172561172624%_ _%e172562172627%_ _%hd172563172630%_ _%tl172564172632%_ _%e172565172635%_ _%hd172566172638%_ _%tl172567172640%_ _%e172568172643%_ _%hd172569172646%_ _%tl172570172648%_) (_%__kont176817176818%_)))) (_%__match177290177291%_ (lambda (_%e172547172587%_ _%hd172548172590%_ _%tl172549172592%_ _%e172550172595%_ _%hd172551172598%_ _%tl172552172600%_ _%e172553172603%_ _%hd172554172606%_ _%tl172555172608%_ _%e172556172611%_ _%hd172557172614%_ _%tl172558172616%_ _%e172559172619%_ _%hd172560172622%_ _%tl172561172624%_ _%e172562172627%_ _%hd172563172630%_ _%tl172564172632%_ _%e172565172635%_ _%hd172566172638%_ _%tl172567172640%_) (if (let () (declare (not safe)) (gx#stx-pair? _%tl172561172624%_)) (let ((_%e172568172643%_ (let () (declare (not safe)) (gx#stx-e _%tl172561172624%_)))) (let ((_%tl172570172648%_ (let () (declare (not safe)) (##cdr _%e172568172643%_))) (_%hd172569172646%_ (let () (declare (not safe)) (##car _%e172568172643%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl172570172648%_)) (_%__match177298177299%_ _%e172547172587%_ _%hd172548172590%_ _%tl172549172592%_ _%e172550172595%_ _%hd172551172598%_ _%tl172552172600%_ _%e172553172603%_ _%hd172554172606%_ _%tl172555172608%_ _%e172556172611%_ _%hd172557172614%_ _%tl172558172616%_ _%e172559172619%_ _%hd172560172622%_ _%tl172561172624%_ _%e172562172627%_ _%hd172563172630%_ _%tl172564172632%_ _%e172565172635%_ _%hd172566172638%_ _%tl172567172640%_ _%e172568172643%_ _%hd172569172646%_ _%tl172570172648%_) (_%__kont176817176818%_)))) (_%__kont176817176818%_)))) (_%__match177236177237%_ (lambda (_%e172523172695%_ _%hd172524172698%_ _%tl172525172700%_ _%e172526172703%_ _%hd172527172706%_ _%tl172528172708%_ _%e172529172711%_ _%hd172530172714%_ _%tl172531172716%_ _%e172532172719%_ _%hd172533172722%_ _%tl172534172724%_ _%e172535172727%_ _%hd172536172730%_ _%tl172537172732%_ _%e172538172735%_ _%hd172539172738%_ _%tl172540172740%_ _%e172541172743%_ _%hd172542172746%_ _%tl172543172748%_) (let ((_%L172751%_ _%hd172542172746%_) (_%L172752%_ _%hd172533172722%_)) (if (and (let ((__tmp177924 (let ((__tmp177925 (let () (declare (not safe)) (gxc#identifier-symbol _%L172752%_)))) (declare (not safe)) (gxc#optimizer-resolve-type __tmp177925)))) (declare (not safe)) (##structure-instance-of? __tmp177924 'gxc#!accessor::t)) (let ((__tmp177926 (let () (declare (not safe)) (slot-ref__0 _%self172344%_ 'receiver)))) (declare (not safe)) (gx#free-identifier=? _%L172751%_ __tmp177926))) (_%__kont176813176814%_ _%L172751%_ _%L172752%_) (_%__kont176817176818%_))))) (_%__match177234177235%_ (lambda (_%e172523172695%_ _%hd172524172698%_ _%tl172525172700%_ _%e172526172703%_ _%hd172527172706%_ _%tl172528172708%_ _%e172529172711%_ _%hd172530172714%_ _%tl172531172716%_ _%e172532172719%_ _%hd172533172722%_ _%tl172534172724%_ _%e172535172727%_ _%hd172536172730%_ _%tl172537172732%_ _%e172538172735%_ _%hd172539172738%_ _%tl172540172740%_ _%e172541172743%_ _%hd172542172746%_ _%tl172543172748%_) (if (let () (declare (not safe)) (gx#stx-null? _%tl172537172732%_)) (_%__match177236177237%_ _%e172523172695%_ _%hd172524172698%_ _%tl172525172700%_ _%e172526172703%_ _%hd172527172706%_ _%tl172528172708%_ _%e172529172711%_ _%hd172530172714%_ _%tl172531172716%_ _%e172532172719%_ _%hd172533172722%_ _%tl172534172724%_ _%e172535172727%_ _%hd172536172730%_ _%tl172537172732%_ _%e172538172735%_ _%hd172539172738%_ _%tl172540172740%_ _%e172541172743%_ _%hd172542172746%_ _%tl172543172748%_) (_%__match177290177291%_ _%e172523172695%_ _%hd172524172698%_ _%tl172525172700%_ _%e172526172703%_ _%hd172527172706%_ _%tl172528172708%_ _%e172529172711%_ _%hd172530172714%_ _%tl172531172716%_ _%e172532172719%_ _%hd172533172722%_ _%tl172534172724%_ _%e172535172727%_ _%hd172536172730%_ _%tl172537172732%_ _%e172538172735%_ _%hd172539172738%_ _%tl172540172740%_ _%e172541172743%_ _%hd172542172746%_ _%tl172543172748%_)))) (_%__match177180177181%_ (lambda (_%e172488172789%_ _%hd172489172792%_ _%tl172490172794%_ _%e172491172797%_ _%hd172492172800%_ _%tl172493172802%_ _%e172494172805%_ _%hd172495172808%_ _%tl172496172810%_ _%e172497172813%_ _%hd172498172816%_ _%tl172499172818%_ _%e172500172821%_ _%hd172501172824%_ _%tl172502172826%_ _%e172503172829%_ _%hd172504172832%_ _%tl172505172834%_ _%e172506172837%_ _%hd172507172840%_ _%tl172508172842%_ _%e172509172845%_ _%hd172510172848%_ _%tl172511172850%_ _%e172512172853%_ _%hd172513172856%_ _%tl172514172858%_ _%e172515172861%_ _%hd172516172864%_ _%tl172517172866%_ _%e172518172869%_ _%hd172519172872%_ _%tl172520172874%_) (let ((_%L172877%_ _%hd172519172872%_) (_%L172878%_ _%hd172516172864%_) (_%L172879%_ _%hd172507172840%_) (_%L172880%_ _%hd172498172816%_)) (if (and (or (let () (declare (not safe)) (gxc#runtime-identifier=? _%L172880%_ 'slot-set!)) (let () (declare (not safe)) (gxc#runtime-identifier=? _%L172880%_ 'unchecked-slot-set!))) (let ((__tmp177927 (let () (declare (not safe)) (slot-ref__0 _%self172344%_ 'receiver)))) (declare (not safe)) (gx#free-identifier=? _%L172879%_ __tmp177927))) (_%__kont176811176812%_ _%L172877%_ _%L172878%_ _%L172879%_ _%L172880%_) (_%__kont176817176818%_))))) (_%__match177172177173%_ (lambda (_%e172488172789%_ _%hd172489172792%_ _%tl172490172794%_ _%e172491172797%_ _%hd172492172800%_ _%tl172493172802%_ _%e172494172805%_ _%hd172495172808%_ _%tl172496172810%_ _%e172497172813%_ _%hd172498172816%_ _%tl172499172818%_ _%e172500172821%_ _%hd172501172824%_ _%tl172502172826%_ _%e172503172829%_ _%hd172504172832%_ _%tl172505172834%_ _%e172506172837%_ _%hd172507172840%_ _%tl172508172842%_ _%e172509172845%_ _%hd172510172848%_ _%tl172511172850%_ _%e172512172853%_ _%hd172513172856%_ _%tl172514172858%_ _%e172515172861%_ _%hd172516172864%_ _%tl172517172866%_) (if (let () (declare (not safe)) (gx#stx-pair? _%tl172511172850%_)) (let ((_%e172518172869%_ (let () (declare (not safe)) (gx#stx-e _%tl172511172850%_)))) (let ((_%tl172520172874%_ (let () (declare (not safe)) (##cdr _%e172518172869%_))) (_%hd172519172872%_ (let () (declare (not safe)) (##car _%e172518172869%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl172520172874%_)) (_%__match177180177181%_ _%e172488172789%_ _%hd172489172792%_ _%tl172490172794%_ _%e172491172797%_ _%hd172492172800%_ _%tl172493172802%_ _%e172494172805%_ _%hd172495172808%_ _%tl172496172810%_ _%e172497172813%_ _%hd172498172816%_ _%tl172499172818%_ _%e172500172821%_ _%hd172501172824%_ _%tl172502172826%_ _%e172503172829%_ _%hd172504172832%_ _%tl172505172834%_ _%e172506172837%_ _%hd172507172840%_ _%tl172508172842%_ _%e172509172845%_ _%hd172510172848%_ _%tl172511172850%_ _%e172512172853%_ _%hd172513172856%_ _%tl172514172858%_ _%e172515172861%_ _%hd172516172864%_ _%tl172517172866%_ _%e172518172869%_ _%hd172519172872%_ _%tl172520172874%_) (_%__kont176817176818%_)))) (_%__match177296177297%_ _%e172488172789%_ _%hd172489172792%_ _%tl172490172794%_ _%e172491172797%_ _%hd172492172800%_ _%tl172493172802%_ _%e172494172805%_ _%hd172495172808%_ _%tl172496172810%_ _%e172497172813%_ _%hd172498172816%_ _%tl172499172818%_ _%e172500172821%_ _%hd172501172824%_ _%tl172502172826%_ _%e172503172829%_ _%hd172504172832%_ _%tl172505172834%_ _%e172506172837%_ _%hd172507172840%_ _%tl172508172842%_ _%e172509172845%_ _%hd172510172848%_ _%tl172511172850%_)))) (_%__match177094177095%_ (lambda (_%e172454172920%_ _%hd172455172923%_ _%tl172456172925%_ _%e172457172928%_ _%hd172458172931%_ _%tl172459172933%_ _%e172460172936%_ _%hd172461172939%_ _%tl172462172941%_ _%e172463172944%_ _%hd172464172947%_ _%tl172465172949%_ _%e172466172952%_ _%hd172467172955%_ _%tl172468172957%_ _%e172469172960%_ _%hd172470172963%_ _%tl172471172965%_ _%e172472172968%_ _%hd172473172971%_ _%tl172474172973%_ _%e172475172976%_ _%hd172476172979%_ _%tl172477172981%_ _%e172478172984%_ _%hd172479172987%_ _%tl172480172989%_ _%e172481172992%_ _%hd172482172995%_ _%tl172483172997%_) (let ((_%L173000%_ _%hd172482172995%_) (_%L173001%_ _%hd172473172971%_) (_%L173002%_ _%hd172464172947%_)) (if (and (or (let () (declare (not safe)) (gxc#runtime-identifier=? _%L173002%_ 'slot-ref)) (let () (declare (not safe)) (gxc#runtime-identifier=? _%L173002%_ 'unchecked-slot-ref))) (let ((__tmp177928 (let () (declare (not safe)) (slot-ref__0 _%self172344%_ 'receiver)))) (declare (not safe)) (gx#free-identifier=? _%L173001%_ __tmp177928))) (_%__kont176809176810%_ _%L173000%_ _%L173001%_ _%L173002%_) (_%__match177298177299%_ _%e172454172920%_ _%hd172455172923%_ _%tl172456172925%_ _%e172457172928%_ _%hd172458172931%_ _%tl172459172933%_ _%e172460172936%_ _%hd172461172939%_ _%tl172462172941%_ _%e172463172944%_ _%hd172464172947%_ _%tl172465172949%_ _%e172466172952%_ _%hd172467172955%_ _%tl172468172957%_ _%e172469172960%_ _%hd172470172963%_ _%tl172471172965%_ _%e172472172968%_ _%hd172473172971%_ _%tl172474172973%_ _%e172475172976%_ _%hd172476172979%_ _%tl172477172981%_))))) (_%__match177092177093%_ (lambda (_%e172454172920%_ _%hd172455172923%_ _%tl172456172925%_ _%e172457172928%_ _%hd172458172931%_ _%tl172459172933%_ _%e172460172936%_ _%hd172461172939%_ _%tl172462172941%_ _%e172463172944%_ _%hd172464172947%_ _%tl172465172949%_ _%e172466172952%_ _%hd172467172955%_ _%tl172468172957%_ _%e172469172960%_ _%hd172470172963%_ _%tl172471172965%_ _%e172472172968%_ _%hd172473172971%_ _%tl172474172973%_ _%e172475172976%_ _%hd172476172979%_ _%tl172477172981%_ _%e172478172984%_ _%hd172479172987%_ _%tl172480172989%_ _%e172481172992%_ _%hd172482172995%_ _%tl172483172997%_) (if (let () (declare (not safe)) (gx#stx-null? _%tl172477172981%_)) (_%__match177094177095%_ _%e172454172920%_ _%hd172455172923%_ _%tl172456172925%_ _%e172457172928%_ _%hd172458172931%_ _%tl172459172933%_ _%e172460172936%_ _%hd172461172939%_ _%tl172462172941%_ _%e172463172944%_ _%hd172464172947%_ _%tl172465172949%_ _%e172466172952%_ _%hd172467172955%_ _%tl172468172957%_ _%e172469172960%_ _%hd172470172963%_ _%tl172471172965%_ _%e172472172968%_ _%hd172473172971%_ _%tl172474172973%_ _%e172475172976%_ _%hd172476172979%_ _%tl172477172981%_ _%e172478172984%_ _%hd172479172987%_ _%tl172480172989%_ _%e172481172992%_ _%hd172482172995%_ _%tl172483172997%_) (_%__match177172177173%_ _%e172454172920%_ _%hd172455172923%_ _%tl172456172925%_ _%e172457172928%_ _%hd172458172931%_ _%tl172459172933%_ _%e172460172936%_ _%hd172461172939%_ _%tl172462172941%_ _%e172463172944%_ _%hd172464172947%_ _%tl172465172949%_ _%e172466172952%_ _%hd172467172955%_ _%tl172468172957%_ _%e172469172960%_ _%hd172470172963%_ _%tl172471172965%_ _%e172472172968%_ _%hd172473172971%_ _%tl172474172973%_ _%e172475172976%_ _%hd172476172979%_ _%tl172477172981%_ _%e172478172984%_ _%hd172479172987%_ _%tl172480172989%_ _%e172481172992%_ _%hd172482172995%_ _%tl172483172997%_)))) (_%__match177082177083%_ (lambda (_%e172454172920%_ _%hd172455172923%_ _%tl172456172925%_ _%e172457172928%_ _%hd172458172931%_ _%tl172459172933%_ _%e172460172936%_ _%hd172461172939%_ _%tl172462172941%_ _%e172463172944%_ _%hd172464172947%_ _%tl172465172949%_ _%e172466172952%_ _%hd172467172955%_ _%tl172468172957%_ _%e172469172960%_ _%hd172470172963%_ _%tl172471172965%_ _%e172472172968%_ _%hd172473172971%_ _%tl172474172973%_ _%e172475172976%_ _%hd172476172979%_ _%tl172477172981%_ _%e172478172984%_ _%hd172479172987%_ _%tl172480172989%_) (if (let () (declare (not safe)) (gx#stx-eq? '%#quote _%hd172479172987%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl172480172989%_)) (let ((_%e172481172992%_ (let () (declare (not safe)) (gx#stx-e _%tl172480172989%_)))) (let ((_%tl172483172997%_ (let () (declare (not safe)) (##cdr _%e172481172992%_))) (_%hd172482172995%_ (let () (declare (not safe)) (##car _%e172481172992%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl172483172997%_)) (if (let () (declare (not safe)) (gx#stx-null? _%tl172477172981%_)) (_%__match177094177095%_ _%e172454172920%_ _%hd172455172923%_ _%tl172456172925%_ _%e172457172928%_ _%hd172458172931%_ _%tl172459172933%_ _%e172460172936%_ _%hd172461172939%_ _%tl172462172941%_ _%e172463172944%_ _%hd172464172947%_ _%tl172465172949%_ _%e172466172952%_ _%hd172467172955%_ _%tl172468172957%_ _%e172469172960%_ _%hd172470172963%_ _%tl172471172965%_ _%e172472172968%_ _%hd172473172971%_ _%tl172474172973%_ _%e172475172976%_ _%hd172476172979%_ _%tl172477172981%_ _%e172478172984%_ _%hd172479172987%_ _%tl172480172989%_ _%e172481172992%_ _%hd172482172995%_ _%tl172483172997%_) (_%__match177172177173%_ _%e172454172920%_ _%hd172455172923%_ _%tl172456172925%_ _%e172457172928%_ _%hd172458172931%_ _%tl172459172933%_ _%e172460172936%_ _%hd172461172939%_ _%tl172462172941%_ _%e172463172944%_ _%hd172464172947%_ _%tl172465172949%_ _%e172466172952%_ _%hd172467172955%_ _%tl172468172957%_ _%e172469172960%_ _%hd172470172963%_ _%tl172471172965%_ _%e172472172968%_ _%hd172473172971%_ _%tl172474172973%_ _%e172475172976%_ _%hd172476172979%_ _%tl172477172981%_ _%e172478172984%_ _%hd172479172987%_ _%tl172480172989%_ _%e172481172992%_ _%hd172482172995%_ _%tl172483172997%_)) (_%__match177296177297%_ _%e172454172920%_ _%hd172455172923%_ _%tl172456172925%_ _%e172457172928%_ _%hd172458172931%_ _%tl172459172933%_ _%e172460172936%_ _%hd172461172939%_ _%tl172462172941%_ _%e172463172944%_ _%hd172464172947%_ _%tl172465172949%_ _%e172466172952%_ _%hd172467172955%_ _%tl172468172957%_ _%e172469172960%_ _%hd172470172963%_ _%tl172471172965%_ _%e172472172968%_ _%hd172473172971%_ _%tl172474172973%_ _%e172475172976%_ _%hd172476172979%_ _%tl172477172981%_)))) (_%__match177296177297%_ _%e172454172920%_ _%hd172455172923%_ _%tl172456172925%_ _%e172457172928%_ _%hd172458172931%_ _%tl172459172933%_ _%e172460172936%_ _%hd172461172939%_ _%tl172462172941%_ _%e172463172944%_ _%hd172464172947%_ _%tl172465172949%_ _%e172466172952%_ _%hd172467172955%_ _%tl172468172957%_ _%e172469172960%_ _%hd172470172963%_ _%tl172471172965%_ _%e172472172968%_ _%hd172473172971%_ _%tl172474172973%_ _%e172475172976%_ _%hd172476172979%_ _%tl172477172981%_)) (_%__match177296177297%_ _%e172454172920%_ _%hd172455172923%_ _%tl172456172925%_ _%e172457172928%_ _%hd172458172931%_ _%tl172459172933%_ _%e172460172936%_ _%hd172461172939%_ _%tl172462172941%_ _%e172463172944%_ _%hd172464172947%_ _%tl172465172949%_ _%e172466172952%_ _%hd172467172955%_ _%tl172468172957%_ _%e172469172960%_ _%hd172470172963%_ _%tl172471172965%_ _%e172472172968%_ _%hd172473172971%_ _%tl172474172973%_ _%e172475172976%_ _%hd172476172979%_ _%tl172477172981%_)))) (_%__match177014177015%_ (lambda (_%e172403173039%_ _%hd172404173042%_ _%tl172405173044%_ _%e172406173047%_ _%hd172407173050%_ _%tl172408173052%_ _%e172409173055%_ _%hd172410173058%_ _%tl172411173060%_ _%e172412173063%_ _%hd172413173066%_ _%tl172414173068%_ _%e172415173071%_ _%hd172416173074%_ _%tl172417173076%_ _%e172418173079%_ _%hd172419173082%_ _%tl172420173084%_ _%e172421173087%_ _%hd172422173090%_ _%tl172423173092%_ _%e172424173095%_ _%hd172425173098%_ _%tl172426173100%_ _%e172427173103%_ _%hd172428173106%_ _%tl172429173108%_ _%e172430173111%_ _%hd172431173114%_ _%tl172432173116%_ _%e172433173119%_ _%hd172434173122%_ _%tl172435173124%_ _%e172436173127%_ _%hd172437173130%_ _%tl172438173132%_ _%e172439173135%_ _%hd172440173138%_ _%tl172441173140%_ _%__splice176807176808%_ _%target172442173143%_ _%tl172444173145%_) (letrec ((_%loop172445173148%_ (lambda (_%hd172443173151%_ _%args172449173153%_) (if (let () (declare (not safe)) (gx#stx-pair? _%hd172443173151%_)) (let ((_%e172446173156%_ (let () (declare (not safe)) (gx#stx-e _%hd172443173151%_)))) (let ((_%lp-tl172448173161%_ (let () (declare (not safe)) (##cdr _%e172446173156%_))) (_%lp-hd172447173159%_ (let () (declare (not safe)) (##car _%e172446173156%_)))) (_%loop172445173148%_ _%lp-tl172448173161%_ (cons _%lp-hd172447173159%_ _%args172449173153%_)))) (let ((_%args172450173164%_ (reverse _%args172449173153%_))) (let ((_%L173167%_ _%args172450173164%_) (_%L173168%_ _%hd172440173138%_) (_%L173169%_ _%hd172431173114%_) (_%L173170%_ _%hd172422173090%_) (_%L173171%_ _%hd172413173066%_)) (if (and (let () (declare (not safe)) (gxc#runtime-identifier=? _%L173171%_ 'apply)) (let () (declare (not safe)) (gxc#runtime-identifier=? _%L173170%_ 'call-method)) (let ((__tmp177929 (let () (declare (not safe)) (slot-ref__0 _%self172344%_ 'receiver)))) (declare (not safe)) (gx#free-identifier=? _%L173169%_ __tmp177929))) (_%__kont176805176806%_ _%L173167%_ _%L173168%_ _%L173169%_ _%L173170%_ _%L173171%_) (_%__kont176817176818%_)))))))) (_%loop172445173148%_ _%target172442173143%_ '())))) (_%__match176972176973%_ (lambda (_%e172403173039%_ _%hd172404173042%_ _%tl172405173044%_ _%e172406173047%_ _%hd172407173050%_ _%tl172408173052%_ _%e172409173055%_ _%hd172410173058%_ _%tl172411173060%_ _%e172412173063%_ _%hd172413173066%_ _%tl172414173068%_ _%e172415173071%_ _%hd172416173074%_ _%tl172417173076%_ _%e172418173079%_ _%hd172419173082%_ _%tl172420173084%_ _%e172421173087%_ _%hd172422173090%_ _%tl172423173092%_ _%e172424173095%_ _%hd172425173098%_ _%tl172426173100%_ _%e172427173103%_ _%hd172428173106%_ _%tl172429173108%_) (if (let () (declare (not safe)) (gx#stx-eq? '%#ref _%hd172428173106%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl172429173108%_)) (let ((_%e172430173111%_ (let () (declare (not safe)) (gx#stx-e _%tl172429173108%_)))) (let ((_%tl172432173116%_ (let () (declare (not safe)) (##cdr _%e172430173111%_))) (_%hd172431173114%_ (let () (declare (not safe)) (##car _%e172430173111%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl172432173116%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl172426173100%_)) (let ((_%e172433173119%_ (let () (declare (not safe)) (gx#stx-e _%tl172426173100%_)))) (let ((_%tl172435173124%_ (let () (declare (not safe)) (##cdr _%e172433173119%_))) (_%hd172434173122%_ (let () (declare (not safe)) (##car _%e172433173119%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd172434173122%_)) (let ((_%e172436173127%_ (let () (declare (not safe)) (gx#stx-e _%hd172434173122%_)))) (let ((_%tl172438173132%_ (let () (declare (not safe)) (##cdr _%e172436173127%_))) (_%hd172437173130%_ (let () (declare (not safe)) (##car _%e172436173127%_)))) (if (let () (declare (not safe)) (gx#identifier? _%hd172437173130%_)) (if (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (gx#stx-eq? '%#quote _%hd172437173130%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl172438173132%_)) (let ((_%e172439173135%_ (let () (declare (not safe)) (gx#stx-e _%tl172438173132%_)))) (let ((_%tl172441173140%_ (let () (declare (not safe)) (##cdr _%e172439173135%_))) (_%hd172440173138%_ (let () (declare (not safe)) (##car _%e172439173135%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl172441173140%_)) (if (let () (declare (not safe)) (gx#stx-pair/null? _%tl172435173124%_)) (let ((_%__splice176807176808%_ (let () (declare (not safe)) (gx#syntax-split-splice _%tl172435173124%_ '0)))) (let ((_%tl172444173145%_ (let () (declare (not safe)) (##vector-ref _%__splice176807176808%_ '1))) (_%target172442173143%_ (let () (declare (not safe)) (##vector-ref _%__splice176807176808%_ '0)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl172444173145%_)) (_%__match177014177015%_ _%e172403173039%_ _%hd172404173042%_ _%tl172405173044%_ _%e172406173047%_ _%hd172407173050%_ _%tl172408173052%_ _%e172409173055%_ _%hd172410173058%_ _%tl172411173060%_ _%e172412173063%_ _%hd172413173066%_ _%tl172414173068%_ _%e172415173071%_ _%hd172416173074%_ _%tl172417173076%_ _%e172418173079%_ _%hd172419173082%_ _%tl172420173084%_ _%e172421173087%_ _%hd172422173090%_ _%tl172423173092%_ _%e172424173095%_ _%hd172425173098%_ _%tl172426173100%_ _%e172427173103%_ _%hd172428173106%_ _%tl172429173108%_ _%e172430173111%_ _%hd172431173114%_ _%tl172432173116%_ _%e172433173119%_ _%hd172434173122%_ _%tl172435173124%_ _%e172436173127%_ _%hd172437173130%_ _%tl172438173132%_ _%e172439173135%_ _%hd172440173138%_ _%tl172441173140%_ _%__splice176807176808%_ _%target172442173143%_ _%tl172444173145%_) (_%__kont176817176818%_)))) (_%__kont176817176818%_)) (_%__kont176817176818%_)))) (_%__kont176817176818%_)) (_%__kont176817176818%_)) (_%__kont176817176818%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%__kont176817176818%_)))) (_%__match177296177297%_ _%e172403173039%_ _%hd172404173042%_ _%tl172405173044%_ _%e172406173047%_ _%hd172407173050%_ _%tl172408173052%_ _%e172409173055%_ _%hd172410173058%_ _%tl172411173060%_ _%e172412173063%_ _%hd172413173066%_ _%tl172414173068%_ _%e172415173071%_ _%hd172416173074%_ _%tl172417173076%_ _%e172418173079%_ _%hd172419173082%_ _%tl172420173084%_ _%e172421173087%_ _%hd172422173090%_ _%tl172423173092%_ _%e172424173095%_ _%hd172425173098%_ _%tl172426173100%_)) (_%__match177296177297%_ _%e172403173039%_ _%hd172404173042%_ _%tl172405173044%_ _%e172406173047%_ _%hd172407173050%_ _%tl172408173052%_ _%e172409173055%_ _%hd172410173058%_ _%tl172411173060%_ _%e172412173063%_ _%hd172413173066%_ _%tl172414173068%_ _%e172415173071%_ _%hd172416173074%_ _%tl172417173076%_ _%e172418173079%_ _%hd172419173082%_ _%tl172420173084%_ _%e172421173087%_ _%hd172422173090%_ _%tl172423173092%_ _%e172424173095%_ _%hd172425173098%_ _%tl172426173100%_)))) (_%__match177296177297%_ _%e172403173039%_ _%hd172404173042%_ _%tl172405173044%_ _%e172406173047%_ _%hd172407173050%_ _%tl172408173052%_ _%e172409173055%_ _%hd172410173058%_ _%tl172411173060%_ _%e172412173063%_ _%hd172413173066%_ _%tl172414173068%_ _%e172415173071%_ _%hd172416173074%_ _%tl172417173076%_ _%e172418173079%_ _%hd172419173082%_ _%tl172420173084%_ _%e172421173087%_ _%hd172422173090%_ _%tl172423173092%_ _%e172424173095%_ _%hd172425173098%_ _%tl172426173100%_)) (_%__match177082177083%_ _%e172403173039%_ _%hd172404173042%_ _%tl172405173044%_ _%e172406173047%_ _%hd172407173050%_ _%tl172408173052%_ _%e172409173055%_ _%hd172410173058%_ _%tl172411173060%_ _%e172412173063%_ _%hd172413173066%_ _%tl172414173068%_ _%e172415173071%_ _%hd172416173074%_ _%tl172417173076%_ _%e172418173079%_ _%hd172419173082%_ _%tl172420173084%_ _%e172421173087%_ _%hd172422173090%_ _%tl172423173092%_ _%e172424173095%_ _%hd172425173098%_ _%tl172426173100%_ _%e172427173103%_ _%hd172428173106%_ _%tl172429173108%_)))) (_%__match176904176905%_ (lambda (_%e172359173228%_ _%hd172360173231%_ _%tl172361173233%_ _%e172362173236%_ _%hd172363173239%_ _%tl172364173241%_ _%e172365173244%_ _%hd172366173247%_ _%tl172367173249%_ _%e172368173252%_ _%hd172369173255%_ _%tl172370173257%_ _%e172371173260%_ _%hd172372173263%_ _%tl172373173265%_ _%e172374173268%_ _%hd172375173271%_ _%tl172376173273%_ _%e172377173276%_ _%hd172378173279%_ _%tl172379173281%_ _%e172380173284%_ _%hd172381173287%_ _%tl172382173289%_ _%e172383173292%_ _%hd172384173295%_ _%tl172385173297%_ _%e172386173300%_ _%hd172387173303%_ _%tl172388173305%_ _%__splice176803176804%_ _%target172389173308%_ _%tl172391173310%_) (letrec ((_%loop172392173313%_ (lambda (_%hd172390173316%_ _%args172396173318%_) (if (let () (declare (not safe)) (gx#stx-pair? _%hd172390173316%_)) (let ((_%e172393173321%_ (let () (declare (not safe)) (gx#stx-e _%hd172390173316%_)))) (let ((_%lp-tl172395173326%_ (let () (declare (not safe)) (##cdr _%e172393173321%_))) (_%lp-hd172394173324%_ (let () (declare (not safe)) (##car _%e172393173321%_)))) (_%loop172392173313%_ _%lp-tl172395173326%_ (cons _%lp-hd172394173324%_ _%args172396173318%_)))) (let ((_%args172397173329%_ (reverse _%args172396173318%_))) (let ((_%L173332%_ _%args172397173329%_) (_%L173333%_ _%hd172387173303%_) (_%L173334%_ _%hd172378173279%_) (_%L173335%_ _%hd172369173255%_)) (if (and (let () (declare (not safe)) (gxc#runtime-identifier=? _%L173335%_ 'call-method)) (let ((__tmp177930 (let () (declare (not safe)) (slot-ref__0 _%self172344%_ 'receiver)))) (declare (not safe)) (gx#free-identifier=? _%L173334%_ __tmp177930))) (_%__kont176801176802%_ _%L173332%_ _%L173333%_ _%L173334%_ _%L173335%_) (_%__match177092177093%_ _%e172359173228%_ _%hd172360173231%_ _%tl172361173233%_ _%e172362173236%_ _%hd172363173239%_ _%tl172364173241%_ _%e172365173244%_ _%hd172366173247%_ _%tl172367173249%_ _%e172368173252%_ _%hd172369173255%_ _%tl172370173257%_ _%e172371173260%_ _%hd172372173263%_ _%tl172373173265%_ _%e172374173268%_ _%hd172375173271%_ _%tl172376173273%_ _%e172377173276%_ _%hd172378173279%_ _%tl172379173281%_ _%e172380173284%_ _%hd172381173287%_ _%tl172382173289%_ _%e172383173292%_ _%hd172384173295%_ _%tl172385173297%_ _%e172386173300%_ _%hd172387173303%_ _%tl172388173305%_)))))))) (_%loop172392173313%_ _%target172389173308%_ '()))))) (if (let () (declare (not safe)) (gx#stx-pair? _%__stx176799176800%_)) (let ((_%e172359173228%_ (let () (declare (not safe)) (gx#stx-e _%__stx176799176800%_)))) (let ((_%tl172361173233%_ (let () (declare (not safe)) (##cdr _%e172359173228%_))) (_%hd172360173231%_ (let () (declare (not safe)) (##car _%e172359173228%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl172361173233%_)) (let ((_%e172362173236%_ (let () (declare (not safe)) (gx#stx-e _%tl172361173233%_)))) (let ((_%tl172364173241%_ (let () (declare (not safe)) (##cdr _%e172362173236%_))) (_%hd172363173239%_ (let () (declare (not safe)) (##car _%e172362173236%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd172363173239%_)) (let ((_%e172365173244%_ (let () (declare (not safe)) (gx#stx-e _%hd172363173239%_)))) (let ((_%tl172367173249%_ (let () (declare (not safe)) (##cdr _%e172365173244%_))) (_%hd172366173247%_ (let () (declare (not safe)) (##car _%e172365173244%_)))) (if (let () (declare (not safe)) (gx#identifier? _%hd172366173247%_)) (if (let () (declare (not safe)) (gx#stx-eq? '%#ref _%hd172366173247%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl172367173249%_)) (let ((_%e172368173252%_ (let () (declare (not safe)) (gx#stx-e _%tl172367173249%_)))) (let ((_%tl172370173257%_ (let () (declare (not safe)) (##cdr _%e172368173252%_))) (_%hd172369173255%_ (let () (declare (not safe)) (##car _%e172368173252%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl172370173257%_)) (if (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (gx#stx-pair? _%tl172364173241%_)) (let ((_%e172371173260%_ (let () (declare (not safe)) (gx#stx-e _%tl172364173241%_)))) (let ((_%tl172373173265%_ (let () (declare (not safe)) (##cdr _%e172371173260%_))) (_%hd172372173263%_ (let () (declare (not safe)) (##car _%e172371173260%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd172372173263%_)) (let ((_%e172374173268%_ (let () (declare (not safe)) (gx#stx-e _%hd172372173263%_)))) (let ((_%tl172376173273%_ (let () (declare (not safe)) (##cdr _%e172374173268%_))) (_%hd172375173271%_ (let () (declare (not safe)) (##car _%e172374173268%_)))) (if (let () (declare (not safe)) (gx#identifier? _%hd172375173271%_)) (if (let () (declare (not safe)) (gx#stx-eq? '%#ref _%hd172375173271%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl172376173273%_)) (let ((_%e172377173276%_ (let () (declare (not safe)) (gx#stx-e _%tl172376173273%_)))) (let ((_%tl172379173281%_ (let () (declare (not safe)) (##cdr _%e172377173276%_))) (_%hd172378173279%_ (let () (declare (not safe)) (##car _%e172377173276%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl172379173281%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl172373173265%_)) (let ((_%e172380173284%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (let () (declare (not safe)) (gx#stx-e _%tl172373173265%_)))) (let ((_%tl172382173289%_ (let () (declare (not safe)) (##cdr _%e172380173284%_))) (_%hd172381173287%_ (let () (declare (not safe)) (##car _%e172380173284%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd172381173287%_)) (let ((_%e172383173292%_ (let () (declare (not safe)) (gx#stx-e _%hd172381173287%_)))) (let ((_%tl172385173297%_ (let () (declare (not safe)) (##cdr _%e172383173292%_))) (_%hd172384173295%_ (let () (declare (not safe)) (##car _%e172383173292%_)))) (if (let () (declare (not safe)) (gx#identifier? _%hd172384173295%_)) (if (let () (declare (not safe)) (gx#stx-eq? '%#quote _%hd172384173295%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl172385173297%_)) (let ((_%e172386173300%_ (let () (declare (not safe)) (gx#stx-e _%tl172385173297%_)))) (let ((_%tl172388173305%_ (let () (declare (not safe)) (##cdr _%e172386173300%_))) (_%hd172387173303%_ (let () (declare (not safe)) (##car _%e172386173300%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl172388173305%_)) (if (let () (declare (not safe)) (gx#stx-pair/null? _%tl172382173289%_)) (let ((_%__splice176803176804%_ (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (gx#syntax-split-splice _%tl172382173289%_ '0)))) (let ((_%tl172391173310%_ (let () (declare (not safe)) (##vector-ref _%__splice176803176804%_ '1))) (_%target172389173308%_ (let () (declare (not safe)) (##vector-ref _%__splice176803176804%_ '0)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl172391173310%_)) (_%__match176904176905%_ _%e172359173228%_ _%hd172360173231%_ _%tl172361173233%_ _%e172362173236%_ _%hd172363173239%_ _%tl172364173241%_ _%e172365173244%_ _%hd172366173247%_ _%tl172367173249%_ _%e172368173252%_ _%hd172369173255%_ _%tl172370173257%_ _%e172371173260%_ _%hd172372173263%_ _%tl172373173265%_ _%e172374173268%_ _%hd172375173271%_ _%tl172376173273%_ _%e172377173276%_ _%hd172378173279%_ _%tl172379173281%_ _%e172380173284%_ _%hd172381173287%_ _%tl172382173289%_ _%e172383173292%_ _%hd172384173295%_ _%tl172385173297%_ _%e172386173300%_ _%hd172387173303%_ _%tl172388173305%_ _%__splice176803176804%_ _%target172389173308%_ _%tl172391173310%_) (_%__match177092177093%_ _%e172359173228%_ _%hd172360173231%_ _%tl172361173233%_ _%e172362173236%_ _%hd172363173239%_ _%tl172364173241%_ _%e172365173244%_ _%hd172366173247%_ _%tl172367173249%_ _%e172368173252%_ _%hd172369173255%_ _%tl172370173257%_ _%e172371173260%_ _%hd172372173263%_ _%tl172373173265%_ _%e172374173268%_ _%hd172375173271%_ _%tl172376173273%_ _%e172377173276%_ _%hd172378173279%_ _%tl172379173281%_ _%e172380173284%_ _%hd172381173287%_ _%tl172382173289%_ _%e172383173292%_ _%hd172384173295%_ _%tl172385173297%_ _%e172386173300%_ _%hd172387173303%_ _%tl172388173305%_)))) (_%__match177092177093%_ _%e172359173228%_ _%hd172360173231%_ _%tl172361173233%_ _%e172362173236%_ _%hd172363173239%_ _%tl172364173241%_ _%e172365173244%_ _%hd172366173247%_ _%tl172367173249%_ _%e172368173252%_ _%hd172369173255%_ _%tl172370173257%_ _%e172371173260%_ _%hd172372173263%_ _%tl172373173265%_ _%e172374173268%_ _%hd172375173271%_ _%tl172376173273%_ _%e172377173276%_ _%hd172378173279%_ _%tl172379173281%_ _%e172380173284%_ _%hd172381173287%_ _%tl172382173289%_ _%e172383173292%_ _%hd172384173295%_ _%tl172385173297%_ _%e172386173300%_ _%hd172387173303%_ _%tl172388173305%_)) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%__match177296177297%_ _%e172359173228%_ _%hd172360173231%_ _%tl172361173233%_ _%e172362173236%_ _%hd172363173239%_ _%tl172364173241%_ _%e172365173244%_ _%hd172366173247%_ _%tl172367173249%_ _%e172368173252%_ _%hd172369173255%_ _%tl172370173257%_ _%e172371173260%_ _%hd172372173263%_ _%tl172373173265%_ _%e172374173268%_ _%hd172375173271%_ _%tl172376173273%_ _%e172377173276%_ _%hd172378173279%_ _%tl172379173281%_ _%e172380173284%_ _%hd172381173287%_ _%tl172382173289%_)))) (_%__match177296177297%_ _%e172359173228%_ _%hd172360173231%_ _%tl172361173233%_ _%e172362173236%_ _%hd172363173239%_ _%tl172364173241%_ _%e172365173244%_ _%hd172366173247%_ _%tl172367173249%_ _%e172368173252%_ _%hd172369173255%_ _%tl172370173257%_ _%e172371173260%_ _%hd172372173263%_ _%tl172373173265%_ _%e172374173268%_ _%hd172375173271%_ _%tl172376173273%_ _%e172377173276%_ _%hd172378173279%_ _%tl172379173281%_ _%e172380173284%_ _%hd172381173287%_ _%tl172382173289%_)) (_%__match176972176973%_ _%e172359173228%_ _%hd172360173231%_ _%tl172361173233%_ _%e172362173236%_ _%hd172363173239%_ _%tl172364173241%_ _%e172365173244%_ _%hd172366173247%_ _%tl172367173249%_ _%e172368173252%_ _%hd172369173255%_ _%tl172370173257%_ _%e172371173260%_ _%hd172372173263%_ _%tl172373173265%_ _%e172374173268%_ _%hd172375173271%_ _%tl172376173273%_ _%e172377173276%_ _%hd172378173279%_ _%tl172379173281%_ _%e172380173284%_ _%hd172381173287%_ _%tl172382173289%_ _%e172383173292%_ _%hd172384173295%_ _%tl172385173297%_)) (_%__match177296177297%_ _%e172359173228%_ _%hd172360173231%_ _%tl172361173233%_ _%e172362173236%_ _%hd172363173239%_ _%tl172364173241%_ _%e172365173244%_ _%hd172366173247%_ _%tl172367173249%_ _%e172368173252%_ _%hd172369173255%_ _%tl172370173257%_ _%e172371173260%_ _%hd172372173263%_ _%tl172373173265%_ _%e172374173268%_ _%hd172375173271%_ _%tl172376173273%_ _%e172377173276%_ _%hd172378173279%_ _%tl172379173281%_ _%e172380173284%_ _%hd172381173287%_ _%tl172382173289%_)))) (_%__match177296177297%_ _%e172359173228%_ _%hd172360173231%_ _%tl172361173233%_ _%e172362173236%_ _%hd172363173239%_ _%tl172364173241%_ _%e172365173244%_ _%hd172366173247%_ _%tl172367173249%_ _%e172368173252%_ _%hd172369173255%_ _%tl172370173257%_ _%e172371173260%_ _%hd172372173263%_ _%tl172373173265%_ _%e172374173268%_ _%hd172375173271%_ _%tl172376173273%_ _%e172377173276%_ _%hd172378173279%_ _%tl172379173281%_ _%e172380173284%_ _%hd172381173287%_ _%tl172382173289%_)))) (_%__match177234177235%_ _%e172359173228%_ _%hd172360173231%_ _%tl172361173233%_ _%e172362173236%_ _%hd172363173239%_ _%tl172364173241%_ _%e172365173244%_ _%hd172366173247%_ _%tl172367173249%_ _%e172368173252%_ _%hd172369173255%_ _%tl172370173257%_ _%e172371173260%_ _%hd172372173263%_ _%tl172373173265%_ _%e172374173268%_ _%hd172375173271%_ _%tl172376173273%_ _%e172377173276%_ _%hd172378173279%_ _%tl172379173281%_)) (_%__kont176817176818%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%__kont176817176818%_)) (_%__kont176817176818%_)) (_%__kont176817176818%_)))) (_%__kont176817176818%_)))) (_%__kont176817176818%_)) (_%__kont176817176818%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%__kont176817176818%_)) (_%__kont176817176818%_)) (_%__kont176817176818%_)))) (_%__kont176817176818%_)))) (_%__kont176817176818%_)))) (_%__kont176817176818%_))))))) (define gxc#subst-object-refs-call% (lambda (_%self171283%_ _%stx171284%_) (letrec ((_%force-e171286%_ (lambda (_%target172342%_) (cons '%#call (cons (cons '%#ref (cons 'force '())) (cons (cons '%#ref (cons _%target172342%_ '())) '())))))) (let* ((_%__stx177301177302%_ _%stx171284%_) (_%g171294171516%_ (lambda () (let () (declare (not safe)) (gx#raise-syntax-error '#f '"Bad syntax; invalid match target" _%__stx177301177302%_))))) (let ((_%__kont177303177304%_ (lambda (_%L172288%_ _%L172289%_ _%L172290%_ _%L172291%_) (let ((_%$method172336%_ (let ((__tmp177932 (let () (declare (not safe)) (slot-ref__0 _%self171283%_ 'methods))) (__tmp177931 (let () (declare (not safe)) (gx#stx-e _%L172289%_)))) (declare (not safe)) (hash-ref__0 __tmp177932 __tmp177931))) (_%args172337%_ (map (lambda (_%g172324172326%_) (let () (declare (not safe)) (gxc#compile-e__1 _%self171283%_ _%g172324172326%_))) (let ((__tmp177933 (lambda (_%g172328172331%_ _%g172329172333%_) (cons _%g172328172331%_ _%g172329172333%_)))) (declare (not safe)) (__foldr1 __tmp177933 '() _%L172288%_))))) (let ((__tmp177934 (cons '%#call (cons (_%force-e171286%_ _%$method172336%_) (cons (cons '%#ref (cons (let () (declare (not safe)) (slot-ref__0 _%self171283%_ 'receiver)) '())) _%args172337%_))))) (declare (not safe)) (gxc#xform-wrap-source __tmp177934 _%stx171284%_))))) (_%__kont177307177308%_ (lambda (_%L172120%_ _%L172121%_ _%L172122%_ _%L172123%_ _%L172124%_) (let ((_%$method172176%_ (let ((__tmp177936 (let () (declare (not safe)) (slot-ref__0 _%self171283%_ 'methods))) (__tmp177935 (let () (declare (not safe)) (gx#stx-e _%L172121%_)))) (declare (not safe)) (hash-ref__0 __tmp177936 __tmp177935))) (_%args172177%_ (map (lambda (_%g172164172166%_) (let () (declare (not safe)) (gxc#compile-e__1 _%self171283%_ _%g172164172166%_))) (let ((__tmp177937 (lambda (_%g172168172171%_ _%g172169172173%_) (cons _%g172168172171%_ _%g172169172173%_)))) (declare (not safe)) (__foldr1 __tmp177937 '() _%L172120%_))))) (let ((__tmp177938 (cons '%#call (cons (cons '%#ref (cons 'apply '())) (cons (_%force-e171286%_ _%$method172176%_) (cons (cons '%#ref (cons (let () ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (declare (not safe)) (slot-ref__0 _%self171283%_ 'receiver)) '())) _%args172177%_)))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (declare (not safe)) (gxc#xform-wrap-source __tmp177938 _%stx171284%_))))) (_%__kont177311177312%_ (lambda (_%L171951%_ _%L171952%_ _%L171953%_) (let* ((_%$field171985%_ (let ((__tmp177940 (let () (declare (not safe)) (slot-ref__0 _%self171283%_ 'slots))) (__tmp177939 (let () (declare (not safe)) (gx#stx-e _%L171951%_)))) (declare (not safe)) (hash-ref__0 __tmp177940 __tmp177939))) (__tmp177941 (cons '%#struct-unchecked-ref (cons (cons '%#ref (cons (let () (declare (not safe)) (slot-ref__0 _%self171283%_ 'klass)) '())) (cons (cons '%#ref (cons _%$field171985%_ '())) (cons (cons '%#ref (cons (let () ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (declare (not safe)) (slot-ref__0 _%self171283%_ 'receiver)) '())) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '())))))) (declare (not safe)) (gxc#xform-wrap-source __tmp177941 _%stx171284%_)))) (_%__kont177313177314%_ (lambda (_%L171825%_ _%L171826%_ _%L171827%_ _%L171828%_) (let ((_%$field171863%_ (let ((__tmp177943 (let () (declare (not safe)) (slot-ref__0 _%self171283%_ 'slots))) (__tmp177942 (let () (declare (not safe)) (gx#stx-e _%L171826%_)))) (declare (not safe)) (hash-ref__0 __tmp177943 __tmp177942))) (_%expr171864%_ (let () (declare (not safe)) (gxc#compile-e__1 _%self171283%_ _%L171825%_)))) (let ((__tmp177944 (cons '%#struct-unchecked-set! (cons (cons '%#ref (cons (let () (declare (not safe)) (slot-ref__0 _%self171283%_ 'klass)) '())) (cons (cons '%#ref (cons _%$field171863%_ '())) (cons (cons '%#ref (cons (let () ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (declare (not safe)) (slot-ref__0 _%self171283%_ 'receiver)) '())) (cons _%expr171864%_ '()))))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (declare (not safe)) (gxc#xform-wrap-source __tmp177944 _%stx171284%_))))) (_%__kont177315177316%_ (lambda (_%L171697%_ _%L171698%_) (let* ((_%accessor171720%_ (let ((__tmp177945 (let () (declare (not safe)) (gxc#identifier-symbol _%L171698%_)))) (declare (not safe)) (gxc#optimizer-resolve-type __tmp177945))) (_%klass171722%_ (let ((__tmp177946 (##structure-ref _%accessor171720%_ '1 gxc#!type::t '#f))) (declare (not safe)) (gxc#optimizer-resolve-class _%stx171284%_ __tmp177946))) (_%slot171724%_ (##structure-ref _%accessor171720%_ '3 gxc#!accessor::t '#f))) (if (if (##structure-ref _%accessor171720%_ '4 gxc#!accessor::t '#f) '#f (or (let () (declare (not safe)) (gxc#!class-struct-slot? _%klass171722%_ _%slot171724%_)) (let () (declare (not safe)) (##unchecked-structure-ref _%klass171722%_ '8 '#f '#f)))) _%stx171284%_ (let* ((_%$field171730%_ (let ((__tmp177947 (let () (declare (not safe)) (slot-ref__0 _%self171283%_ 'slots)))) (declare (not safe)) (hash-ref__0 __tmp177947 _%slot171724%_))) (__tmp177948 (cons '%#struct-unchecked-ref (cons (cons '%#ref (cons (let () (declare (not safe)) (slot-ref__0 _%self171283%_ 'klass)) '())) (cons (cons '%#ref (cons _%$field171730%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< '())) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (cons (cons '%#ref ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (cons (let () (declare (not safe)) (slot-ref__0 _%self171283%_ 'receiver)) '())) '())))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (declare (not safe)) (gxc#xform-wrap-source __tmp177948 _%stx171284%_)))))) (_%__kont177317177318%_ (lambda (_%L171592%_ _%L171593%_ _%L171594%_) (let* ((_%mutator171622%_ (let ((__tmp177949 (let () (declare (not safe)) (gxc#identifier-symbol _%L171594%_)))) (declare (not safe)) (gxc#optimizer-resolve-type __tmp177949))) (_%klass171624%_ (let ((__tmp177950 (##structure-ref _%mutator171622%_ '1 gxc#!type::t '#f))) (declare (not safe)) (gxc#optimizer-resolve-class _%stx171284%_ __tmp177950))) (_%slot171626%_ (##structure-ref _%mutator171622%_ '3 gxc#!mutator::t '#f)) (_%expr171628%_ (let () (declare (not safe)) (gxc#compile-e__1 _%self171283%_ _%L171592%_)))) (if (if (##structure-ref _%mutator171622%_ '4 gxc#!mutator::t '#f) '#f (or (let () (declare (not safe)) (gxc#!class-struct-slot? _%klass171624%_ _%slot171626%_)) (let () (declare (not safe)) (##unchecked-structure-ref _%klass171624%_ '8 '#f '#f)))) (let ((__tmp177951 (cons '%#call (cons (cons (let () (declare (not safe)) (gx#datum->syntax__0 '#f '%#ref)) (cons _%L171594%_ '())) (cons (cons (let () (declare (not safe)) (gx#datum->syntax__0 '#f '%#ref)) (cons _%L171593%_ '())) (cons _%expr171628%_ '())))))) (declare (not safe)) (gxc#xform-wrap-source __tmp177951 _%stx171284%_)) (let* ((_%$field171634%_ (let ((__tmp177952 (let () (declare (not safe)) (slot-ref__0 _%self171283%_ 'slots)))) (declare (not safe)) (hash-ref__0 __tmp177952 _%slot171626%_))) (__tmp177953 (cons '%#struct-unchecked-set! (cons (cons '%#ref (cons (let () (declare (not safe)) (slot-ref__0 _%self171283%_ 'klass)) '())) (cons (cons '%#ref (cons _%$field171634%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< '())) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (cons (cons '%#ref ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (cons (let () (declare (not safe)) (slot-ref__0 _%self171283%_ 'receiver)) '())) (cons _%expr171628%_ '()))))))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (declare (not safe)) (gxc#xform-wrap-source __tmp177953 _%stx171284%_)))))) (_%__kont177319177320%_ (lambda () (let () (declare (not safe)) (gxc#xform-operands _%self171283%_ _%stx171284%_))))) (let* ((_%__match177800177801%_ (lambda (_%e171488171528%_ _%hd171489171531%_ _%tl171490171533%_ _%e171491171536%_ _%hd171492171539%_ _%tl171493171541%_ _%e171494171544%_ _%hd171495171547%_ _%tl171496171549%_ _%e171497171552%_ _%hd171498171555%_ _%tl171499171557%_ _%e171500171560%_ _%hd171501171563%_ _%tl171502171565%_ _%e171503171568%_ _%hd171504171571%_ _%tl171505171573%_ _%e171506171576%_ _%hd171507171579%_ _%tl171508171581%_ _%e171509171584%_ _%hd171510171587%_ _%tl171511171589%_) (let ((_%L171592%_ _%hd171510171587%_) (_%L171593%_ _%hd171507171579%_) (_%L171594%_ _%hd171498171555%_)) (if (and (let ((__tmp177954 (let () (declare (not safe)) (slot-ref__0 _%self171283%_ 'receiver)))) (declare (not safe)) (gx#free-identifier=? _%L171593%_ __tmp177954)) (let ((__tmp177955 (let ((__tmp177956 (let () (declare (not safe)) (gxc#identifier-symbol _%L171594%_)))) (declare (not safe)) (gxc#optimizer-resolve-type __tmp177956)))) (declare (not safe)) (##structure-instance-of? __tmp177955 'gxc#!mutator::t))) (_%__kont177317177318%_ _%L171592%_ _%L171593%_ _%L171594%_) (_%__kont177319177320%_))))) (_%__match177798177799%_ (lambda (_%e171488171528%_ _%hd171489171531%_ _%tl171490171533%_ _%e171491171536%_ _%hd171492171539%_ _%tl171493171541%_ _%e171494171544%_ _%hd171495171547%_ _%tl171496171549%_ _%e171497171552%_ _%hd171498171555%_ _%tl171499171557%_ _%e171500171560%_ _%hd171501171563%_ _%tl171502171565%_ _%e171503171568%_ _%hd171504171571%_ _%tl171505171573%_ _%e171506171576%_ _%hd171507171579%_ _%tl171508171581%_ _%e171509171584%_ _%hd171510171587%_ _%tl171511171589%_) (if (let () (declare (not safe)) (gx#stx-null? _%tl171511171589%_)) (_%__match177800177801%_ _%e171488171528%_ _%hd171489171531%_ _%tl171490171533%_ _%e171491171536%_ _%hd171492171539%_ _%tl171493171541%_ _%e171494171544%_ _%hd171495171547%_ _%tl171496171549%_ _%e171497171552%_ _%hd171498171555%_ _%tl171499171557%_ _%e171500171560%_ _%hd171501171563%_ _%tl171502171565%_ _%e171503171568%_ _%hd171504171571%_ _%tl171505171573%_ _%e171506171576%_ _%hd171507171579%_ _%tl171508171581%_ _%e171509171584%_ _%hd171510171587%_ _%tl171511171589%_) (_%__kont177319177320%_)))) (_%__match177792177793%_ (lambda (_%e171488171528%_ _%hd171489171531%_ _%tl171490171533%_ _%e171491171536%_ _%hd171492171539%_ _%tl171493171541%_ _%e171494171544%_ _%hd171495171547%_ _%tl171496171549%_ _%e171497171552%_ _%hd171498171555%_ _%tl171499171557%_ _%e171500171560%_ _%hd171501171563%_ _%tl171502171565%_ _%e171503171568%_ _%hd171504171571%_ _%tl171505171573%_ _%e171506171576%_ _%hd171507171579%_ _%tl171508171581%_) (if (let () (declare (not safe)) (gx#stx-pair? _%tl171502171565%_)) (let ((_%e171509171584%_ (let () (declare (not safe)) (gx#stx-e _%tl171502171565%_)))) (let ((_%tl171511171589%_ (let () (declare (not safe)) (##cdr _%e171509171584%_))) (_%hd171510171587%_ (let () (declare (not safe)) (##car _%e171509171584%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl171511171589%_)) (_%__match177800177801%_ _%e171488171528%_ _%hd171489171531%_ _%tl171490171533%_ _%e171491171536%_ _%hd171492171539%_ _%tl171493171541%_ _%e171494171544%_ _%hd171495171547%_ _%tl171496171549%_ _%e171497171552%_ _%hd171498171555%_ _%tl171499171557%_ _%e171500171560%_ _%hd171501171563%_ _%tl171502171565%_ _%e171503171568%_ _%hd171504171571%_ _%tl171505171573%_ _%e171506171576%_ _%hd171507171579%_ _%tl171508171581%_ _%e171509171584%_ _%hd171510171587%_ _%tl171511171589%_) (_%__kont177319177320%_)))) (_%__kont177319177320%_)))) (_%__match177738177739%_ (lambda (_%e171464171641%_ _%hd171465171644%_ _%tl171466171646%_ _%e171467171649%_ _%hd171468171652%_ _%tl171469171654%_ _%e171470171657%_ _%hd171471171660%_ _%tl171472171662%_ _%e171473171665%_ _%hd171474171668%_ _%tl171475171670%_ _%e171476171673%_ _%hd171477171676%_ _%tl171478171678%_ _%e171479171681%_ _%hd171480171684%_ _%tl171481171686%_ _%e171482171689%_ _%hd171483171692%_ _%tl171484171694%_) (let ((_%L171697%_ _%hd171483171692%_) (_%L171698%_ _%hd171474171668%_)) (if (and (let ((__tmp177957 (let () (declare (not safe)) (slot-ref__0 _%self171283%_ 'receiver)))) (declare (not safe)) (gx#free-identifier=? _%L171697%_ __tmp177957)) (let ((__tmp177958 (let ((__tmp177959 (let () (declare (not safe)) (gxc#identifier-symbol _%L171698%_)))) (declare (not safe)) (gxc#optimizer-resolve-type __tmp177959)))) (declare (not safe)) (##structure-instance-of? __tmp177958 'gxc#!accessor::t))) (_%__kont177315177316%_ _%L171697%_ _%L171698%_) (_%__kont177319177320%_))))) (_%__match177736177737%_ (lambda (_%e171464171641%_ _%hd171465171644%_ _%tl171466171646%_ _%e171467171649%_ _%hd171468171652%_ _%tl171469171654%_ _%e171470171657%_ _%hd171471171660%_ _%tl171472171662%_ _%e171473171665%_ _%hd171474171668%_ _%tl171475171670%_ _%e171476171673%_ _%hd171477171676%_ _%tl171478171678%_ _%e171479171681%_ _%hd171480171684%_ _%tl171481171686%_ _%e171482171689%_ _%hd171483171692%_ _%tl171484171694%_) (if (let () (declare (not safe)) (gx#stx-null? _%tl171478171678%_)) (_%__match177738177739%_ _%e171464171641%_ _%hd171465171644%_ _%tl171466171646%_ _%e171467171649%_ _%hd171468171652%_ _%tl171469171654%_ _%e171470171657%_ _%hd171471171660%_ _%tl171472171662%_ _%e171473171665%_ _%hd171474171668%_ _%tl171475171670%_ _%e171476171673%_ _%hd171477171676%_ _%tl171478171678%_ _%e171479171681%_ _%hd171480171684%_ _%tl171481171686%_ _%e171482171689%_ _%hd171483171692%_ _%tl171484171694%_) (_%__match177792177793%_ _%e171464171641%_ _%hd171465171644%_ _%tl171466171646%_ _%e171467171649%_ _%hd171468171652%_ _%tl171469171654%_ _%e171470171657%_ _%hd171471171660%_ _%tl171472171662%_ _%e171473171665%_ _%hd171474171668%_ _%tl171475171670%_ _%e171476171673%_ _%hd171477171676%_ _%tl171478171678%_ _%e171479171681%_ _%hd171480171684%_ _%tl171481171686%_ _%e171482171689%_ _%hd171483171692%_ _%tl171484171694%_)))) (_%__match177682177683%_ (lambda (_%e171429171737%_ _%hd171430171740%_ _%tl171431171742%_ _%e171432171745%_ _%hd171433171748%_ _%tl171434171750%_ _%e171435171753%_ _%hd171436171756%_ _%tl171437171758%_ _%e171438171761%_ _%hd171439171764%_ _%tl171440171766%_ _%e171441171769%_ _%hd171442171772%_ _%tl171443171774%_ _%e171444171777%_ _%hd171445171780%_ _%tl171446171782%_ _%e171447171785%_ _%hd171448171788%_ _%tl171449171790%_ _%e171450171793%_ _%hd171451171796%_ _%tl171452171798%_ _%e171453171801%_ _%hd171454171804%_ _%tl171455171806%_ _%e171456171809%_ _%hd171457171812%_ _%tl171458171814%_ _%e171459171817%_ _%hd171460171820%_ _%tl171461171822%_) (let ((_%L171825%_ _%hd171460171820%_) (_%L171826%_ _%hd171457171812%_) (_%L171827%_ _%hd171448171788%_) (_%L171828%_ _%hd171439171764%_)) (if (and (or (let () (declare (not safe)) (gxc#runtime-identifier=? _%L171828%_ 'slot-set!)) (let () (declare (not safe)) (gxc#runtime-identifier=? _%L171828%_ 'unchecked-slot-set!))) (let ((__tmp177960 (let () (declare (not safe)) (slot-ref__0 _%self171283%_ 'receiver)))) (declare (not safe)) (gx#free-identifier=? _%L171827%_ __tmp177960))) (_%__kont177313177314%_ _%L171825%_ _%L171826%_ _%L171827%_ _%L171828%_) (_%__kont177319177320%_))))) (_%__match177674177675%_ (lambda (_%e171429171737%_ _%hd171430171740%_ _%tl171431171742%_ _%e171432171745%_ _%hd171433171748%_ _%tl171434171750%_ _%e171435171753%_ _%hd171436171756%_ _%tl171437171758%_ _%e171438171761%_ _%hd171439171764%_ _%tl171440171766%_ _%e171441171769%_ _%hd171442171772%_ _%tl171443171774%_ _%e171444171777%_ _%hd171445171780%_ _%tl171446171782%_ _%e171447171785%_ _%hd171448171788%_ _%tl171449171790%_ _%e171450171793%_ _%hd171451171796%_ _%tl171452171798%_ _%e171453171801%_ _%hd171454171804%_ _%tl171455171806%_ _%e171456171809%_ _%hd171457171812%_ _%tl171458171814%_) (if (let () (declare (not safe)) (gx#stx-pair? _%tl171452171798%_)) (let ((_%e171459171817%_ (let () (declare (not safe)) (gx#stx-e _%tl171452171798%_)))) (let ((_%tl171461171822%_ (let () (declare (not safe)) (##cdr _%e171459171817%_))) (_%hd171460171820%_ (let () (declare (not safe)) (##car _%e171459171817%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl171461171822%_)) (_%__match177682177683%_ _%e171429171737%_ _%hd171430171740%_ _%tl171431171742%_ _%e171432171745%_ _%hd171433171748%_ _%tl171434171750%_ _%e171435171753%_ _%hd171436171756%_ _%tl171437171758%_ _%e171438171761%_ _%hd171439171764%_ _%tl171440171766%_ _%e171441171769%_ _%hd171442171772%_ _%tl171443171774%_ _%e171444171777%_ _%hd171445171780%_ _%tl171446171782%_ _%e171447171785%_ _%hd171448171788%_ _%tl171449171790%_ _%e171450171793%_ _%hd171451171796%_ _%tl171452171798%_ _%e171453171801%_ _%hd171454171804%_ _%tl171455171806%_ _%e171456171809%_ _%hd171457171812%_ _%tl171458171814%_ _%e171459171817%_ _%hd171460171820%_ _%tl171461171822%_) (_%__kont177319177320%_)))) (_%__match177798177799%_ _%e171429171737%_ _%hd171430171740%_ _%tl171431171742%_ _%e171432171745%_ _%hd171433171748%_ _%tl171434171750%_ _%e171435171753%_ _%hd171436171756%_ _%tl171437171758%_ _%e171438171761%_ _%hd171439171764%_ _%tl171440171766%_ _%e171441171769%_ _%hd171442171772%_ _%tl171443171774%_ _%e171444171777%_ _%hd171445171780%_ _%tl171446171782%_ _%e171447171785%_ _%hd171448171788%_ _%tl171449171790%_ _%e171450171793%_ _%hd171451171796%_ _%tl171452171798%_)))) (_%__match177596177597%_ (lambda (_%e171395171871%_ _%hd171396171874%_ _%tl171397171876%_ _%e171398171879%_ _%hd171399171882%_ _%tl171400171884%_ _%e171401171887%_ _%hd171402171890%_ _%tl171403171892%_ _%e171404171895%_ _%hd171405171898%_ _%tl171406171900%_ _%e171407171903%_ _%hd171408171906%_ _%tl171409171908%_ _%e171410171911%_ _%hd171411171914%_ _%tl171412171916%_ _%e171413171919%_ _%hd171414171922%_ _%tl171415171924%_ _%e171416171927%_ _%hd171417171930%_ _%tl171418171932%_ _%e171419171935%_ _%hd171420171938%_ _%tl171421171940%_ _%e171422171943%_ _%hd171423171946%_ _%tl171424171948%_) (let ((_%L171951%_ _%hd171423171946%_) (_%L171952%_ _%hd171414171922%_) (_%L171953%_ _%hd171405171898%_)) (if (and (or (let () (declare (not safe)) (gxc#runtime-identifier=? _%L171953%_ 'slot-ref)) (let () (declare (not safe)) (gxc#runtime-identifier=? _%L171953%_ 'unchecked-slot-ref))) (let ((__tmp177961 (let () (declare (not safe)) (slot-ref__0 _%self171283%_ 'receiver)))) (declare (not safe)) (gx#free-identifier=? _%L171952%_ __tmp177961))) (_%__kont177311177312%_ _%L171951%_ _%L171952%_ _%L171953%_) (_%__match177800177801%_ _%e171395171871%_ _%hd171396171874%_ _%tl171397171876%_ _%e171398171879%_ _%hd171399171882%_ _%tl171400171884%_ _%e171401171887%_ _%hd171402171890%_ _%tl171403171892%_ _%e171404171895%_ _%hd171405171898%_ _%tl171406171900%_ _%e171407171903%_ _%hd171408171906%_ _%tl171409171908%_ _%e171410171911%_ _%hd171411171914%_ _%tl171412171916%_ _%e171413171919%_ _%hd171414171922%_ _%tl171415171924%_ _%e171416171927%_ _%hd171417171930%_ _%tl171418171932%_))))) (_%__match177594177595%_ (lambda (_%e171395171871%_ _%hd171396171874%_ _%tl171397171876%_ _%e171398171879%_ _%hd171399171882%_ _%tl171400171884%_ _%e171401171887%_ _%hd171402171890%_ _%tl171403171892%_ _%e171404171895%_ _%hd171405171898%_ _%tl171406171900%_ _%e171407171903%_ _%hd171408171906%_ _%tl171409171908%_ _%e171410171911%_ _%hd171411171914%_ _%tl171412171916%_ _%e171413171919%_ _%hd171414171922%_ _%tl171415171924%_ _%e171416171927%_ _%hd171417171930%_ _%tl171418171932%_ _%e171419171935%_ _%hd171420171938%_ _%tl171421171940%_ _%e171422171943%_ _%hd171423171946%_ _%tl171424171948%_) (if (let () (declare (not safe)) (gx#stx-null? _%tl171418171932%_)) (_%__match177596177597%_ _%e171395171871%_ _%hd171396171874%_ _%tl171397171876%_ _%e171398171879%_ _%hd171399171882%_ _%tl171400171884%_ _%e171401171887%_ _%hd171402171890%_ _%tl171403171892%_ _%e171404171895%_ _%hd171405171898%_ _%tl171406171900%_ _%e171407171903%_ _%hd171408171906%_ _%tl171409171908%_ _%e171410171911%_ _%hd171411171914%_ _%tl171412171916%_ _%e171413171919%_ _%hd171414171922%_ _%tl171415171924%_ _%e171416171927%_ _%hd171417171930%_ _%tl171418171932%_ _%e171419171935%_ _%hd171420171938%_ _%tl171421171940%_ _%e171422171943%_ _%hd171423171946%_ _%tl171424171948%_) (_%__match177674177675%_ _%e171395171871%_ _%hd171396171874%_ _%tl171397171876%_ _%e171398171879%_ _%hd171399171882%_ _%tl171400171884%_ _%e171401171887%_ _%hd171402171890%_ _%tl171403171892%_ _%e171404171895%_ _%hd171405171898%_ _%tl171406171900%_ _%e171407171903%_ _%hd171408171906%_ _%tl171409171908%_ _%e171410171911%_ _%hd171411171914%_ _%tl171412171916%_ _%e171413171919%_ _%hd171414171922%_ _%tl171415171924%_ _%e171416171927%_ _%hd171417171930%_ _%tl171418171932%_ _%e171419171935%_ _%hd171420171938%_ _%tl171421171940%_ _%e171422171943%_ _%hd171423171946%_ _%tl171424171948%_)))) (_%__match177584177585%_ (lambda (_%e171395171871%_ _%hd171396171874%_ _%tl171397171876%_ _%e171398171879%_ _%hd171399171882%_ _%tl171400171884%_ _%e171401171887%_ _%hd171402171890%_ _%tl171403171892%_ _%e171404171895%_ _%hd171405171898%_ _%tl171406171900%_ _%e171407171903%_ _%hd171408171906%_ _%tl171409171908%_ _%e171410171911%_ _%hd171411171914%_ _%tl171412171916%_ _%e171413171919%_ _%hd171414171922%_ _%tl171415171924%_ _%e171416171927%_ _%hd171417171930%_ _%tl171418171932%_ _%e171419171935%_ _%hd171420171938%_ _%tl171421171940%_) (if (let () (declare (not safe)) (gx#stx-eq? '%#quote _%hd171420171938%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl171421171940%_)) (let ((_%e171422171943%_ (let () (declare (not safe)) (gx#stx-e _%tl171421171940%_)))) (let ((_%tl171424171948%_ (let () (declare (not safe)) (##cdr _%e171422171943%_))) (_%hd171423171946%_ (let () (declare (not safe)) (##car _%e171422171943%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl171424171948%_)) (if (let () (declare (not safe)) (gx#stx-null? _%tl171418171932%_)) (_%__match177596177597%_ _%e171395171871%_ _%hd171396171874%_ _%tl171397171876%_ _%e171398171879%_ _%hd171399171882%_ _%tl171400171884%_ _%e171401171887%_ _%hd171402171890%_ _%tl171403171892%_ _%e171404171895%_ _%hd171405171898%_ _%tl171406171900%_ _%e171407171903%_ _%hd171408171906%_ _%tl171409171908%_ _%e171410171911%_ _%hd171411171914%_ _%tl171412171916%_ _%e171413171919%_ _%hd171414171922%_ _%tl171415171924%_ _%e171416171927%_ _%hd171417171930%_ _%tl171418171932%_ _%e171419171935%_ _%hd171420171938%_ _%tl171421171940%_ _%e171422171943%_ _%hd171423171946%_ _%tl171424171948%_) (_%__match177674177675%_ _%e171395171871%_ _%hd171396171874%_ _%tl171397171876%_ _%e171398171879%_ _%hd171399171882%_ _%tl171400171884%_ _%e171401171887%_ _%hd171402171890%_ _%tl171403171892%_ _%e171404171895%_ _%hd171405171898%_ _%tl171406171900%_ _%e171407171903%_ _%hd171408171906%_ _%tl171409171908%_ _%e171410171911%_ _%hd171411171914%_ _%tl171412171916%_ _%e171413171919%_ _%hd171414171922%_ _%tl171415171924%_ _%e171416171927%_ _%hd171417171930%_ _%tl171418171932%_ _%e171419171935%_ _%hd171420171938%_ _%tl171421171940%_ _%e171422171943%_ _%hd171423171946%_ _%tl171424171948%_)) (_%__match177798177799%_ _%e171395171871%_ _%hd171396171874%_ _%tl171397171876%_ _%e171398171879%_ _%hd171399171882%_ _%tl171400171884%_ _%e171401171887%_ _%hd171402171890%_ _%tl171403171892%_ _%e171404171895%_ _%hd171405171898%_ _%tl171406171900%_ _%e171407171903%_ _%hd171408171906%_ _%tl171409171908%_ _%e171410171911%_ _%hd171411171914%_ _%tl171412171916%_ _%e171413171919%_ _%hd171414171922%_ _%tl171415171924%_ _%e171416171927%_ _%hd171417171930%_ _%tl171418171932%_)))) (_%__match177798177799%_ _%e171395171871%_ _%hd171396171874%_ _%tl171397171876%_ _%e171398171879%_ _%hd171399171882%_ _%tl171400171884%_ _%e171401171887%_ _%hd171402171890%_ _%tl171403171892%_ _%e171404171895%_ _%hd171405171898%_ _%tl171406171900%_ _%e171407171903%_ _%hd171408171906%_ _%tl171409171908%_ _%e171410171911%_ _%hd171411171914%_ _%tl171412171916%_ _%e171413171919%_ _%hd171414171922%_ _%tl171415171924%_ _%e171416171927%_ _%hd171417171930%_ _%tl171418171932%_)) (_%__match177798177799%_ _%e171395171871%_ _%hd171396171874%_ _%tl171397171876%_ _%e171398171879%_ _%hd171399171882%_ _%tl171400171884%_ _%e171401171887%_ _%hd171402171890%_ _%tl171403171892%_ _%e171404171895%_ _%hd171405171898%_ _%tl171406171900%_ _%e171407171903%_ _%hd171408171906%_ _%tl171409171908%_ _%e171410171911%_ _%hd171411171914%_ _%tl171412171916%_ _%e171413171919%_ _%hd171414171922%_ _%tl171415171924%_ _%e171416171927%_ _%hd171417171930%_ _%tl171418171932%_)))) (_%__match177516177517%_ (lambda (_%e171344171992%_ _%hd171345171995%_ _%tl171346171997%_ _%e171347172000%_ _%hd171348172003%_ _%tl171349172005%_ _%e171350172008%_ _%hd171351172011%_ _%tl171352172013%_ _%e171353172016%_ _%hd171354172019%_ _%tl171355172021%_ _%e171356172024%_ _%hd171357172027%_ _%tl171358172029%_ _%e171359172032%_ _%hd171360172035%_ _%tl171361172037%_ _%e171362172040%_ _%hd171363172043%_ _%tl171364172045%_ _%e171365172048%_ _%hd171366172051%_ _%tl171367172053%_ _%e171368172056%_ _%hd171369172059%_ _%tl171370172061%_ _%e171371172064%_ _%hd171372172067%_ _%tl171373172069%_ _%e171374172072%_ _%hd171375172075%_ _%tl171376172077%_ _%e171377172080%_ _%hd171378172083%_ _%tl171379172085%_ _%e171380172088%_ _%hd171381172091%_ _%tl171382172093%_ _%__splice177309177310%_ _%target171383172096%_ _%tl171385172098%_) (letrec ((_%loop171386172101%_ (lambda (_%hd171384172104%_ _%args171390172106%_) (if (let () (declare (not safe)) (gx#stx-pair? _%hd171384172104%_)) (let ((_%e171387172109%_ (let () (declare (not safe)) (gx#stx-e _%hd171384172104%_)))) (let ((_%lp-tl171389172114%_ (let () (declare (not safe)) (##cdr _%e171387172109%_))) (_%lp-hd171388172112%_ (let () (declare (not safe)) (##car _%e171387172109%_)))) (_%loop171386172101%_ _%lp-tl171389172114%_ (cons _%lp-hd171388172112%_ _%args171390172106%_)))) (let ((_%args171391172117%_ (reverse _%args171390172106%_))) (let ((_%L172120%_ _%args171391172117%_) (_%L172121%_ _%hd171381172091%_) (_%L172122%_ _%hd171372172067%_) (_%L172123%_ _%hd171363172043%_) (_%L172124%_ _%hd171354172019%_)) (if (and (let () (declare (not safe)) (gxc#runtime-identifier=? _%L172124%_ 'apply)) (let () (declare (not safe)) (gxc#runtime-identifier=? _%L172123%_ 'call-method)) (let ((__tmp177962 (let () (declare (not safe)) (slot-ref__0 _%self171283%_ 'receiver)))) (declare (not safe)) (gx#free-identifier=? _%L172122%_ __tmp177962))) (_%__kont177307177308%_ _%L172120%_ _%L172121%_ _%L172122%_ _%L172123%_ _%L172124%_) (_%__kont177319177320%_)))))))) (_%loop171386172101%_ _%target171383172096%_ '())))) (_%__match177474177475%_ (lambda (_%e171344171992%_ _%hd171345171995%_ _%tl171346171997%_ _%e171347172000%_ _%hd171348172003%_ _%tl171349172005%_ _%e171350172008%_ _%hd171351172011%_ _%tl171352172013%_ _%e171353172016%_ _%hd171354172019%_ _%tl171355172021%_ _%e171356172024%_ _%hd171357172027%_ _%tl171358172029%_ _%e171359172032%_ _%hd171360172035%_ _%tl171361172037%_ _%e171362172040%_ _%hd171363172043%_ _%tl171364172045%_ _%e171365172048%_ _%hd171366172051%_ _%tl171367172053%_ _%e171368172056%_ _%hd171369172059%_ _%tl171370172061%_) (if (let () (declare (not safe)) (gx#stx-eq? '%#ref _%hd171369172059%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl171370172061%_)) (let ((_%e171371172064%_ (let () (declare (not safe)) (gx#stx-e _%tl171370172061%_)))) (let ((_%tl171373172069%_ (let () (declare (not safe)) (##cdr _%e171371172064%_))) (_%hd171372172067%_ (let () (declare (not safe)) (##car _%e171371172064%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl171373172069%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl171367172053%_)) (let ((_%e171374172072%_ (let () (declare (not safe)) (gx#stx-e _%tl171367172053%_)))) (let ((_%tl171376172077%_ (let () (declare (not safe)) (##cdr _%e171374172072%_))) (_%hd171375172075%_ (let () (declare (not safe)) (##car _%e171374172072%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd171375172075%_)) (let ((_%e171377172080%_ (let () (declare (not safe)) (gx#stx-e _%hd171375172075%_)))) (let ((_%tl171379172085%_ (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (##cdr _%e171377172080%_))) (_%hd171378172083%_ (let () (declare (not safe)) (##car _%e171377172080%_)))) (if (let () (declare (not safe)) (gx#identifier? _%hd171378172083%_)) (if (let () (declare (not safe)) (gx#stx-eq? '%#quote _%hd171378172083%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl171379172085%_)) (let ((_%e171380172088%_ (let () (declare (not safe)) (gx#stx-e _%tl171379172085%_)))) (let ((_%tl171382172093%_ (let () (declare (not safe)) (##cdr _%e171380172088%_))) (_%hd171381172091%_ (let () (declare (not safe)) (##car _%e171380172088%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl171382172093%_)) (if (let () (declare (not safe)) (gx#stx-pair/null? _%tl171376172077%_)) (let ((_%__splice177309177310%_ (let () (declare (not safe)) (gx#syntax-split-splice _%tl171376172077%_ '0)))) (let ((_%tl171385172098%_ (let () (declare (not safe)) (##vector-ref _%__splice177309177310%_ '1))) (_%target171383172096%_ (let () (declare (not safe)) (##vector-ref _%__splice177309177310%_ '0)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl171385172098%_)) (_%__match177516177517%_ _%e171344171992%_ _%hd171345171995%_ _%tl171346171997%_ _%e171347172000%_ _%hd171348172003%_ _%tl171349172005%_ _%e171350172008%_ _%hd171351172011%_ _%tl171352172013%_ _%e171353172016%_ _%hd171354172019%_ _%tl171355172021%_ _%e171356172024%_ _%hd171357172027%_ _%tl171358172029%_ _%e171359172032%_ _%hd171360172035%_ _%tl171361172037%_ _%e171362172040%_ _%hd171363172043%_ _%tl171364172045%_ _%e171365172048%_ _%hd171366172051%_ _%tl171367172053%_ _%e171368172056%_ _%hd171369172059%_ _%tl171370172061%_ _%e171371172064%_ _%hd171372172067%_ _%tl171373172069%_ _%e171374172072%_ _%hd171375172075%_ _%tl171376172077%_ _%e171377172080%_ _%hd171378172083%_ _%tl171379172085%_ _%e171380172088%_ _%hd171381172091%_ _%tl171382172093%_ _%__splice177309177310%_ _%target171383172096%_ _%tl171385172098%_) (_%__kont177319177320%_)))) (_%__kont177319177320%_)) (_%__kont177319177320%_)))) (_%__kont177319177320%_)) (_%__kont177319177320%_)) (_%__kont177319177320%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%__kont177319177320%_)))) (_%__match177798177799%_ _%e171344171992%_ _%hd171345171995%_ _%tl171346171997%_ _%e171347172000%_ _%hd171348172003%_ _%tl171349172005%_ _%e171350172008%_ _%hd171351172011%_ _%tl171352172013%_ _%e171353172016%_ _%hd171354172019%_ _%tl171355172021%_ _%e171356172024%_ _%hd171357172027%_ _%tl171358172029%_ _%e171359172032%_ _%hd171360172035%_ _%tl171361172037%_ _%e171362172040%_ _%hd171363172043%_ _%tl171364172045%_ _%e171365172048%_ _%hd171366172051%_ _%tl171367172053%_)) (_%__match177798177799%_ _%e171344171992%_ _%hd171345171995%_ _%tl171346171997%_ _%e171347172000%_ _%hd171348172003%_ _%tl171349172005%_ _%e171350172008%_ _%hd171351172011%_ _%tl171352172013%_ _%e171353172016%_ _%hd171354172019%_ _%tl171355172021%_ _%e171356172024%_ _%hd171357172027%_ _%tl171358172029%_ _%e171359172032%_ _%hd171360172035%_ _%tl171361172037%_ _%e171362172040%_ _%hd171363172043%_ _%tl171364172045%_ _%e171365172048%_ _%hd171366172051%_ _%tl171367172053%_)))) (_%__match177798177799%_ _%e171344171992%_ _%hd171345171995%_ _%tl171346171997%_ _%e171347172000%_ _%hd171348172003%_ _%tl171349172005%_ _%e171350172008%_ _%hd171351172011%_ _%tl171352172013%_ _%e171353172016%_ _%hd171354172019%_ _%tl171355172021%_ _%e171356172024%_ _%hd171357172027%_ _%tl171358172029%_ _%e171359172032%_ _%hd171360172035%_ _%tl171361172037%_ _%e171362172040%_ _%hd171363172043%_ _%tl171364172045%_ _%e171365172048%_ _%hd171366172051%_ _%tl171367172053%_)) (_%__match177584177585%_ _%e171344171992%_ _%hd171345171995%_ _%tl171346171997%_ _%e171347172000%_ _%hd171348172003%_ _%tl171349172005%_ _%e171350172008%_ _%hd171351172011%_ _%tl171352172013%_ _%e171353172016%_ _%hd171354172019%_ _%tl171355172021%_ _%e171356172024%_ _%hd171357172027%_ _%tl171358172029%_ _%e171359172032%_ _%hd171360172035%_ _%tl171361172037%_ _%e171362172040%_ _%hd171363172043%_ _%tl171364172045%_ _%e171365172048%_ _%hd171366172051%_ _%tl171367172053%_ _%e171368172056%_ _%hd171369172059%_ _%tl171370172061%_)))) (_%__match177406177407%_ (lambda (_%e171300172184%_ _%hd171301172187%_ _%tl171302172189%_ _%e171303172192%_ _%hd171304172195%_ _%tl171305172197%_ _%e171306172200%_ _%hd171307172203%_ _%tl171308172205%_ _%e171309172208%_ _%hd171310172211%_ _%tl171311172213%_ _%e171312172216%_ _%hd171313172219%_ _%tl171314172221%_ _%e171315172224%_ _%hd171316172227%_ _%tl171317172229%_ _%e171318172232%_ _%hd171319172235%_ _%tl171320172237%_ _%e171321172240%_ _%hd171322172243%_ _%tl171323172245%_ _%e171324172248%_ _%hd171325172251%_ _%tl171326172253%_ _%e171327172256%_ _%hd171328172259%_ _%tl171329172261%_ _%__splice177305177306%_ _%target171330172264%_ _%tl171332172266%_) (letrec ((_%loop171333172269%_ (lambda (_%hd171331172272%_ _%args171337172274%_) (if (let () (declare (not safe)) (gx#stx-pair? _%hd171331172272%_)) (let ((_%e171334172277%_ (let () (declare (not safe)) (gx#stx-e _%hd171331172272%_)))) (let ((_%lp-tl171336172282%_ (let () (declare (not safe)) (##cdr _%e171334172277%_))) (_%lp-hd171335172280%_ (let () (declare (not safe)) (##car _%e171334172277%_)))) (_%loop171333172269%_ _%lp-tl171336172282%_ (cons _%lp-hd171335172280%_ _%args171337172274%_)))) (let ((_%args171338172285%_ (reverse _%args171337172274%_))) (let ((_%L172288%_ _%args171338172285%_) (_%L172289%_ _%hd171328172259%_) (_%L172290%_ _%hd171319172235%_) (_%L172291%_ _%hd171310172211%_)) (if (and (let () (declare (not safe)) (gxc#runtime-identifier=? _%L172291%_ 'call-method)) (let ((__tmp177963 (let () (declare (not safe)) (slot-ref__0 _%self171283%_ 'receiver)))) (declare (not safe)) (gx#free-identifier=? _%L172290%_ __tmp177963))) (_%__kont177303177304%_ _%L172288%_ _%L172289%_ _%L172290%_ _%L172291%_) (_%__match177594177595%_ _%e171300172184%_ _%hd171301172187%_ _%tl171302172189%_ _%e171303172192%_ _%hd171304172195%_ _%tl171305172197%_ _%e171306172200%_ _%hd171307172203%_ _%tl171308172205%_ _%e171309172208%_ _%hd171310172211%_ _%tl171311172213%_ _%e171312172216%_ _%hd171313172219%_ _%tl171314172221%_ _%e171315172224%_ _%hd171316172227%_ _%tl171317172229%_ _%e171318172232%_ _%hd171319172235%_ _%tl171320172237%_ _%e171321172240%_ _%hd171322172243%_ _%tl171323172245%_ _%e171324172248%_ _%hd171325172251%_ _%tl171326172253%_ _%e171327172256%_ _%hd171328172259%_ _%tl171329172261%_)))))))) (_%loop171333172269%_ _%target171330172264%_ '()))))) (if (let () (declare (not safe)) (gx#stx-pair? _%__stx177301177302%_)) (let ((_%e171300172184%_ (let () (declare (not safe)) (gx#stx-e _%__stx177301177302%_)))) (let ((_%tl171302172189%_ (let () (declare (not safe)) (##cdr _%e171300172184%_))) (_%hd171301172187%_ (let () (declare (not safe)) (##car _%e171300172184%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%tl171302172189%_)) (let ((_%e171303172192%_ (let () (declare (not safe)) (gx#stx-e _%tl171302172189%_)))) (let ((_%tl171305172197%_ (let () (declare (not safe)) (##cdr _%e171303172192%_))) (_%hd171304172195%_ (let () (declare (not safe)) (##car _%e171303172192%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd171304172195%_)) (let ((_%e171306172200%_ (let () (declare (not safe)) (gx#stx-e _%hd171304172195%_)))) (let ((_%tl171308172205%_ (let () (declare (not safe)) (##cdr _%e171306172200%_))) (_%hd171307172203%_ (let () (declare (not safe)) (##car _%e171306172200%_)))) (if (let () (declare (not safe)) (gx#identifier? _%hd171307172203%_)) (if (let () (declare (not safe)) (gx#stx-eq? '%#ref _%hd171307172203%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl171308172205%_)) (let ((_%e171309172208%_ (let () (declare (not safe)) (gx#stx-e _%tl171308172205%_)))) (let ((_%tl171311172213%_ (let () (declare ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (not safe)) (##cdr _%e171309172208%_))) (_%hd171310172211%_ (let () (declare (not safe)) (##car _%e171309172208%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl171311172213%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl171305172197%_)) (let ((_%e171312172216%_ (let () (declare (not safe)) (gx#stx-e _%tl171305172197%_)))) (let ((_%tl171314172221%_ (let () (declare (not safe)) (##cdr _%e171312172216%_))) (_%hd171313172219%_ (let () (declare (not safe)) (##car _%e171312172216%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd171313172219%_)) (let ((_%e171315172224%_ (let () (declare (not safe)) (gx#stx-e _%hd171313172219%_)))) (let ((_%tl171317172229%_ (let () (declare (not safe)) (##cdr _%e171315172224%_))) (_%hd171316172227%_ (let () (declare (not safe)) (##car _%e171315172224%_)))) (if (let () (declare (not safe)) (gx#identifier? _%hd171316172227%_)) (if (let () (declare (not safe)) (gx#stx-eq? '%#ref _%hd171316172227%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl171317172229%_)) (let ((_%e171318172232%_ (let () (declare (not safe)) (gx#stx-e _%tl171317172229%_)))) (let ((_%tl171320172237%_ (let () (declare (not safe)) (##cdr _%e171318172232%_))) (_%hd171319172235%_ (let () (declare (not safe)) (##car _%e171318172232%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl171320172237%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl171314172221%_)) (let ((_%e171321172240%_ ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (let () (declare (not safe)) (gx#stx-e _%tl171314172221%_)))) (let ((_%tl171323172245%_ (let () (declare (not safe)) (##cdr _%e171321172240%_))) (_%hd171322172243%_ (let () (declare (not safe)) (##car _%e171321172240%_)))) (if (let () (declare (not safe)) (gx#stx-pair? _%hd171322172243%_)) (let ((_%e171324172248%_ (let () (declare (not safe)) (gx#stx-e _%hd171322172243%_)))) (let ((_%tl171326172253%_ (let () (declare (not safe)) (##cdr _%e171324172248%_))) (_%hd171325172251%_ (let () (declare (not safe)) (##car _%e171324172248%_)))) (if (let () (declare (not safe)) (gx#identifier? _%hd171325172251%_)) (if (let () (declare (not safe)) (gx#stx-eq? '%#quote _%hd171325172251%_)) (if (let () (declare (not safe)) (gx#stx-pair? _%tl171326172253%_)) (let ((_%e171327172256%_ (let () (declare (not safe)) (gx#stx-e _%tl171326172253%_)))) (let ((_%tl171329172261%_ (let () (declare (not safe)) (##cdr _%e171327172256%_))) (_%hd171328172259%_ (let () (declare (not safe)) (##car _%e171327172256%_)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl171329172261%_)) (if (let () (declare (not safe)) (gx#stx-pair/null? _%tl171323172245%_)) (let ((_%__splice177305177306%_ (let () ;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (declare (not safe)) (gx#syntax-split-splice _%tl171323172245%_ '0)))) (let ((_%tl171332172266%_ (let () (declare (not safe)) (##vector-ref _%__splice177305177306%_ '1))) (_%target171330172264%_ (let () (declare (not safe)) (##vector-ref _%__splice177305177306%_ '0)))) (if (let () (declare (not safe)) (gx#stx-null? _%tl171332172266%_)) (_%__match177406177407%_ _%e171300172184%_ _%hd171301172187%_ _%tl171302172189%_ _%e171303172192%_ _%hd171304172195%_ _%tl171305172197%_ _%e171306172200%_ _%hd171307172203%_ _%tl171308172205%_ _%e171309172208%_ _%hd171310172211%_ _%tl171311172213%_ _%e171312172216%_ _%hd171313172219%_ _%tl171314172221%_ _%e171315172224%_ _%hd171316172227%_ _%tl171317172229%_ _%e171318172232%_ _%hd171319172235%_ _%tl171320172237%_ _%e171321172240%_ _%hd171322172243%_ _%tl171323172245%_ _%e171324172248%_ _%hd171325172251%_ _%tl171326172253%_ _%e171327172256%_ _%hd171328172259%_ _%tl171329172261%_ _%__splice177305177306%_ _%target171330172264%_ _%tl171332172266%_) (_%__match177594177595%_ _%e171300172184%_ _%hd171301172187%_ _%tl171302172189%_ _%e171303172192%_ _%hd171304172195%_ _%tl171305172197%_ _%e171306172200%_ _%hd171307172203%_ _%tl171308172205%_ _%e171309172208%_ _%hd171310172211%_ _%tl171311172213%_ _%e171312172216%_ _%hd171313172219%_ _%tl171314172221%_ _%e171315172224%_ _%hd171316172227%_ _%tl171317172229%_ _%e171318172232%_ _%hd171319172235%_ _%tl171320172237%_ _%e171321172240%_ _%hd171322172243%_ _%tl171323172245%_ _%e171324172248%_ _%hd171325172251%_ _%tl171326172253%_ _%e171327172256%_ _%hd171328172259%_ _%tl171329172261%_)))) (_%__match177594177595%_ _%e171300172184%_ _%hd171301172187%_ _%tl171302172189%_ _%e171303172192%_ _%hd171304172195%_ _%tl171305172197%_ _%e171306172200%_ _%hd171307172203%_ _%tl171308172205%_ _%e171309172208%_ _%hd171310172211%_ _%tl171311172213%_ _%e171312172216%_ _%hd171313172219%_ _%tl171314172221%_ _%e171315172224%_ _%hd171316172227%_ _%tl171317172229%_ _%e171318172232%_ _%hd171319172235%_ _%tl171320172237%_ _%e171321172240%_ _%hd171322172243%_ _%tl171323172245%_ _%e171324172248%_ _%hd171325172251%_ _%tl171326172253%_ _%e171327172256%_ _%hd171328172259%_ _%tl171329172261%_)) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%__match177798177799%_ _%e171300172184%_ _%hd171301172187%_ _%tl171302172189%_ _%e171303172192%_ _%hd171304172195%_ _%tl171305172197%_ _%e171306172200%_ _%hd171307172203%_ _%tl171308172205%_ _%e171309172208%_ _%hd171310172211%_ _%tl171311172213%_ _%e171312172216%_ _%hd171313172219%_ _%tl171314172221%_ _%e171315172224%_ _%hd171316172227%_ _%tl171317172229%_ _%e171318172232%_ _%hd171319172235%_ _%tl171320172237%_ _%e171321172240%_ _%hd171322172243%_ _%tl171323172245%_)))) (_%__match177798177799%_ _%e171300172184%_ _%hd171301172187%_ _%tl171302172189%_ _%e171303172192%_ _%hd171304172195%_ _%tl171305172197%_ _%e171306172200%_ _%hd171307172203%_ _%tl171308172205%_ _%e171309172208%_ _%hd171310172211%_ _%tl171311172213%_ _%e171312172216%_ _%hd171313172219%_ _%tl171314172221%_ _%e171315172224%_ _%hd171316172227%_ _%tl171317172229%_ _%e171318172232%_ _%hd171319172235%_ _%tl171320172237%_ _%e171321172240%_ _%hd171322172243%_ _%tl171323172245%_)) (_%__match177474177475%_ _%e171300172184%_ _%hd171301172187%_ _%tl171302172189%_ _%e171303172192%_ _%hd171304172195%_ _%tl171305172197%_ _%e171306172200%_ _%hd171307172203%_ _%tl171308172205%_ _%e171309172208%_ _%hd171310172211%_ _%tl171311172213%_ _%e171312172216%_ _%hd171313172219%_ _%tl171314172221%_ _%e171315172224%_ _%hd171316172227%_ _%tl171317172229%_ _%e171318172232%_ _%hd171319172235%_ _%tl171320172237%_ _%e171321172240%_ _%hd171322172243%_ _%tl171323172245%_ _%e171324172248%_ _%hd171325172251%_ _%tl171326172253%_)) (_%__match177798177799%_ _%e171300172184%_ _%hd171301172187%_ _%tl171302172189%_ _%e171303172192%_ _%hd171304172195%_ _%tl171305172197%_ _%e171306172200%_ _%hd171307172203%_ _%tl171308172205%_ _%e171309172208%_ _%hd171310172211%_ _%tl171311172213%_ _%e171312172216%_ _%hd171313172219%_ _%tl171314172221%_ _%e171315172224%_ _%hd171316172227%_ _%tl171317172229%_ _%e171318172232%_ _%hd171319172235%_ _%tl171320172237%_ _%e171321172240%_ _%hd171322172243%_ _%tl171323172245%_)))) (_%__match177798177799%_ _%e171300172184%_ _%hd171301172187%_ _%tl171302172189%_ _%e171303172192%_ _%hd171304172195%_ _%tl171305172197%_ _%e171306172200%_ _%hd171307172203%_ _%tl171308172205%_ _%e171309172208%_ _%hd171310172211%_ _%tl171311172213%_ _%e171312172216%_ _%hd171313172219%_ _%tl171314172221%_ _%e171315172224%_ _%hd171316172227%_ _%tl171317172229%_ _%e171318172232%_ _%hd171319172235%_ _%tl171320172237%_ _%e171321172240%_ _%hd171322172243%_ _%tl171323172245%_)))) (_%__match177736177737%_ _%e171300172184%_ _%hd171301172187%_ _%tl171302172189%_ _%e171303172192%_ _%hd171304172195%_ _%tl171305172197%_ _%e171306172200%_ _%hd171307172203%_ _%tl171308172205%_ _%e171309172208%_ _%hd171310172211%_ _%tl171311172213%_ _%e171312172216%_ _%hd171313172219%_ _%tl171314172221%_ _%e171315172224%_ _%hd171316172227%_ _%tl171317172229%_ _%e171318172232%_ _%hd171319172235%_ _%tl171320172237%_)) (_%__kont177319177320%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%__kont177319177320%_)) (_%__kont177319177320%_)) (_%__kont177319177320%_)))) (_%__kont177319177320%_)))) (_%__kont177319177320%_)) (_%__kont177319177320%_)))) ;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> (_%__kont177319177320%_)) (_%__kont177319177320%_)) (_%__kont177319177320%_)))) (_%__kont177319177320%_)))) (_%__kont177319177320%_)))) (_%__kont177319177320%_)))))))))) ```
Big Horn County School District #2 is a public school district based in Lovell, Wyoming, United States. Geography Big Horn County School District #2 serves the northern portion of Big Horn County as well as a very small, detached tract of land in northeastern Park County. Lovell is the only incorporated town in the district. Schools Lovell High School (Grades 9–12) Lovell Middle School (Grades 6–8) Lovell Elementary School (Grades K-5) Student demographics The following figures are as of October 1, 2009. Total District Enrollment: 660 Student enrollment by gender Male: 323 (48.94%) Female: 337 (51.06%) Student enrollment by ethnicity American Indian or Alaska Native: 6 (0.91%) Asian: 6 (0.91%) Hispanic or Latino: 61 (9.24%) White: 587 (88.94%) See also List of school districts in Wyoming References External links Big Horn County School District #2 – official site. Education in Big Horn County, Wyoming Education in Park County, Wyoming School districts in Wyoming
```c++ // 2016 and later: Unicode, Inc. and others. /* ******************************************************************************* * Corporation and others. All Rights Reserved. ******************************************************************************* * Date Name Description * 06/21/00 aliu Creation. ******************************************************************************* */ #include "unicode/utypes.h" #if !UCONFIG_NO_TRANSLITERATION #include "unicode/utrans.h" #include "unicode/putil.h" #include "unicode/rep.h" #include "unicode/translit.h" #include "unicode/unifilt.h" #include "unicode/uniset.h" #include "unicode/ustring.h" #include "unicode/uenum.h" #include "unicode/uset.h" #include "uenumimp.h" #include "cpputils.h" #include "rbt.h" // Following macro is to be followed by <return value>';' or just ';' #define utrans_ENTRY(s) if ((s)==NULL || U_FAILURE(*(s))) return /******************************************************************** * Replaceable-UReplaceableCallbacks glue ********************************************************************/ /** * Make a UReplaceable + UReplaceableCallbacks into a Replaceable object. */ U_NAMESPACE_BEGIN class ReplaceableGlue : public Replaceable { UReplaceable *rep; const UReplaceableCallbacks *func; public: ReplaceableGlue(UReplaceable *replaceable, const UReplaceableCallbacks *funcCallback); virtual ~ReplaceableGlue(); virtual void handleReplaceBetween(int32_t start, int32_t limit, const UnicodeString& text); virtual void extractBetween(int32_t start, int32_t limit, UnicodeString& target) const; virtual void copy(int32_t start, int32_t limit, int32_t dest); // virtual Replaceable *clone() const { return NULL; } same as default /** * ICU "poor man's RTTI", returns a UClassID for the actual class. * * @draft ICU 2.2 */ virtual UClassID getDynamicClassID() const; /** * ICU "poor man's RTTI", returns a UClassID for this class. * * @draft ICU 2.2 */ static UClassID U_EXPORT2 getStaticClassID(); protected: virtual int32_t getLength() const; virtual UChar getCharAt(int32_t offset) const; virtual UChar32 getChar32At(int32_t offset) const; }; UOBJECT_DEFINE_RTTI_IMPLEMENTATION(ReplaceableGlue) ReplaceableGlue::ReplaceableGlue(UReplaceable *replaceable, const UReplaceableCallbacks *funcCallback) : Replaceable() { this->rep = replaceable; this->func = funcCallback; } ReplaceableGlue::~ReplaceableGlue() {} int32_t ReplaceableGlue::getLength() const { return (*func->length)(rep); } UChar ReplaceableGlue::getCharAt(int32_t offset) const { return (*func->charAt)(rep, offset); } UChar32 ReplaceableGlue::getChar32At(int32_t offset) const { return (*func->char32At)(rep, offset); } void ReplaceableGlue::handleReplaceBetween(int32_t start, int32_t limit, const UnicodeString& text) { (*func->replace)(rep, start, limit, text.getBuffer(), text.length()); } void ReplaceableGlue::extractBetween(int32_t start, int32_t limit, UnicodeString& target) const { (*func->extract)(rep, start, limit, target.getBuffer(limit-start)); target.releaseBuffer(limit-start); } void ReplaceableGlue::copy(int32_t start, int32_t limit, int32_t dest) { (*func->copy)(rep, start, limit, dest); } U_NAMESPACE_END /******************************************************************** * General API ********************************************************************/ U_NAMESPACE_USE U_CAPI UTransliterator* U_EXPORT2 utrans_openU(const UChar *id, int32_t idLength, UTransDirection dir, const UChar *rules, int32_t rulesLength, UParseError *parseError, UErrorCode *status) { if(status==NULL || U_FAILURE(*status)) { return NULL; } if (id == NULL) { *status = U_ILLEGAL_ARGUMENT_ERROR; return NULL; } UParseError temp; if(parseError == NULL){ parseError = &temp; } UnicodeString ID(idLength<0, id, idLength); // r-o alias if(rules==NULL){ Transliterator *trans = NULL; trans = Transliterator::createInstance(ID, dir, *parseError, *status); if(U_FAILURE(*status)){ return NULL; } return (UTransliterator*) trans; }else{ UnicodeString ruleStr(rulesLength < 0, rules, rulesLength); // r-o alias Transliterator *trans = NULL; trans = Transliterator::createFromRules(ID, ruleStr, dir, *parseError, *status); if(U_FAILURE(*status)) { return NULL; } return (UTransliterator*) trans; } } U_CAPI UTransliterator* U_EXPORT2 utrans_open(const char* id, UTransDirection dir, const UChar* rules, /* may be Null */ int32_t rulesLength, /* -1 if null-terminated */ UParseError* parseError, /* may be Null */ UErrorCode* status) { UnicodeString ID(id, -1, US_INV); // use invariant converter return utrans_openU(ID.getBuffer(), ID.length(), dir, rules, rulesLength, parseError, status); } U_CAPI UTransliterator* U_EXPORT2 utrans_openInverse(const UTransliterator* trans, UErrorCode* status) { utrans_ENTRY(status) NULL; UTransliterator* result = (UTransliterator*) ((Transliterator*) trans)->createInverse(*status); return result; } U_CAPI UTransliterator* U_EXPORT2 utrans_clone(const UTransliterator* trans, UErrorCode* status) { utrans_ENTRY(status) NULL; if (trans == NULL) { *status = U_ILLEGAL_ARGUMENT_ERROR; return NULL; } Transliterator *t = ((Transliterator*) trans)->clone(); if (t == NULL) { *status = U_MEMORY_ALLOCATION_ERROR; } return (UTransliterator*) t; } U_CAPI void U_EXPORT2 utrans_close(UTransliterator* trans) { delete (Transliterator*) trans; } U_CAPI const UChar * U_EXPORT2 utrans_getUnicodeID(const UTransliterator *trans, int32_t *resultLength) { // Transliterator keeps its ID NUL-terminated const UnicodeString &ID=((Transliterator*) trans)->getID(); if(resultLength!=NULL) { *resultLength=ID.length(); } return ID.getBuffer(); } U_CAPI int32_t U_EXPORT2 utrans_getID(const UTransliterator* trans, char* buf, int32_t bufCapacity) { return ((Transliterator*) trans)->getID().extract(0, 0x7fffffff, buf, bufCapacity, US_INV); } U_CAPI void U_EXPORT2 utrans_register(UTransliterator* adoptedTrans, UErrorCode* status) { utrans_ENTRY(status); // status currently ignored; may remove later Transliterator::registerInstance((Transliterator*) adoptedTrans); } U_CAPI void U_EXPORT2 utrans_unregisterID(const UChar* id, int32_t idLength) { UnicodeString ID(idLength<0, id, idLength); // r-o alias Transliterator::unregister(ID); } U_CAPI void U_EXPORT2 utrans_unregister(const char* id) { UnicodeString ID(id, -1, US_INV); // use invariant converter Transliterator::unregister(ID); } U_CAPI void U_EXPORT2 utrans_setFilter(UTransliterator* trans, const UChar* filterPattern, int32_t filterPatternLen, UErrorCode* status) { utrans_ENTRY(status); UnicodeFilter* filter = NULL; if (filterPattern != NULL && *filterPattern != 0) { // Create read only alias of filterPattern: UnicodeString pat(filterPatternLen < 0, filterPattern, filterPatternLen); filter = new UnicodeSet(pat, *status); /* test for NULL */ if (filter == NULL) { *status = U_MEMORY_ALLOCATION_ERROR; return; } if (U_FAILURE(*status)) { delete filter; filter = NULL; } } ((Transliterator*) trans)->adoptFilter(filter); } U_CAPI int32_t U_EXPORT2 utrans_countAvailableIDs(void) { return Transliterator::countAvailableIDs(); } U_CAPI int32_t U_EXPORT2 utrans_getAvailableID(int32_t index, char* buf, // may be NULL int32_t bufCapacity) { return Transliterator::getAvailableID(index).extract(0, 0x7fffffff, buf, bufCapacity, US_INV); } /* Transliterator UEnumeration ---------------------------------------------- */ typedef struct UTransEnumeration { UEnumeration uenum; int32_t index, count; } UTransEnumeration; U_CDECL_BEGIN static int32_t U_CALLCONV utrans_enum_count(UEnumeration *uenum, UErrorCode *pErrorCode) { if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) { return 0; } return ((UTransEnumeration *)uenum)->count; } static const UChar* U_CALLCONV utrans_enum_unext(UEnumeration *uenum, int32_t* resultLength, UErrorCode *pErrorCode) { if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) { return 0; } UTransEnumeration *ute=(UTransEnumeration *)uenum; int32_t index=ute->index; if(index<ute->count) { const UnicodeString &ID=Transliterator::getAvailableID(index); ute->index=index+1; if(resultLength!=NULL) { *resultLength=ID.length(); } // Transliterator keeps its ID NUL-terminated return ID.getBuffer(); } if(resultLength!=NULL) { *resultLength=0; } return NULL; } static void U_CALLCONV utrans_enum_reset(UEnumeration *uenum, UErrorCode *pErrorCode) { if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) { return; } UTransEnumeration *ute=(UTransEnumeration *)uenum; ute->index=0; ute->count=Transliterator::countAvailableIDs(); } static void U_CALLCONV utrans_enum_close(UEnumeration *uenum) { uprv_free(uenum); } U_CDECL_END static const UEnumeration utransEnumeration={ NULL, NULL, utrans_enum_close, utrans_enum_count, utrans_enum_unext, uenum_nextDefault, utrans_enum_reset }; U_CAPI UEnumeration * U_EXPORT2 utrans_openIDs(UErrorCode *pErrorCode) { UTransEnumeration *ute; if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) { return NULL; } ute=(UTransEnumeration *)uprv_malloc(sizeof(UTransEnumeration)); if(ute==NULL) { *pErrorCode=U_MEMORY_ALLOCATION_ERROR; return NULL; } ute->uenum=utransEnumeration; ute->index=0; ute->count=Transliterator::countAvailableIDs(); return (UEnumeration *)ute; } /******************************************************************** * Transliteration API ********************************************************************/ U_CAPI void U_EXPORT2 utrans_trans(const UTransliterator* trans, UReplaceable* rep, const UReplaceableCallbacks* repFunc, int32_t start, int32_t* limit, UErrorCode* status) { utrans_ENTRY(status); if (trans == 0 || rep == 0 || repFunc == 0 || limit == 0) { *status = U_ILLEGAL_ARGUMENT_ERROR; return; } ReplaceableGlue r(rep, repFunc); *limit = ((Transliterator*) trans)->transliterate(r, start, *limit); } U_CAPI void U_EXPORT2 utrans_transIncremental(const UTransliterator* trans, UReplaceable* rep, const UReplaceableCallbacks* repFunc, UTransPosition* pos, UErrorCode* status) { utrans_ENTRY(status); if (trans == 0 || rep == 0 || repFunc == 0 || pos == 0) { *status = U_ILLEGAL_ARGUMENT_ERROR; return; } ReplaceableGlue r(rep, repFunc); ((Transliterator*) trans)->transliterate(r, *pos, *status); } U_CAPI void U_EXPORT2 utrans_transUChars(const UTransliterator* trans, UChar* text, int32_t* textLength, int32_t textCapacity, int32_t start, int32_t* limit, UErrorCode* status) { utrans_ENTRY(status); if (trans == 0 || text == 0 || limit == 0) { *status = U_ILLEGAL_ARGUMENT_ERROR; return; } int32_t textLen = (textLength == NULL || *textLength < 0) ? u_strlen(text) : *textLength; // writeable alias: for this ct, len CANNOT be -1 (why?) UnicodeString str(text, textLen, textCapacity); *limit = ((Transliterator*) trans)->transliterate(str, start, *limit); // Copy the string buffer back to text (only if necessary) // and fill in *neededCapacity (if neededCapacity != NULL). textLen = str.extract(text, textCapacity, *status); if(textLength != NULL) { *textLength = textLen; } } U_CAPI void U_EXPORT2 utrans_transIncrementalUChars(const UTransliterator* trans, UChar* text, int32_t* textLength, int32_t textCapacity, UTransPosition* pos, UErrorCode* status) { utrans_ENTRY(status); if (trans == 0 || text == 0 || pos == 0) { *status = U_ILLEGAL_ARGUMENT_ERROR; return; } int32_t textLen = (textLength == NULL || *textLength < 0) ? u_strlen(text) : *textLength; // writeable alias: for this ct, len CANNOT be -1 (why?) UnicodeString str(text, textLen, textCapacity); ((Transliterator*) trans)->transliterate(str, *pos, *status); // Copy the string buffer back to text (only if necessary) // and fill in *neededCapacity (if neededCapacity != NULL). textLen = str.extract(text, textCapacity, *status); if(textLength != NULL) { *textLength = textLen; } } U_CAPI int32_t U_EXPORT2 utrans_toRules( const UTransliterator* trans, UBool escapeUnprintable, UChar* result, int32_t resultLength, UErrorCode* status) { utrans_ENTRY(status) 0; if ( (result==NULL)? resultLength!=0: resultLength<0 ) { *status = U_ILLEGAL_ARGUMENT_ERROR; return 0; } UnicodeString res; res.setTo(result, 0, resultLength); ((Transliterator*) trans)->toRules(res, escapeUnprintable); return res.extract(result, resultLength, *status); } U_CAPI USet* U_EXPORT2 utrans_getSourceSet(const UTransliterator* trans, UBool ignoreFilter, USet* fillIn, UErrorCode* status) { utrans_ENTRY(status) fillIn; if (fillIn == NULL) { fillIn = uset_openEmpty(); } if (ignoreFilter) { ((Transliterator*) trans)->handleGetSourceSet(*((UnicodeSet*)fillIn)); } else { ((Transliterator*) trans)->getSourceSet(*((UnicodeSet*)fillIn)); } return fillIn; } #endif /* #if !UCONFIG_NO_TRANSLITERATION */ ```
This is a list of the National Register of Historic Places listings in Emmons County, North Dakota. This is intended to be a complete list of the properties and districts on the National Register of Historic Places in Emmons County, North Dakota, United States. The locations of National Register properties and districts for which the latitude and longitude coordinates are included below, may be seen in a map. There are 17 properties and districts listed on the National Register in the county, and one former listing. Current listings |} Former listings |} See also List of National Historic Landmarks in North Dakota National Register of Historic Places listings in North Dakota References Emmons Emmons County, North Dakota
```c++ #include <Parsers/ParserKillQueryQuery.h> #include <Parsers/ASTKillQueryQuery.h> #include <Parsers/CommonParsers.h> #include <Parsers/ExpressionListParsers.h> namespace DB { bool ParserKillQueryQuery::parseImpl(Pos & pos, ASTPtr & node, Expected & expected) { String cluster_str; auto query = std::make_shared<ASTKillQueryQuery>(); ParserKeyword p_kill{Keyword::KILL}; ParserKeyword p_query{Keyword::QUERY}; ParserKeyword p_mutation{Keyword::MUTATION}; ParserKeyword p_part_move_to_shard{Keyword::PART_MOVE_TO_SHARD}; ParserKeyword p_transaction{Keyword::TRANSACTION}; ParserKeyword p_on{Keyword::ON}; ParserKeyword p_test{Keyword::TEST}; ParserKeyword p_sync{Keyword::SYNC}; ParserKeyword p_async{Keyword::ASYNC}; ParserKeyword p_where{Keyword::WHERE}; ParserExpression p_where_expression; if (!p_kill.ignore(pos, expected)) return false; if (p_query.ignore(pos, expected)) query->type = ASTKillQueryQuery::Type::Query; else if (p_mutation.ignore(pos, expected)) query->type = ASTKillQueryQuery::Type::Mutation; else if (p_part_move_to_shard.ignore(pos, expected)) query->type = ASTKillQueryQuery::Type::PartMoveToShard; else if (p_transaction.ignore(pos, expected)) query->type = ASTKillQueryQuery::Type::Transaction; else return false; if (p_on.ignore(pos, expected) && !ASTQueryWithOnCluster::parse(pos, cluster_str, expected)) return false; if (!p_where.ignore(pos, expected) || !p_where_expression.parse(pos, query->where_expression, expected)) return false; if (p_sync.ignore(pos, expected)) query->sync = true; else if (p_async.ignore(pos, expected)) query->sync = false; else if (p_test.ignore(pos, expected)) query->test = true; query->cluster = cluster_str; query->children.emplace_back(query->where_expression); node = std::move(query); return true; } } ```
```smarty #foreach($method in $host.getMethods()) #if($method.isFirstOrSingle() && $method.getCrud_type()!="update") #if($method.isSampleType()) public object ${method.getName()} (${method.getParameterDeclaration()}) #else public ${method.getPojoName()} ${method.getName()} (${method.getParameterDeclaration()}) #end { try { string sql = "${method.getSql()}"; StatementParameterCollection parameters = new StatementParameterCollection(); #set($inParams = []) #foreach($p in $method.getParameters()) #if($p.isInParameter()) #set($success = $inParams.add($p)) #else parameters.Add(new StatementParameter{ Name = "@${p.getSqlParamName()}", Direction = ParameterDirection.Input, DbType = DbType.${p.getDbType()}, Value =${WordUtils.uncapitalize($p.getName())} }); #end #end #if($inParams.size() > 0) sql = string.Format(sql, #foreach($p in $inParams)Arch.Data.Utility.ParameterUtility.NormalizeInParam(${WordUtils.uncapitalize($p.getAlias())}, parameters,"${WordUtils.uncapitalize($p.getAlias())}")#if($foreach.count != $inParams.size()),#end#end); #end #if($method.isSampleType()) return baseDao.ExecScalar(sql, parameters); #else return baseDao.SelectFirst<${method.getPojoName()}>(sql, parameters); #end }catch (Exception ex) { throw new DalException("${host.getClassName()}Dao${method.getName()}", ex); } } #end #end ```
```go package migrations import ( "context" "net/http" "os" "testing" "time" base "code.gitea.io/gitea/modules/migration" "github.com/stretchr/testify/assert" ) func TestGogsDownloadRepo(t *testing.T) { // Skip tests if Gogs token is not found gogsPersonalAccessToken := os.Getenv("GOGS_READ_TOKEN") if len(gogsPersonalAccessToken) == 0 { t.Skip("skipped test because GOGS_READ_TOKEN was not in the environment") } resp, err := http.Get("path_to_url") if err != nil || resp.StatusCode/100 != 2 { // skip and don't run test t.Skipf("visit test repo failed, ignored") return } downloader := NewGogsDownloader(context.Background(), "path_to_url", "", "", gogsPersonalAccessToken, "lunnytest", "TESTREPO") repo, err := downloader.GetRepoInfo() assert.NoError(t, err) assertRepositoryEqual(t, &base.Repository{ Name: "TESTREPO", Owner: "lunnytest", Description: "", CloneURL: "path_to_url", OriginalURL: "path_to_url", DefaultBranch: "master", }, repo) milestones, err := downloader.GetMilestones() assert.NoError(t, err) assertMilestonesEqual(t, []*base.Milestone{ { Title: "1.0", State: "open", }, }, milestones) labels, err := downloader.GetLabels() assert.NoError(t, err) assertLabelsEqual(t, []*base.Label{ { Name: "bug", Color: "ee0701", }, { Name: "duplicate", Color: "cccccc", }, { Name: "enhancement", Color: "84b6eb", }, { Name: "help wanted", Color: "128a0c", }, { Name: "invalid", Color: "e6e6e6", }, { Name: "question", Color: "cc317c", }, { Name: "wontfix", Color: "ffffff", }, }, labels) // downloader.GetIssues() issues, isEnd, err := downloader.GetIssues(1, 8) assert.NoError(t, err) assert.False(t, isEnd) assertIssuesEqual(t, []*base.Issue{ { Number: 1, PosterID: 5331, PosterName: "lunny", PosterEmail: "xiaolunwen@gmail.com", Title: "test", Content: "test", Milestone: "", State: "open", Created: time.Date(2019, 6, 11, 8, 16, 44, 0, time.UTC), Updated: time.Date(2019, 10, 26, 11, 7, 2, 0, time.UTC), Labels: []*base.Label{ { Name: "bug", Color: "ee0701", }, }, }, }, issues) // downloader.GetComments() comments, _, err := downloader.GetComments(&base.Issue{Number: 1, ForeignIndex: 1}) assert.NoError(t, err) assertCommentsEqual(t, []*base.Comment{ { IssueIndex: 1, PosterID: 5331, PosterName: "lunny", PosterEmail: "xiaolunwen@gmail.com", Created: time.Date(2019, 6, 11, 8, 19, 50, 0, time.UTC), Updated: time.Date(2019, 6, 11, 8, 19, 50, 0, time.UTC), Content: "1111", }, { IssueIndex: 1, PosterID: 15822, PosterName: "clacplouf", PosterEmail: "test1234@dbn.re", Created: time.Date(2019, 10, 26, 11, 7, 2, 0, time.UTC), Updated: time.Date(2019, 10, 26, 11, 7, 2, 0, time.UTC), Content: "88888888", }, }, comments) // downloader.GetPullRequests() _, _, err = downloader.GetPullRequests(1, 3) assert.Error(t, err) } ```
Máel Coluim (fl. 1054) was an eleventh-century magnate who seems to have been established as either King of Alba or King of Strathclyde. In 1055, Siward, Earl of Northumbria defeated Mac Bethad mac Findlaích, the reigning ruler of the Kingdom of Alba. As a result of this military success against the Scots, several sources assert that Siward established Máel Coluim as king. It is uncertain whether this concerned the kingship of Alba or the kingship of Strathclyde. The fact that Máel Coluim is described as the son of a "King of the Cumbrians" suggests that he was a member of the Cumbrian royal dynasty of Strathclyde, and could indicate that he was a close relative of Owain Foel, King of Strathclyde, the last known King of Strathclyde. Máel Coluim's Gaelic personal name could indicate that he was maternally descended from the royal Alpínid dynasty of Alba, which would have in turn endowed him with a claim to the Scottish throne. Máel Coluim's fate is unknown. The fact that Siward died in 1055, and Mac Bethad retained authority in Alba, suggests that Máel Coluim was quickly overcome. There is evidence indicating that the southern reaches of the Kingdom of Strathclyde—the territories upon the Solway Plain—fell into the hands of the English during Siward's floruit. The more northerly lands of the realm seem to have been conquered by Máel Coluim mac Donnchada, King of Alba sometime between 1058 and 1070, and it is uncertain whether an independent Kingdom of Strathclyde still existed by the time of this conquest. In any event, Máel Coluim appears to be the last member of the Cumbrian royal dynasty on record. Background Máel Coluim seems to have been a member of the Cumbrian royal dynasty that ruled the Kingdom of Strathclyde. The twelfth-century Chronicon ex chronicis identifies him as a "son of the king of the Cumbrians" (). He was likely closely related to—and possibly descended from—Owain Foel, King of Strathclyde, a monarch attested in 1018 assisting the Scots against the Northumbrians at the Battle of Carham. Not only is the fate of Owain Foel uncertain following this Scottish victory, so too is the fate of the Cumbrian kingdom. Son of the king of the Cumbrians In 1054, the Kingdom of Alba was invaded by Siward, Earl of Northumbria in an campaign noted by the ninth- to twelfth-century Anglo-Saxon Chronicle. According to the twelfth-century Gesta regum Anglorum, and Chronicon ex chronicis, Siward set up Máel Coluim in opposition to Mac Bethad mac Findlaích, King of Alba. One possible interpretation of these sources is that this Máel Coluim refers to Mac Bethad's opponent Máel Coluim mac Donnchada, a man who reigned as King of Alba from 1058 to 1093. If correct, the episode would seem to be evidence that the latter's father, Donnchad ua Maíl Choluim—a man who had reigned as King of Alba from 1034 to 1040—had once been King of Strathclyde as well. Against this hypothetical succession is the fact that it rests solely upon Chronicon ex chronicis and Gesta regum Anglorum. In fact, there is otherwise no evidence that Donnchad was ever a Cumbrian king. If Chronicon ex chronicis and Gesta regum Anglorum truly refer to Donnchad's son, it is unclear why these sources describe this man as aon of a mere Cumbrian king as opposed to that of a Scottish king—which Donnchad most certainly was—or why they fail to simply identify him as a son of Donnchad himself. In fact, there is otherwise no firm evidence that Máel Coluim mac Donnchada was in Alba or Northumbria in 1054, or that he had any connection with Siward's victory over Mac Bethad. Mac Bethad seems to have held onto the Scottish kingship until 1057, only to be succeeded by Lulach mac Gilla Comgáin. In fact, the events of 1054 more likely refer to Máel Coluim. Rather than being a member of the royal Alpínid dynasty of Alba, Máel Coluim is more likely to have been a member of the Cumbrian royal family. He could have been a son, or grandson of Owain Foel himself. Certainly, a previous member of the family is known to have borne the same name. If Máel Coluim was indeed a member of this kindred, one possibility is that the Scots had deprived him of the Cumbrian kingship following Owain Foel's demise, and that Siward installed Máel Coluim as king over the Cumbrians following the English victory against Mac Bethad. Another possibility, suggested by the account of events given by both Chronicon ex chronicis and Gesta regum Anglorum, is that Siward installed Máel Coluim as King of Alba. Certainly, Máel Coluim's name could be evidence of an ancestral link with the ruling Alpínids—perhaps even a matrilineal link to Owain Foel's confederate at Carham, Máel Coluim mac Cináeda, King of Alba. If Máel Coluim was indeed a maternal grandson of a Scottish king, he would have certainly possessed a claim to the Scottish throne. Although nothing is known of Máel Coluim's possible reign in Alba, there is reason to suspect that he would have probably functioned as an English puppet, with little support from the Scottish aristocracy. Although the accounts of 1054 given by both Chronicon ex chronicis and Gesta regum Anglorum can be interpreted as entries about events concerning Máel Coluim, there is a possibility that the compilers of these sources mistakenly assumed that they were actually referring to Máel Coluim mac Donnchada, since the latter's son, David, possessed Cumbria as a principality in the early twelfth century. Nevertheless, there is evidence indicating that the composer of Gesta regum Anglorum was aware that Máel Coluim was not identical to his Scottish namesake. For instance, this source clearly differentiates between the Scottish and Cumbrian kings that assembled with their English counterpart at Chester in 973. The monks of Melrose Abbey, who compiled the twelfth- to thirteenth-century Chronicle of Melrose, also seem to have been aware of Cumbria's geopolitical history, as evinced by the recognisance of the Cumbrian kingdom by the twelfth-century Vita sancti Kentegerni, a work commissioned by Jocelin, Abbot of Melrose. The first phase in the composition of the Chronicle of Melrose dates to 1173×1174. It was at this point that the chronicle's account of Siward's invasion was compiled from the twelfth-century Historia regum Anglorum. Since the latter source observes that Máel Coluim mac Donnchada unlawfully held Cumbria by force in 1070, the Melrose scribe appears to have been aware that this king was not identical to the Cumbrian Máel Coluim. This may in turn explain why the scribe did not copy over the clause "son of the king of the Cumbrians" from Historia regum Anglorum. The Chronicle of Melrose may therefore be the earliest source to explicitly associate Máel Coluim mac Donnchada with the events of 1054. As a result of this identification, this Scottish monarch was portrayed as a man who only possessed his throne on account of English assistance. The catalyst behind the monks' misrepresentation of Siward's invasion appears to have been an English revolt dating to 1173 and 1174, when the reigning King of Scotland—a great-grandson of Máel Coluim mac Donnchada—backed a failed rebellion against the King of England. As a result of this Scottish monarch's capture in the course of the uprising, English lordship over Scotland was conceded by the Scots, with conclusion of the Treaty of Falaise in 1174. The conditions imposed upon the Scots date to the very time the scribe compiled his account of 1054, and it is possible these concessions inspired the Melrose monks to concoct an eleventh-century royal precedent for twelfth-century Scottish subservience. Disintegration of the Cumbrian realm It is uncertain if the Kingdom of Strathclyde even existed by the time of the events of 1054. There is evidence to suggest that Siward and the Northumbrians exerted a significant amount of influence over the Cumbrian realm by the mid eleventh century. For example, the twelfth-century Historia ecclesiae Eboracensis records that two Bishops of Glasgow—a certain Johannes and Magsuen, whose names could be evidence that they were Cumbrians—were consecrated by Cynesige, Archbishop of York. Although it is uncertain if Glasgow was indeed a diocesan seat in the eleventh century, the fact that an eleventh-century stone cross, decorated in the Northumbrian style, has been recovered from the site of the Glasgow Cathedral, suggests that this site was increasing in importance before the construction of the cathedral in the twelfth century. This cross may, therefore, corroborate the consecrational claims of Historia ecclesiae Eboracensis, which could in turn indicate that Siward and (the senior Northumbrian cleric) Cynesige were indeed exerting influence over the Cumbrians. Another piece of evidence for Northumbrian expansion is a particular eleventh-century charter detailing the grant of certain rights and lands from a certain Gospatric to several individuals. According to this contract, the grantees received various lands in what came to form the English county of Cumberland, and they also gained a guarantee of protection from Gospatric and Siward. The likelihood that Siward would have only granted territories within his own sphere of influence, coupled with the fact that the charter specifically states that the granted lands were "once Cumbrian", suggests that most (if not all) of the Cumbrian territories south of the Solway Firth had been gained by Siward sometimes before his death in 1055. It may have been in the course of Siward's campaign against the Scots that the English gained control of the Solway Plain. Pressure from external forces north of the Solway Firth—such as the contemporaneous expansion of the —could have meant that the Cumbrian leadership allowed the southerly territories fall under Siward's authority. Whilst these lands indeed seem to have fallen under English authority in the eleventh century, the more northerly Cumbrian territories appear to have been conquered by the Scots. In 1070, for example, Gospatric, Earl of Northumbria is recorded to have led an invasion into Scottish-controlled territory in an effort to counter certain devastating Scottish raids into England. According to Historia regum Anglorum, Gospatric directed his counter-strike into , the former lands of the Cumbrian realm. In fact, this source alleges that Máel Coluim mac Donnchada's royal authority in these lands was unlawful since the Scots had only seized the lands "through violent subjugation". Whilst the record of bishops Johannes and Magsuen seems to reveal that the Cumbrians were independent of the Scots during Cynesige's episcopacy (1055–1060)—albeit possibly under Northumbrian domination—the evidence from Historia regum Anglorum reveals that the northernmost portion of the Cumbrian realm had fallen to the Scots by the time of Gospatric's invasion. Although the events noted by Historia regum Anglorum are corroborated by the twelfth century Historia post Bedam, the Scottish conquest is unrecorded. Nevertheless, the takeover seems to have occurred at some point between Máel Coluim mac Donnchada's accession in 1058 and Gospatric's invasion of 1070. One possibility is that the Scots overthrew the father of the Cumbrian Máel Coluim. Another is that Máel Coluim and his dynasty were overcome in the power vacuum left by Siward's demise in 1055. The fact that Historia regum Anglorum questions the legitimacy of Máel Coluim mac Donnchada's possession of could reveal that the compiler of this source regarded the region as rightfully Northumbrian. In any case, Máel Coluim appears to be the last known member of the Cumbrian dynasty. See also David, Prince of the Cumbrians, a twelfth-century magnate who bore the titles "prince of the Cumbrians" and "prince of the Cumbrian region", according him quasi-regal status over territories that formerly comprised the Kingdom of Strathclyde. Notes Citations References Primary sources Secondary sources 11th-century Scottish monarchs Monarchs of Strathclyde
```javascript /* * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * * path_to_url * * Unless required by applicable law or agreed to in writing, * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * specific language governing permissions and limitations */ module.exports = angular.module('trafficPortal.form.job', []) .controller('FormJobController', require('./FormJobController')); ```
```shell Quick port test with `netcat` Check `iptables` firewall status How to clear `iptables` rules Multiple IP Address with aliasing Limit the `wget` download rate ```
Wilfred Edward Jones (2 February 1912 – October 1992) was a Welsh cricketer active from 1929 to 1933 who played for Glamorgan. He was born in Pontardawe and died in Ogwr. He appeared in 50 first-class matches as a left-handed batsman who bowled slow left arm orthodox spin. He scored 300 runs with the highest score of 27 and took 77 wickets with a best performance of six for 93. Early life Born on the 2nd of February, 1912 to Watkin Jones and Cecelia Hale in Pontardawe, Wilf was born to a large family which included several brothers and sisters, it's unsure when he had taken an interest in cricket but it's known that after some impressive performances for Pontardawe CC during the early years of the South Wales and Monmouthshire League he joined Glamorgan’s junior staff as Frank Ryan's understudy. Wilf made his first-class debut against the 1929 Springboks at Pontypridd, and two years later took 6/93 against the New Zealanders at the Cardiff Arms Park. Biography Wilfred and Leslie Nash (a member of the ground staff at Cardiff's Arms Park ) appeared on remand to answer several summonses for alleged motor offenses. Nash and Jones were summoned jointly and separately with driving away a motor car without the owner's consent, while Nash was further summoned for driving dangerously, driving without care and attention, failing to stop after an accident, having no license, and having no third-party insurance. Jones was summoned for aiding in respect of the whole of these alleged offenses. Mr. Leslie Dacey, prosecuting, said when persons went for a 'joy ride' and there was an accident, the passengers and the driver were liable. It was alleged that the car was taken by Nash and Jones from the Cardiff Arms Park on the occasion of the Glamorgan and Warwickshire match on 12 July. It was found out that the car had belonged to the famed cricketer and professional footballer, Fanny Walden. It has been stated by the Jones family that Wilf had lost his confidence after the incident, subsequently resulting in him being released in 1933. It’s been said by the grandson of Wilfred that he could, “see the sensitivity in his face.”He subsequently enjoyed a decent career as a professional with Pontardawe and Neath. Always dressed in a suit, he cut a dapper figure off the field, tilting his hat to every lady who passed by. He adored etiquette, decorum, respect and fair play besides hating bullying and sledging. His fondness for formal attire meant that he was also very proud of a black top hat, which has remained in the possession of the Jones family and is currently in Rwanda where the father-in-law of Wilfred’s grandson works as a pastor and proudly displays the Welsh flag at his home. His grandson also played county rugby and basketball at the junior level for Glamorgan. Notes 1912 births 1992 deaths Welsh cricketers Glamorgan cricketers
```java /* * one or more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. */ package io.camunda.zeebe.dynamic.config.changes; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import io.atomix.cluster.MemberId; import io.camunda.zeebe.dynamic.config.state.ClusterConfiguration; import io.camunda.zeebe.dynamic.config.state.DynamicPartitionConfig; import io.camunda.zeebe.dynamic.config.state.ExporterState; import io.camunda.zeebe.dynamic.config.state.ExporterState.State; import io.camunda.zeebe.dynamic.config.state.ExportersConfig; import io.camunda.zeebe.dynamic.config.state.MemberState; import io.camunda.zeebe.dynamic.config.state.PartitionState; import io.camunda.zeebe.scheduler.future.CompletableActorFuture; import io.camunda.zeebe.test.util.asserts.EitherAssert; import java.time.Duration; import java.util.Map; import java.util.Optional; import java.util.concurrent.ExecutionException; import org.junit.jupiter.api.Test; final class PartitionEnableExporterApplierTest { private final PartitionChangeExecutor partitionChangeExecutor = mock(PartitionChangeExecutor.class); private final String exporterId = "exporterA"; private final int partitionId = 2; private final MemberId localMemberId = MemberId.from("3"); private final PartitionEnableExporterApplier applier = new PartitionEnableExporterApplier( partitionId, localMemberId, exporterId, Optional.of("other"), partitionChangeExecutor); private final ClusterConfiguration clusterConfigWithPartition = ClusterConfiguration.init() .addMember(localMemberId, MemberState.initializeAsActive(Map.of())) .updateMember( localMemberId, m -> m.addPartition( partitionId, PartitionState.active( 1, new DynamicPartitionConfig(new ExportersConfig(Map.of()))))); @Test void shouldRejectWhenMemberDoesNotExist() { // given final var clusterConfiguration = ClusterConfiguration.init(); // when final var result = applier.initMemberState(clusterConfiguration); // then EitherAssert.assertThat(result).isLeft(); assertThat(result.getLeft()) .isInstanceOf(IllegalStateException.class) .hasMessageContaining("member '3' does not exist in the cluster"); } @Test void shouldRejectWhenPartitionDoesNotExist() { // given final var clusterConfiguration = ClusterConfiguration.init() .addMember(localMemberId, MemberState.initializeAsActive(Map.of())); // when final var result = applier.initMemberState(clusterConfiguration); // then EitherAssert.assertThat(result).isLeft(); assertThat(result.getLeft()) .isInstanceOf(IllegalStateException.class) .hasMessageContaining("does not have the partition '2'"); } @Test void shouldFailIfOtherExporterDoesNotExist() { // when final var result = applier.initMemberState(clusterConfigWithPartition); // then EitherAssert.assertThat(result).isLeft(); assertThat(result.getLeft()) .isInstanceOf(IllegalStateException.class) .hasMessageContaining("does not have exporter 'other'"); } @Test void shouldFailIfOtherExporterIsDisabled() { // given final var configWithDisabledExporter = new DynamicPartitionConfig( new ExportersConfig( Map.of("other", new ExporterState(0, State.DISABLED, Optional.empty())))); final var clusterConfiguration = clusterConfigWithPartition.updateMember( localMemberId, m -> m.updatePartition(partitionId, p -> p.updateConfig(configWithDisabledExporter))); // when final var result = applier.initMemberState(clusterConfiguration); // then EitherAssert.assertThat(result).isLeft(); assertThat(result.getLeft()) .isInstanceOf(IllegalStateException.class) .hasMessageContaining("the exporter 'other' is disabled"); } @Test void shouldNotChangeStateOnInit() { // given final var configWithOtherExporter = new DynamicPartitionConfig( new ExportersConfig( Map.of("other", new ExporterState(1, State.ENABLED, Optional.empty())))); final var clusterConfiguration = ClusterConfiguration.init() .addMember( localMemberId, MemberState.initializeAsActive( Map.of(partitionId, PartitionState.active(1, configWithOtherExporter)))); // when final var result = applier.initMemberState(clusterConfiguration); // then EitherAssert.assertThat(result).isRight(); final MemberState memberState = clusterConfiguration.getMember(localMemberId); assertThat(result.get().apply(memberState)).isEqualTo(memberState); } @Test void shouldFailFutureIfApplyFailed() { when(partitionChangeExecutor.enableExporter(partitionId, exporterId, 0, "other")) .thenReturn( CompletableActorFuture.completedExceptionally(new RuntimeException("force fail"))); // when final var result = applier.applyOperation(); // then assertThat(result) .failsWithin(Duration.ofMillis(100)) .withThrowableOfType(ExecutionException.class) .withMessageContaining("force fail"); } @Test void shouldUpdateStateAndMetadataVersionIfApplySucceeded() { // given when(partitionChangeExecutor.enableExporter(partitionId, exporterId, 1, "other")) .thenReturn(CompletableActorFuture.completed(null)); final var configWithOtherExporter = new DynamicPartitionConfig( new ExportersConfig( Map.of("other", new ExporterState(1, State.ENABLED, Optional.empty())))); final var clusterConfiguration = ClusterConfiguration.init() .addMember( localMemberId, MemberState.initializeAsActive( Map.of(partitionId, PartitionState.active(1, configWithOtherExporter)))); applier.initMemberState(clusterConfiguration); // when final var result = applier.applyOperation(); // then assertThat(result).succeedsWithin(Duration.ofMillis(100)); final var updatedState = result.join().apply(clusterConfiguration.getMember(localMemberId)); final ExporterState updatedExporterState = updatedState.getPartition(partitionId).config().exporting().exporters().get(exporterId); assertThat(updatedExporterState.state()).isEqualTo(State.ENABLED); assertThat(updatedExporterState.metadataVersion()).isEqualTo(1); assertThat(updatedExporterState.initializedFrom()).contains("other"); } } ```
Kazuki Tanaka may refer to: , Japanese baseball player , Japanese footballer
```c++ /* Qalculate (library) This program is free software; you can redistribute it and/or modify (at your option) any later version. */ #include "support.h" #include "MathStructure.h" #include "Calculator.h" #include "BuiltinFunctions.h" #include "Number.h" #include "Function.h" #include "Variable.h" #include "Unit.h" #include "Prefix.h" #include "MathStructure-support.h" using std::string; using std::cout; using std::vector; using std::endl; int limit_inf_cmp(const MathStructure &mstruct, const MathStructure &mcmp, const MathStructure &x_var) { if(mstruct.equals(mcmp)) return 0; bool b_multi1 = false, b_multi2 = false; const MathStructure *m1 = NULL, *m2 = NULL; if(mstruct.isMultiplication()) { for(size_t i = 0; i < mstruct.size(); i++) { if(mstruct[i].contains(x_var)) { if(!m1) { m1 = &mstruct[i]; } else { int cmp = limit_inf_cmp(mstruct[i], *m1, x_var); if(cmp > 0) { m1 = &mstruct[i]; } else if(cmp != -1) { return -2; } b_multi1 = true; } } } } else if(mstruct.contains(x_var, true)) { m1 = &mstruct; } if(mcmp.isMultiplication()) { for(size_t i = 0; i < mcmp.size(); i++) { if(mcmp[i].contains(x_var)) { if(!m2) { m2 = &mcmp[i]; } else { int cmp = limit_inf_cmp(mcmp[i], *m2, x_var); if(cmp > 0) { m2 = &mcmp[i]; } else if(cmp != -1) { return -2; } b_multi2 = true; } } } } else if(mcmp.contains(x_var, true)) { m2 = &mcmp; } if(!m1 && !m2) return 0; if(!m1) return -1; if(!m2) return 1; int itype1 = 0; int itype2 = 0; if(m1->isFunction() && m1->function()->id() == FUNCTION_ID_GAMMA) itype1 = 4; else if(m1->isPower() && m1->exponent()->contains(x_var, true)) itype1 = 3; else if(m1->equals(x_var) || (m1->isPower() && m1->base()->equals(x_var) && m1->exponent()->representsPositive())) itype1 = 2; else if(m1->isFunction() && m1->function()->id() == FUNCTION_ID_LOG) itype1 = 1; else return -2; if(m2->isFunction() && m2->function()->id() == FUNCTION_ID_GAMMA) itype2 = 4; else if(m2->isPower() && m2->exponent()->contains(x_var, true)) itype2 = 3; else if(m2->equals(x_var) || (m2->isPower() && m2->base()->equals(x_var) && m2->exponent()->representsPositive())) itype2 = 2; else if(m2->isFunction() && m2->function()->id() == FUNCTION_ID_LOG) itype2 = 1; else return -2; if(itype1 > itype2) return 1; if(itype2 > itype1) return -1; ComparisonResult cr = COMPARISON_RESULT_UNKNOWN; CALCULATOR->beginTemporaryEnableIntervalArithmetic(); if(CALCULATOR->usesIntervalArithmetic()) { if(itype1 == 4) { cr = m1->getChild(1)->compare(*m2->getChild(1)); } else if(itype1 == 1) { int cmp = limit_inf_cmp(*m1->getChild(1), *m2->getChild(1), x_var); if(cmp > 0) cr = COMPARISON_RESULT_LESS; else if(cmp == -1) cr = COMPARISON_RESULT_GREATER; } else if(itype1 == 3) { if(m1->exponent()->equals(*m2->exponent())) { if(m1->base()->contains(x_var, true) || m2->base()->contains(x_var, true)) { int cmp = limit_inf_cmp(*m1->base(), *m2->base(), x_var); if(cmp > 0) cr = COMPARISON_RESULT_LESS; else if(cmp == -1) cr = COMPARISON_RESULT_GREATER; } else { cr = m1->base()->compare(*m2->base()); } } else if(m1->base()->equals(*m2->base())) { int cmp = limit_inf_cmp(*m1->exponent(), *m2->exponent(), x_var); if(cmp > 0) cr = COMPARISON_RESULT_LESS; else if(cmp == -1) cr = COMPARISON_RESULT_GREATER; else if(cmp == 0) cr = m1->exponent()->compare(*m2->exponent()); } } else if(itype1 == 2) { if(m1->equals(x_var)) { if(m2->equals(x_var)) cr = COMPARISON_RESULT_EQUAL; else cr = m_one.compare(*m2->getChild(2)); } else if(m2->equals(x_var)) { cr = m1->getChild(2)->compare(m_one); } else { cr = m1->getChild(2)->compare(*m2->getChild(2)); } } } CALCULATOR->endTemporaryEnableIntervalArithmetic(); if(cr == COMPARISON_RESULT_GREATER) return -1; else if(cr == COMPARISON_RESULT_LESS) return 1; else if(cr != COMPARISON_RESULT_EQUAL) return -2; if(!b_multi1 && !b_multi2) return 0; if(!b_multi1) return -1; if(!b_multi2) return 1; MathStructure mc1(mstruct), mc2(mcmp); for(size_t i = 0; i < mc1.size(); i++) { if(&mstruct[i] == m1) {mc1.delChild(i + 1, true); break;} } for(size_t i = 0; i < mc2.size(); i++) { if(&mcmp[i] == m2) {mc2.delChild(i + 1, true); break;} } return limit_inf_cmp(mc1, mc2, x_var); } bool is_limit_neg_power(const MathStructure &mstruct, const MathStructure &x_var, bool b_nil) { return mstruct.isPower() && (((!b_nil || !mstruct[1].contains(x_var, true)) && mstruct[1].representsNegative()) || (b_nil && mstruct[1].isMultiplication() && mstruct[1].size() == 2 && mstruct[1][1] == x_var && mstruct[1][0].representsNegative())); } bool limit_combine_divisions(MathStructure &mstruct, const MathStructure &x_var, const MathStructure &nr_limit) { if(mstruct.isAddition()) { bool b = false; bool b_nil = nr_limit.isInfinite(false) && nr_limit.number().isMinusInfinity(); // 5/y + x/y + z = (5 + x)/y + z for(size_t i = 0; i < mstruct.size() && !b; i++) { if(mstruct[i].isMultiplication()) { for(size_t i2 = 0; i2 < mstruct[i].size() && !b; i2++) { if(is_limit_neg_power(mstruct[i][i2], x_var, b_nil)) { b = true; } } } else if(is_limit_neg_power(mstruct[i], x_var, b_nil)) { b = true; } } if(!b) return false; b = false; MathStructure mstruct_units(mstruct); MathStructure mstruct_new(mstruct); for(size_t i = 0; i < mstruct_units.size(); i++) { if(mstruct_units[i].isMultiplication()) { for(size_t i2 = 0; i2 < mstruct_units[i].size();) { if(!is_limit_neg_power(mstruct_units[i][i2], x_var, b_nil)) { mstruct_units[i].delChild(i2 + 1); } else { i2++; } } if(mstruct_units[i].size() == 0) mstruct_units[i].setUndefined(); else if(mstruct_units[i].size() == 1) mstruct_units[i].setToChild(1); for(size_t i2 = 0; i2 < mstruct_new[i].size();) { if(is_limit_neg_power(mstruct_new[i][i2], x_var, b_nil)) { mstruct_new[i].delChild(i2 + 1); } else { i2++; } } if(mstruct_new[i].size() == 0) mstruct_new[i].set(1, 1, 0); else if(mstruct_new[i].size() == 1) mstruct_new[i].setToChild(1); } else if(is_limit_neg_power(mstruct_new[i], x_var, b_nil)) { mstruct_new[i].set(1, 1, 0); } else { mstruct_units[i].setUndefined(); } } for(size_t i = 0; i < mstruct_units.size(); i++) { if(!mstruct_units[i].isUndefined()) { for(size_t i2 = i + 1; i2 < mstruct_units.size();) { if(mstruct_units[i2] == mstruct_units[i]) { mstruct_new[i].add(mstruct_new[i2], true); mstruct_new.delChild(i2 + 1); mstruct_units.delChild(i2 + 1); b = true; } else { i2++; } } if(mstruct_new[i].isOne()) { mstruct_new[i].set(mstruct_units[i]); } else if(mstruct_units[i].isMultiplication()) { for(size_t i2 = 0; i2 < mstruct_units[i].size(); i2++) { mstruct_new[i].multiply(mstruct_units[i][i2], true); } } else { mstruct_new[i].multiply(mstruct_units[i], true); } } } if(b) { if(mstruct_new.size() == 1) { mstruct.set(mstruct_new[0], true); } else { mstruct = mstruct_new; } return true; } } return false; } bool limit_combine_divisions2(MathStructure &mstruct, const MathStructure &x_var, const MathStructure &nr_limit, const EvaluationOptions &eo) { if(mstruct.isAddition()) { MathStructure mden(1, 1, 0); bool b = false; bool b_nil = nr_limit.isInfinite(false) && nr_limit.number().isMinusInfinity(); size_t i_d = 0; for(size_t i2 = 0; i2 < mstruct.size(); i2++) { if(mstruct[i2].isMultiplication()) { for(size_t i3 = 0; i3 < mstruct[i2].size(); i3++) { if(is_limit_neg_power(mstruct[i2][i3], x_var, b_nil)) { mden *= mstruct[i2][i3]; mden.last()[1].negate(); i_d++; } else if(!mstruct[i2][i3].isOne() && !mstruct[i2][i3].isMinusOne()) { b = true; } } } else if(is_limit_neg_power(mstruct[i2], x_var, b_nil)) { mden *= mstruct[i2]; mden.last()[1].negate(); i_d++; } else { b = true; } } if(mden.isOne() || !b || i_d > 10) return false; for(size_t i = 0; i < mstruct.size(); i++) { for(size_t i2 = 0; i2 < mstruct.size(); i2++) { if(i2 != i) { if(mstruct[i2].isMultiplication()) { for(size_t i3 = 0; i3 < mstruct[i2].size(); i3++) { if(is_limit_neg_power(mstruct[i2][i3], x_var, b_nil)) { mstruct[i].multiply(mstruct[i2][i3], true); mstruct[i].last()[1].negate(); } } } else if(is_limit_neg_power(mstruct[i2], x_var, b_nil)) { mstruct[i].multiply(mstruct[i2], true); mstruct[i].last()[1].negate(); } } } } for(size_t i2 = 0; i2 < mstruct.size(); i2++) { if(mstruct[i2].isMultiplication()) { for(size_t i3 = 0; i3 < mstruct[i2].size();) { if(is_limit_neg_power(mstruct[i2][i3], x_var, b_nil)) { mstruct[i2].delChild(i3 + 1); } else { i3++; } } if(mstruct[i2].size() == 0) mstruct[i2].set(1, 1, 0); else if(mstruct[i2].size() == 1) mstruct[i2].setToChild(1); } else if(is_limit_neg_power(mstruct[i2], x_var, b_nil)) { mstruct[i2].set(1, 1, 0); } } mden.calculatesub(eo, eo, true); mstruct.calculatesub(eo, eo, true); mstruct /= mden; return true; } return false; } bool contains_zero(const MathStructure &mstruct) { if(mstruct.isNumber() && !mstruct.number().isNonZero()) return true; for(size_t i = 0; i < mstruct.size(); i++) { if(contains_zero(mstruct[i])) return true; } return false; } bool limit_contains_undefined(const MathStructure &mstruct) { bool b_zero = false, b_infinity = false; if(mstruct.isPower() && mstruct[0].isNumber() && ((!mstruct[0].number().isNonZero() && mstruct[1].representsNegative()) || mstruct[1].containsInfinity(true))) return true; for(size_t i = 0; i < mstruct.size(); i++) { if(limit_contains_undefined(mstruct[i])) return true; if(contains_zero(mstruct[i])) { if(b_infinity) return true; b_zero = true; } if(mstruct[i].containsInfinity(true)) { if(b_infinity || b_zero) return true; b_infinity = true; } } return false; } bool is_plus_minus_infinity(const MathStructure &mstruct) { return mstruct.isInfinite(false) || (mstruct.isPower() && mstruct[0].isZero() && mstruct[1].representsNegative()) || (mstruct.isMultiplication() && mstruct.size() == 2 && mstruct[0].representsReal() && mstruct[1].isPower() && mstruct[1][0].isZero() && mstruct[1][1].representsNegative()); } bool calculate_limit_sub(MathStructure &mstruct, const MathStructure &x_var, const MathStructure &nr_limit, const EvaluationOptions &eo, int approach_direction, Number *polydeg = NULL, int lhop_depth = 0, bool keep_inf_x = false, bool reduce_addition = true) { if(CALCULATOR->aborted()) return false; if(mstruct == x_var) { if(keep_inf_x && nr_limit.isInfinite(false)) return true; mstruct.set(nr_limit, true); return true; } if(!mstruct.contains(x_var, true)) return true; switch(mstruct.type()) { case STRUCT_MULTIPLICATION: { for(size_t i = 0; i < mstruct.size(); i++) { if(mstruct[i].isPower() && mstruct[i][0].isPower() && mstruct[i][0][0].contains(x_var, true) && !mstruct[i][0][0].representsNonPositive()) { MathStructure mtest(mstruct[i][0][0]); calculate_limit_sub(mtest, x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, false); if(mtest.representsPositive()) { mstruct[i][0][1].calculateMultiply(mstruct[i][1], eo); mstruct[i].setToChild(1); } } } MathStructure mzero(1, 1, 0); MathStructure minfp(1, 1, 0); MathStructure mleft; vector<size_t> irecalc; MathStructure mbak(mstruct); bool b_inf = false; bool b_li = nr_limit.isInfinite(false); bool b_fail = false; bool b_test_inf = b_li; bool b_possible_zero = false; for(size_t i = 0; i < mstruct.size(); i++) { bool b = false; if(!b_fail && mstruct[i].isPower() && mstruct[i][0].contains(x_var, true) && mstruct[i][1].representsNegative()) { if(mstruct[i][1].isMinusOne()) { mstruct[i].setToChild(1); } else { mstruct[i][1].calculateNegate(eo); } calculate_limit_sub(mstruct[i], x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, false); if(mstruct[i].isZero()) { b = true; if(b_test_inf && !mbak[i][1].contains(x_var, true)) b_test_inf = false; if(minfp.isOne()) { minfp = mbak[i]; if(!b_li) { if(minfp[1].isMinusOne()) minfp.setToChild(1); else minfp[1].calculateNegate(eo); } } else { minfp.multiply(mbak[i], true); if(!b_li) { if(minfp.last()[1].isMinusOne()) minfp.last().setToChild(1); else minfp.last()[1].calculateNegate(eo); } } irecalc.push_back(i); mstruct[i].inverse(); } else if(mstruct[i].isInfinite()) { b = true; if(mzero.isOne()) { mzero = mbak[i]; if(b_li) { if(mzero[1].isMinusOne()) mzero.setToChild(1); else mzero[1].calculateNegate(eo); } } else { mzero.multiply(mbak[i], true); if(b_li) { if(mzero.last()[1].isMinusOne()) mzero.last().setToChild(1); else mzero.last()[1].calculateNegate(eo); } } mstruct[i].clear(true); } else { mstruct[i].calculateInverse(eo); } } else { calculate_limit_sub(mstruct[i], x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, false); } if(!b_fail && !b) { if(mstruct[i].isZero()) { if(b_li && mbak[i].isPower()) { if(b_test_inf && !mbak[i][1].contains(x_var, true)) b_test_inf = false; if(mzero.isOne()) { mzero = mbak[i]; if(mzero[1].isMinusOne()) mzero.setToChild(1); else mzero[1].calculateNegate(eo); } else { mzero.multiply(mbak[i], true); if(mzero.last()[1].isMinusOne()) mzero.last().setToChild(1); else mzero.last()[1].calculateNegate(eo); } } else { b_test_inf = false; if(mzero.isOne()) { mzero = mbak[i]; if(b_li) { if(!mzero.isPower()) mzero.inverse(); else if(mzero[1].isMinusOne()) mzero.setToChild(1); else mzero[1].calculateNegate(eo); } } else { mzero.multiply(mbak[i], true); if(b_li) { if(!mzero.last().isPower()) mzero.last().inverse(); else if(mzero.last()[1].isMinusOne()) mzero.last().setToChild(1); else mzero.last()[1].calculateNegate(eo); } } } } else if(is_plus_minus_infinity(mstruct[i])) { if(mstruct[i].isInfinite()) { b_inf = true; if(minfp.isOne()) { minfp = mbak[i]; if(!b_li) { if(!minfp.isPower()) minfp.inverse(); else if(minfp[1].isMinusOne()) minfp.setToChild(1); else minfp[1].calculateNegate(eo); } } else { minfp.multiply(mbak[i], true); if(!b_li) { if(!minfp.last().isPower()) minfp.last().inverse(); else if(minfp.last()[1].isMinusOne()) minfp.last().setToChild(1); else minfp.last()[1].calculateNegate(eo); } } } else { b_test_inf = false; if(minfp.isOne()) { minfp = mbak[i]; if(!b_li) { if(!minfp.isPower()) minfp.inverse(); else if(minfp[1].isMinusOne()) minfp[1].setToChild(1); else minfp[1].calculateNegate(eo); } } else { minfp.multiply(mbak[i], true); if(!b_li) { if(!minfp.last().isPower()) minfp.last().inverse(); else if(minfp.last()[1].isMinusOne()) minfp.last().setToChild(1); else minfp.last()[1].calculateNegate(eo); } } } } else if(!mstruct[i].representsNonZero(true) || !mstruct[i].representsNumber(true)) { if(!mstruct[i].contains(x_var) && !mstruct.isZero() && mstruct[i].representsNumber(true)) { mstruct[i].ref(); mleft.addChild_nocopy(&mstruct[i]); b_possible_zero = true; } else { b_fail = true; } } else { mstruct[i].ref(); mleft.addChild_nocopy(&mstruct[i]); } } } if(b_li) b_inf = !b_inf; if(!b_fail && b_li && b_test_inf && !mzero.isOne() && !minfp.isOne()) { MathStructure mnum(minfp); MathStructure mden(mzero); mnum.calculatesub(eo, eo, false); mden.calculatesub(eo, eo, false); MathStructure mnum_bak(mnum), mden_bak(mden); calculate_limit_sub(mnum, x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, true); calculate_limit_sub(mden, x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, true); if(mnum.contains(x_var, true) && mden.contains(x_var, true)) { int cmp = limit_inf_cmp(mnum, mden, x_var); if(cmp == 0) { mstruct.set(mnum); EvaluationOptions eo2 = eo; eo2.expand = false; mstruct.calculateDivide(mden, eo2); if(!mstruct.contains(x_var)) { for(size_t i = 0; i < mleft.size(); i++) { mstruct.calculateMultiply(mleft[i], eo); } break; } } MathStructure mnum_b(mnum), mden_b(mden); calculate_limit_sub(mnum, x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, false); calculate_limit_sub(mden, x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, false); if(mnum.isInfinite(false) && mden.isInfinite(false)) { if(cmp > 0) { if(keep_inf_x) { mstruct.set(mnum_b, true); mstruct.calculateDivide(mden_b, eo); break; } mstruct.set(mnum, true); if(mden.number().isNegative()) mstruct.calculateNegate(eo); for(size_t i = 0; i < mleft.size(); i++) { mstruct.calculateMultiply(mleft[i], eo); } break; } else if(cmp == -1) { mstruct.clear(true); break; } if(mnum_b.isPower() && mden_b.isPower() && mnum_b[1].contains(x_var, true) && mden_b[1].contains(x_var, true)) { bool b = true; if(mden_b[1] != mnum_b[1]) { b = false; Number npow1(1, 1, 0), npow2; MathStructure *x_p = &mnum_b[1]; if(mnum_b[1].isMultiplication() && mnum_b[1].size() == 2 && mnum_b[1][0].isNumber()) { npow1 = mnum_b[1][0].number(); x_p = &mnum_b[1][1]; } if(mden_b[1] == *x_p) npow2.set(1, 1, 0); else if(mden_b[1].isMultiplication() && mden_b[1].size() == 2 && mden_b[1][0].isNumber() && mden_b[1][1] == *x_p) npow2 = mden_b[1][0].number(); if(!npow2.isZero() && npow1.isRational() && npow2.isRational()) { if(npow1.isGreaterThan(npow2)) { npow1 /= npow2; npow2 = npow1.denominator(); npow1 = npow1.numerator(); } if(mnum.number().isMinusInfinity() && !npow1.isOne()) { if(npow2.isOne() && mden.number().isPlusInfinity()) { mden_b[0].factorize(eo, false, false, 0, false, false, NULL, m_undefined, false, true); if(mden_b[0].isPower() && mden_b[0][1].isInteger()) { mden_b[0][1].number() /= npow1; if(mden_b[0][1].number().isInteger()) { mden_b[0].calculateRaiseExponent(eo); b = true; } } } } else if(mden.number().isMinusInfinity() && !npow2.isOne()) { if(npow1.isOne() && mnum.number().isPlusInfinity()) { mnum_b[0].factorize(eo, false, false, 0, false, false, NULL, m_undefined, false, true); if(mnum_b[0].isPower() && mnum_b[0][1].isInteger()) { mnum_b[0][1].number() /= npow2; if(mnum_b[0][1].number().isInteger()) { mnum_b[0].calculateRaiseExponent(eo); mnum_b[1] = mden_b[1]; b = true; } } } } else { if(!npow1.isOne()) mnum_b[0].calculateRaise(npow1, eo); if(!npow2.isOne()) mden_b[0].calculateRaise(npow2, eo); mnum_b.childUpdated(1); mden_b.childUpdated(1); if(!npow1.isOne()) { if(&mnum_b[1] == x_p) { npow1.recip(); mnum_b[1] *= npow1; mnum_b[1].swapChildren(1, 2); } else { mnum_b[1][0].number() /= npow1; } } b = true; } } } if(b) { mstruct.set(mnum_b[0], true); mstruct /= mden_b[0]; mstruct.transformById(FUNCTION_ID_LOG); mstruct *= mnum_b[1]; mstruct.raise(CALCULATOR->getVariableById(VARIABLE_ID_E)); mstruct.swapChildren(1, 2); calculate_limit_sub(mstruct, x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, keep_inf_x); for(size_t i = 0; i < mleft.size(); i++) { mstruct.calculateMultiply(mleft[i], eo); } break; } } } } } if(!b_possible_zero && !b_fail && lhop_depth < 5 && !mzero.isOne() && !minfp.isOne() && mzero.countTotalChildren(false) + minfp.countTotalChildren(false) < 250) { //L'Hpital's rule MathStructure mden, mnum; for(size_t i2 = 0; i2 < 2; i2++) { if((i2 == 0) != b_inf) { mnum = mzero; mden = minfp; if(b_li) { mden.inverse(); mnum.inverse(); } } else { mnum = minfp; mden = mzero; if(!b_li) { mden.inverse(); mnum.inverse(); } } if(mnum.differentiate(x_var, eo) && !contains_diff_for(mnum, x_var) && mden.differentiate(x_var, eo) && !contains_diff_for(mden, x_var)) { mnum /= mden; mnum.eval(eo); calculate_limit_sub(mnum, x_var, nr_limit, eo, approach_direction, NULL, lhop_depth + 1); if(!limit_contains_undefined(mnum)) { mstruct.set(mnum, true); for(size_t i = 0; i < mleft.size(); i++) { mstruct.calculateMultiply(mleft[i], eo); } return true; } } } } for(size_t i = 0; i < irecalc.size(); i++) { mstruct[irecalc[i]] = mbak[irecalc[i]]; calculate_limit_sub(mstruct[irecalc[i]], x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, false); } mstruct.childrenUpdated(); mstruct.calculatesub(eo, eo, false); if(keep_inf_x && mstruct.isInfinite(false)) { mstruct = mbak; if(reduce_addition) { for(size_t i = 0; i < mstruct.size(); i++) { calculate_limit_sub(mstruct[i], x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, true, reduce_addition); if(mstruct[i].isZero()) mstruct[i] = mbak[i]; } mstruct.childrenUpdated(); mstruct.calculatesub(eo, eo, false); } } break; } case STRUCT_ADDITION: { MathStructure mbak(mstruct); bool b = limit_combine_divisions(mstruct, x_var, nr_limit); if(mstruct.isAddition()) b = limit_combine_divisions2(mstruct, x_var, nr_limit, eo); if(b) { if(lhop_depth > 0) return calculate_limit_sub(mstruct, x_var, nr_limit, eo, approach_direction, polydeg, lhop_depth); if(calculate_limit_sub(mstruct, x_var, nr_limit, eo, approach_direction, polydeg, lhop_depth) && !limit_contains_undefined(mstruct)) return true; mstruct = mbak; } if(nr_limit.isInfinite(false)) { size_t i_cmp = 0; b = true; for(size_t i = 0; i < mstruct.size(); i++) { calculate_limit_sub(mstruct[i], x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, true); } if(mstruct.contains(x_var, true) && (!keep_inf_x || reduce_addition)) { bool bfac = false; MathStructure mstruct_units(mstruct); MathStructure mstruct_new(mstruct); for(size_t i = 0; i < mstruct_units.size(); i++) { if(mstruct_units[i].isMultiplication()) { for(size_t i2 = 0; i2 < mstruct_units[i].size();) { if(!mstruct_units[i][i2].contains(x_var, true)) { mstruct_units[i].delChild(i2 + 1); } else { i2++; } } if(mstruct_units[i].size() == 0) mstruct_units[i].setUndefined(); else if(mstruct_units[i].size() == 1) mstruct_units[i].setToChild(1); for(size_t i2 = 0; i2 < mstruct_new[i].size();) { if(mstruct_new[i][i2].contains(x_var, true)) { mstruct_new[i].delChild(i2 + 1); } else { i2++; } } if(mstruct_new[i].size() == 0) mstruct_new[i].set(1, 1, 0); else if(mstruct_new[i].size() == 1) mstruct_new[i].setToChild(1); } else if(mstruct_units[i].contains(x_var, true)) { mstruct_new[i].set(1, 1, 0); } else { mstruct_units[i].setUndefined(); } } for(size_t i = 0; i < mstruct_units.size(); i++) { if(!mstruct_units[i].isUndefined()) { for(size_t i2 = i + 1; i2 < mstruct_units.size(); i2++) { if(mstruct_units[i2] == mstruct_units[i]) { mstruct_new[i].add(mstruct_new[i2], true); bfac = true; } } bool bfac2 = false; MathStructure mzero(mstruct_new[i]); mzero.calculatesub(eo, eo, false); if(bfac && mzero.isZero() && lhop_depth < 5) { MathStructure mfac(mbak[i]); bool b_diff = false; calculate_limit_sub(mfac, x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, true, false); if(mfac != mstruct[i]) b_diff = true; for(size_t i2 = i + 1; i2 < mstruct_units.size(); i2++) { if(mstruct_units[i2] == mstruct_units[i]) { mfac.add(mbak[i2], true); calculate_limit_sub(mfac.last(), x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, true, false); if(!b_diff && mfac.last() != mstruct[i2]) b_diff = true; bfac2 = true; } } if(bfac2) { mfac.calculatesub(eo, eo, false); if(!mfac.isAddition()) { calculate_limit_sub(mfac, x_var, nr_limit, eo, approach_direction, NULL, lhop_depth + 1, true); mstruct_new[i].set(mfac, true); } else if(!b_diff) { bfac2 = false; } else if(mfac.size() == 2 && !mfac.containsType(STRUCT_FUNCTION)) { MathStructure mfac2(mfac); MathStructure mmul(mfac); mmul.last().calculateNegate(eo); mfac.calculateMultiply(mmul, eo); mfac.divide(mmul); calculate_limit_sub(mfac, x_var, nr_limit, eo, approach_direction, NULL, lhop_depth + 1, true); if(limit_contains_undefined(mfac)) { mfac2.factorize(eo, false, false, 0, false, false, NULL, m_undefined, false, false); if(!mfac2.isAddition()) { calculate_limit_sub(mfac2, x_var, nr_limit, eo, approach_direction, NULL, lhop_depth + 1, true); mstruct_new[i].set(mfac2, true); } else { bfac2 = false; } } else { mstruct_new[i].set(mfac, true); } } else { mfac.factorize(eo, false, false, 0, false, false, NULL, m_undefined, false, false); if(!mfac.isAddition()) { calculate_limit_sub(mfac, x_var, nr_limit, eo, approach_direction, NULL, lhop_depth + 1, true); mstruct_new[i].set(mfac, true); } else if(mstruct_units[i].isFunction() && mstruct_units[i].function()->id() == FUNCTION_ID_LOG) { mstruct_new[i].clear(true); } else { bfac2 = false; } } } } if(!bfac2) { if(mstruct_new[i].isOne()) { mstruct_new[i].set(mstruct_units[i]); } else if(mstruct_units[i].isMultiplication()) { for(size_t i2 = 0; i2 < mstruct_units[i].size(); i2++) { mstruct_new[i].multiply(mstruct_units[i][i2], true); } } else { mstruct_new[i].multiply(mstruct_units[i], true); } } for(size_t i2 = i + 1; i2 < mstruct_units.size(); i2++) { if(mstruct_units[i2] == mstruct_units[i]) { mstruct_units[i2].setUndefined(); mstruct_new[i2].clear(); } } } } if(bfac) { for(size_t i = 0; mstruct_new.size() > 1 && i < mstruct_new.size();) { if(mstruct_new[i].isZero()) { mstruct_new.delChild(i + 1); } else { i++; } } mstruct = mstruct_new; if(mstruct.size() == 1) { mstruct.setToChild(1, true); if(!keep_inf_x) calculate_limit_sub(mstruct, x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, false); break; } else if(!mstruct.contains(x_var, true)) { b = false; } } for(size_t i = 0; i < mstruct.size(); i++) { if(i > 0 && mstruct[i].contains(x_var, true)) { int cmp = limit_inf_cmp(mstruct[i], mstruct[i_cmp], x_var); if(cmp > 0) { mstruct.delChild(i_cmp + 1, false); i--; i_cmp = i; } else if(cmp == -1) { mstruct.delChild(i + 1, false); i--; } else { b = false; } } } if(b) { MathStructure mbak(mstruct); for(size_t i = 0; i < mstruct.size();) { if(!mstruct[i].contains(x_var, true)) { if(mstruct[i].representsNumber()) { mstruct.delChild(i + 1, false); } else { mstruct = mbak; break; } } else { i++; } } } } if(!b || !keep_inf_x) { for(size_t i = 0; i < mstruct.size(); i++) { calculate_limit_sub(mstruct[i], x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, false); } } mstruct.childrenUpdated(); if(mstruct.size() == 1) mstruct.setToChild(1, true); else if(!b || !keep_inf_x) mstruct.calculatesub(eo, eo, false); break; } else { for(size_t i = 0; i < mstruct.size(); i++) { calculate_limit_sub(mstruct[i], x_var, nr_limit, eo, approach_direction, NULL, lhop_depth); } } mstruct.childrenUpdated(); mstruct.calculatesub(eo, eo, false); break; } case STRUCT_POWER: { MathStructure mbak(mstruct); calculate_limit_sub(mstruct[0], x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, false); calculate_limit_sub(mstruct[1], x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, false); if(is_plus_minus_infinity(mstruct[1]) && (mstruct[0].isOne() || mstruct[0].isZero()) && mbak[1].contains(x_var, true) && mbak[0].contains(x_var, true)) { mstruct.set(mbak[0], true); mstruct.transformById(FUNCTION_ID_LOG); mstruct *= mbak[1]; mstruct.raise(CALCULATOR->getVariableById(VARIABLE_ID_E)); mstruct.swapChildren(1, 2); calculate_limit_sub(mstruct, x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, keep_inf_x); break; } if(mstruct[0].isFunction() && (mstruct[0].function()->id() == FUNCTION_ID_ASIN || mstruct[0].function()->id() == FUNCTION_ID_ACOS) && mstruct[0].size() == 1 && mstruct[0][0].isInfinite(false) && mstruct[1].representsNegative()) { mstruct.clear(true); break; } if(keep_inf_x && nr_limit.isInfinite(false) && (mstruct[0].isInfinite(false) || mstruct[1].isInfinite(false))) { MathStructure mbak2(mstruct); mstruct.calculatesub(eo, eo, false); if(mstruct.isInfinite(false)) { mstruct = mbak2; if(mstruct[0].isInfinite(false)) { mstruct[0] = mbak[0]; calculate_limit_sub(mstruct[0], x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, true, reduce_addition && !mstruct[1].isInfinite(false)); } else if(mbak[0].contains(x_var, true)) { mstruct[0] = mbak[0]; } if(mstruct[1].isInfinite(false)) { mstruct[1] = mbak[1]; calculate_limit_sub(mstruct[1], x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, true, false); } else if(mbak[1].contains(x_var, true)) { mstruct[1] = mbak[1]; } } } else if(mstruct[0].isNumber() && !mstruct[0].number().isNonZero() && mstruct[1].representsNegative() && mbak[0].contains(x_var, true) > 0) { bool b_test = true; int i_sgn = 0; if(mstruct[0].number().isInterval(false) && (mstruct[0].number().hasImaginaryPart() || !mstruct[1].isNumber())) { b_test = false; } if(b_test && ((mbak[0].isFunction() && mbak[0].function()->id() == FUNCTION_ID_ABS) || mstruct[1].representsEven())) { i_sgn = 1; b_test = false; } else if(b_test) { if(mstruct[0].number().isInterval(false) && !mstruct[0].number().isNonNegative() && !mstruct[0].number().isNonPositive()) { b_test = false; } else { MathStructure mpow(mbak[0]); if(mstruct[1].isMinusOne()) { MathStructure mfac(mpow); mfac.factorize(eo, false, false, 0, false, false, NULL, m_undefined, false, true); if(mfac.isPower() && mfac[1].representsEven()) { i_sgn = 1; b_test = false; } } else { mpow ^= mstruct[1]; mpow.last().calculateNegate(eo); } if(b_test) { MathStructure mdiff(mpow); if(mdiff.differentiate(x_var, eo) && !contains_diff_for(mdiff, x_var)) { mdiff.replace(x_var, nr_limit); CALCULATOR->beginTemporaryStopMessages(); mdiff.eval(eo); if(!CALCULATOR->endTemporaryStopMessages()) { if(mdiff.representsPositive()) { b_test = false; if(approach_direction > 0) i_sgn = 1; else if(approach_direction < 0) i_sgn = -1; } else if(mdiff.representsNegative()) { b_test = false; if(approach_direction > 0) i_sgn = -1; else if(approach_direction < 0) i_sgn = 1; } } } if(b_test) { MathStructure mtestn(nr_limit); if(eo.approximation != APPROXIMATION_EXACT) { EvaluationOptions eo2 = eo; eo2.approximation = APPROXIMATION_APPROXIMATE; mtestn.eval(eo2); } if(mtestn.isNumber() && mtestn.number().isReal()) { for(int i = 10; i < 20; i++) { if(approach_direction == 0 || (i % 2 == (approach_direction < 0))) { Number nr_test(i % 2 == 0 ? 1 : -1, 1, -(i / 2)); if(!mtestn.number().isZero()) { nr_test++; if(!nr_test.multiply(mtestn.number())) {i_sgn = 0; break;} } MathStructure mtest(mpow); mtest.replace(x_var, nr_test); CALCULATOR->beginTemporaryStopMessages(); mtest.eval(eo); if(CALCULATOR->endTemporaryStopMessages()) {i_sgn = 0; break;} int new_sgn = 0; if(mtest.representsPositive()) new_sgn = 1; else if(mtest.representsNegative()) new_sgn = -1; if(new_sgn != 0 || mtest.isNumber()) { if(new_sgn == 0 || (i_sgn != 0 && i_sgn != new_sgn)) {i_sgn = 0; break;} i_sgn = new_sgn; } } if(CALCULATOR->aborted()) {i_sgn = 0; break;} } } } } } } if(i_sgn != 0) { if(mstruct[0].number().isInterval()) { Number nr_pow = mstruct[1].number(); Number nr_high(mstruct[0].number()); if(nr_pow.negate() && nr_high.raise(nr_pow) && !nr_high.hasImaginaryPart()) { if(nr_high.isNonNegative() && i_sgn > 0) nr_high = nr_high.upperEndPoint(); else if(nr_high.isNonPositive() && i_sgn < 0) nr_high = nr_high.lowerEndPoint(); if(nr_high.isNonZero() && nr_high.recip()) { Number nr; if(i_sgn > 0) nr.setInterval(nr_high, nr_plus_inf); else if(i_sgn < 0) nr.setInterval(nr_minus_inf, nr_high); mstruct.set(nr, true); if(b_test) CALCULATOR->error(false, _("Limit for %s determined graphically."), format_and_print(mbak).c_str(), NULL); break; } } } else { if(b_test) CALCULATOR->error(false, _("Limit for %s determined graphically."), format_and_print(mbak).c_str(), NULL); if(i_sgn > 0) mstruct.set(nr_plus_inf, true); else if(i_sgn < 0) mstruct.set(nr_minus_inf, true); break; } } } mstruct.childrenUpdated(); mstruct.calculatesub(eo, eo, false); break; } case STRUCT_FUNCTION: { if(keep_inf_x && nr_limit.isInfinite(false) && mstruct.size() == 1 && (mstruct.function()->id() == FUNCTION_ID_LOG || mstruct.function()->id() == FUNCTION_ID_GAMMA)) { MathStructure mbak(mstruct); calculate_limit_sub(mstruct[0], x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, false); if(mstruct[0].isInfinite(false) && (mstruct[0].number().isPlusInfinity() || mstruct.function()->id() == FUNCTION_ID_LOG)) { mstruct[0] = mbak[0]; calculate_limit_sub(mstruct[0], x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, true, mstruct.function()->id() == FUNCTION_ID_LOG && reduce_addition); break; } } else if(approach_direction != 0 && mstruct.function()->id() == FUNCTION_ID_TAN && mstruct.size() == 1) { MathStructure mbak(mstruct); mstruct.setFunctionId(FUNCTION_ID_SIN); mbak.setFunctionId(FUNCTION_ID_COS); mstruct /= mbak; return calculate_limit_sub(mstruct, x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, keep_inf_x, reduce_addition); } else if(mstruct.function()->id() == FUNCTION_ID_FLOOR || mstruct.function()->id() == FUNCTION_ID_CEIL || mstruct.function()->id() == FUNCTION_ID_TRUNC) { MathStructure mlimit(mstruct[0]); calculate_limit_sub(mlimit, x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, keep_inf_x, reduce_addition); mlimit.transformById(FUNCTION_ID_FRAC); ComparisonResult cr = mlimit.compare(m_zero); mlimit.setToChild(1); if(!COMPARISON_IS_NOT_EQUAL(cr)) { if(approach_direction == 0 || cr != COMPARISON_RESULT_EQUAL) return false; if(mstruct.function()->id() == FUNCTION_ID_TRUNC) { cr = mlimit.compare(m_zero); if(cr != COMPARISON_RESULT_EQUAL && cr != COMPARISON_RESULT_GREATER && cr != COMPARISON_RESULT_LESS) return false; } MathStructure mdiff(mstruct[0]); int i_sgn = 0; if(mdiff.differentiate(x_var, eo) && !contains_diff_for(mdiff, x_var)) { mdiff.replace(x_var, nr_limit); ComparisonResult cr2 = mdiff.compare(m_zero); if(cr2 == COMPARISON_RESULT_GREATER) i_sgn = -1; else if(cr2 == COMPARISON_RESULT_LESS) i_sgn = 1; } if(i_sgn == 0) return false; i_sgn *= approach_direction; if(i_sgn < 0 && (mstruct.function()->id() == FUNCTION_ID_FLOOR || (mstruct.function()->id() == FUNCTION_ID_TRUNC && cr == COMPARISON_RESULT_LESS))) mlimit -= m_one; else if(i_sgn > 0 && (mstruct.function()->id() == FUNCTION_ID_CEIL || (mstruct.function()->id() == FUNCTION_ID_TRUNC && cr == COMPARISON_RESULT_GREATER))) mlimit += m_one; } mstruct[0] = mlimit; mstruct.childrenUpdated(); } else { for(size_t i = 0; i < mstruct.size(); i++) { calculate_limit_sub(mstruct[i], x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, false); } mstruct.childrenUpdated(); } if(approach_direction != 0 && mstruct.function()->id() == FUNCTION_ID_GAMMA && mstruct.size() == 1 && mstruct[0].isInteger() && mstruct[0].number().isNonPositive()) { if((mstruct[0].number().isEven() && approach_direction < 0) || (mstruct[0].number().isOdd() && approach_direction > 0)) { mstruct.set(nr_minus_inf, true); } else { mstruct.set(nr_plus_inf, true); } break; } mstruct.calculateFunctions(eo, true); mstruct.calculatesub(eo, eo, false); break; } default: { for(size_t i = 0; i < mstruct.size(); i++) { calculate_limit_sub(mstruct[i], x_var, nr_limit, eo, approach_direction, NULL, lhop_depth, false, reduce_addition); } mstruct.childrenUpdated(); mstruct.calculatesub(eo, eo, false); } } return true; } bool replace_equal_limits(MathStructure &mstruct, const MathStructure &x_var, const MathStructure &nr_limit, const EvaluationOptions &eo, int approach_direction, bool at_top = true) { if(!nr_limit.isInfinite(false)) return false; bool b_ret = false; for(size_t i = 0; i < mstruct.size(); i++) { if(replace_equal_limits(mstruct[i], x_var, nr_limit, eo, approach_direction, false)) { mstruct.childUpdated(i + 1); b_ret = true; } } if(at_top) return b_ret; if(mstruct.isFunction() && (mstruct.function()->id() == FUNCTION_ID_SINH || mstruct.function()->id() == FUNCTION_ID_COSH) && mstruct.size() == 1 && mstruct.contains(x_var, true)) { MathStructure mterm1(CALCULATOR->getVariableById(VARIABLE_ID_E)); mterm1.raise(mstruct[0]); MathStructure mterm2(mterm1); mterm2[1].negate(); mterm1 *= nr_half; mterm2 *= nr_half; mstruct = mterm1; if(mstruct.function()->id() == FUNCTION_ID_SINH) mstruct -= mterm2; else mstruct += mterm2; return true; } return b_ret; } bool replace_equal_limits2(MathStructure &mstruct, const MathStructure &x_var, const MathStructure &nr_limit, const EvaluationOptions &eo, int approach_direction, bool at_top = true) { if(!nr_limit.isInfinite(false)) return false; bool b_ret = false; for(size_t i = 0; i < mstruct.size(); i++) { if(replace_equal_limits2(mstruct[i], x_var, nr_limit, eo, approach_direction, false)) { mstruct.childUpdated(i + 1); b_ret = true; } } if(mstruct.isMultiplication()) { for(size_t i = 0; i < mstruct.size(); i++) { if(mstruct[i].isPower() && mstruct[i][1] == x_var && (nr_limit.number().isMinusInfinity() || mstruct[i][0].representsNonNegative())) { for(size_t i2 = i + 1; i2 < mstruct.size();) { if(mstruct[i2].isPower() && mstruct[i2][1] == x_var && (nr_limit.number().isMinusInfinity() || mstruct[i2][0].representsNonNegative())) { mstruct[i][0].calculateMultiply(mstruct[i2][0], eo); mstruct.delChild(i2 + 1, false); } else { i2++; } } mstruct[i].childUpdated(1); mstruct.childUpdated(i + 1); if(mstruct.size() == 1) { mstruct.setToChild(1, true); break; } } } } return b_ret; } bool replace_equal_limits3(MathStructure &mstruct, const MathStructure &x_var, const MathStructure &nr_limit, const EvaluationOptions &eo, int approach_direction, bool at_top = true) { if(!nr_limit.isInfinite(false)) return false; bool b_ret = false; for(size_t i = 0; i < mstruct.size(); i++) { if(replace_equal_limits3(mstruct[i], x_var, nr_limit, eo, approach_direction, false)) { mstruct.childUpdated(i + 1); b_ret = true; } } if(at_top) return b_ret; if(mstruct.isFunction() && (mstruct.function()->id() == FUNCTION_ID_ASINH || mstruct.function()->id() == FUNCTION_ID_ACOSH) && mstruct.size() == 1 && mstruct.contains(x_var, true)) { MathStructure mtest(mstruct[0]); calculate_limit_sub(mtest, x_var, nr_limit, eo, approach_direction); if(mtest.isInfinite(false)) { if(mtest.number().isPlusInfinity()) { mstruct.setFunctionId(FUNCTION_ID_LOG); mstruct[0] *= nr_two; return true; } else if(mstruct.function()->id() == FUNCTION_ID_ASINH) { mstruct.setFunctionId(FUNCTION_ID_LOG); mstruct[0] *= nr_two; mstruct.negate(); return true; } } } return b_ret; } bool MathStructure::calculateLimit(const MathStructure &x_var, const MathStructure &limit, const EvaluationOptions &eo_pre, int approach_direction) { EvaluationOptions eo = eo_pre; eo.assume_denominators_nonzero = true; eo.warn_about_denominators_assumed_nonzero = false; eo.do_polynomial_division = false; UnknownVariable *var = new UnknownVariable("", format_and_print(x_var)); Assumptions *ass = new Assumptions(); MathStructure nr_limit(limit); if(eo.approximation != APPROXIMATION_EXACT && nr_limit.containsInterval(true, true, false, 0, true)) { eo.approximation = APPROXIMATION_EXACT_VARIABLES; } nr_limit.eval(eo); eo.approximation = eo_pre.approximation; if(nr_limit.representsReal() || nr_limit.isInfinite()) ass->setType(ASSUMPTION_TYPE_REAL); if(nr_limit.representsPositive()) ass->setSign(ASSUMPTION_SIGN_POSITIVE); else if(nr_limit.representsNegative()) ass->setSign(ASSUMPTION_SIGN_NEGATIVE); else if(nr_limit.isZero()) { if(approach_direction < 0) ass->setSign(ASSUMPTION_SIGN_NEGATIVE); else if(approach_direction > 0) ass->setSign(ASSUMPTION_SIGN_POSITIVE); else ass->setSign(ASSUMPTION_SIGN_NONZERO); } var->setAssumptions(ass); replace(x_var, var); eval(eo); CALCULATOR->beginTemporaryStopMessages(); MathStructure mbak(*this); if(replace_equal_limits(*this, var, nr_limit, eo, approach_direction)) eval(eo); replace_equal_limits2(*this, var, nr_limit, eo, approach_direction); if(replace_equal_limits3(*this, var, nr_limit, eo, approach_direction)) { eval(eo); replace_equal_limits2(*this, var, nr_limit, eo, approach_direction); } do_simplification(*this, eo, true, false, false, true, true); eo.do_polynomial_division = true; calculate_limit_sub(*this, var, nr_limit, eo, approach_direction); if(CALCULATOR->aborted() || (containsInfinity(true) && !isInfinite(true)) || limit_contains_undefined(*this) || containsFunctionId(FUNCTION_ID_FLOOR) || containsFunctionId(FUNCTION_ID_CEIL) || containsFunctionId(FUNCTION_ID_TRUNC)) { set(mbak); replace(var, x_var); var->destroy(); CALCULATOR->endTemporaryStopMessages(); return false; } replace(var, nr_limit); var->destroy(); CALCULATOR->endTemporaryStopMessages(true); return true; } ```
```javascript //your_sha256_hash--------------------------------------- //your_sha256_hash--------------------------------------- function test0() { function leaf() { } class BaseClass { } var obj0 = {}; var obj1 = {}; var arrObj0 = {}; var litObj1 = {}; var func0 = function () { }; var func1 = function () { var func5 = function* () { strvar1 = '!'; }; for (var _strvar3 of func5()) { } }; var func2 = function () { }; var func3 = function () { }; var func4 = function () { }; obj0.method0 = func2; obj0.method1 = func3; obj1.method1 = func0; var ary = Array(); var i8 = new Int8Array(); var i16 = new Int16Array(); var i32 = new Int32Array(); var f32 = new Float32Array(); var IntArr0 = []; var VarArr0 = []; var b = -2; var d = 217; var f = -354058415.9; var g = 192563783; var h = -6607978441461540000; var strvar4 = '!'; var strvar5 = '-'; var strvar6 = '!$EUI'; var strvar7 = '#q\xA9'; var protoObj0 = Object(obj0); var protoObj1 = Object(obj1); class class1 extends BaseClass { } class class4 extends BaseClass { } class class7 { static set func56(argMath66) { while ((argMath66 == h && 217 != obj0.prop5) * (((argMath66 <<= argMath66)))) { print("loop 1"); } } } var __loopvar1000 = 2; for (;;) { __loopvar1000 -= 2; if (__loopvar1000 <= 2 - 6) { break; } print('loop 2'); protoObj1.method1((class7.func56 = { valueOf: function () { WScript.Echo("class7.func56.valueOf"); } }, class7.func56 = arrObj0)); } } test0(); ```
```javascript 'use strict'; // Flags: --experimental-vm-modules const common = require('../common'); const assert = require('assert'); const { SourceTextModule } = require('vm'); async function testBasic() { const m = new SourceTextModule('globalThis.importMeta = import.meta;', { initializeImportMeta: common.mustCall((meta, module) => { assert.strictEqual(module, m); meta.prop = 42; }) }); await m.link(common.mustNotCall()); await m.evaluate(); const result = globalThis.importMeta; delete globalThis.importMeta; assert.strictEqual(typeof result, 'object'); assert.strictEqual(Object.getPrototypeOf(result), null); assert.strictEqual(result.prop, 42); assert.deepStrictEqual(Reflect.ownKeys(result), ['prop']); } async function testInvalid() { for (const invalidValue of [ null, {}, 0, Symbol.iterator, [], 'string', false ]) { assert.throws(() => { new SourceTextModule('', { initializeImportMeta: invalidValue }); }, { code: 'ERR_INVALID_ARG_TYPE', name: 'TypeError' }); } } (async () => { await testBasic(); await testInvalid(); })(); ```
```objective-c // // TLSettingItem.h // TLChat // // Created by on 16/2/7. // #import <Foundation/Foundation.h> #define TLCreateSettingItem(title) [TLSettingItem createItemWithTitle:title] typedef NS_ENUM(NSInteger, TLSettingItemType) { TLSettingItemTypeDefalut = 0, TLSettingItemTypeTitleButton, TLSettingItemTypeSwitch, TLSettingItemTypeOther, }; @interface TLSettingItem : NSObject /** * */ @property (nonatomic, strong) NSString *title; /** * */ @property (nonatomic, strong) NSString *subTitle; /** * () */ @property (nonatomic, strong) NSString *rightImagePath; /** * () */ @property (nonatomic, strong) NSString *rightImageURL; /** * YES */ @property (nonatomic, assign) BOOL showDisclosureIndicator; /** * NO */ @property (nonatomic, assign) BOOL disableHighlight; /** * celldefault */ @property (nonatomic, assign) TLSettingItemType type; + (TLSettingItem *)createItemWithTitle:(NSString *)title; - (NSString *) cellClassName; @end ```
```xml import * as React from 'react'; import { Dropdown, makeStyles, Option, useId } from '@fluentui/react-components'; import type { DropdownProps } from '@fluentui/react-components'; const useStyles = makeStyles({ root: { // Stack the label above the field with a gap display: 'grid', gridTemplateRows: 'repeat(1fr)', justifyItems: 'start', gap: '2px', maxWidth: '400px', }, }); export const Multiselect = (props: Partial<DropdownProps>) => { const comboId = useId('combo-multi'); const options = ['Cat', 'Dog', 'Ferret', 'Fish', 'Hamster', 'Snake']; const styles = useStyles(); return ( <div className={styles.root}> <label id={comboId}>Best pet</label> <Dropdown aria-labelledby={comboId} multiselect={true} placeholder="Select an animal" {...props}> {options.map(option => ( <Option key={option} disabled={option === 'Ferret'}> {option} </Option> ))} </Dropdown> </div> ); }; Multiselect.parameters = { docs: { description: { story: 'Dropdown supports multiselect, and options within a multiselect will display checkbox icons.', }, }, }; ```
```c /* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // vim: expandtab:ts=8:sw=4:softtabstop=4: /////////////////////////////////////////////////////////////////////////////// // /// \file stream_flags_encoder.c /// \brief Encodes Stream Header and Stream Footer for .xz files // // Author: Lasse Collin // // This file has been put into the public domain. // You can do whatever you want with this file. // /////////////////////////////////////////////////////////////////////////////// #include "stream_flags_common.h" static bool stream_flags_encode(const lzma_stream_flags *options, uint8_t *out) { if ((unsigned int)(options->check) > LZMA_CHECK_ID_MAX) return true; out[0] = 0x00; out[1] = options->check; return false; } extern LZMA_API(lzma_ret) lzma_stream_header_encode(const lzma_stream_flags *options, uint8_t *out) { assert(sizeof(lzma_header_magic) + LZMA_STREAM_FLAGS_SIZE + 4 == LZMA_STREAM_HEADER_SIZE); if (options->version != 0) return LZMA_OPTIONS_ERROR; // Magic memcpy(out, lzma_header_magic, sizeof(lzma_header_magic)); // Stream Flags if (stream_flags_encode(options, out + sizeof(lzma_header_magic))) return LZMA_PROG_ERROR; // CRC32 of the Stream Header const uint32_t crc = lzma_crc32(out + sizeof(lzma_header_magic), LZMA_STREAM_FLAGS_SIZE, 0); integer_write_32(out + sizeof(lzma_header_magic) + LZMA_STREAM_FLAGS_SIZE, crc); return LZMA_OK; } extern LZMA_API(lzma_ret) lzma_stream_footer_encode(const lzma_stream_flags *options, uint8_t *out) { assert(2 * 4 + LZMA_STREAM_FLAGS_SIZE + sizeof(lzma_footer_magic) == LZMA_STREAM_HEADER_SIZE); if (options->version != 0) return LZMA_OPTIONS_ERROR; // Backward Size if (!is_backward_size_valid(options)) return LZMA_PROG_ERROR; integer_write_32(out + 4, options->backward_size / 4 - 1); // Stream Flags if (stream_flags_encode(options, out + 2 * 4)) return LZMA_PROG_ERROR; // CRC32 const uint32_t crc = lzma_crc32( out + 4, 4 + LZMA_STREAM_FLAGS_SIZE, 0); integer_write_32(out, crc); // Magic memcpy(out + 2 * 4 + LZMA_STREAM_FLAGS_SIZE, lzma_footer_magic, sizeof(lzma_footer_magic)); return LZMA_OK; } ```
```vue <script lang=""> should. be. well.formatted( );</script> ```
Adolphe Gérard (1844–1900) was a French chef, restaurant and hotel owner in Colorado, US. Gérard was born in Alençon, France, in 1844. At age 15, he enrolled in a seminary in the commune of Sées. At age 20, Gérard moved to Paris, where he was apprenticed as a chef in a hotel. He then moved to London, where he worked with a newspaper on its reviews and translations (Gérard was fluent in English, German and Latin). At age 22, Gérard moved to New York City, where he again worked for a newspaper. In 1868, he enlisted in the U.S. Army at Fort Hamilton, New York, and was assigned to Fort D. A. Russell near Cheyenne, Wyoming. In April 1869, he deserted and moved to Denver, Colorado, assuming the name "Louis Dupuy". He started working for the Rocky Mountain News as a roving reporter for the mining camps. Gérard soon decided to become a miner himself. In 1873, while working in the Cold Stream Mine on Mount Sherman in Silver Plume, Colorado, he was badly injured in a delayed dynamite explosion in the Kennedy Tunnel. Gérard took the brunt of the blast and saved the life of a fellow miner. Gérard broke a rib and clavicle, and injured his left eye. Because he could not return to mining, the people of Georgetown, Colorado, raised enough money for him to rent the former Delmonico Bakery. He was able to purchase the property within a few years and created a successful restaurant and hotel that he called Hotel de Paris. By the early 1890s, the original building had tripled in size. It contained numerous rooms, a formal dining room, a sizeable kitchen and an apartment for Gérard. The Hotel de Paris had indoor plumbing with a washbasin in each room, as well as electric lighting which replaced gas lighting in 1893. Dinners were served on Haviland & Co. china from Limoges, France, with elegant linens and imported glassware. The menu included steaks from cattle raised on Louis' ranch Troublesome Creek, delicacies such as oysters and anchovies in olive oil imported from France. Gérard was an avid reader of literature and philosophy. His library contained a full set of Encyclopædia Britannica. On October 7, 1900, Gérard died from pneumonia at age 56. He left the hotel to his housekeeper Sophie Gally, who died only four months later. In 1904, the Hotel de Paris was purchased by James H. and Sarah Burkholder. Their daughter, Hazel Burkholder McAdams, owned the hotel until 1954, when the National Society of The Colonial Dames of America in the State of Colorado acquired it and turned it into a museum. Gérard is buried with Sophie Gally. They share a grave marker inscribed with the words "Deux Bons Amis" ("Two good friends"). In 1985, Gérard was fictionalized by Louis L'Amour in his novel The Proving Trail. 1844 births 1900 deaths French chefs French male journalists
Us-vs-Then-vs-Now is the 2 disc, first full featured and second DVD by rock band Finger Eleven. It shows the band's career span in the past 13 years with never before seen concert footage, b-sides from their writing sessions of Finger Eleven and Them vs. You vs. Me, interviews, music videos and video journals. It was first released on iTunes. The title is a pun on their album Them vs. You vs. Me. The bassline for the song "Bend the Rules" turns out to be for the song "Them vs. You vs. Me". CD track listing "Sacrifice" (Previously unreleased 2006) – 3:46 "Unspoken" (Previously unreleased 2003) – 3:37 "Paralyzer" (Original band demo) – 3:37 "One Thing" (Original band demo) – 4:17 "Change the World" (Original band demo) – 2:12 "1000 Mile Wish" (Original band demo) – 4:42 "Absent Elements" (Original band demo) – 4:48 "Sick of It All" (Sullen Mix) – 4:50 "Wake Up Demons" (Previously unreleased 2003) – 2:16 "Bend the Rules" (Previously unreleased 2006) – 3:17 "Song for an Awkward Moment" (Previously unreleased) – 2:47 "Key Loop" (Instrumental) – 3:28 "Murder My Mind's Eye" (Previously unreleased 2003) – 4:17 "Tearing Disguises" (Previously unreleased 2003) – 6:17 DVD track listing Now Live from the Warehouse Studio (Vancouver, March 2007) featuring the songs Paralyzer, Above, One Thing, I'll Keep Your Memory Vague, First Time and Obvious Heart Live from the Berkeley Church (Toronto, May 2007) featuring the songs Good Times, Lost My Way, So-So Suicide and Talking To The Walls Then "As Far as I Can Spit" (Rainbow Butt Monkeys Live at MuchMusic November 14, 1995) "Transition Interview" (MuchMusic Interview April 14, 1999) "Quicksand" (Live from CBGB, New York City, April 29, 1998) "Drag You Down" (Live from The Opera House, Toronto, November 9, 2000) "First Time" (The Video-Band Version) "The Frying Pan Interview" (New York City, May 16, 2000) "Drag You Down" (The Video) "Good Times" (The Video) "Complicated Questions" (Live at Snow Job, Newfoundland, March 24, 2003) "One Thing" (The Video) "Nardwuar Discusses Influences Interview" (Vancouver June 28, 2004) "Absent Elements" (Live from The Showplace Theatre, Buffalo, April 17, 2003) "Unspoken" (At VH1.com Live, New York City, March 10, 2004) "Rich and Rick on Citadel Hill Interview" (MuchMusic Going Coastal, Halifax June 28, 2003) "Good Times" (Breakout, Live at the Mac Hall, Calgary, September 25, 2003) "Change the World" (The Video) "Falling On" (The Video) "Paralyzer" (The Video) "I'll Keep Your Memory Vague" (The Video) "Behind the Scenes" (Spring 2007 Canadian Tour) 2007 live albums 2007 video albums Finger Eleven video albums Live video albums
```objective-c // // // path_to_url // // Unless required by applicable law or agreed to in writing, software // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #ifndef _SOC_SPI_STRUCT_H_ #define _SOC_SPI_STRUCT_H_ #include <stdint.h> #ifdef __cplusplus extern "C" { #endif typedef volatile struct spi_dev_s { union { struct { uint32_t conf_bitlen : 18; /*Define the APB cycles of SPI_CONF state. Can be configured in CONF state.*/ uint32_t reserved18 : 5; /*reserved*/ uint32_t update : 1; /*Set this bit to synchronize SPI registers from APB clock domain into SPI module clock domain, which is only used in SPI master mode.*/ uint32_t usr : 1; /*User define command enable. An operation will be triggered when the bit is set. The bit will be cleared once the operation done.1: enable 0: disable. Can not be changed by CONF_buf.*/ uint32_t reserved25 : 7; /*reserved*/ }; uint32_t val; } cmd; uint32_t addr; union { struct { uint32_t reserved0 : 3; /*reserved*/ uint32_t dummy_out : 1; /*0: In the dummy phase, the FSPI bus signals are not output. 1: In the dummy phase, the FSPI bus signals are output. Can be configured in CONF state.*/ uint32_t reserved4 : 1; /*reserved*/ uint32_t faddr_dual : 1; /*Apply 2 signals during addr phase 1:enable 0: disable. Can be configured in CONF state.*/ uint32_t faddr_quad : 1; /*Apply 4 signals during addr phase 1:enable 0: disable. Can be configured in CONF state.*/ uint32_t faddr_oct : 1; /*Apply 8 signals during addr phase 1:enable 0: disable. Can be configured in CONF state.*/ uint32_t fcmd_dual : 1; /*Apply 2 signals during command phase 1:enable 0: disable. Can be configured in CONF state.*/ uint32_t fcmd_quad : 1; /*Apply 4 signals during command phase 1:enable 0: disable. Can be configured in CONF state.*/ uint32_t fcmd_oct : 1; /*Apply 8 signals during command phase 1:enable 0: disable. Can be configured in CONF state.*/ uint32_t reserved11 : 3; /*reserved*/ uint32_t fread_dual : 1; /*In the read operations, read-data phase apply 2 signals. 1: enable 0: disable. Can be configured in CONF state.*/ uint32_t fread_quad : 1; /*In the read operations read-data phase apply 4 signals. 1: enable 0: disable. Can be configured in CONF state.*/ uint32_t fread_oct : 1; /*In the read operations read-data phase apply 8 signals. 1: enable 0: disable. Can be configured in CONF state.*/ uint32_t reserved17 : 1; /*reserved*/ uint32_t q_pol : 1; /*The bit is used to set MISO line polarity, 1: high 0, low. Can be configured in CONF state.*/ uint32_t d_pol : 1; /*The bit is used to set MOSI line polarity, 1: high 0, low. Can be configured in CONF state.*/ uint32_t hold_pol : 1; /*SPI_HOLD output value when SPI is idle. 1: output high, 0: output low. Can be configured in CONF state.*/ uint32_t wp_pol : 1; /*Write protect signal output when SPI is idle. 1: output high, 0: output low. Can be configured in CONF state.*/ uint32_t reserved22 : 1; /*reserved*/ uint32_t rd_bit_order : 2; /*In read-data (MISO) phase 1: LSB first 0: MSB first. Can be configured in CONF state.*/ uint32_t wr_bit_order : 2; /*In command address write-data (MOSI) phases 1: LSB firs 0: MSB first. Can be configured in CONF state.*/ uint32_t reserved27 : 5; /*reserved*/ }; uint32_t val; } ctrl; union { struct { uint32_t clkcnt_l : 6; /*In the master mode it must be equal to spi_clkcnt_N. In the slave mode it must be 0. Can be configured in CONF state.*/ uint32_t clkcnt_h : 6; /*In the master mode it must be floor((spi_clkcnt_N+1)/2-1). In the slave mode it must be 0. Can be configured in CONF state.*/ uint32_t clkcnt_n : 6; /*In the master mode it is the divider of spi_clk. So spi_clk frequency is system/(spi_clkdiv_pre+1)/(spi_clkcnt_N+1). Can be configured in CONF state.*/ uint32_t clkdiv_pre : 4; /*In the master mode it is pre-divider of spi_clk. Can be configured in CONF state.*/ uint32_t reserved22 : 9; /*reserved*/ uint32_t clk_equ_sysclk : 1; /*In the master mode 1: spi_clk is eqaul to system 0: spi_clk is divided from system clock. Can be configured in CONF state.*/ }; uint32_t val; } clock; union { struct { uint32_t doutdin : 1; /*Set the bit to enable full duplex communication. 1: enable 0: disable. Can be configured in CONF state.*/ uint32_t reserved1 : 2; /*reserved*/ uint32_t qpi_mode : 1; /*Both for master mode and slave mode. 1: spi controller is in QPI mode. 0: others. Can be configured in CONF state.*/ uint32_t opi_mode : 1; /*Just for master mode. 1: spi controller is in OPI mode (all in 8-b-m). 0: others. Can be configured in CONF state.*/ uint32_t tsck_i_edge : 1; /*In the slave mode, this bit can be used to change the polarity of tsck. 0: tsck = spi_ck_i. 1:tsck = !spi_ck_i.*/ uint32_t cs_hold : 1; /*spi cs keep low when spi is in done phase. 1: enable 0: disable. Can be configured in CONF state.*/ uint32_t cs_setup : 1; /*spi cs is enable when spi is in prepare phase. 1: enable 0: disable. Can be configured in CONF state.*/ uint32_t rsck_i_edge : 1; /*In the slave mode, this bit can be used to change the polarity of rsck. 0: rsck = !spi_ck_i. 1:rsck = spi_ck_i.*/ uint32_t ck_out_edge : 1; /*the bit combined with spi_mosi_delay_mode bits to set mosi signal delay mode. Can be configured in CONF state.*/ uint32_t reserved10 : 2; /*reserved*/ uint32_t fwrite_dual : 1; /*In the write operations read-data phase apply 2 signals. Can be configured in CONF state.*/ uint32_t fwrite_quad : 1; /*In the write operations read-data phase apply 4 signals. Can be configured in CONF state.*/ uint32_t fwrite_oct : 1; /*In the write operations read-data phase apply 8 signals. Can be configured in CONF state.*/ uint32_t usr_conf_nxt : 1; /*1: Enable the DMA CONF phase of next seg-trans operation, which means seg-trans will continue. 0: The seg-trans will end after the current SPI seg-trans or this is not seg-trans mode. Can be configured in CONF state.*/ uint32_t reserved16 : 1; /*reserved*/ uint32_t sio : 1; /*Set the bit to enable 3-line half duplex communication mosi and miso signals share the same pin. 1: enable 0: disable. Can be configured in CONF state.*/ uint32_t reserved18 : 6; /*reserved*/ uint32_t usr_miso_highpart : 1; /*read-data phase only access to high-part of the buffer spi_w8~spi_w15. 1: enable 0: disable. Can be configured in CONF state.*/ uint32_t usr_mosi_highpart : 1; /*write-data phase only access to high-part of the buffer spi_w8~spi_w15. 1: enable 0: disable. Can be configured in CONF state.*/ uint32_t usr_dummy_idle : 1; /*spi clock is disable in dummy phase when the bit is enable. Can be configured in CONF state.*/ uint32_t usr_mosi : 1; /*This bit enable the write-data phase of an operation. Can be configured in CONF state.*/ uint32_t usr_miso : 1; /*This bit enable the read-data phase of an operation. Can be configured in CONF state.*/ uint32_t usr_dummy : 1; /*This bit enable the dummy phase of an operation. Can be configured in CONF state.*/ uint32_t usr_addr : 1; /*This bit enable the address phase of an operation. Can be configured in CONF state.*/ uint32_t usr_command : 1; /*This bit enable the command phase of an operation. Can be configured in CONF state.*/ }; uint32_t val; } user; union { struct { uint32_t usr_dummy_cyclelen : 8; /*The length in spi_clk cycles of dummy phase. The register value shall be (cycle_num-1). Can be configured in CONF state.*/ uint32_t reserved8 : 8; /*reserved*/ uint32_t mst_wfull_err_end_en : 1; /*1: SPI transfer is ended when SPI RX AFIFO wfull error is valid in GP-SPI master FD/HD-mode. 0: SPI transfer is not ended when SPI RX AFIFO wfull error is valid in GP-SPI master FD/HD-mode.*/ uint32_t cs_setup_time : 5; /*(cycles+1) of prepare phase by spi clock this bits are combined with spi_cs_setup bit. Can be configured in CONF state.*/ uint32_t cs_hold_time : 5; /*delay cycles of cs pin by spi clock this bits are combined with spi_cs_hold bit. Can be configured in CONF state.*/ uint32_t usr_addr_bitlen : 5; /*The length in bits of address phase. The register value shall be (bit_num-1). Can be configured in CONF state.*/ }; uint32_t val; } user1; union { struct { uint32_t usr_command_value : 16; /*The value of command. Can be configured in CONF state.*/ uint32_t reserved16 : 11; /*reserved*/ uint32_t mst_rempty_err_end_en : 1; /*1: SPI transfer is ended when SPI TX AFIFO read empty error is valid in GP-SPI master FD/HD-mode. 0: SPI transfer is not ended when SPI TX AFIFO read empty error is valid in GP-SPI master FD/HD-mode.*/ uint32_t usr_command_bitlen : 4; /*The length in bits of command phase. The register value shall be (bit_num-1). Can be configured in CONF state.*/ }; uint32_t val; } user2; union { struct { uint32_t ms_data_bitlen : 18; /*The value of these bits is the configured SPI transmission data bit length in master mode DMA controlled transfer or CPU controlled transfer. The value is also the configured bit length in slave mode DMA RX controlled transfer. The register value shall be (bit_num-1). Can be configured in CONF state.*/ uint32_t reserved18 : 14; /*reserved*/ }; uint32_t val; } ms_dlen; union { struct { uint32_t cs0_dis : 1; /*SPI CS$n pin enable, 1: disable CS$n, 0: spi_cs$n signal is from/to CS$n pin. Can be configured in CONF state.*/ uint32_t cs1_dis : 1; /*SPI CS$n pin enable, 1: disable CS$n, 0: spi_cs$n signal is from/to CS$n pin. Can be configured in CONF state.*/ uint32_t cs2_dis : 1; /*SPI CS$n pin enable, 1: disable CS$n, 0: spi_cs$n signal is from/to CS$n pin. Can be configured in CONF state.*/ uint32_t cs3_dis : 1; /*SPI CS$n pin enable, 1: disable CS$n, 0: spi_cs$n signal is from/to CS$n pin. Can be configured in CONF state.*/ uint32_t cs4_dis : 1; /*SPI CS$n pin enable, 1: disable CS$n, 0: spi_cs$n signal is from/to CS$n pin. Can be configured in CONF state.*/ uint32_t cs5_dis : 1; /*SPI CS$n pin enable, 1: disable CS$n, 0: spi_cs$n signal is from/to CS$n pin. Can be configured in CONF state.*/ uint32_t ck_dis : 1; /*1: spi clk out disable, 0: spi clk out enable. Can be configured in CONF state.*/ uint32_t master_cs_pol : 6; /*In the master mode the bits are the polarity of spi cs line, the value is equivalent to spi_cs ^ spi_master_cs_pol. Can be configured in CONF state.*/ uint32_t reserved13 : 3; /*reserved*/ uint32_t clk_data_dtr_en : 1; /*1: SPI master DTR mode is applied to SPI clk, data and spi_dqs. 0: SPI master DTR mode is only applied to spi_dqs. This bit should be used with bit 17/18/19. */ uint32_t data_dtr_en : 1; /*1: SPI clk and data of SPI_DOUT and SPI_DIN state are in DTR mode, including master 1/2/4/8-bm. 0: SPI clk and data of SPI_DOUT and SPI_DIN state are in STR mode. Can be configured in CONF state.*/ uint32_t addr_dtr_en : 1; /*1: SPI clk and data of SPI_SEND_ADDR state are in DTR mode, including master 1/2/4/8-bm. 0: SPI clk and data of SPI_SEND_ADDR state are in STR mode. Can be configured in CONF state.*/ uint32_t cmd_dtr_en : 1; /*1: SPI clk and data of SPI_SEND_CMD state are in DTR mode, including master 1/2/4/8-bm. 0: SPI clk and data of SPI_SEND_CMD state are in STR mode. Can be configured in CONF state.*/ uint32_t reserved20 : 3; /*reserved*/ uint32_t slave_cs_pol : 1; /*spi slave input cs polarity select. 1: inv 0: not change. Can be configured in CONF state.*/ uint32_t dqs_idle_edge : 1; /*The default value of spi_dqs. Can be configured in CONF state.*/ uint32_t reserved25 : 4; /*reserved*/ uint32_t ck_idle_edge : 1; /*1: spi clk line is high when idle 0: spi clk line is low when idle. Can be configured in CONF state.*/ uint32_t cs_keep_active : 1; /*spi cs line keep low when the bit is set. Can be configured in CONF state.*/ uint32_t quad_din_pin_swap : 1; /*1: SPI quad input swap enable, swap FSPID with FSPIQ, swap FSPIWP with FSPIHD. 0: spi quad input swap disable. Can be configured in CONF state.*/ }; uint32_t val; } misc; union { struct { uint32_t din0_mode : 2; /*the input signals are delayed by SPI module clock cycles, 0: input without delayed, 1: input with the posedge of clk_apb,2 input with the negedge of clk_apb, 3: input with the spi_clk. Can be configured in CONF state.*/ uint32_t din1_mode : 2; /*the input signals are delayed by SPI module clock cycles, 0: input without delayed, 1: input with the posedge of clk_apb,2 input with the negedge of clk_apb, 3: input with the spi_clk. Can be configured in CONF state.*/ uint32_t din2_mode : 2; /*the input signals are delayed by SPI module clock cycles, 0: input without delayed, 1: input with the posedge of clk_apb,2 input with the negedge of clk_apb, 3: input with the spi_clk. Can be configured in CONF state.*/ uint32_t din3_mode : 2; /*the input signals are delayed by SPI module clock cycles, 0: input without delayed, 1: input with the posedge of clk_apb,2 input with the negedge of clk_apb, 3: input with the spi_clk. Can be configured in CONF state.*/ uint32_t din4_mode : 2; /*the input signals are delayed by SPI module clock cycles, 0: input without delayed, 1: input with the posedge of clk_apb,2 input with the negedge of clk_apb, 3: input with the spi_clk. Can be configured in CONF state.*/ uint32_t din5_mode : 2; /*the input signals are delayed by SPI module clock cycles, 0: input without delayed, 1: input with the posedge of clk_apb,2 input with the negedge of clk_apb, 3: input with the spi_clk. Can be configured in CONF state.*/ uint32_t din6_mode : 2; /*the input signals are delayed by SPI module clock cycles, 0: input without delayed, 1: input with the posedge of clk_apb,2 input with the negedge of clk_apb, 3: input with the spi_clk. Can be configured in CONF state.*/ uint32_t din7_mode : 2; /*the input signals are delayed by SPI module clock cycles, 0: input without delayed, 1: input with the posedge of clk_apb,2 input with the negedge of clk_apb, 3: input with the spi_clk. Can be configured in CONF state.*/ uint32_t timing_hclk_active : 1; /*1:enable hclk in SPI input timing module. 0: disable it. Can be configured in CONF state.*/ uint32_t reserved17 : 15; /*reserved*/ }; uint32_t val; } din_mode; union { struct { uint32_t din0_num : 2; /*the input signals are delayed by SPI module clock cycles, 0: delayed by 1 cycle, 1: delayed by 2 cycles,... Can be configured in CONF state.*/ uint32_t din1_num : 2; /*the input signals are delayed by SPI module clock cycles, 0: delayed by 1 cycle, 1: delayed by 2 cycles,... Can be configured in CONF state.*/ uint32_t din2_num : 2; /*the input signals are delayed by SPI module clock cycles, 0: delayed by 1 cycle, 1: delayed by 2 cycles,... Can be configured in CONF state.*/ uint32_t din3_num : 2; /*the input signals are delayed by SPI module clock cycles, 0: delayed by 1 cycle, 1: delayed by 2 cycles,... Can be configured in CONF state.*/ uint32_t din4_num : 2; /*the input signals are delayed by SPI module clock cycles, 0: delayed by 1 cycle, 1: delayed by 2 cycles,... Can be configured in CONF state.*/ uint32_t din5_num : 2; /*the input signals are delayed by SPI module clock cycles, 0: delayed by 1 cycle, 1: delayed by 2 cycles,... Can be configured in CONF state.*/ uint32_t din6_num : 2; /*the input signals are delayed by SPI module clock cycles, 0: delayed by 1 cycle, 1: delayed by 2 cycles,... Can be configured in CONF state.*/ uint32_t din7_num : 2; /*the input signals are delayed by SPI module clock cycles, 0: delayed by 1 cycle, 1: delayed by 2 cycles,... Can be configured in CONF state.*/ uint32_t reserved16 : 16; /*reserved*/ }; uint32_t val; } din_num; union { struct { uint32_t dout0_mode : 1; /*The output signal $n is delayed by the SPI module clock, 0: output without delayed, 1: output delay for a SPI module clock cycle at its negative edge. Can be configured in CONF state.*/ uint32_t dout1_mode : 1; /*The output signal $n is delayed by the SPI module clock, 0: output without delayed, 1: output delay for a SPI module clock cycle at its negative edge. Can be configured in CONF state.*/ uint32_t dout2_mode : 1; /*The output signal $n is delayed by the SPI module clock, 0: output without delayed, 1: output delay for a SPI module clock cycle at its negative edge. Can be configured in CONF state.*/ uint32_t dout3_mode : 1; /*The output signal $n is delayed by the SPI module clock, 0: output without delayed, 1: output delay for a SPI module clock cycle at its negative edge. Can be configured in CONF state.*/ uint32_t dout4_mode : 1; /*The output signal $n is delayed by the SPI module clock, 0: output without delayed, 1: output delay for a SPI module clock cycle at its negative edge. Can be configured in CONF state.*/ uint32_t dout5_mode : 1; /*The output signal $n is delayed by the SPI module clock, 0: output without delayed, 1: output delay for a SPI module clock cycle at its negative edge. Can be configured in CONF state.*/ uint32_t dout6_mode : 1; /*The output signal $n is delayed by the SPI module clock, 0: output without delayed, 1: output delay for a SPI module clock cycle at its negative edge. Can be configured in CONF state.*/ uint32_t dout7_mode : 1; /*The output signal $n is delayed by the SPI module clock, 0: output without delayed, 1: output delay for a SPI module clock cycle at its negative edge. Can be configured in CONF state.*/ uint32_t d_dqs_mode : 1; /*The output signal SPI_DQS is delayed by the SPI module clock, 0: output without delayed, 1: output delay for a SPI module clock cycle at its negative edge. Can be configured in CONF state.*/ uint32_t reserved9 : 23; /*reserved*/ }; uint32_t val; } dout_mode; union { struct { uint32_t outfifo_empty : 1; /*Records the status of DMA TX FIFO. 1: DMA TX FIFO is not ready for sending data. 0: DMA TX FIFO is ready for sending data.*/ uint32_t infifo_full : 1; /*Records the status of DMA RX FIFO. 1: DMA RX FIFO is not ready for receiving data. 0: DMA RX FIFO is ready for receiving data.*/ uint32_t reserved2 : 16; /*reserved*/ uint32_t dma_seg_trans_en : 1; /*Enable dma segment transfer in spi dma half slave mode. 1: enable. 0: disable.*/ uint32_t rx_seg_trans_clr_en : 1; /*1: spi_dma_infifo_full_vld is cleared by spi slave cmd 5. 0: spi_dma_infifo_full_vld is cleared by spi_trans_done.*/ uint32_t tx_seg_trans_clr_en : 1; /*1: spi_dma_outfifo_empty_vld is cleared by spi slave cmd 6. 0: spi_dma_outfifo_empty_vld is cleared by spi_trans_done.*/ uint32_t rx_eof_en : 1; /*1: spi_dma_inlink_eof is set when the number of dma pushed data bytes is equal to the value of spi_slv/mst_dma_rd_bytelen[19:0] in spi dma transition. 0: spi_dma_inlink_eof is set by spi_trans_done in non-seg-trans or spi_dma_seg_trans_done in seg-trans.*/ uint32_t reserved22 : 5; /*reserved*/ uint32_t dma_rx_ena : 1; /*Set this bit to enable SPI DMA controlled receive data mode.*/ uint32_t dma_tx_ena : 1; /*Set this bit to enable SPI DMA controlled send data mode.*/ uint32_t rx_afifo_rst : 1; /*Set this bit to reset RX AFIFO, which is used to receive data in SPI master and slave mode transfer.*/ uint32_t buf_afifo_rst : 1; /*Set this bit to reset BUF TX AFIFO, which is used send data out in SPI slave CPU controlled mode transfer and master mode transfer.*/ uint32_t dma_afifo_rst : 1; /*Set this bit to reset DMA TX AFIFO, which is used to send data out in SPI slave DMA controlled mode transfer.*/ }; uint32_t val; } dma_conf; union { struct { uint32_t infifo_full_err : 1; /*The enable bit for SPI_DMA_INFIFO_FULL_ERR_INT interrupt.*/ uint32_t outfifo_empty_err : 1; /*The enable bit for SPI_DMA_OUTFIFO_EMPTY_ERR_INT interrupt.*/ uint32_t ex_qpi : 1; /*The enable bit for SPI slave Ex_QPI interrupt.*/ uint32_t en_qpi : 1; /*The enable bit for SPI slave En_QPI interrupt.*/ uint32_t cmd7 : 1; /*The enable bit for SPI slave CMD7 interrupt.*/ uint32_t cmd8 : 1; /*The enable bit for SPI slave CMD8 interrupt.*/ uint32_t cmd9 : 1; /*The enable bit for SPI slave CMD9 interrupt.*/ uint32_t cmda : 1; /*The enable bit for SPI slave CMDA interrupt.*/ uint32_t rd_dma_done : 1; /*The enable bit for SPI_SLV_RD_DMA_DONE_INT interrupt.*/ uint32_t wr_dma_done : 1; /*The enable bit for SPI_SLV_WR_DMA_DONE_INT interrupt.*/ uint32_t rd_buf_done : 1; /*The enable bit for SPI_SLV_RD_BUF_DONE_INT interrupt.*/ uint32_t wr_buf_done : 1; /*The enable bit for SPI_SLV_WR_BUF_DONE_INT interrupt.*/ uint32_t trans_done : 1; /*The enable bit for SPI_TRANS_DONE_INT interrupt.*/ uint32_t dma_seg_trans_done : 1; /*The enable bit for SPI_DMA_SEG_TRANS_DONE_INT interrupt.*/ uint32_t seg_magic_err : 1; /*The enable bit for SPI_SEG_MAGIC_ERR_INT interrupt.*/ uint32_t buf_addr_err : 1; /*The enable bit for SPI_SLV_BUF_ADDR_ERR_INT interrupt.*/ uint32_t cmd_err : 1; /*The enable bit for SPI_SLV_CMD_ERR_INT interrupt.*/ uint32_t mst_rx_afifo_wfull_err : 1; /*The enable bit for SPI_MST_RX_AFIFO_WFULL_ERR_INT interrupt.*/ uint32_t mst_tx_afifo_rempty_err : 1; /*The enable bit for SPI_MST_TX_AFIFO_REMPTY_ERR_INT interrupt.*/ uint32_t app2 : 1; /*The enable bit for SPI_APP2_INT interrupt.*/ uint32_t app1 : 1; /*The enable bit for SPI_APP1_INT interrupt.*/ uint32_t reserved21 : 11; /*reserved*/ }; uint32_t val; } dma_int_ena; union { struct { uint32_t infifo_full_err : 1; /*The clear bit for SPI_DMA_INFIFO_FULL_ERR_INT interrupt.*/ uint32_t outfifo_empty_err : 1; /*The clear bit for SPI_DMA_OUTFIFO_EMPTY_ERR_INT interrupt.*/ uint32_t ex_qpi : 1; /*The clear bit for SPI slave Ex_QPI interrupt.*/ uint32_t en_qpi : 1; /*The clear bit for SPI slave En_QPI interrupt.*/ uint32_t cmd7 : 1; /*The clear bit for SPI slave CMD7 interrupt.*/ uint32_t cmd8 : 1; /*The clear bit for SPI slave CMD8 interrupt.*/ uint32_t cmd9 : 1; /*The clear bit for SPI slave CMD9 interrupt.*/ uint32_t cmda : 1; /*The clear bit for SPI slave CMDA interrupt.*/ uint32_t rd_dma_done : 1; /*The clear bit for SPI_SLV_RD_DMA_DONE_INT interrupt.*/ uint32_t wr_dma_done : 1; /*The clear bit for SPI_SLV_WR_DMA_DONE_INT interrupt.*/ uint32_t rd_buf_done : 1; /*The clear bit for SPI_SLV_RD_BUF_DONE_INT interrupt.*/ uint32_t wr_buf_done : 1; /*The clear bit for SPI_SLV_WR_BUF_DONE_INT interrupt.*/ uint32_t trans_done : 1; /*The clear bit for SPI_TRANS_DONE_INT interrupt.*/ uint32_t dma_seg_trans_done : 1; /*The clear bit for SPI_DMA_SEG_TRANS_DONE_INT interrupt.*/ uint32_t seg_magic_err : 1; /*The clear bit for SPI_SEG_MAGIC_ERR_INT interrupt.*/ uint32_t buf_addr_err : 1; /*The clear bit for SPI_SLV_BUF_ADDR_ERR_INT interrupt.*/ uint32_t cmd_err : 1; /*The clear bit for SPI_SLV_CMD_ERR_INT interrupt.*/ uint32_t mst_rx_afifo_wfull_err : 1; /*The clear bit for SPI_MST_RX_AFIFO_WFULL_ERR_INT interrupt.*/ uint32_t mst_tx_afifo_rempty_err : 1; /*The clear bit for SPI_MST_TX_AFIFO_REMPTY_ERR_INT interrupt.*/ uint32_t app2 : 1; /*The clear bit for SPI_APP2_INT interrupt.*/ uint32_t app1 : 1; /*The clear bit for SPI_APP1_INT interrupt.*/ uint32_t reserved21 : 11; /*reserved*/ }; uint32_t val; } dma_int_clr; union { struct { uint32_t infifo_full_err : 1; /*1: The current data rate of DMA Rx is smaller than that of SPI, which will lose the receive data. 0: Others. */ uint32_t outfifo_empty_err : 1; /*1: The current data rate of DMA TX is smaller than that of SPI. SPI will stop in master mode and send out all 0 in slave mode. 0: Others. */ uint32_t ex_qpi : 1; /*The raw bit for SPI slave Ex_QPI interrupt. 1: SPI slave mode Ex_QPI transmission is ended. 0: Others.*/ uint32_t en_qpi : 1; /*The raw bit for SPI slave En_QPI interrupt. 1: SPI slave mode En_QPI transmission is ended. 0: Others.*/ uint32_t cmd7 : 1; /*The raw bit for SPI slave CMD7 interrupt. 1: SPI slave mode CMD7 transmission is ended. 0: Others.*/ uint32_t cmd8 : 1; /*The raw bit for SPI slave CMD8 interrupt. 1: SPI slave mode CMD8 transmission is ended. 0: Others.*/ uint32_t cmd9 : 1; /*The raw bit for SPI slave CMD9 interrupt. 1: SPI slave mode CMD9 transmission is ended. 0: Others.*/ uint32_t cmda : 1; /*The raw bit for SPI slave CMDA interrupt. 1: SPI slave mode CMDA transmission is ended. 0: Others.*/ uint32_t rd_dma_done : 1; /*The raw bit for SPI_SLV_RD_DMA_DONE_INT interrupt. 1: SPI slave mode Rd_DMA transmission is ended. 0: Others.*/ uint32_t wr_dma_done : 1; /*The raw bit for SPI_SLV_WR_DMA_DONE_INT interrupt. 1: SPI slave mode Wr_DMA transmission is ended. 0: Others.*/ uint32_t rd_buf_done : 1; /*The raw bit for SPI_SLV_RD_BUF_DONE_INT interrupt. 1: SPI slave mode Rd_BUF transmission is ended. 0: Others.*/ uint32_t wr_buf_done : 1; /*The raw bit for SPI_SLV_WR_BUF_DONE_INT interrupt. 1: SPI slave mode Wr_BUF transmission is ended. 0: Others.*/ uint32_t trans_done : 1; /*The raw bit for SPI_TRANS_DONE_INT interrupt. 1: SPI master mode transmission is ended. 0: others.*/ uint32_t dma_seg_trans_done : 1; /*The raw bit for SPI_DMA_SEG_TRANS_DONE_INT interrupt. 1: spi master DMA full-duplex/half-duplex seg-conf-trans ends or slave half-duplex seg-trans ends. And data has been pushed to corresponding memory. 0: seg-conf-trans or seg-trans is not ended or not occurred. */ uint32_t seg_magic_err : 1; /*The raw bit for SPI_SEG_MAGIC_ERR_INT interrupt. 1: The magic value in CONF buffer is error in the DMA seg-conf-trans. 0: others.*/ uint32_t buf_addr_err : 1; /*The raw bit for SPI_SLV_BUF_ADDR_ERR_INT interrupt. 1: The accessing data address of the current SPI slave mode CPU controlled FD, Wr_BUF or Rd_BUF transmission is bigger than 63. 0: Others.*/ uint32_t cmd_err : 1; /*The raw bit for SPI_SLV_CMD_ERR_INT interrupt. 1: The slave command value in the current SPI slave HD mode transmission is not supported. 0: Others.*/ uint32_t mst_rx_afifo_wfull_err : 1; /*The raw bit for SPI_MST_RX_AFIFO_WFULL_ERR_INT interrupt. 1: There is a RX AFIFO write-full error when SPI inputs data in master mode. 0: Others.*/ uint32_t mst_tx_afifo_rempty_err : 1; /*The raw bit for SPI_MST_TX_AFIFO_REMPTY_ERR_INT interrupt. 1: There is a TX BUF AFIFO read-empty error when SPI outputs data in master mode. 0: Others.*/ uint32_t app2 : 1; /*The raw bit for SPI_APP2_INT interrupt. The value is only controlled by software.*/ uint32_t app1 : 1; /*The raw bit for SPI_APP1_INT interrupt. The value is only controlled by software.*/ uint32_t reserved21 : 11; /*reserved*/ }; uint32_t val; } dma_int_raw; union { struct { uint32_t infifo_full_err : 1; /*The status bit for SPI_DMA_INFIFO_FULL_ERR_INT interrupt.*/ uint32_t outfifo_empty_err : 1; /*The status bit for SPI_DMA_OUTFIFO_EMPTY_ERR_INT interrupt.*/ uint32_t ex_qpi : 1; /*The status bit for SPI slave Ex_QPI interrupt.*/ uint32_t en_qpi : 1; /*The status bit for SPI slave En_QPI interrupt.*/ uint32_t cmd7 : 1; /*The status bit for SPI slave CMD7 interrupt.*/ uint32_t cmd8 : 1; /*The status bit for SPI slave CMD8 interrupt.*/ uint32_t cmd9 : 1; /*The status bit for SPI slave CMD9 interrupt.*/ uint32_t cmda : 1; /*The status bit for SPI slave CMDA interrupt.*/ uint32_t rd_dma_done : 1; /*The status bit for SPI_SLV_RD_DMA_DONE_INT interrupt.*/ uint32_t wr_dma_done : 1; /*The status bit for SPI_SLV_WR_DMA_DONE_INT interrupt.*/ uint32_t rd_buf_done : 1; /*The status bit for SPI_SLV_RD_BUF_DONE_INT interrupt.*/ uint32_t wr_buf_done : 1; /*The status bit for SPI_SLV_WR_BUF_DONE_INT interrupt.*/ uint32_t trans_done : 1; /*The status bit for SPI_TRANS_DONE_INT interrupt.*/ uint32_t dma_seg_trans_done : 1; /*The status bit for SPI_DMA_SEG_TRANS_DONE_INT interrupt.*/ uint32_t seg_magic_err : 1; /*The status bit for SPI_SEG_MAGIC_ERR_INT interrupt.*/ uint32_t buf_addr_err : 1; /*The status bit for SPI_SLV_BUF_ADDR_ERR_INT interrupt.*/ uint32_t cmd_err : 1; /*The status bit for SPI_SLV_CMD_ERR_INT interrupt.*/ uint32_t mst_rx_afifo_wfull_err : 1; /*The status bit for SPI_MST_RX_AFIFO_WFULL_ERR_INT interrupt.*/ uint32_t mst_tx_afifo_rempty_err : 1; /*The status bit for SPI_MST_TX_AFIFO_REMPTY_ERR_INT interrupt.*/ uint32_t app2 : 1; /*The status bit for SPI_APP2_INT interrupt.*/ uint32_t app1 : 1; /*The status bit for SPI_APP1_INT interrupt.*/ uint32_t reserved21 : 11; /*reserved*/ }; uint32_t val; } dma_int_st; union { struct { uint32_t infifo_full_err_int_set : 1; /*The software set bit for SPI_DMA_INFIFO_FULL_ERR_INT interrupt.*/ uint32_t outfifo_empty_err_int_set : 1; /*The software set bit for SPI_DMA_OUTFIFO_EMPTY_ERR_INT interrupt.*/ uint32_t ex_qpi_int_set : 1; /*The software set bit for SPI slave Ex_QPI interrupt.*/ uint32_t en_qpi_int_set : 1; /*The software set bit for SPI slave En_QPI interrupt.*/ uint32_t cmd7_int_set : 1; /*The software set bit for SPI slave CMD7 interrupt.*/ uint32_t cmd8_int_set : 1; /*The software set bit for SPI slave CMD8 interrupt.*/ uint32_t cmd9_int_set : 1; /*The software set bit for SPI slave CMD9 interrupt.*/ uint32_t cmda_int_set : 1; /*The software set bit for SPI slave CMDA interrupt.*/ uint32_t rd_dma_done_int_set : 1; /*The software set bit for SPI_SLV_RD_DMA_DONE_INT interrupt.*/ uint32_t wr_dma_done_int_set : 1; /*The software set bit for SPI_SLV_WR_DMA_DONE_INT interrupt.*/ uint32_t rd_buf_done_int_set : 1; /*The software set bit for SPI_SLV_RD_BUF_DONE_INT interrupt.*/ uint32_t wr_buf_done_int_set : 1; /*The software set bit for SPI_SLV_WR_BUF_DONE_INT interrupt.*/ uint32_t trans_done_int_set : 1; /*The software set bit for SPI_TRANS_DONE_INT interrupt.*/ uint32_t dma_seg_trans_done_int_set : 1; /*The software set bit for SPI_DMA_SEG_TRANS_DONE_INT interrupt.*/ uint32_t seg_magic_err_int_set : 1; /*The software set bit for SPI_SEG_MAGIC_ERR_INT interrupt.*/ uint32_t buf_addr_err_int_set : 1; /*The software set bit for SPI_SLV_BUF_ADDR_ERR_INT interrupt.*/ uint32_t cmd_err_int_set : 1; /*The software set bit for SPI_SLV_CMD_ERR_INT interrupt.*/ uint32_t mst_rx_afifo_wfull_err_int_set: 1; /*The software set bit for SPI_MST_RX_AFIFO_WFULL_ERR_INT interrupt.*/ uint32_t mst_tx_afifo_rempty_err_int_set: 1; /*The software set bit for SPI_MST_TX_AFIFO_REMPTY_ERR_INT interrupt.*/ uint32_t app2_int_set : 1; /*The software set bit for SPI_APP2_INT interrupt.*/ uint32_t app1_int_set : 1; /*The software set bit for SPI_APP1_INT interrupt.*/ uint32_t reserved21 : 11; /*reserved*/ }; uint32_t val; } dma_int_set; uint32_t reserved_48; uint32_t reserved_4c; uint32_t reserved_50; uint32_t reserved_54; uint32_t reserved_58; uint32_t reserved_5c; uint32_t reserved_60; uint32_t reserved_64; uint32_t reserved_68; uint32_t reserved_6c; uint32_t reserved_70; uint32_t reserved_74; uint32_t reserved_78; uint32_t reserved_7c; uint32_t reserved_80; uint32_t reserved_84; uint32_t reserved_88; uint32_t reserved_8c; uint32_t reserved_90; uint32_t reserved_94; uint32_t data_buf[16]; /*SPI CPU-controlled buffer0*/ uint32_t reserved_d8; uint32_t reserved_dc; union { struct { uint32_t clk_mode : 2; /*SPI clock mode bits. 0: SPI clock is off when CS inactive 1: SPI clock is delayed one cycle after CS inactive 2: SPI clock is delayed two cycles after CS inactive 3: SPI clock is alwasy on. Can be configured in CONF state.*/ uint32_t clk_mode_13 : 1; /*{CPOL, CPHA},1: support spi clk mode 1 and 3, first edge output data B[0]/B[7]. 0: support spi clk mode 0 and 2, first edge output data B[1]/B[6].*/ uint32_t rsck_data_out : 1; /*It saves half a cycle when tsck is the same as rsck. 1: output data at rsck posedge 0: output data at tsck posedge */ uint32_t reserved4 : 4; /*reserved*/ uint32_t rddma_bitlen_en : 1; /*1: SPI_SLV_DATA_BITLEN stores data bit length of master-read-slave data length in DMA controlled mode(Rd_DMA). 0: others*/ uint32_t wrdma_bitlen_en : 1; /*1: SPI_SLV_DATA_BITLEN stores data bit length of master-write-to-slave data length in DMA controlled mode(Wr_DMA). 0: others*/ uint32_t rdbuf_bitlen_en : 1; /*1: SPI_SLV_DATA_BITLEN stores data bit length of master-read-slave data length in CPU controlled mode(Rd_BUF). 0: others*/ uint32_t wrbuf_bitlen_en : 1; /*1: SPI_SLV_DATA_BITLEN stores data bit length of master-write-to-slave data length in CPU controlled mode(Wr_BUF). 0: others*/ uint32_t reserved12 : 10; /*reserved*/ uint32_t dma_seg_magic_value : 4; /*The magic value of BM table in master DMA seg-trans.*/ uint32_t slave_mode : 1; /*Set SPI work mode. 1: slave mode 0: master mode.*/ uint32_t soft_reset : 1; /*Software reset enable, reset the spi clock line cs line and data lines. Can be configured in CONF state.*/ uint32_t usr_conf : 1; /*1: Enable the DMA CONF phase of current seg-trans operation, which means seg-trans will start. 0: This is not seg-trans mode.*/ uint32_t reserved29 : 3; /*reserved*/ }; uint32_t val; } slave; union { struct { uint32_t data_bitlen : 18; /*The transferred data bit length in SPI slave FD and HD mode. */ uint32_t last_command : 8; /*In the slave mode it is the value of command.*/ uint32_t last_addr : 6; /*In the slave mode it is the value of address.*/ }; uint32_t val; } slave1; union { struct { uint32_t clk_en : 1; /*Set this bit to enable clk gate*/ uint32_t mst_clk_active : 1; /*Set this bit to power on the SPI module clock.*/ uint32_t mst_clk_sel : 1; /*This bit is used to select SPI module clock source in master mode. 1: PLL_CLK_80M. 0: XTAL CLK.*/ uint32_t reserved3 : 29; /*reserved*/ }; uint32_t val; } clk_gate; uint32_t reserved_ec; union { struct { uint32_t date : 28; /*SPI register version.*/ uint32_t reserved28 : 4; /*reserved*/ }; uint32_t val; } date; } spi_dev_t; extern spi_dev_t GPSPI2; extern spi_dev_t GPSPI3; #ifdef __cplusplus } #endif #endif /*_SOC_SPI_STRUCT_H_ */ ```
Origin is the debut studio album by American death metal band Origin. The album has a rawer and less technically proficient sound compared to their more technical later albums. The album was the first death metal album released on a label to incorporate the use of gravity blasts, although the band's original drummer George Fluke used the gravity blast on their 1998 EP A Coming into Existence. This is the Origin's only album without bassist Mike Flores, and their only album with bassist Doug Williams and singer Mark Manning. Track listing Personnel Origin Mark Manning – lead vocals Paul Ryan – guitars, vocals Jeremy Turner – guitars, vocals Doug Williams – bass John Longstreth – drums Production Produced by Chris Wisco Mastered by Dave Shirk Photography by Liz Caldwell Origin (band) albums 2000 debut albums Relapse Records albums
Osage (2016 population: ) is a village in the Canadian province of Saskatchewan within the Rural Municipality of Fillmore No. 96 and Census Division No. 2. The village is located on Highway 33, that runs south-east from Regina to Stoughton. The village has a grain elevator, post office, service station, and a two-sheet natural ice curling rink. Children from the area attend school in Fillmore, 13 km away. Osage celebrated its centennial in 2006. Osage Wildlife Refuge is about 3 miles south-east of the village. History Osage incorporated as a village on May 8, 1906. Demographics In the 2021 Census of Population conducted by Statistics Canada, Osage had a population of living in of its total private dwellings, a change of from its 2016 population of . With a land area of , it had a population density of in 2021. In the 2016 Census of Population, the Village of Osage recorded a population of living in of its total private dwellings, a change from its 2011 population of . With a land area of , it had a population density of in 2016. See also List of communities in Saskatchewan Villages of Saskatchewan References Villages in Saskatchewan Fillmore No. 96, Saskatchewan Division No. 2, Saskatchewan
The 173rd Pennsylvania House of Representatives District is located in Philadelphia County and includes the following areas: Ward 41 [PART, Divisions 04, 06, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 25 and 26] Ward 55 [PART, Divisions 04, 05, 07, 26 and 28] Ward 65 Ward 66 [PART, Divisions 02, 07, 11, 17, 24, 29, 30, 32, 35, 36, 37, 42, 43, 44 and 45] Representatives References Government of Philadelphia 173
```yaml runtime: nodejs description: A minimal Policy Pack for AWS using TypeScript. ```
```shell #!/bin/bash -e INSTANCE_NAME="tplmap-java" IMAGE_NAME="tplmap-java-img" PORT=15003 echo "Exposed testing APIs: path_to_url path_to_url path_to_url path_to_url " cd "$( dirname "${BASH_SOURCE[0]}" )"/../ docker rm -f $INSTANCE_NAME || echo '' docker build -f docker-envs/Dockerfile.java . -t $IMAGE_NAME docker run --rm --name $INSTANCE_NAME -p $PORT:$PORT -d $IMAGE_NAME # Wait until the http server is serving until $(curl --output /dev/null --silent --head path_to_url do sleep 1 done sleep 1 # Launch Java engines tests docker exec -it $INSTANCE_NAME python -m unittest discover -v . 'test_java_*.py' docker stop $INSTANCE_NAME ```
```python from prowler.lib.check.models import Check, Check_Report_AWS from prowler.providers.aws.services.iam.iam_client import iam_client from prowler.providers.aws.services.iam.lib.policy import check_full_service_access critical_service = "kms" class iam_inline_policy_no_full_access_to_kms(Check): def execute(self): findings = [] for policy in iam_client.policies: if policy.type == "Inline": report = Check_Report_AWS(self.metadata()) report.region = iam_client.region report.resource_arn = policy.arn report.resource_id = policy.name report.resource_tags = policy.tags report.status = "PASS" report.status_extended = f"Inline Policy {policy.name} does not allow '{critical_service}:*' privileges." if policy.document and check_full_service_access( critical_service, policy.document ): report.status = "FAIL" report.status_extended = f"Inline Policy {policy.name} allows '{critical_service}:*' privileges." findings.append(report) return findings ```
```haskell {-# LANGUAGE AllowAmbiguousTypes #-} {-# LANGUAGE CPP #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators #-} {-# OPTIONS_GHC -fno-warn-orphans #-} -- | Pure functions for operations with transactions module Pos.Client.Txp.Util ( -- * Tx creation params InputSelectionPolicy (..) , defaultInputSelectionPolicy , PendingAddresses (..) -- * Tx creation , TxCreateMode , makeAbstractTx , makeUnsignedAbstractTx , runTxCreator , makePubKeyTx , makeMPubKeyTx , makeMPubKeyTxAddrs , makeRedemptionTx , createGenericTx , createTx , createMTx , createUnsignedTx , createRedemptionTx -- * Fees logic , txToLinearFee , computeTxFee -- * Additional datatypes , TxError (..) , isCheckedTxError , isNotEnoughMoneyTxError , TxOutputs , TxWithSpendings ) where import Universum hiding (keys, tail) import Control.Lens (makeLenses, (%=), (.=)) import Control.Monad.Except (ExceptT, MonadError (throwError), runExceptT) import Data.Default (Default (..)) import Data.Fixed (Fixed, HasResolution) import qualified Data.HashSet as HS import Data.List (partition, tail) import qualified Data.List.NonEmpty as NE import qualified Data.Map as M import Data.Semigroup (Semigroup) import qualified Data.Semigroup as S import qualified Data.Set as Set import Data.Traversable (for) import qualified Data.Vector as V import Formatting (bprint, build, sformat, stext, (%)) import qualified Formatting.Buildable import Serokell.Util (listJson) import Pos.Binary (biSize) import Pos.Chain.Genesis as Genesis (Config (..), configEpochSlots) import Pos.Chain.Txp (Tx (..), TxAux (..), TxFee (..), TxIn (..), TxInWitness (..), TxOut (..), TxOutAux (..), TxSigData (..), Utxo) import Pos.Chain.Update (bvdTxFeePolicy) import Pos.Client.Txp.Addresses (MonadAddresses (..)) import Pos.Core (Address, Coin, SlotCount, TxFeePolicy (..), TxSizeLinear (..), calculateTxSizeLinear, coinToInteger, integerToCoin, isRedeemAddress, mkCoin, sumCoins, txSizeLinearMinValue, unsafeIntegerToCoin, unsafeSubCoin) import Pos.Core.Attributes (mkAttributes) import Pos.Core.NetworkMagic (NetworkMagic, makeNetworkMagic) import Pos.Crypto (ProtocolMagic, RedeemSecretKey, SafeSigner, SignTag (SignRedeemTx, SignTx), deterministicKeyGen, fakeSigner, hash, redeemSign, redeemToPublic, safeSign, safeToPublic) import Pos.DB (MonadGState, gsAdoptedBVData) import Pos.Infra.Util.LogSafe (SecureLog, buildUnsecure) import Test.QuickCheck (Arbitrary (..), elements) type TxInputs = NonEmpty TxIn type TxOwnedInputs owner = NonEmpty (owner, TxIn) type TxOutputs = NonEmpty TxOutAux type TxWithSpendings = (TxAux, NonEmpty TxOut) -- | List of addresses which are refered by at least one output of transaction -- which is not yet confirmed i.e. detected in block. newtype PendingAddresses = PendingAddresses (Set Address) #if MIN_VERSION_base(4,9,0) deriving (Show, Semigroup, Monoid) #else deriving (Show, Monoid) #endif instance Buildable TxWithSpendings where build (txAux, neTxOut) = bprint ("("%build%", "%listJson%")") txAux neTxOut -- This datatype corresponds to raw transaction. data TxRaw = TxRaw { trInputs :: !(TxOwnedInputs TxOut) -- ^ Selected inputs from Utxo , trOutputs :: !TxOutputs -- ^ Output addresses of tx (without remaining output) , trRemainingMoney :: !Coin -- ^ Remaining money } deriving (Show) data TxError = NotEnoughMoney !Coin -- ^ Parameter: how much more money is needed | NotEnoughAllowedMoney !Coin -- ^ Parameter: how much more money is needed and which available input addresses -- are present in output addresses set | FailedToStabilize -- ^ Parameter: how many attempts were performed | OutputIsRedeem !Address -- ^ One of the tx outputs is a redemption address | RedemptionDepleted -- ^ Redemption address has already been used | SafeSignerNotFound !Address -- ^ The safe signer at the specified address was not found | SignedTxNotBase16Format -- ^ Externally-signed transaction is not in Base16-format. | SignedTxUnableToDecode !Text -- ^ Externally-signed transaction cannot be decoded. | SignedTxSignatureNotBase16Format -- ^ Signature of externally-signed transaction is not in Base16-format. | SignedTxInvalidSignature !Text -- ^ Signature of externally-signed transaction is invalid. | GeneralTxError !Text -- ^ Parameter: description of the problem deriving (Show, Generic) isNotEnoughMoneyTxError :: TxError -> Bool isNotEnoughMoneyTxError = \case NotEnoughMoney{} -> True NotEnoughAllowedMoney{} -> True _ -> False instance Exception TxError instance Buildable TxError where build (NotEnoughMoney coin) = bprint ("Transaction creation error: not enough money, need "%build%" more") coin build (NotEnoughAllowedMoney coin) = bprint ("Transaction creation error: not enough money on addresses which are not included \ \in output addresses set, need "%build%" more") coin build FailedToStabilize = "Transaction creation error: failed to stabilize fee" build (OutputIsRedeem addr) = bprint ("Output address "%build%" is a redemption address") addr build RedemptionDepleted = bprint "Redemption address balance is 0" build (SafeSignerNotFound addr) = bprint ("Address "%build%" has no associated safe signer") addr build SignedTxNotBase16Format = "Externally-signed transaction is not in Base16-format." build (SignedTxUnableToDecode msg) = bprint ("Unable to decode externally-signed transaction: "%stext) msg build SignedTxSignatureNotBase16Format = "Signature of externally-signed transaction is not in Base16-format." build (SignedTxInvalidSignature msg) = bprint ("Signature of externally-signed transaction is invalid: "%stext) msg build (GeneralTxError msg) = bprint ("Transaction creation error: "%stext) msg isCheckedTxError :: TxError -> Bool isCheckedTxError = \case NotEnoughMoney{} -> True NotEnoughAllowedMoney{} -> True FailedToStabilize{} -> False OutputIsRedeem{} -> True RedemptionDepleted{} -> True SafeSignerNotFound{} -> True SignedTxNotBase16Format{} -> True SignedTxUnableToDecode{} -> True SignedTxSignatureNotBase16Format{} -> True SignedTxInvalidSignature{} -> True GeneralTxError{} -> True your_sha256_hash------------- -- Tx creation your_sha256_hash------------- -- | Specifies the way Utxos are going to be grouped. data InputSelectionPolicy = OptimizeForSecurity -- ^ Spend everything from the address | OptimizeForHighThroughput -- ^ No grouping, prefer confirmed addresses deriving (Show, Eq, Enum, Bounded, Generic) instance Buildable InputSelectionPolicy where build = \case OptimizeForSecurity -> "securely" OptimizeForHighThroughput -> "high throughput" instance Buildable (SecureLog InputSelectionPolicy) where build = buildUnsecure instance Default InputSelectionPolicy where def = defaultInputSelectionPolicy defaultInputSelectionPolicy :: InputSelectionPolicy defaultInputSelectionPolicy = OptimizeForSecurity instance Arbitrary InputSelectionPolicy where arbitrary = elements [minBound .. maxBound] -- | Mode for creating transactions. We need to know fee policy. type TxDistrMode m = MonadGState m type TxCreateMode m = ( TxDistrMode m , MonadAddresses m ) -- | Generic function to create an unsigned transaction, given desired inputs and outputs makeUnsignedAbstractTx :: TxOwnedInputs owner -> TxOutputs -> Tx makeUnsignedAbstractTx txInputs outputs = tx where tx = UnsafeTx (map snd txInputs) txOutputs txAttributes txOutputs = map toaOut outputs txAttributes = mkAttributes () -- | Generic function to create a transaction, given desired inputs, -- outputs and a way to construct witness from signature data makeAbstractTx :: (owner -> TxSigData -> Either e TxInWitness) -> TxOwnedInputs owner -> TxOutputs -> Either e TxAux makeAbstractTx mkWit txInputs outputs = do let tx = makeUnsignedAbstractTx txInputs outputs txSigData = TxSigData { txSigTxHash = hash tx } txWitness <- V.fromList . toList <$> for txInputs (\(addr, _) -> mkWit addr txSigData) pure $ TxAux tx txWitness -- | Datatype which contains all data from DB which is necessary -- to create transactions data TxCreatorData = TxCreatorData { _tcdFeePolicy :: !TxFeePolicy , _tcdInputSelectionPolicy :: !InputSelectionPolicy } makeLenses ''TxCreatorData -- | Transformer which holds data necessary for creating transactions type TxCreator m = ReaderT TxCreatorData (ExceptT TxError m) runTxCreator :: TxDistrMode m => InputSelectionPolicy -> TxCreator m a -> m (Either TxError a) runTxCreator inputSelectionPolicy action = runExceptT $ do _tcdFeePolicy <- bvdTxFeePolicy <$> gsAdoptedBVData let _tcdInputSelectionPolicy = inputSelectionPolicy runReaderT action TxCreatorData{..} -- | Like 'makePubKeyTx', but allows usage of different signers makeMPubKeyTx :: ProtocolMagic -> (owner -> Either e SafeSigner) -> TxOwnedInputs owner -> TxOutputs -> Either e TxAux makeMPubKeyTx pm getSs = makeAbstractTx mkWit where mkWit addr sigData = getSs addr <&> \ss -> PkWitness (safeToPublic ss) (safeSign pm SignTx ss sigData) -- | More specific version of 'makeMPubKeyTx' for convenience makeMPubKeyTxAddrs :: ProtocolMagic -> (Address -> Either e SafeSigner) -> TxOwnedInputs TxOut -> TxOutputs -> Either e TxAux makeMPubKeyTxAddrs pm hdwSigners = makeMPubKeyTx pm getSigner where getSigner (TxOut addr _) = hdwSigners addr -- | Makes a transaction which use P2PKH addresses as a source makePubKeyTx :: ProtocolMagic -> SafeSigner -> TxInputs -> TxOutputs -> TxAux makePubKeyTx pm ss txInputs txOutputs = either absurd identity $ makeMPubKeyTx pm (\_ -> Right ss) (map ((), ) txInputs) txOutputs makeRedemptionTx :: ProtocolMagic -> RedeemSecretKey -> TxInputs -> TxOutputs -> TxAux makeRedemptionTx pm rsk txInputs txOutputs = either absurd identity $ makeAbstractTx mkWit (map ((), ) txInputs) txOutputs where rpk = redeemToPublic rsk mkWit _ sigData = Right $ RedeemWitness rpk (redeemSign pm SignRedeemTx rsk sigData) -- | Helper for summing values of `TxOutAux`s sumTxOutCoins :: NonEmpty TxOutAux -> Integer sumTxOutCoins = sumCoins . map (txOutValue . toaOut) integerToFee :: MonadError TxError m => Integer -> m TxFee integerToFee = either (throwError . invalidFee) (pure . TxFee) . integerToCoin where invalidFee reason = GeneralTxError ("Invalid fee: " <> reason) fixedToFee :: (MonadError TxError m, HasResolution a) => Fixed a -> m TxFee fixedToFee = integerToFee . ceiling type FlatUtxo = [(TxIn, TxOutAux)] type InputPickingWay = Utxo -> TxOutputs -> Coin -> Either TxError FlatUtxo -- TODO [CSM-526] Scatter on submodules your_sha256_hash--------- -- Simple inputs picking your_sha256_hash--------- data InputPickerState = InputPickerState { _ipsMoneyLeft :: !Coin , _ipsAvailableOutputs :: !FlatUtxo } makeLenses ''InputPickerState type InputPicker = StateT InputPickerState (Either TxError) plainInputPicker :: PendingAddresses -> InputPickingWay plainInputPicker (PendingAddresses pendingAddrs) utxo _outputs moneyToSpent = evalStateT (pickInputs []) (InputPickerState moneyToSpent sortedUnspent) where onlyConfirmedInputs :: Set.Set Address -> (TxIn, TxOutAux) -> Bool onlyConfirmedInputs addrs (_, (TxOutAux (TxOut addr _))) = not (addr `Set.member` addrs) -- -- NOTE (adinapoli, kantp) Under certain circumstances, it's still possible for the `confirmed` set -- to be exhausted and for the utxo to be picked from the `unconfirmed`, effectively allowing for the -- old "slow" behaviour which could create linear chains of dependent transactions which can then be -- submitted to relays and possibly fail to be accepted if they arrive in an out-of-order fashion, -- effectively piling up in the mempool of the edgenode and in need to be resubmitted. -- However, this policy significantly reduce the likelyhood of such edge case to happen, as for exchanges -- the `confirmed` set would tend to be quite big anyway. -- We should revisit such policy and its implications during a proper rewrite. -- -- NOTE (adinapoli, kantp) There is another subtle corner case which involves such partitioning; it's now -- in theory (by absurd reasoning) for the `confirmed` set to contain only dust, which would yes involve a -- "high throughput" Tx but also a quite large one, bringing it closely to the "Toil too large" error -- (The same malady the @OptimiseForSecurity@ policy was affected by). sortedUnspent = confirmed ++ unconfirmed (confirmed, unconfirmed) = -- Give precedence to "confirmed" addresses. partition (onlyConfirmedInputs pendingAddrs) (sortOn (Down . txOutValue . toaOut . snd) (M.toList utxo)) pickInputs :: FlatUtxo -> InputPicker FlatUtxo pickInputs inps = do moneyLeft <- use ipsMoneyLeft if moneyLeft == mkCoin 0 then return inps else do mNextOut <- fmap fst . uncons <$> use ipsAvailableOutputs case mNextOut of Nothing -> throwError $ NotEnoughMoney moneyLeft Just inp@(_, (TxOutAux (TxOut {..}))) -> do ipsMoneyLeft .= unsafeSubCoin moneyLeft (min txOutValue moneyLeft) ipsAvailableOutputs %= tail pickInputs (inp : inps) your_sha256_hash--------- -- Grouped inputs picking your_sha256_hash--------- -- | Group of unspent transaction outputs which belongs -- to one address data UtxoGroup = UtxoGroup { ugAddr :: !Address , ugTotalMoney :: !Coin , ugUtxo :: !(NonEmpty (TxIn, TxOutAux)) } deriving (Show) -- | Group unspent outputs by addresses groupUtxo :: Utxo -> [UtxoGroup] groupUtxo utxo = map mkUtxoGroup preUtxoGroups where futxo = M.toList utxo preUtxoGroups = NE.groupAllWith (txOutAddress . toaOut . snd) futxo mkUtxoGroup ugUtxo@(sample :| _) = let ugAddr = txOutAddress . toaOut . snd $ sample ugTotalMoney = unsafeIntegerToCoin . sumTxOutCoins $ map snd ugUtxo in UtxoGroup {..} data GroupedInputPickerState = GroupedInputPickerState { _gipsMoneyLeft :: !Coin , _gipsAvailableOutputGroups :: ![UtxoGroup] } makeLenses ''GroupedInputPickerState type GroupedInputPicker = StateT GroupedInputPickerState (Either TxError) groupedInputPicker :: InputPickingWay groupedInputPicker utxo outputs moneyToSpent = evalStateT (pickInputs []) (GroupedInputPickerState moneyToSpent sortedGroups) where gUtxo = groupUtxo utxo outputAddrsSet = foldl' (flip HS.insert) mempty $ map (txOutAddress . toaOut) outputs isOutputAddr = flip HS.member outputAddrsSet sortedGroups = sortOn (Down . ugTotalMoney) $ filter (not . isOutputAddr . ugAddr) gUtxo disallowedInputGroups = filter (isOutputAddr . ugAddr) gUtxo disallowedMoney = sumCoins $ map ugTotalMoney disallowedInputGroups pickInputs :: FlatUtxo -> GroupedInputPicker FlatUtxo pickInputs inps = do moneyLeft <- use gipsMoneyLeft if moneyLeft == mkCoin 0 then return inps else do mNextOutGroup <- fmap fst . uncons <$> use gipsAvailableOutputGroups case mNextOutGroup of Nothing -> if disallowedMoney >= coinToInteger moneyLeft then throwError $ NotEnoughAllowedMoney moneyLeft else throwError $ NotEnoughMoney moneyLeft Just UtxoGroup {..} -> do gipsMoneyLeft .= unsafeSubCoin moneyLeft (min ugTotalMoney moneyLeft) gipsAvailableOutputGroups %= tail pickInputs (toList ugUtxo ++ inps) your_sha256_hash--------- -- Further logic your_sha256_hash--------- -- | Given filtered Utxo, desired outputs and fee size, -- prepare correct inputs and outputs for transaction -- (and tell how much to send to remaining address) prepareTxRawWithPicker :: Monad m => InputPickingWay -> Utxo -> TxOutputs -> TxFee -> TxCreator m TxRaw prepareTxRawWithPicker inputPicker utxo outputs (TxFee fee) = do mapM_ (checkIsNotRedeemAddr . txOutAddress . toaOut) outputs totalMoney <- sumTxOuts outputs when (totalMoney == mkCoin 0) $ throwError $ GeneralTxError "Attempted to send 0 money" moneyToSpent <- case integerToCoin (sumCoins [totalMoney, fee]) of -- we don't care about exact number if user desires all money in the world Left _ -> throwError $ NotEnoughMoney maxBound Right c -> pure c futxo <- either throwError pure $ inputPicker utxo outputs moneyToSpent case nonEmpty futxo of Nothing -> throwError $ GeneralTxError "Failed to prepare inputs!" Just inputsNE -> do totalTxAmount <- sumTxOuts $ map snd inputsNE let trInputs = map formTxInputs inputsNE trRemainingMoney = totalTxAmount `unsafeSubCoin` moneyToSpent let trOutputs = outputs pure TxRaw {..} where sumTxOuts = either (throwError . GeneralTxError) pure . integerToCoin . sumTxOutCoins formTxInputs (inp, TxOutAux txOut) = (txOut, inp) checkIsNotRedeemAddr outAddr = when (isRedeemAddress outAddr) $ throwError $ OutputIsRedeem outAddr prepareTxRaw :: Monad m => PendingAddresses -> Utxo -> TxOutputs -> TxFee -> TxCreator m TxRaw prepareTxRaw pendingTx utxo outputs fee = do inputSelectionPolicy <- view tcdInputSelectionPolicy let inputPicker = case inputSelectionPolicy of OptimizeForHighThroughput -> plainInputPicker pendingTx OptimizeForSecurity -> groupedInputPicker prepareTxRawWithPicker inputPicker utxo outputs fee -- Returns set of tx outputs including change output (if it's necessary) mkOutputsWithRem :: TxCreateMode m => NetworkMagic -> SlotCount -> AddrData m -> TxRaw -> TxCreator m TxOutputs mkOutputsWithRem nm epochSlots addrData TxRaw {..} | trRemainingMoney == mkCoin 0 = pure trOutputs | otherwise = do changeAddr <- lift . lift $ getNewAddress nm epochSlots addrData let txOut = TxOut changeAddr trRemainingMoney pure $ TxOutAux txOut :| toList trOutputs mkOutputsWithRemForUnsignedTx :: TxRaw -> Address -> TxOutputs mkOutputsWithRemForUnsignedTx TxRaw {..} changeAddress | trRemainingMoney == mkCoin 0 = trOutputs | otherwise = -- Change is here, so we have to use provided 'changeAddress' for it. -- It is assumed that 'changeAddress' was created (as usual HD-address) -- by external wallet and stored in the corresponding wallet. let txOutForChange = TxOut changeAddress trRemainingMoney in TxOutAux txOutForChange :| toList trOutputs prepareInpsOuts :: TxCreateMode m => Genesis.Config -> PendingAddresses -> Utxo -> TxOutputs -> AddrData m -> TxCreator m (TxOwnedInputs TxOut, TxOutputs) prepareInpsOuts genesisConfig pendingTx utxo outputs addrData = do txRaw@TxRaw {..} <- prepareTxWithFee genesisConfig pendingTx utxo outputs let nm = makeNetworkMagic $ configProtocolMagic genesisConfig outputsWithRem <- mkOutputsWithRem nm (configEpochSlots genesisConfig) addrData txRaw pure (trInputs, outputsWithRem) prepareInpsOutsForUnsignedTx :: TxCreateMode m => Genesis.Config -> PendingAddresses -> Utxo -> TxOutputs -> Address -> TxCreator m (TxOwnedInputs TxOut, TxOutputs) prepareInpsOutsForUnsignedTx genesisConfig pendingTx utxo outputs changeAddress = do txRaw@TxRaw {..} <- prepareTxWithFee genesisConfig pendingTx utxo outputs let outputsWithRem = mkOutputsWithRemForUnsignedTx txRaw changeAddress pure (trInputs, outputsWithRem) createGenericTx :: TxCreateMode m => Genesis.Config -> PendingAddresses -> (TxOwnedInputs TxOut -> TxOutputs -> Either TxError TxAux) -> InputSelectionPolicy -> Utxo -> TxOutputs -> AddrData m -> m (Either TxError TxWithSpendings) createGenericTx genesisConfig pendingTx creator inputSelectionPolicy utxo outputs addrData = runTxCreator inputSelectionPolicy $ do (inps, outs) <- prepareInpsOuts genesisConfig pendingTx utxo outputs addrData txAux <- either throwError return $ creator inps outs pure (txAux, map fst inps) createGenericTxSingle :: TxCreateMode m => Genesis.Config -> PendingAddresses -> (TxInputs -> TxOutputs -> Either TxError TxAux) -> InputSelectionPolicy -> Utxo -> TxOutputs -> AddrData m -> m (Either TxError TxWithSpendings) createGenericTxSingle genesisConfig pendingTx creator = createGenericTx genesisConfig pendingTx (creator . map snd) -- | Make a multi-transaction using given secret key and info for outputs. -- Currently used for HD wallets only, thus `HDAddressPayload` is required createMTx :: TxCreateMode m => Genesis.Config -> PendingAddresses -> InputSelectionPolicy -> Utxo -> (Address -> Maybe SafeSigner) -> TxOutputs -> AddrData m -> m (Either TxError TxWithSpendings) createMTx genesisConfig pendingTx groupInputs utxo hdwSigners outputs addrData = createGenericTx genesisConfig pendingTx (makeMPubKeyTxAddrs (configProtocolMagic genesisConfig) getSigner) groupInputs utxo outputs addrData where getSigner address = note (SafeSignerNotFound address) $ hdwSigners address -- | Make a multi-transaction using given secret key and info for -- outputs. createTx :: TxCreateMode m => Genesis.Config -> PendingAddresses -> Utxo -> SafeSigner -> TxOutputs -> AddrData m -> m (Either TxError TxWithSpendings) createTx genesisConfig pendingTx utxo ss outputs addrData = createGenericTxSingle genesisConfig pendingTx (\i o -> Right $ makePubKeyTx (configProtocolMagic genesisConfig) ss i o) OptimizeForHighThroughput utxo outputs addrData -- | Create unsigned Tx, it will be signed by external wallet. createUnsignedTx :: TxCreateMode m => Genesis.Config -> PendingAddresses -> InputSelectionPolicy -> Utxo -> TxOutputs -> Address -> m (Either TxError (Tx,NonEmpty TxOut)) createUnsignedTx genesisConfig pendingTx selectionPolicy utxo outputs changeAddress = runTxCreator selectionPolicy $ do (inps, outs) <- prepareInpsOutsForUnsignedTx genesisConfig pendingTx utxo outputs changeAddress let tx = makeUnsignedAbstractTx inps outs pure (tx, map fst inps) -- | Make a transaction for retrieving money from redemption address createRedemptionTx :: TxCreateMode m => ProtocolMagic -> Utxo -> RedeemSecretKey -> TxOutputs -> m (Either TxError TxAux) createRedemptionTx pm utxo rsk outputs = runTxCreator whetherGroupedInputs $ do TxRaw {..} <- prepareTxRaw mempty utxo outputs (TxFee $ mkCoin 0) let bareInputs = snd <$> trInputs pure $ makeRedemptionTx pm rsk bareInputs trOutputs where -- always spend redeem address fully whetherGroupedInputs = OptimizeForSecurity your_sha256_hash------------- -- Fees logic your_sha256_hash------------- -- | Helper function to reduce code duplication withLinearFeePolicy :: Monad m => (TxSizeLinear -> TxCreator m a) -> TxCreator m a withLinearFeePolicy action = view tcdFeePolicy >>= \case TxFeePolicyUnknown w _ -> throwError $ GeneralTxError $ sformat ("Unknown fee policy, tag: "%build) w TxFeePolicyTxSizeLinear linearPolicy -> action linearPolicy -- | Prepare transaction considering fees prepareTxWithFee :: MonadAddresses m => Genesis.Config -> PendingAddresses -> Utxo -> TxOutputs -> TxCreator m TxRaw prepareTxWithFee genesisConfig pendingTx utxo outputs = withLinearFeePolicy $ \linearPolicy -> stabilizeTxFee genesisConfig pendingTx linearPolicy utxo outputs -- | Compute, how much fees we should pay to send money to given -- outputs computeTxFee :: MonadAddresses m => Genesis.Config -> PendingAddresses -> Utxo -> TxOutputs -> TxCreator m TxFee computeTxFee genesisConfig pendingTx utxo outputs = do TxRaw {..} <- prepareTxWithFee genesisConfig pendingTx utxo outputs let outAmount = sumTxOutCoins trOutputs inAmount = sumCoins $ map (txOutValue . fst) trInputs remaining = coinToInteger trRemainingMoney integerToFee $ inAmount - outAmount - remaining -- | Search such spendings that transaction's fee would be stable. -- -- Stabilisation is simple iterative algorithm which performs -- @ fee <- minFee( tx(fee) ) @ per iteration step. -- It does *not* guarantee to find minimal possible fee, but is expected -- to converge in O(|utxo|) steps, where @ utxo @ a set of addresses -- encountered in utxo. -- -- Alogrithm consists of two stages: -- -- 1. Iterate until @ fee_{i+1} <= fee_i @. -- It can last for no more than @ ~2 * |utxo| @ iterations. Really, let's -- consider following cases: -- -- * Number of used input addresses increased at i-th iteration, i.e. -- @ |inputs(tx(fee_i))| > |inputs(tx(fee_{i-1}))| @, -- which can happen no more than |utxo| times. -- -- * Number of tx input addresses stayed the same, i.e. -- @ |inputs(tx(fee_i))| = |inputs(tx(fee_{i-1}))| @. -- -- If @ fee_i <= fee_{i-1} @ then stage 1 has already finished. Otherwise, -- since inputs and outputs are picked deterministically, inputs and -- outputs for @ tx(fee_i) @ and @ tx(fee_{i-1}) @ are the same and they -- differ only in remainder amount. Since we assume @ fee_i > fee_{i-1} @, -- then @ rem(tx(fee_i)) < rem(tx(fee_{i-1})) @ by evaluation method. -- It leads to @ size(tx(fee_i)) <= size(tx(fee_{i-1})) @ and thus -- @ minFee(tx(fee_i)) <= minFee(tx(fee_{i-1})) @, -- i.e. @ fee_{i+1} <= fee_{i} @. -- -- * Number if input addresses decreased. -- It may occur when fee increases more than on current remainder. -- In this case fee on next iteration would indeed decrease, because -- size of single input is much greater than any fluctuations of -- remainder size (in bytes). -- -- In total, case (1) occurs no more than |utxo| times, case (2) is always -- followed by case (1), and case (3) terminates current stage immediatelly, -- thus stage 1 takes no more than, approximatelly, @ 2 * |utxo| @ iterations. -- -- 2. Once we find such @ i @ for which @ fee_{i+1} <= fee_i @, we can return -- @ tx(fee_i) @ as answer, but it may contain overestimated fee (which is still -- valid). -- To possibly find better solutions we iterate for several times more. stabilizeTxFee :: forall m . MonadAddresses m => Genesis.Config -> PendingAddresses -> TxSizeLinear -> Utxo -> TxOutputs -> TxCreator m TxRaw stabilizeTxFee genesisConfig pendingTx linearPolicy utxo outputs = do minFee <- fixedToFee (txSizeLinearMinValue linearPolicy) mtx <- stabilizeTxFeeDo (False, firstStageAttempts) minFee case mtx of Nothing -> throwError FailedToStabilize Just tx -> pure $ tx & \(S.Min (S.Arg _ txRaw)) -> txRaw where firstStageAttempts = 2 * length utxo + 5 secondStageAttempts = 10 stabilizeTxFeeDo :: (Bool, Int) -> TxFee -> TxCreator m $ Maybe (S.ArgMin TxFee TxRaw) stabilizeTxFeeDo (_, 0) _ = pure Nothing stabilizeTxFeeDo (isSecondStage, attempt) expectedFee = do txRaw <- prepareTxRaw pendingTx utxo outputs expectedFee let pm = configProtocolMagic genesisConfig nm = makeNetworkMagic pm fakeChangeAddr <- lift . lift $ getFakeChangeAddress nm $ configEpochSlots genesisConfig txMinFee <- txToLinearFee linearPolicy $ createFakeTxFromRawTx pm fakeChangeAddr txRaw let txRawWithFee = S.Min $ S.Arg expectedFee txRaw let iterateDo step = stabilizeTxFeeDo step txMinFee case expectedFee `compare` txMinFee of LT -> iterateDo (isSecondStage, attempt - 1) EQ -> pure (Just txRawWithFee) GT -> do let nextStep = (True, if isSecondStage then attempt - 1 else secondStageAttempts) futureRes <- iterateDo nextStep return $! Just txRawWithFee S.<> futureRes -- | Calcucate linear fee from transaction's size txToLinearFee :: MonadError TxError m => TxSizeLinear -> TxAux -> m TxFee txToLinearFee linearPolicy = fixedToFee . calculateTxSizeLinear linearPolicy . biSize @TxAux -- | Function is used to calculate intermediate fee amounts -- when forming a transaction createFakeTxFromRawTx :: ProtocolMagic -> Address -> TxRaw -> TxAux createFakeTxFromRawTx pm fakeAddr TxRaw{..} = let fakeOutMB | trRemainingMoney == mkCoin 0 = Nothing | otherwise = Just $ TxOutAux (TxOut fakeAddr trRemainingMoney) txOutsWithRem = maybe trOutputs (\remTx -> remTx :| toList trOutputs) fakeOutMB -- We create fake signers instead of safe signers, -- because safe signer requires passphrase -- but we don't want to reveal our passphrase to compute fee. -- Fee depends on size of tx in bytes, sign of a tx has the fixed size -- so we can use arbitrary signer. (_, fakeSK) = deterministicKeyGen "patakbardaqskovoroda228pva1488kk" in either absurd identity $ makeMPubKeyTxAddrs pm (\_ -> Right $ fakeSigner fakeSK) trInputs txOutsWithRem ```
```xml export default function page() { return 'page' } ```
Yannick Kerlogot (born 12 May 1970) is a French politician of La République En Marche! (LREM) who has been serving as a member of the French National Assembly since the 2017 elections, representing the department of Côtes-d'Armor. Political career In parliament, Kerlogot serves on the Committee on Cultural Affairs and Education. Political positions In July 2019, Kerlogot decided not to align with his parliamentary group's majority and became one of 52 LREM members who abstained from a vote on the French ratification of the European Union’s Comprehensive Economic and Trade Agreement (CETA) with Canada. See also 2017 French legislative election References 1970 births Living people Deputies of the 15th National Assembly of the French Fifth Republic Renaissance (French political party) politicians Politicians from Saint-Brieuc University of Rennes alumni
The 1932 Philadelphia Phillies season was the 48th in franchise history. They finished fourth in the National League with a 78–76 record. It was the Phillies' only winning season between 1917 and 1949. Don Hurst led the National League this season with 143 runs batted in. Regular season On August 15, 1932, the Phillies defeated a team of Grand Rapids All-Stars 2 to 0 at Ramona Park in Grand Rapids, Michigan in a mid season exhibition. Season standings Record vs. opponents Roster Player stats Batting Starters by position Note: Pos = Position; G = Games played; AB = At bats; H = Hits; Avg. = Batting average; HR = Home runs; RBI = Runs batted in Other batters Note: G = Games played; AB = At bats; H = Hits; Avg. = Batting average; HR = Home runs; RBI = Runs batted in Pitching Starting pitchers Note: G = Games pitched; IP = Innings pitched; W = Wins; L = Losses; ERA = Earned run average; SO = Strikeouts Other pitchers Note: G = Games pitched; IP = Innings pitched; W = Wins; L = Losses; ERA = Earned run average; SO = Strikeouts Relief pitchers Note: G = Games pitched; W = Wins; L = Losses; SV = Saves; ERA = Earned run average; SO = Strikeouts Farm system Notes References 1932 Philadelphia Phillies season at Baseball Reference Philadelphia Phillies seasons Philadelphia Phillies season Philly
```html <!-- path_to_url Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <section class="tb-widget-settings" [formGroup]="switchControlWidgetSettingsForm" fxLayout="column"> <fieldset class="fields-group"> <legend class="group-title" translate>widgets.rpc.common-settings</legend> <mat-form-field fxFlex class="mat-block"> <mat-label translate>widgets.rpc.switch-title</mat-label> <input matInput formControlName="title"> </mat-form-field> <mat-slide-toggle formControlName="showOnOffLabels" class="slide-block"> {{ 'widgets.rpc.show-on-off-labels' | translate }} </mat-slide-toggle> </fieldset> <tb-switch-rpc-settings [aliasController]="aliasController" [targetDevice]="targetDevice" formControlName="switchRpcSettings"> </tb-switch-rpc-settings> </section> ```
Alvarezsaurus (; "Alvarez's lizard") is a genus of alvarezsaurid dinosaur from the Late Cretaceous, living in Argentina approximately 86 - 83 million years ago. It was a small dinosaur, measuring long and weighing approximately . It was found in the Bajo de la Carpa Formation and was named by paleontologist José Bonaparte in 1991 after the historian Don Gregorio Alvarez. The type species is A. calvoi. Description Alvarezsaurus was a bipedal theropod. Like other lightweight theropods, it had a long tail, and its leg structure suggests that it was a fast runner. The most proximal elements of Alvarezsaurus caudal vertebrae exhibited ventrally sharp centra and the transverse processes of these vertebrae were sub-triangular and laterodistally directed, features seen in other alvarezsaurids like Shuvuuia. Spinal processes were entirely absent or poorly developed, and each caudal vertebra supported short prezygapophyses. The scapula was visibly curved and proportionally smaller than those of other alvarezsaurids, and unlike its relatives Alvarezsaurus did not have a fused astragalus and calcaneum. It was unique in that its metatarsal III was its longest, followed by an unusually long metatarsal IV. It may have been insectivorous. Classification Alvarezsaurus is considered basal to better-known members of its family, such as Mononykus and Shuvuuia. It has been alternately classified with both non-avian theropod dinosaurs and early birds, but a move of the alvarezsaurids to be recognized as more closely related to neornithine birds proved controversial despite being supported by earlier studies. It was once believed that the Patagonian alvarezsaur taxa were the most basal of their family, but the discovery of a more basal member, Haplocheirus, disproved that when its fossils were discovered in China. References External links Natural History Museum, London Alvarezsaurids Late Cretaceous dinosaurs of South America Fossil taxa described in 1991 Taxa named by José Bonaparte Bajo de la Carpa Formation Cretaceous Argentina
```php <?php namespace PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel; class Constants { // Constants currently used by WeekNum; will eventually be used by WEEKDAY const STARTWEEK_SUNDAY = 1; const STARTWEEK_MONDAY = 2; const STARTWEEK_MONDAY_ALT = 11; const STARTWEEK_TUESDAY = 12; const STARTWEEK_WEDNESDAY = 13; const STARTWEEK_THURSDAY = 14; const STARTWEEK_FRIDAY = 15; const STARTWEEK_SATURDAY = 16; const STARTWEEK_SUNDAY_ALT = 17; const DOW_SUNDAY = 1; const DOW_MONDAY = 2; const DOW_TUESDAY = 3; const DOW_WEDNESDAY = 4; const DOW_THURSDAY = 5; const DOW_FRIDAY = 6; const DOW_SATURDAY = 7; const STARTWEEK_MONDAY_ISO = 21; const METHODARR = [ self::STARTWEEK_SUNDAY => self::DOW_SUNDAY, self::DOW_MONDAY, self::STARTWEEK_MONDAY_ALT => self::DOW_MONDAY, self::DOW_TUESDAY, self::DOW_WEDNESDAY, self::DOW_THURSDAY, self::DOW_FRIDAY, self::DOW_SATURDAY, self::DOW_SUNDAY, self::STARTWEEK_MONDAY_ISO => self::STARTWEEK_MONDAY_ISO, ]; } ```
Skalin () is a village in the administrative district of Gmina Gryfice, within Gryfice County, West Pomeranian Voivodeship, in north-western Poland. It lies approximately north-east of Gryfice and north-east of the regional capital Szczecin. The village has a population of 64. Before 1637 the area was part of Duchy of Pomerania. For the history of the region, see History of Pomerania. References Skalin
```kotlin package io.github.detekt.metrics.processors import io.gitlab.arturbosch.detekt.api.Detektion import io.gitlab.arturbosch.detekt.api.ProjectMetric import org.jetbrains.kotlin.psi.KtFile abstract class AbstractProjectMetricProcessor : AbstractProcessor() { val type: String get() = key.toString() override fun onFinish(files: List<KtFile>, result: Detektion) { val count = files .mapNotNull { it.getUserData(key) } .sum() result.add(ProjectMetric(type, count)) } } ```
Shinichi Shudo (首藤信一, Shudō Shin'ichi, born 10 January 1965) is a Japanese former handball player who competed in the 1988 Summer Olympics. References 1965 births Living people Japanese male handball players Olympic handball players for Japan Handball players at the 1988 Summer Olympics Place of birth missing (living people) Asian Games medalists in handball Handball players at the 1986 Asian Games Handball players at the 1990 Asian Games Handball players at the 1994 Asian Games Asian Games silver medalists for Japan Asian Games bronze medalists for Japan Medalists at the 1986 Asian Games Medalists at the 1990 Asian Games Medalists at the 1994 Asian Games 20th-century Japanese people
The poverty industrial complex refers to private corporations taking over social services functions that were formerly provided by government agencies. These private corporations have a vested interest in profit and it is thus debated whether the practice of privatizing social services is hurtful to society, in particular for the poor and vulnerable people that such agencies are supposed to provide services for. History It is believed that the widespread outsourcing of human services formerly provided by government agencies to for-profit companies began with the Personal Responsibility and Work Opportunity Act, signed by president Bill Clinton in 1996. The reform changed a system that formerly provided large sums of direct cash transfers to those in need into taking that federal aid in providing services for vulnerable citizens with it. Those services include child care assistance or work-related activities and refundable tax credits that are essentially a different form of cash transfer. According to the Institute for Research on Poverty, the largest sum is going to a spending category designated as "other", covering a broad range of services such as child welfare, parenting training, substance abuse treatment, domestic violence services and early education. Author Daniel Hatcher criticized that a poverty iron triangle has developed between the federal government, state governments and poverty-industry private contractors. Funds provided by the federal government to help vulnerable populations are misused and funneled towards private companies and in addition to that used by the states, which often have a tight budget, as a mere revenue stream. The contemporary poverty industrial complex The United States Department of Health and Human Services (HHS) is an executive department that provides poverty assistance, with an annual budget of around US$1.2 trillion. One major branch of the HHS is the Office of Community Service (OCS). The OCS provides funds to states, counties and cities that are intended to lift people out of poverty. Daniel Hatcher, author of The Poverty Industry: The Exploitation of America’s Most Vulnerable Citizens, has compared the practice of for-profit companies taking over government functions deemed for the most vulnerable in society as a huge "poverty industrial complex", thus comparing it to the military industrial complex. According to Hatcher, human service agencies and private companies conspire to create a large poverty industry in which billions in federal aid meant to go towards helping the poorest of society is instead taken by private companies. As a result, services provided to those in need become inadequate. Among the private companies providing these services are those known for integral roles in the United States defense industry – like Lockheed Martin and Northrop Grumman. These companies provide services like child support, Medicaid services, health insurance call centers and welfare-to-work programs. As for-profit companies, they turn to consultants that help them figure out how to maximize their bottom line. The company Maximus for example states in advertisements that it has partnered with state, federal and local governments to help provide high-quality health and human service programs in "cost-effective" ways tailored to each community. The company has been in contract with government agencies in different states where it was accused of not paying overtime to employees or not allowing them to work overtime, thus rendering it impossible to respond to emergency situations. Additionally Maximus was accused of misclassifying employees and underpaying employees. Maximus received the nation's first privatized welfare contract in 1987 from Los Angeles County and by 1990 was generating $19 million in revenue, Mother Jones reported in 2019. Maximus has partnered with agencies in 28 US states for 1.7 billion US dollars in services. 40% of the total revenue of the company is generated through state contracts to provide government services. The trials of Gabriel Fernandez The term was mentioned in the 2020 Netflix series The Trials of Gabriel Fernandez, which surrounds the failure of social services and law enforcement to rescue Fernandez from an abusive home. As a result of this oversight, Fernandez's parents tortured the child to death, gaining widespread attention and critique of the child welfare system in the United States. The Netflix series mentions in particular the for-profit company Maximus, which has taken over social service functions formerly handled by government agencies in Los Angeles County. Poverty Inc. The 2014 documentary Poverty Inc. explored the poverty-industrial complex as a multi-billion dollar market of NGOs, multilateral agencies, and for-profit aid contractors turning the most vulnerable members of society into profit generators and misappropriating funds. See also List of industrial complexes Poverty, Inc. Poverty industry References Further reading Daniel L. Hatcher The Poverty Industry- The Exploitation of America's Most Vulnerable Citizens Industrial complexes Industry
Carlo Tancredi Falletti di Barolo (26 October 1782 – 4 September 1838) was an Italian Roman Catholic noble who, with his wife Juliette Colbert, co-founded the Sisters of Saint Anne. Born and raised in Turin, Falletti came from a long line of nobles originally from France. He was admitted into the court of Napoleon Bonaparte where he would meet his future wife whom he married in 1806; he became a count in 1810 and relocated in 1814 to Turin with his wife where he became part of the local council and helped in infrastructure and educational developments. Falletti's work extended to establishing a bank and a shelter for the children of poor workers while in 1835 he tended to victims of a cholera outbreak. His efforts in Turin during the epidemic as well as his other works saw him made a Commander of the Order of Saints Maurice and Lazarus. His beatification process launched in Turin in 1995 and he became titled as a Servant of God. He was titled as Venerable on 21 December 2018 after Pope Francis acknowledged that Falletti had lived a life of heroic virtue; his wife had been named as such back in mid-2015. Life Carlo Ippolito Ernesto Tancredi Maria Falletti was born in his parents' estate in Turin to the Barolo Marquess Ottavio Alessandro Falletti (27.7.1753-30.1.1828) and Paolina d'Oncieu (1760-1838) on 26 October 1782. He was the last descendant of the noble Falletti line. In his childhood he was known for his intelligence as well as his sense of justice coupled with piousness. He was concerned with matters relating to social justice and these traits grew as he aged. But Falletti also possessed a strong will to promote and operate for the good of all. In his childhood he would often travel with his father to France as well as to other places such as the Netherlands and Switzerland. He served Napoleon Bonaparte in his court and it was there in Paris that he met his future spouse Juliette Colbert who hailed from France; he was forced to move to Paris once Napoleon called back the emigrated French aristocrats to his side in order to better support his court. It was soon after his move to Paris that he entered the page corps before becoming a chamberlain in the Emperor's household. Falletti and Juliette became close over time and discovered both shared a deep faith and a desire to improve the lives of others and it was Prince Camillo Borghese who helped to mediate their union and engagement. The two soon married in Paris on 18 August 1806 and lived in Paris (he was named as a count in 1810) until Napoleon's fall in 1814 which forced their relocation to Turin. The couple lived there but would return to Paris from time to time since Juliette's relatives lived in France. The couple remained childless and so decided to adopt the Turin poor as their own seeing that their childlessness was a sign of providence. The pair decided to remain a chaste couple and realized through this came the desire to act as parents to the poor of Turin. In 1816 he was elected to the council of Turin and soon became a noted municipal official. In 1823 the couple received permission from the Kingdom of Piedmont-Sardinia to found a home for former female prisoners and reformed prostitutes. His wife would oversee management for that home while Falletti dedicated himself to his civic duties. During the 1825-26 frigid winter season he distributed bread and firewood to the poor and established both a free school for artisanal crafts and a bank for small savings in 1827. Falletti served as the Mayor of Turin at the request of King Carlo Felice during which time he dedicated himself to secular and religious educational needs of the citizens while taking on projects for the integral development of his people. It was during that timeframe that he founded homes for the children of poor workers and helped to pave new roads and establish new gardens and fountains for Turin's beautification. Falletti also set aside land that became the Cimitero Monumentale in 1828 and set aside a personal plot for himself and his wife. In 1834 he and Juliette co-founded the Sisters of Saint Anne which would be dedicated to education and tending to the poor and those in prisons. In 1835 a cholera epidemic struck the Piedmont area and soon spread to Turin. Falletti organized help for the ill and set about establishing aid centers and infirmaries open to all people who required medical assistance. But he was overcome with fear that Juliette could be infected so allowed her to render aid to widows and children while forbidding her from going near contagious patients. But this fear soon decreased and he allowed her to tend to whomever she wished. Falletti's efforts - civic and during the epidemic - saw him made a commander in the Order of Saints Maurice and Lazarus; but his efforts during the epidemic saw him exhausted and he once confided to Juliette: "I have confidence that Providence will arrange for me to leave first". His health started to decline due to exhaustion and his doctors recommended that he travel to Austria in order to recuperate. But the couple stopped first in Verona hoping the alpine air would aid his recuperation when his condition deteriorated (struck with a violent fever) to the point that Juliette believed it would be best to return to Turin. But his condition had declined to the point that the couple had to stop in Chiari in Brescia where he received the extreme unction before he died during the night on 4 September 1838 in his wife's arms. His funeral was celebrated in the church of San Dalmazio in Turin, with a large crowd of poor people in attendance. Falletti's remains were interred in the plot he had set for himself but were later relocated in 2013 to rest besides the remains of his wife (which had been moved back in 1899) in the Santa Giulia church in Vanchiglia in metropolitan Turin. In 2008 his congregation of Sisters of Sainte Anne counted 1262 religious in 174 houses in places such as Cameroon and the Philippines; the general headquarters of the congregation is located in Rome. Beatification process The Sisters of Saint Anne held their 29th General Chapter in Rome in 1990 and it led to an explicit mention of launching a possible beatification process for the Falletti couple. The current postulator for this cause since 22 February 1992 is the Capuchin friar Paolino Rossi. In March 1993 the postulator approached the Cardinal Archbishop of Turin Giovanni Saldarini asking to introduce the cause; the postulator soon after appointed Sisters Renza Peira and Nelly Grasso as joint vice-postulators and later Sister Felicia Frascogna after Peira died in 1999. The diocesan process was launched in Turin on 8 February 1995 and concluded its business on 21 December 2002; Falletti became titled as a Servant of God on 7 March 1995 when the Congregation for the Causes of Saints issued the official "nihil obstat" (no objections) decree which acted as a green-light for the cause. Falletti became titled as Venerable on 21 December 2018 after Pope Francis confirmed that the late nobleman had lived a life of heroic virtue. Falletti's wife Juliette was titled as Venerable on 5 May 2015. See also Juliette Colbert de Barolo List of mayors of Turin References External links Hagiography Circle Geneanet 1782 births 1838 deaths 19th-century Italian people 19th-century venerated Christians Commanders of the Order of Saints Maurice and Lazarus Counts in Italy Founders of Catholic religious communities Italian philanthropists Italian venerated Catholics Marquesses of Turin Mayors of Turin Venerated Catholics by Pope Francis Religious leaders from Turin Italian Roman Catholics
```javascript tests([ [ 'const a = 5;', 'js', { keyword: 'color:#569cd6;' }, '<span class="keyword" style="color:#569cd6;">const</span> a <span class="operator" style="color:#994500;">=</span> <span class="number" style="color:#0086b3;">5</span>;' ], [ '<script>const a = 5;</script>', 'html', { keyword: '', number: '', operator: '' }, '<span class="keyword">&lt;script&gt;</span><span class="keyword">const</span> a <span class="operator">=</span> <span class="number">5</span>;<span class="keyword">&lt;/script&gt;</span>' ], [ '<style></style>', 'html', { keyword: '' }, '<span class="keyword">&lt;style&gt;</span><span class="keyword">&lt;/style&gt;</span>' ] ]); ```
Fury is a 1923 American silent drama adventure film produced by and starring Richard Barthelmess. It was directed by Henry King and released through First National Pictures which was then called Associated First National. The synopsis of this film has a strange foreboding character concerning actor Tyrone Power whose character Captain Leyton dies of heart attack, leaving his son, called 'Boy' played by Barthelmess, to carry on. In real life actor Power would die of a heart attack in 1931 in the arms of his own son Tyrone Power, the later film star. Plot As described in a film magazine, Boy Leyton (Barthelmess) is second mate on board the Lady Spray, the ship on which his father is Captain Leyton (Power). Boy is often chided by his father for his effeminacy and more often beaten. While in port Boy proposes to Minnie (Gish) and suggests that she go to Glasgow to meet him there to be married. The ship sails and the Captain learns of his son's intention to marry. He calls him in and tells him about his mother, who deserted him, and tries to turn him away from all women, but Boy refuses to listen. The Captain is suddenly taken ill, but before he dies he makes Boy promise that he will not marry until he has found the man who wronged his mother. The Captain is buried at sea and the ship continues on its course. Upon reaching Glasgow Boy tells Minnie what happened. While at the bar, he meets an old woman who comes in begging. During the conversation he discovers that she is his mother, and he forces her to tell him who her betrayer was. Boy learns that it was the first mate from his father's ship who is now its captain. He finds the man and, though greatly outweighed, he finally succeeds in knocking him down. The stunned man falls from the ship into the sea and disappears. When the ship goes back into port, Boy and Minnie are married. Cast Richard Barthelmess as Boy Leyton Tyrone Power, Sr. as Captain Leyton Pat Hartigan as Morgan Barry Macollum as Looney Luke Dorothy Gish as Minnie Jessie Arnold as Boy's Mother Harry Blakemore as Mr. Hop Adolph Milar as Yuka Ivan Linow as Zece Emily Fitzroy as Matilda Brent Lucia Backus Seger as Mrs. Ross Patterson Dial as Looney Luke's Girl Preservation It is not known whether Fury currently survives, suggesting that it is a lost film. References External links Alternate lobby poster (WaybackMachine) 1923 films American silent feature films Films directed by Henry King 1923 adventure films Silent American adventure films First National Pictures films American black-and-white films 1920s American films 1920s English-language films
```go package types // Query endpoints supported by the slashing querier const ( QueryParameters = "parameters" QuerySigningInfo = "signingInfo" QuerySigningInfos = "signingInfos" ) // QuerySigningInfosParams defines the params for the following queries: // - 'custom/slashing/signingInfos' type QuerySigningInfosParams struct { Page, Limit int } // NewQuerySigningInfosParams creates a new QuerySigningInfosParams instance func NewQuerySigningInfosParams(page, limit int) QuerySigningInfosParams { return QuerySigningInfosParams{page, limit} } ```
```c /* * */ #include <stdint.h> #include <stdlib.h> #include <sys/param.h> #include <esp_types.h> #include "sdkconfig.h" #include "esp_err.h" #include "esp_attr.h" #include "soc/soc.h" #include "soc/rtc.h" #include "soc/pmu_struct.h" #include "hal/lp_aon_hal.h" #include "esp_private/esp_pmu.h" #include "pmu_param.h" #include "hal/efuse_ll.h" #include "hal/efuse_hal.h" #include "esp_hw_log.h" static __attribute__((unused)) const char *TAG = "pmu_sleep"; #define HP(state) (PMU_MODE_HP_ ## state) #define LP(state) (PMU_MODE_LP_ ## state) static bool s_pmu_sleep_regdma_backup_enabled; uint32_t get_lslp_dbg(void) { uint32_t pmu_dbg_atten_lightsleep = PMU_DBG_ATTEN_LIGHTSLEEP_DEFAULT; uint32_t blk_version = efuse_hal_blk_version(); if (blk_version >= 3) { pmu_dbg_atten_lightsleep = efuse_ll_get_lslp_dbg(); } else { ESP_HW_LOGD(TAG, "blk_version is less than 3, lslp dbg not burnt in efuse\n"); } return pmu_dbg_atten_lightsleep; } uint32_t get_lslp_hp_dbias(void) { uint32_t pmu_hp_dbias_lightsleep_0v6 = PMU_HP_DBIAS_LIGHTSLEEP_0V6_DEFAULT; uint32_t blk_version = efuse_hal_blk_version(); if (blk_version >= 3) { pmu_hp_dbias_lightsleep_0v6 = efuse_ll_get_lslp_hp_dbias(); } else { ESP_HW_LOGD(TAG, "blk_version is less than 3, lslp hp dbias not burnt in efuse\n"); } return pmu_hp_dbias_lightsleep_0v6; } uint32_t get_dslp_dbg(void) { uint32_t pmu_dbg_atten_deepsleep = PMU_DBG_ATTEN_DEEPSLEEP_DEFAULT; uint32_t blk_version = efuse_hal_blk_version(); if (blk_version >= 3) { pmu_dbg_atten_deepsleep = efuse_ll_get_dslp_dbg() + EFUSE_BURN_OFFSET_DSLP_DBG; } else { ESP_HW_LOGD(TAG, "blk_version is less than 3, dslp dbg not burnt in efuse\n"); } return pmu_dbg_atten_deepsleep; } uint32_t get_dslp_lp_dbias(void) { uint32_t pmu_lp_dbias_deepsleep_0v7 = PMU_LP_DBIAS_DEEPSLEEP_0V7_DEFAULT; uint32_t blk_version = efuse_hal_blk_version(); if (blk_version >= 3) { pmu_lp_dbias_deepsleep_0v7 = efuse_ll_get_dslp_lp_dbias() + EFUSE_BURN_OFFSET_DSLP_LP_DBIAS; } else { ESP_HW_LOGD(TAG, "blk_version is less than 3, dslp lp dbias not burnt in efuse\n"); } return pmu_lp_dbias_deepsleep_0v7; } void pmu_sleep_enable_regdma_backup(void) { if(!s_pmu_sleep_regdma_backup_enabled){ assert(PMU_instance()->hal); /* entry 0, 1, 2 is used by pmu HP_SLEEP and HP_ACTIVE, HP_SLEEP * and HP_MODEM or HP_MODEM and HP_ACTIVE states switching, * respectively. entry 3 is reserved, not used yet! */ pmu_hal_hp_set_sleep_active_backup_enable(PMU_instance()->hal); pmu_hal_hp_set_sleep_modem_backup_enable(PMU_instance()->hal); pmu_hal_hp_set_modem_active_backup_enable(PMU_instance()->hal); s_pmu_sleep_regdma_backup_enabled = true; } } void pmu_sleep_disable_regdma_backup(void) { if(s_pmu_sleep_regdma_backup_enabled){ assert(PMU_instance()->hal); pmu_hal_hp_set_sleep_active_backup_disable(PMU_instance()->hal); pmu_hal_hp_set_sleep_modem_backup_disable(PMU_instance()->hal); pmu_hal_hp_set_modem_active_backup_disable(PMU_instance()->hal); s_pmu_sleep_regdma_backup_enabled = false; } } uint32_t pmu_sleep_calculate_hw_wait_time(uint32_t pd_flags, uint32_t slowclk_period, uint32_t fastclk_period) { const pmu_sleep_machine_constant_t *mc = (pmu_sleep_machine_constant_t *)PMU_instance()->mc; /* LP core hardware wait time, microsecond */ const int lp_wakeup_wait_time_us = rtc_time_slowclk_to_us(mc->lp.wakeup_wait_cycle, slowclk_period); const int lp_clk_switch_time_us = rtc_time_slowclk_to_us(mc->lp.clk_switch_cycle, slowclk_period); const int lp_clk_power_on_wait_time_us = (pd_flags & PMU_SLEEP_PD_XTAL) ? mc->lp.xtal_wait_stable_time_us \ : rtc_time_slowclk_to_us(mc->lp.clk_power_on_wait_cycle, slowclk_period); const int lp_hw_wait_time_us = mc->lp.min_slp_time_us + mc->lp.analog_wait_time_us + lp_clk_power_on_wait_time_us \ + lp_wakeup_wait_time_us + lp_clk_switch_time_us + mc->lp.power_supply_wait_time_us \ + mc->lp.power_up_wait_time_us; /* HP core hardware wait time, microsecond */ const int hp_digital_power_up_wait_time_us = mc->hp.power_supply_wait_time_us + mc->hp.power_up_wait_time_us; const int hp_regdma_wait_time_us = MAX(mc->hp.regdma_s2m_work_time_us + mc->hp.regdma_m2a_work_time_us, mc->hp.regdma_s2a_work_time_us); const int hp_clock_wait_time_us = mc->hp.xtal_wait_stable_time_us + mc->hp.pll_wait_stable_time_us; const int hp_hw_wait_time_us = mc->hp.analog_wait_time_us + MAX(hp_digital_power_up_wait_time_us + hp_regdma_wait_time_us, hp_clock_wait_time_us); /* When the SOC wakeup (lp timer or GPIO wakeup) and Modem wakeup (Beacon wakeup) complete, the soc * wakeup will be delayed until the RF is turned on in Modem state. * * modem wakeup TBTT, RF on by HW * | | * \|/ \|/ * PMU_HP_ACTIVE /------ * PMU_HP_MODEM /------------////////////////// * PMU_HP_SLEEP ----------------------////////////////// * /|\ /|\ /|\ /|\ /|\ /|\ * |<- some hw wait ->| | | |<- M2A switch ->| * | slow cycles & | soc wakeup | | * | FOSC cycles |<- S2M switch ->| | * | | * |<-- PMU guard time, also the maximum time for the SOC -->| * | wake-up delay | */ #if SOC_PM_SUPPORT_PMU_MODEM_STATE && CONFIG_ESP_WIFI_ENHANCED_LIGHT_SLEEP const int rf_on_protect_time_us = mc->hp.regdma_rf_on_work_time_us; const int total_hw_wait_time_us = lp_hw_wait_time_us + hp_hw_wait_time_us + mc->hp.clock_domain_sync_time_us; #else const int rf_on_protect_time_us = 0; const int total_hw_wait_time_us = lp_hw_wait_time_us + hp_hw_wait_time_us; #endif return total_hw_wait_time_us + rf_on_protect_time_us; } #define rtc_time_us_to_fastclk(time_us, period) rtc_time_us_to_slowclk((time_us), (period)) static inline pmu_sleep_param_config_t * pmu_sleep_param_config_default( pmu_sleep_param_config_t *param, pmu_sleep_power_config_t *power, /* We'll use the runtime power parameter to determine some hardware parameters */ const uint32_t pd_flags, const uint32_t adjustment, const uint32_t slowclk_period, const uint32_t fastclk_period ) { const pmu_sleep_machine_constant_t *mc = (pmu_sleep_machine_constant_t *)PMU_instance()->mc; param->hp_sys.min_slp_slow_clk_cycle = rtc_time_us_to_slowclk(mc->hp.min_slp_time_us, slowclk_period); param->hp_sys.analog_wait_target_cycle = rtc_time_us_to_fastclk(mc->hp.analog_wait_time_us, fastclk_period); param->hp_sys.digital_power_supply_wait_cycle = rtc_time_us_to_fastclk(mc->hp.power_supply_wait_time_us, fastclk_period); param->hp_sys.digital_power_up_wait_cycle = rtc_time_us_to_fastclk(mc->hp.power_up_wait_time_us, fastclk_period); param->hp_sys.pll_stable_wait_cycle = rtc_time_us_to_fastclk(mc->hp.pll_wait_stable_time_us, fastclk_period); const int hw_wait_time_us = pmu_sleep_calculate_hw_wait_time(pd_flags, slowclk_period, fastclk_period); const int modem_state_skip_time_us = mc->hp.regdma_m2a_work_time_us + mc->hp.system_dfs_up_work_time_us + mc->lp.min_slp_time_us; const int modem_wakeup_wait_time_us = adjustment - hw_wait_time_us + modem_state_skip_time_us + mc->hp.regdma_rf_on_work_time_us; param->hp_sys.modem_wakeup_wait_cycle = rtc_time_us_to_fastclk(modem_wakeup_wait_time_us, fastclk_period); param->lp_sys.min_slp_slow_clk_cycle = rtc_time_us_to_slowclk(mc->lp.min_slp_time_us, slowclk_period); param->lp_sys.analog_wait_target_cycle = rtc_time_us_to_slowclk(mc->lp.analog_wait_time_us, slowclk_period); param->lp_sys.digital_power_supply_wait_cycle = rtc_time_us_to_fastclk(mc->lp.power_supply_wait_time_us, fastclk_period); param->lp_sys.digital_power_up_wait_cycle = rtc_time_us_to_fastclk(mc->lp.power_up_wait_time_us, fastclk_period); if (power->hp_sys.xtal.xpd_xtal) { param->hp_lp.xtal_stable_wait_slow_clk_cycle = rtc_time_us_to_slowclk(mc->lp.xtal_wait_stable_time_us, slowclk_period); } else { param->hp_lp.xtal_stable_wait_cycle = rtc_time_us_to_fastclk(mc->hp.xtal_wait_stable_time_us, fastclk_period); } return param; } const pmu_sleep_config_t* pmu_sleep_config_default( pmu_sleep_config_t *config, uint32_t pd_flags, uint32_t adjustment, uint32_t slowclk_period, uint32_t fastclk_period, bool dslp ) { pmu_sleep_power_config_t power_default = PMU_SLEEP_POWER_CONFIG_DEFAULT(pd_flags); uint32_t iram_pd_flags = 0; iram_pd_flags |= (pd_flags & PMU_SLEEP_PD_MEM_G0) ? BIT(0) : 0; iram_pd_flags |= (pd_flags & PMU_SLEEP_PD_MEM_G1) ? BIT(1) : 0; iram_pd_flags |= (pd_flags & PMU_SLEEP_PD_MEM_G2) ? BIT(2) : 0; iram_pd_flags |= (pd_flags & PMU_SLEEP_PD_MEM_G3) ? BIT(3) : 0; config->power = power_default; pmu_sleep_param_config_t param_default = PMU_SLEEP_PARAM_CONFIG_DEFAULT(pd_flags); config->param = *pmu_sleep_param_config_default(&param_default, &power_default, pd_flags, adjustment, slowclk_period, fastclk_period); if (dslp) { config->param.lp_sys.analog_wait_target_cycle = rtc_time_us_to_slowclk(PMU_LP_ANALOG_WAIT_TARGET_TIME_DSLP_US, slowclk_period); pmu_sleep_analog_config_t analog_default = PMU_SLEEP_ANALOG_DSLP_CONFIG_DEFAULT(pd_flags); analog_default.lp_sys[LP(SLEEP)].analog.dbg_atten = get_dslp_dbg(); analog_default.lp_sys[LP(SLEEP)].analog.dbias = get_dslp_lp_dbias(); config->analog = analog_default; } else { pmu_sleep_digital_config_t digital_default = PMU_SLEEP_DIGITAL_LSLP_CONFIG_DEFAULT(pd_flags); config->digital = digital_default; pmu_sleep_analog_config_t analog_default = PMU_SLEEP_ANALOG_LSLP_CONFIG_DEFAULT(pd_flags); analog_default.hp_sys.analog.dbg_atten = get_lslp_dbg(); analog_default.hp_sys.analog.dbias = get_lslp_hp_dbias(); analog_default.lp_sys[LP(SLEEP)].analog.dbias = PMU_LP_DBIAS_LIGHTSLEEP_0V7_DEFAULT; if (!(pd_flags & PMU_SLEEP_PD_XTAL)){ analog_default.hp_sys.analog.pd_cur = PMU_PD_CUR_SLEEP_ON; analog_default.hp_sys.analog.bias_sleep = PMU_BIASSLP_SLEEP_ON; analog_default.hp_sys.analog.dbg_atten = PMU_DBG_ATTEN_ACTIVE_DEFAULT; analog_default.hp_sys.analog.dbias = get_act_hp_dbias(); analog_default.lp_sys[LP(SLEEP)].analog.pd_cur = PMU_PD_CUR_SLEEP_ON; analog_default.lp_sys[LP(SLEEP)].analog.bias_sleep = PMU_BIASSLP_SLEEP_ON; analog_default.lp_sys[LP(SLEEP)].analog.dbg_atten = PMU_DBG_ATTEN_ACTIVE_DEFAULT; analog_default.lp_sys[LP(SLEEP)].analog.dbias = get_act_lp_dbias(); } else if (!(pd_flags & PMU_SLEEP_PD_RC_FAST)) { analog_default.hp_sys.analog.dbias = get_act_hp_dbias(); analog_default.lp_sys[LP(SLEEP)].analog.dbg_atten = PMU_DBG_ATTEN_LIGHTSLEEP_NODROP; analog_default.lp_sys[LP(SLEEP)].analog.dbias = get_act_lp_dbias(); } config->analog = analog_default; } return config; } static void pmu_sleep_power_init(pmu_context_t *ctx, const pmu_sleep_power_config_t *power, bool dslp) { pmu_ll_hp_set_dig_power(ctx->hal->dev, HP(SLEEP), power->hp_sys.dig_power.val); pmu_ll_hp_set_clk_power(ctx->hal->dev, HP(SLEEP), power->hp_sys.clk_power.val); pmu_ll_hp_set_xtal_xpd (ctx->hal->dev, HP(SLEEP), power->hp_sys.xtal.xpd_xtal); pmu_ll_lp_set_dig_power(ctx->hal->dev, LP(ACTIVE), power->lp_sys[LP(ACTIVE)].dig_power.val); pmu_ll_lp_set_clk_power(ctx->hal->dev, LP(ACTIVE), power->lp_sys[LP(ACTIVE)].clk_power.val); pmu_ll_lp_set_dig_power(ctx->hal->dev, LP(SLEEP), power->lp_sys[LP(SLEEP)].dig_power.val); pmu_ll_lp_set_clk_power(ctx->hal->dev, LP(SLEEP), power->lp_sys[LP(SLEEP)].clk_power.val); pmu_ll_lp_set_xtal_xpd (ctx->hal->dev, LP(SLEEP), power->lp_sys[LP(SLEEP)].xtal.xpd_xtal); } static void pmu_sleep_digital_init(pmu_context_t *ctx, const pmu_sleep_digital_config_t *dig) { pmu_ll_hp_set_dig_pad_slp_sel (ctx->hal->dev, HP(SLEEP), dig->syscntl.dig_pad_slp_sel); } static void pmu_sleep_analog_init(pmu_context_t *ctx, const pmu_sleep_analog_config_t *analog, bool dslp) { assert(ctx->hal); pmu_ll_hp_set_dbg_atten (ctx->hal->dev, HP(SLEEP), analog->hp_sys.analog.dbg_atten); pmu_ll_hp_set_current_power_off (ctx->hal->dev, HP(SLEEP), analog->hp_sys.analog.pd_cur); pmu_ll_hp_set_bias_sleep_enable (ctx->hal->dev, HP(SLEEP), analog->hp_sys.analog.bias_sleep); pmu_ll_hp_set_regulator_xpd (ctx->hal->dev, HP(SLEEP), analog->hp_sys.analog.xpd); pmu_ll_hp_set_regulator_dbias (ctx->hal->dev, HP(SLEEP), analog->hp_sys.analog.dbias); pmu_ll_hp_set_regulator_driver_bar (ctx->hal->dev, HP(SLEEP), analog->hp_sys.analog.drv_b); pmu_ll_lp_set_dbg_atten (ctx->hal->dev, LP(SLEEP), analog->lp_sys[LP(SLEEP)].analog.dbg_atten); pmu_ll_lp_set_current_power_off (ctx->hal->dev, LP(SLEEP), analog->lp_sys[LP(SLEEP)].analog.pd_cur); pmu_ll_lp_set_bias_sleep_enable (ctx->hal->dev, LP(SLEEP), analog->lp_sys[LP(SLEEP)].analog.bias_sleep); pmu_ll_lp_set_regulator_slp_xpd (ctx->hal->dev, LP(SLEEP), analog->lp_sys[LP(SLEEP)].analog.slp_xpd); pmu_ll_lp_set_regulator_xpd (ctx->hal->dev, LP(SLEEP), analog->lp_sys[LP(SLEEP)].analog.xpd); pmu_ll_lp_set_regulator_sleep_dbias(ctx->hal->dev, LP(SLEEP), analog->lp_sys[LP(SLEEP)].analog.slp_dbias); pmu_ll_lp_set_regulator_dbias (ctx->hal->dev, LP(SLEEP), analog->lp_sys[LP(SLEEP)].analog.dbias); pmu_ll_lp_set_regulator_driver_bar (ctx->hal->dev, LP(SLEEP), analog->lp_sys[LP(SLEEP)].analog.drv_b); } static void pmu_sleep_param_init(pmu_context_t *ctx, const pmu_sleep_param_config_t *param, bool dslp) { assert(ctx->hal); pmu_ll_hp_set_min_sleep_cycle(ctx->hal->dev, param->hp_sys.min_slp_slow_clk_cycle); pmu_ll_lp_set_min_sleep_cycle(ctx->hal->dev, param->lp_sys.min_slp_slow_clk_cycle); pmu_ll_hp_set_analog_wait_target_cycle(ctx->hal->dev, param->hp_sys.analog_wait_target_cycle); pmu_ll_lp_set_analog_wait_target_cycle(ctx->hal->dev, param->lp_sys.analog_wait_target_cycle); pmu_hal_hp_set_digital_power_up_wait_cycle(ctx->hal, param->hp_sys.digital_power_supply_wait_cycle, param->hp_sys.digital_power_up_wait_cycle); pmu_hal_lp_set_digital_power_up_wait_cycle(ctx->hal, param->lp_sys.digital_power_supply_wait_cycle, param->lp_sys.digital_power_up_wait_cycle); pmu_ll_set_modem_wait_target_cycle(ctx->hal->dev, param->hp_sys.modem_wakeup_wait_cycle); pmu_ll_set_xtal_stable_wait_cycle(ctx->hal->dev, param->hp_lp.xtal_stable_wait_slow_clk_cycle); pmu_ll_set_pll_stable_wait_cycle(ctx->hal->dev, param->hp_sys.pll_stable_wait_cycle); } bool pmu_sleep_pll_already_enabled(void) { return (pmu_ll_get_sysclk_sleep_select_state(PMU_instance()->hal->dev) != 0); } void pmu_sleep_init(const pmu_sleep_config_t *config, bool dslp) { assert(PMU_instance()); pmu_sleep_power_init(PMU_instance(), &config->power, dslp); if(!dslp){ pmu_sleep_digital_init(PMU_instance(), &config->digital); } pmu_sleep_analog_init(PMU_instance(), &config->analog, dslp); pmu_sleep_param_init(PMU_instance(), &config->param, dslp); } uint32_t pmu_sleep_start(uint32_t wakeup_opt, uint32_t reject_opt, uint32_t lslp_mem_inf_fpu, bool dslp) { assert(PMU_instance()->hal); lp_aon_hal_inform_wakeup_type(dslp); pmu_ll_hp_set_wakeup_enable(PMU_instance()->hal->dev, wakeup_opt); pmu_ll_hp_set_reject_enable(PMU_instance()->hal->dev, reject_opt); pmu_ll_hp_clear_wakeup_intr_status(PMU_instance()->hal->dev); pmu_ll_hp_clear_reject_intr_status(PMU_instance()->hal->dev); pmu_ll_hp_clear_reject_cause(PMU_instance()->hal->dev); /* Start entry into sleep mode */ pmu_ll_hp_set_sleep_enable(PMU_instance()->hal->dev); /* In pd_cpu lightsleep and deepsleep mode, we never get here */ while (!pmu_ll_hp_is_sleep_wakeup(PMU_instance()->hal->dev) && !pmu_ll_hp_is_sleep_reject(PMU_instance()->hal->dev)) { ; } return pmu_sleep_finish(dslp); } bool pmu_sleep_finish(bool dslp) { (void)dslp; // Wait eFuse memory update done. while(efuse_ll_get_controller_state() != EFUSE_CONTROLLER_STATE_IDLE); return pmu_ll_hp_is_sleep_reject(PMU_instance()->hal->dev); } void pmu_sleep_enable_hp_sleep_sysclk(bool enable) { pmu_ll_hp_set_icg_sysclk_enable(PMU_instance()->hal->dev, HP(SLEEP), enable); } uint32_t pmu_sleep_get_wakup_retention_cost(void) { const pmu_sleep_machine_constant_t *mc = (pmu_sleep_machine_constant_t *)PMU_instance()->mc; return mc->hp.regdma_s2a_work_time_us; } ```
```java /** * <p> * * path_to_url * * </p> **/ package com.vip.saturn.job.console.mybatis.repository; import com.vip.saturn.job.console.mybatis.entity.UserRole; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.List; /** * @author hebelala */ @Repository public interface UserRoleRepository { int insert(UserRole userRole); List<UserRole> selectAll(); List<UserRole> selectByUserName(@Param("userName") String userName); List<UserRole> selectByRoleKey(@Param("roleKey") String roleKey); /** * nullwhere */ List<UserRole> select(UserRole userRole); UserRole selectWithNotFilterDeleted(UserRole userRole); int delete(UserRole userRole); int update(@Param("pre") UserRole pre, @Param("cur") UserRole cur); } ```
"50 Ways to Say Goodbye" is a song by American pop rock band Train. It is the second single from their sixth studio album, California 37 and is the fifth track on the album. It is considered to be adult contemporary pop radio music. It was released in the United States on June 11, 2012. It is their most recent top 40 hit, peaking at number 20 on the Hot 100. It was certified gold by the RIAA on September 20, 2012. Although the song is called "50 Ways to Say Goodbye", the song only references 11 unique excuses. Composition "50 Ways to Say Goodbye" is a pop rock song in the key of E minor. It is in common time with a tempo of 140 beats per minute. It utilizes electric guitars and a mariachi influenced brass section and acoustic guitar. Singer Pat Monahan said the song "was just a gag about a girl breaking up with a boy and being just so immature that the only way to handle it was just to tell your friends that she's dead." The lyrics are a tongue-in-cheek narrative where, to save face, the singer claims he will say his girlfriend died in a variety of outlandish ways rather than admit she dumped him. The song had some inspiration from Paul Simon's "50 Ways to Leave Your Lover" and was originally going to be titled "50 Ways to Kill Your Lover". That title was tossed as it could attract controversy. The theme of the song also follows the 1998 release of The Vandals’ "My Girlfriend's Dead" from their album Hitler Bad, Vandals Good, written by Warren Fitzgerald, in which rather than face the reality that his girlfriend left him, he tells that his girlfriend died in a variety of ways. Critical reception Nick Bassett of The Re-View compared "50 Ways to Say Goodbye" to its predecessor, saying that "whilst it lacks that Summery carefree vibe [of "Drive By"], this newbie is still buoyed by a jaunty radio-friendly chorus". Music video The music video was directed by Marc Klasfeld and features David Hasselhoff, Taryn Manning, Jonathan Lipnicki, and a Mariachi trio, in addition to band members Pat Monahan, Jimmy Stafford, and Scott Underwood (Stafford and Underwood have since left the band). The video is set in a supermarket with Monahan explaining to Hasselhoff and various other customers and staff members the absence of his girlfriend. Stafford portrays the store cashier and Underwood plays the butcher, while the girlfriend is played by Manning. The grocery store scenes are interspersed with cutaways to the various excuses Pat makes for his girlfriend's absence, as well as scenes of the band performing onstage. Towards the end of the video, a fan who was holding up signs consoling Pat for the supposed loss of his girlfriend finally holds up a sign that says "Rack City Bitch", a reference to "Rack City" by Tyga. At the end of the video, Pat's girlfriend is revealed to be alive, and says hello to him and Hasselhoff, who stand awkwardly as she continues her shopping. Track listing Digital download "50 Ways to Say Goodbye" – 4:08 CD single "50 Ways to Say Goodbye" – 4:08 "Brand New Book" – 3:47 Credits Pat Monahan - songwriter, lead vocals Espen Lind - songwriter, producer, additional guitars, bass, keyboards, backing vocals, programming Amund Bjorklund - songwriter, producer, programming Jimmy Stafford - guitar Scott Underwood - drums Hector Maldonado - bass Jerry Becker - keyboards Brad Magers - horns Charts Weekly charts Year-end charts Certifications Release history References Songs about parting 2012 singles Train (band) songs Music videos directed by Marc Klasfeld Songs written by Amund Bjørklund Songs written by Espen Lind Songs written by Pat Monahan Song recordings produced by Butch Walker Song recordings produced by Espionage (production team) 2012 songs Columbia Records singles Sony Music singles
```c++ /******************************************************************************* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *******************************************************************************/ #ifndef GPU_INTEL_JIT_V2_CONV_PLANNER_MKL_IFACE_HPP #define GPU_INTEL_JIT_V2_CONV_PLANNER_MKL_IFACE_HPP #include <dlfcn.h> #include <stdexcept> #include "common/cpp_compat.hpp" namespace dnnl { namespace impl { namespace gpu { namespace intel { namespace jit { namespace v2 { namespace conv { namespace planner { template <typename FuncTypeT> struct func_t { void load(void *handle, const char *name) { if (!handle) return; name_ = name; ptr_ = reinterpret_cast<FuncTypeT>(dlsym(handle, name)); } template <typename... ArgsT> typename cpp_compat::invoke_result<FuncTypeT, ArgsT...>::type operator()( ArgsT... args) const { if (!ptr_) throw std::runtime_error("Cannot call function " + name_); return ptr_(args...); } std::string name_; FuncTypeT ptr_ = nullptr; }; struct mkl_iface_t { using LAPACKE_sgelsd_func_type = int (*)(int, int, int, int, float *, int, float *, int, float *, float, int *); using mkl_set_threading_layer_func_type = int (*)(int); func_t<mkl_set_threading_layer_func_type> mkl_set_threading_layer; func_t<LAPACKE_sgelsd_func_type> LAPACKE_sgelsd; static mkl_iface_t &instance() { static mkl_iface_t _instance; return _instance; } mkl_iface_t() { const char *library_name = "libmkl_rt.so"; lib_ = dlopen(library_name, RTLD_LAZY); if (!lib_) { dnnl::impl::verbose_printf( "Error: cannot open library: %s\n", library_name); exit(1); } mkl_set_threading_layer.load(lib_, "MKL_Set_Threading_Layer"); LAPACKE_sgelsd.load(lib_, "LAPACKE_sgelsd"); mkl_set_threading_layer(3); } ~mkl_iface_t() { if (lib_) dlclose(lib_); } void *lib_ = nullptr; }; } // namespace planner } // namespace conv } // namespace v2 } // namespace jit } // namespace intel } // namespace gpu } // namespace impl } // namespace dnnl #endif ```
David Cunningham King (born 3 August 1955) is a Scottish-born, South African based former chairman of Rangers Football Club. Early life King, one of seven children, was born and brought up in the Castlemilk area of Glasgow. He attended Allan Glen's High School in the city after passing a bursary examination. He worked at Weir's Pumps in the nearby Cathcart area, before he was transferred to its South African operation in 1976. Business career Following the transfer to South Africa by his employer, King took on several business roles and accumulated substantial personal wealth. The extent of King's wealth remains undisclosed but was sufficient for him to be included in a South African 'Rich List' in 2012. He was a financial adviser to many South African public institutions including the South African Post Office and the South African Reserve Bank in his early stages before establishing a financial risk management company, Specialised Outsourcing, that won a contract to manage the treasury operations of Umgeni Water. On 14 June 2002 BBC News referred to South African reports that King faced eleven counts of tax related offences when he appeared at the Regional Court in Randburg, near Johannesburg. It was alleged that he owed the tax authorities over 900 million rand: approximately £60m but King strenuously denied this and successfully fought the tax authorities in court in what became SA's longest running tax dispute . King's tax problems began after one of his trust owned property companies bought an Irma Stern painting at an auction for R1.7 million in 2000. This attracted the attention of Charles Chipps, special investigator at the South African Revenue Service, SARS, who investigated King's personal tax returns to do a lifestyle audit. Chipps established that King's declared taxable income was insufficient to support his lifestyle but as King stated in subsequent legal proceedings, Chipps was looking at his personal tax returns and not those of the company that purchased the art work. The company that purchased the art work was up to date with its tax affairs. A massive tax dispute arose around what were King's personal tax obligations versus the tax obligations of his family trust companies. After a decade of legal process, including an initially agreed, but subsequently vetoed, settlement, King and his family trust structures eventually reached a joint settlement with the tax authority which incorporated an agreement by King to plead guilty to routine statutory charges and agreeing to pay a fine for these statutory offences. King subsequently explained that he agreed to plead to the lesser statutory offences as they were not serious enough to restrict him from serving as a director of companies or in securing visa for international travel to the USA King was represented by Barry Roux, the lawyer who would later become well known for his defence of Oscar Pistorius. Shareholding in Rangers Football Club King joined the board of directors of Rangers Football Club as a non-executive director on 30 March 2000. He then invested £20 million of his personal wealth into Murray Sports Ltd. The football club entered administration on 14 February 2012. On 22 February 2012 King had a meeting with the club's administrators along with manager Ally McCoist. On 7 June 2012 King called for the rejection of the proposed Company Voluntary Arrangement (CVA) to bring Rangers out of administration. The proposal was subsequently turned down by the club's largest creditor, HM Revenue and Customs, and Rangers FC entered Liquidation. Despite the loss of his £20 million investment because of the club's financial collapse, King had indicated a willingness to invest in Rangers again. On 2 January 2015, King acquired almost 15% of shares in Rangers International Football Club, the owner of Rangers FC, from two separate shareholders. This came just two days after a trio of Scottish businessmen, known as the Three Bears, bought a large percentage of shares from the Laxey Partners. Both King and the Three Bears announced that they would work together to try and steer the club out of financial trouble. King's purchase made him the largest sole shareholder of the club. King used his shareholding to convene an Extraordinary General Meeting of the Company on 6 March 2015. Despite opposition from Mike Ashley and the Easdale brothers King was able to have the existing board removed. Shareholders approved the appointment of King as non-executive chairman, Paul Murray as interim chairman and non-executive director and John Gilligan as a non-executive director of Rangers International Football Club plc, with immediate effect. King indicated prior to the meeting that he would not take up the appointment immediately as he first had to pass the "fit and proper" test that the Scottish Football Association (SFA) applied to the chairman of any football club in Scotland. The SFA investigated King's tax settlement arrangements as part of its fit and proper investigation and concluded in May 2015 by way of public announcement that King had passed its fit and proper test. King was consequently appointed Rangers chairman on 22 May 2015. Shareholders voted Chief executive officer Derek Llambias and Finance director Barry Leach off the board. King then led the recovery of Rangers from the lower leagues in Scotland back into the Premiership and ultimately to become Scottish Premier League Champions in 2021 and Europa League finalists in 2022. He was responsible for bringing Steven Gerrard to the club as part of this recovery process and King is widely referred to by supporters as "The Man Who Saved Rangers". Personal life King is married to Ladina Jean Wylde King with whom he has four children. King is close friends with South African golfer Gary Player and caddied for him at his last ten Masters in Augusta. They had a bitter legal dispute about a $1 million transaction that was settled in 2013 and King remains a close confidant and advisor to Player. King presently splits his time between his homes in South Africa and his wine farm in Tuscany after losing both his wine farms in South Africa to SARS in his tax battle with the South African Revenue Services. References External links Daily Record profile blogs.fm.co.za People educated at Allan Glen's School 1955 births Businesspeople from Glasgow Living people Rangers F.C. chairmen Chairmen and investors of football clubs in Scotland British emigrants to South Africa 20th-century Scottish businesspeople 21st-century Scottish businesspeople Scottish company founders
André Grillon (1 November 1921 – 20 June 2003) was a French footballer and football manager. He was capped 15 times for France. Career Grillon played as a defender, for EF Bordeaux-Guyenne, Stade Français, RC Paris, Lyon and Caen, where he ended his playing career. International He was capped 15 times for France. He played his first match in 1946 against Czechoslovakia and his last match in 1951 against Austria. Coaching He began his coaching career with Stade Français and also coached Caen, US Le Mans, Annecy, Amiens and Lucé. He also managed the French Olympic team at the 1968 Summer Olympics in Mexico City. References External links André Grillon at pari-et-gagne.com 1921 births 2003 deaths Footballers from Paris French men's footballers Men's association football defenders EF Bordeaux-Guyenne players Stade Français (association football) players Racing Club de France Football players Olympique Lyonnais players Stade Malherbe Caen players Ligue 1 players Ligue 2 players France men's international footballers French football managers Stade Malherbe Caen managers Le Mans FC managers FC Annecy managers France national football team managers Amiens SC managers Ligue 1 managers Ligue 2 managers
Ascensión Esquivel Ibarra (10 May 1844 – 15 April 1923) was a Nicaraguan-born President of Costa Rica from 1902 to 1906. Esquivel became a naturalized Costa Rican in 1869. He was also a lawyer and a university professor. After his presidential term, he served as the president of the Supreme Court of Costa Rica from 1917 to 1920. President of Costa Rica He first ran for the presidency in 1889 but was defeated by José Joaquín Rodríguez. He took up the challenge of running for president in the 1901 elections, which he consequently won. This was his second presidential bid and 1902 saw the start of his only presidency. His government had to assume a nation with a still weak and little developed economy; however, his government managed to advance the development of the railroad to the Pacific and the establishment of the lyrics of the national anthem. References 1844 births 1923 deaths People from Rivas Department Naturalized citizens of Costa Rica Nicaraguan emigrants to Costa Rica Presidents of Costa Rica Vice presidents of Costa Rica Foreign ministers of Costa Rica Supreme Court of Justice of Costa Rica judges 19th-century Costa Rican people 20th-century Costa Rican politicians
```objective-c // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. path_to_url #ifndef XFA_FXFA_PARSER_CXFA_ENCRYPTIONMETHOD_H_ #define XFA_FXFA_PARSER_CXFA_ENCRYPTIONMETHOD_H_ #include "xfa/fxfa/parser/cxfa_node.h" class CXFA_EncryptionMethod final : public CXFA_Node { public: CXFA_EncryptionMethod(CXFA_Document* doc, XFA_PacketType packet); ~CXFA_EncryptionMethod() override; }; #endif // XFA_FXFA_PARSER_CXFA_ENCRYPTIONMETHOD_H_ ```
```java /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package com.klinker.android.twitter_l.data; import android.graphics.drawable.Drawable; public class Item { public String text; public int icon; public Drawable actualIcon; public Item(String text, int icon) { this.text = text; this.icon = icon; } public Item(String text, Drawable icon) { this.text = text; this.actualIcon = icon; } } ```
```yaml # coding:utf-8 time_out: 200 # timeout for crawling and storing user info min_crawl_interal: 10 # min interal of http request max_crawl_interal: 20 # max interal of http request excp_interal: 5*60 # time for sleeping when crawling raises exceptions # TODO set a default value for max_value of crawling max_search_page: 50 # max search page for crawling max_home_page: 50 # max user home page for crawling max_comment_page: 2000 # max comment page for crawling max_repost_page: 2000 # max repost page for crawling max_dialogue_page: 2000 # max dialogue page for crawling max_retries: 5 # retry times for crawling # You should set the args below if you login from uncommon place # It's for verification code indentified yundama_username: xxxxxx # account for yundama yundama_passwd: xxxxxx # password for yundama # only crawl weibo(bowen) after # only affect to home crawler time_after: '1970-01-01 08:00:00' # whether account follows the uid below # if yes rows in wbuser will have 1 at isFan column samefollow_uid: '' # The value of running_mode can be normal or quick. # In normal mode, it will be more stable, while in quick mode, the crawling speed will # be much faster, and the weibo account almostly will be banned running_mode: normal # The value of crawling mode can be accurate or normal # In normal mode, the spider won't crawl the weibo content of "" when execute home crawl tasks or search crawl # tasks, so the speed will be much quicker. # In accurate mode,the spider will crawl the info of "",which will be slower, but more details will be given. crawling_mode: normal # the max number of each cookie can be shared # if you choose quick mode, your cookie will be used util it's banned share_host_count: 5 # the expire time(hours) of each weibo cookies cookie_expire_time: 23 # 1 for allow download images, otherwise set it to 0 images_allow: 1 # the default image path is '${user.home}/weibospider/images' # if you want to change another directory for download image, just set the path below images_path: '' # the value can be large or thumbnail # in large type, you will download the large image # in thumbnail type, you will download the thumbnail image image_type: large db: host: 127.0.0.1 port: 3306 user: root password: 123456 db_name: weibo db_type: mysql redis: host: 127.0.0.1 port: 6379 password: '' cookies: 1 # store and fetch cookies # store fetched urls and results,so you can decide whether retry to crawl the urls or not urls: 2 broker: 5 # broker for celery backend: 6 # backed for celery id_name: 8 # user id and namesfor repost info analysis. Could be safely deleted after repost tasks # expire_time (hours) for redis db2, if they are useless to you, you can set the value smaller expire_time: 48 # redis sentinel for ha. if you neet it, just add sentinel host and port below the sentinel args,like this: ############################### #sentinel: # # - host: 2.2.2.2 # # port: 26379 # # - host: 3.3.3.3 # # port: 26379 # # # ############################### sentinel: '' master: '' # redis sentinel master name, if you don't need it, just set master: '' socket_timeout: 5 # socket timeout for redis sentinel, if you don't need it, just set master: '' # warning by email email: # your email must open smtp & pop3 service server: smtp.sina.com port: 587 from: xxxxx@sina.com #sendingemailaccount password: xxxx #youremailpasswd to: xxxxxxxx@139.com #bind 139 email,so your phone will receive the warning message subject: Warning Of Weibo Spider warning_info: Please find out the reason why the spider stops working ```
The Daniels School, in Milliken in Weld County, Colorado, was built in 1911. It is a two-room schoolhouse, with a partition that allowed separation of grades 1–4 vs. grades 5–8, which operated from 1911 to 1959. It was listed on the National Register of Historic Places in 2005. It was built on a plot of land donated to the school district by James Daniels in 1879. A wood-frame schoolhouse was built first; it was sold and moved off the property to enable replacement by the present brick building in 1911. James Daniels served as director of the school for many years. The school was named, however, for his brother, Henry Daniels, who was a pioneer in the Big Thompson Valley area before Johnstown and Milliken existed. It is Classical Revival in style, built of brick, and has a pedimented porch spanning the front, with four Tuscan columns. It is about in plan, including the porch. The school was built in 1911 by carpenters H.W. Richmond and C.J. Mathers, who weren't able to complete it until after the fall school term had started. During World War II, the school was used for ration book distribution, and students set a goal for selling stamps and bonds to raise $900 to fund a jeep, as part of the U.S. Treasury Schools at War program. During and after the years of its operation as a school, it was used for Boy Scout meetings and other community purposes. The school closed in 1959. Per terms that ownership would revert to the original owner or descendent, Harold Daniels, a grandson of Henry Daniels, became property owner. Harold had attended grades one through eight at the Daniels School, during 1933 to 1940. Until the mid-1970s it was still used for Boy Scouts, and has since been used for storage. The listing included two other contributing buildings: a wood-frame teacherage and a privy, and it included a metal swingset frame built at time of the school's construction, in 1911. The privy is a wood-frame two-seat structure which was built by the Works Progress Administration in the 1930s, and replaced two original brick privies. The school is located on Colorado State Highway 60 near its intersection with Weld County Road 25. Notes References External links Two-room schoolhouses Schools in Colorado National Register of Historic Places in Weld County, Colorado School buildings completed in 1911 School buildings on the National Register of Historic Places in Colorado
```smalltalk using System.Collections.Generic; using System.Globalization; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Bot.Builder; using Microsoft.Bot.Builder.Integration.AspNet.Core; using Microsoft.Bot.Connector.Authentication; using Microsoft.BotBuilderSamples.SSOSkillBot.Bots; using Microsoft.BotBuilderSamples.SSOSkillBot.Dialogs; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; namespace Microsoft.BotBuilderSamples.SSOSkillBot { public class Startup { public Startup(IConfiguration configuration) { Configuration = configuration; } public IConfiguration Configuration { get; } // This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddControllers().AddNewtonsoftJson(options => { options.SerializerSettings.MaxDepth = HttpHelper.BotMessageSerializerSettings.MaxDepth; }); // Register AuthConfiguration to enable custom claim validation. services.AddSingleton(sp => { var allowedCallers = new List<string>(sp.GetService<IConfiguration>().GetSection("AllowedCallers").Get<string[]>()); var claimsValidator = new AllowedCallersClaimsValidator(allowedCallers); // If TenantId is specified in config, add the tenant as a valid JWT token issuer for Bot to Skill conversation. // The token issuer for MSI and single tenant scenarios will be the tenant where the bot is registered. var validTokenIssuers = new List<string>(); var tenantId = sp.GetService<IConfiguration>().GetSection(MicrosoftAppCredentials.MicrosoftAppTenantIdKey)?.Value; if (!string.IsNullOrWhiteSpace(tenantId)) { // For SingleTenant/MSI auth, the JWT tokens will be issued from the bot's home tenant. // Therefore, these issuers need to be added to the list of valid token issuers for authenticating activity requests. validTokenIssuers.Add(string.Format(CultureInfo.InvariantCulture, AuthenticationConstants.ValidTokenIssuerUrlTemplateV1, tenantId)); validTokenIssuers.Add(string.Format(CultureInfo.InvariantCulture, AuthenticationConstants.ValidTokenIssuerUrlTemplateV2, tenantId)); validTokenIssuers.Add(string.Format(CultureInfo.InvariantCulture, AuthenticationConstants.ValidGovernmentTokenIssuerUrlTemplateV1, tenantId)); validTokenIssuers.Add(string.Format(CultureInfo.InvariantCulture, AuthenticationConstants.ValidGovernmentTokenIssuerUrlTemplateV2, tenantId)); } return new AuthenticationConfiguration { ClaimsValidator = claimsValidator, ValidTokenIssuers = validTokenIssuers }; }); // Create the Bot Framework Authentication to be used with the Bot Adapter. services.AddSingleton<BotFrameworkAuthentication, ConfigurationBotFrameworkAuthentication>(); // Create the Bot Framework Adapter with error handling enabled. services.AddSingleton<IBotFrameworkHttpAdapter, SsoSkillAdapterWithErrorHandler>(); // Create the storage we'll be using for User and Conversation state. (Memory is great for testing purposes.) services.AddSingleton<IStorage, MemoryStorage>(); // Create the Conversation state. (Used by the Dialog system itself.) services.AddSingleton<ConversationState>(); // The Dialog that will be run by the bot. services.AddSingleton<ActivityRouterDialog>(); // Create the bot as a transient. In this case the ASP Controller is expecting an IBot. services.AddTransient<IBot, SkillBot<ActivityRouterDialog>>(); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseDefaultFiles() .UseStaticFiles() .UseWebSockets() .UseRouting() .UseEndpoints(endpoints => { endpoints.MapControllers(); }); // Uncomment this to support HTTPS. // app.UseHttpsRedirection(); } } } ```
```objective-c * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution. * * Neither the name of Google LLC nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* minidump_format.h: A cross-platform reimplementation of minidump-related * portions of DbgHelp.h from the Windows Platform SDK. * * (This is C99 source, please don't corrupt it with C++.) * * Structures that are defined by Microsoft to contain a zero-length array * are instead defined here to contain an array with one element, as * zero-length arrays are forbidden by standard C and C++. In these cases, * *_minsize constants are provided to be used in place of sizeof. For a * cleaner interface to these sizes when using C++, see minidump_size.h. * * These structures are also sufficient to populate minidump files. * * These definitions may be extended to support handling minidump files * for other CPUs and other operating systems. * * Because precise data type sizes are crucial for this implementation to * function properly and portably in terms of interoperability with minidumps * produced by DbgHelp on Windows, a set of primitive types with known sizes * are used as the basis of each structure defined by this file. DbgHelp * on Windows is assumed to be the reference implementation; this file * seeks to provide a cross-platform compatible implementation. To avoid * collisions with the types and values defined and used by DbgHelp in the * event that this implementation is used on Windows, each type and value * defined here is given a new name, beginning with "MD". Names of the * equivalent types and values in the Windows Platform SDK are given in * comments. * * Author: Mark Mentovai */ #ifndef GOOGLE_BREAKPAD_COMMON_MINIDUMP_FORMAT_H__ #define GOOGLE_BREAKPAD_COMMON_MINIDUMP_FORMAT_H__ #include <stddef.h> #include "google_breakpad/common/breakpad_types.h" #if defined(_MSC_VER) /* Disable "zero-sized array in struct/union" warnings when compiling in * MSVC. DbgHelp.h does this too. */ #pragma warning(push) #pragma warning(disable:4200) #endif /* _MSC_VER */ /* * guiddef.h */ typedef struct { uint32_t data1; uint16_t data2; uint16_t data3; uint8_t data4[8]; } MDGUID; /* GUID */ /* * WinNT.h */ /* Non-x86 CPU identifiers found in the high 24 bits of * (MDRawContext*).context_flags. These aren't used by Breakpad, but are * defined here for reference, to avoid assigning values that conflict * (although some values already conflict). */ #define MD_CONTEXT_IA64 0x00080000 /* CONTEXT_IA64 */ /* Additional values from winnt.h in the Windows CE 5.0 SDK: */ #define MD_CONTEXT_SHX 0x000000c0 /* CONTEXT_SH4 (Super-H, includes SH3) */ #define MD_CONTEXT_ALPHA 0x00020000 /* CONTEXT_ALPHA */ /* As of Windows 7 SP1, the number of flag bits has increased to * include 0x40 (CONTEXT_XSTATE): * path_to_url */ #define MD_CONTEXT_CPU_MASK 0xffffff00 /* This is a base type for MDRawContextX86 and MDRawContextPPC. This * structure should never be allocated directly. The actual structure type * can be determined by examining the context_flags field. */ typedef struct { uint32_t context_flags; } MDRawContextBase; #include "minidump_cpu_amd64.h" #include "minidump_cpu_arm.h" #include "minidump_cpu_arm64.h" #include "minidump_cpu_mips.h" #include "minidump_cpu_ppc.h" #include "minidump_cpu_ppc64.h" #include "minidump_cpu_riscv.h" #include "minidump_cpu_sparc.h" #include "minidump_cpu_x86.h" /* * WinVer.h */ typedef struct { uint32_t signature; uint32_t struct_version; uint32_t file_version_hi; uint32_t file_version_lo; uint32_t product_version_hi; uint32_t product_version_lo; uint32_t file_flags_mask; /* Identifies valid bits in fileFlags */ uint32_t file_flags; uint32_t file_os; uint32_t file_type; uint32_t file_subtype; uint32_t file_date_hi; uint32_t file_date_lo; } MDVSFixedFileInfo; /* VS_FIXEDFILEINFO */ /* For (MDVSFixedFileInfo).signature */ #define MD_VSFIXEDFILEINFO_SIGNATURE 0xfeef04bd /* VS_FFI_SIGNATURE */ /* For (MDVSFixedFileInfo).version */ #define MD_VSFIXEDFILEINFO_VERSION 0x00010000 /* VS_FFI_STRUCVERSION */ /* For (MDVSFixedFileInfo).file_flags_mask and * (MDVSFixedFileInfo).file_flags */ #define MD_VSFIXEDFILEINFO_FILE_FLAGS_DEBUG 0x00000001 /* VS_FF_DEBUG */ #define MD_VSFIXEDFILEINFO_FILE_FLAGS_PRERELEASE 0x00000002 /* VS_FF_PRERELEASE */ #define MD_VSFIXEDFILEINFO_FILE_FLAGS_PATCHED 0x00000004 /* VS_FF_PATCHED */ #define MD_VSFIXEDFILEINFO_FILE_FLAGS_PRIVATEBUILD 0x00000008 /* VS_FF_PRIVATEBUILD */ #define MD_VSFIXEDFILEINFO_FILE_FLAGS_INFOINFERRED 0x00000010 /* VS_FF_INFOINFERRED */ #define MD_VSFIXEDFILEINFO_FILE_FLAGS_SPECIALBUILD 0x00000020 /* VS_FF_SPECIALBUILD */ /* For (MDVSFixedFileInfo).file_os: high 16 bits */ #define MD_VSFIXEDFILEINFO_FILE_OS_UNKNOWN 0 /* VOS_UNKNOWN */ #define MD_VSFIXEDFILEINFO_FILE_OS_DOS (1 << 16) /* VOS_DOS */ #define MD_VSFIXEDFILEINFO_FILE_OS_OS216 (2 << 16) /* VOS_OS216 */ #define MD_VSFIXEDFILEINFO_FILE_OS_OS232 (3 << 16) /* VOS_OS232 */ #define MD_VSFIXEDFILEINFO_FILE_OS_NT (4 << 16) /* VOS_NT */ #define MD_VSFIXEDFILEINFO_FILE_OS_WINCE (5 << 16) /* VOS_WINCE */ /* Low 16 bits */ #define MD_VSFIXEDFILEINFO_FILE_OS__BASE 0 /* VOS__BASE */ #define MD_VSFIXEDFILEINFO_FILE_OS__WINDOWS16 1 /* VOS__WINDOWS16 */ #define MD_VSFIXEDFILEINFO_FILE_OS__PM16 2 /* VOS__PM16 */ #define MD_VSFIXEDFILEINFO_FILE_OS__PM32 3 /* VOS__PM32 */ #define MD_VSFIXEDFILEINFO_FILE_OS__WINDOWS32 4 /* VOS__WINDOWS32 */ /* For (MDVSFixedFileInfo).file_type */ #define MD_VSFIXEDFILEINFO_FILE_TYPE_UNKNOWN 0 /* VFT_UNKNOWN */ #define MD_VSFIXEDFILEINFO_FILE_TYPE_APP 1 /* VFT_APP */ #define MD_VSFIXEDFILEINFO_FILE_TYPE_DLL 2 /* VFT_DLL */ #define MD_VSFIXEDFILEINFO_FILE_TYPE_DRV 3 /* VFT_DLL */ #define MD_VSFIXEDFILEINFO_FILE_TYPE_FONT 4 /* VFT_FONT */ #define MD_VSFIXEDFILEINFO_FILE_TYPE_VXD 5 /* VFT_VXD */ #define MD_VSFIXEDFILEINFO_FILE_TYPE_STATIC_LIB 7 /* VFT_STATIC_LIB */ /* For (MDVSFixedFileInfo).file_subtype */ #define MD_VSFIXEDFILEINFO_FILE_SUBTYPE_UNKNOWN 0 /* VFT2_UNKNOWN */ /* with file_type = MD_VSFIXEDFILEINFO_FILETYPE_DRV */ #define MD_VSFIXEDFILEINFO_FILE_SUBTYPE_DRV_PRINTER 1 /* VFT2_DRV_PRINTER */ #define MD_VSFIXEDFILEINFO_FILE_SUBTYPE_DRV_KEYBOARD 2 /* VFT2_DRV_KEYBOARD */ #define MD_VSFIXEDFILEINFO_FILE_SUBTYPE_DRV_LANGUAGE 3 /* VFT2_DRV_LANGUAGE */ #define MD_VSFIXEDFILEINFO_FILE_SUBTYPE_DRV_DISPLAY 4 /* VFT2_DRV_DISPLAY */ #define MD_VSFIXEDFILEINFO_FILE_SUBTYPE_DRV_MOUSE 5 /* VFT2_DRV_MOUSE */ #define MD_VSFIXEDFILEINFO_FILE_SUBTYPE_DRV_NETWORK 6 /* VFT2_DRV_NETWORK */ #define MD_VSFIXEDFILEINFO_FILE_SUBTYPE_DRV_SYSTEM 7 /* VFT2_DRV_SYSTEM */ #define MD_VSFIXEDFILEINFO_FILE_SUBTYPE_DRV_INSTALLABLE 8 /* VFT2_DRV_INSTALLABLE */ #define MD_VSFIXEDFILEINFO_FILE_SUBTYPE_DRV_SOUND 9 /* VFT2_DRV_SOUND */ #define MD_VSFIXEDFILEINFO_FILE_SUBTYPE_DRV_COMM 10 /* VFT2_DRV_COMM */ #define MD_VSFIXEDFILEINFO_FILE_SUBTYPE_DRV_INPUTMETHOD 11 /* VFT2_DRV_INPUTMETHOD */ #define MD_VSFIXEDFILEINFO_FILE_SUBTYPE_DRV_VERSIONED_PRINTER 12 /* VFT2_DRV_VERSIONED_PRINTER */ /* with file_type = MD_VSFIXEDFILEINFO_FILETYPE_FONT */ #define MD_VSFIXEDFILEINFO_FILE_SUBTYPE_FONT_RASTER 1 /* VFT2_FONT_RASTER */ #define MD_VSFIXEDFILEINFO_FILE_SUBTYPE_FONT_VECTOR 2 /* VFT2_FONT_VECTOR */ #define MD_VSFIXEDFILEINFO_FILE_SUBTYPE_FONT_TRUETYPE 3 /* VFT2_FONT_TRUETYPE */ /* * DbgHelp.h */ /* An MDRVA is an offset into the minidump file. The beginning of the * MDRawHeader is at offset 0. */ typedef uint32_t MDRVA; /* RVA */ typedef struct { uint32_t data_size; MDRVA rva; } MDLocationDescriptor; /* MINIDUMP_LOCATION_DESCRIPTOR */ /* An MDRVA64 is an 64-bit offset into the minidump file. The beginning of the * MDRawHeader is at offset 0. */ typedef uint64_t MDRVA64; /* RVA64 */ typedef struct { uint64_t data_size; MDRVA64 rva; } MDLocationDescriptor64; /* MINIDUMP_LOCATION_DESCRIPTOR64 */ typedef struct { /* The base address of the memory range on the host that produced the * minidump. */ uint64_t start_of_memory_range; MDLocationDescriptor memory; } MDMemoryDescriptor; /* MINIDUMP_MEMORY_DESCRIPTOR */ typedef struct { uint32_t signature; uint32_t version; uint32_t stream_count; MDRVA stream_directory_rva; /* A |stream_count|-sized array of * MDRawDirectory structures. */ uint32_t checksum; /* Can be 0. In fact, that's all that's * been found in minidump files. */ uint32_t time_date_stamp; /* time_t */ uint64_t flags; } MDRawHeader; /* MINIDUMP_HEADER */ /* For (MDRawHeader).signature and (MDRawHeader).version. Note that only the * low 16 bits of (MDRawHeader).version are MD_HEADER_VERSION. Per the * documentation, the high 16 bits are implementation-specific. */ #define MD_HEADER_SIGNATURE 0x504d444d /* 'PMDM' */ /* MINIDUMP_SIGNATURE */ #define MD_HEADER_VERSION 0x0000a793 /* 42899 */ /* MINIDUMP_VERSION */ /* For (MDRawHeader).flags: */ typedef enum { /* MD_NORMAL is the standard type of minidump. It includes full * streams for the thread list, module list, exception, system info, * and miscellaneous info. A memory list stream is also present, * pointing to the same stack memory contained in the thread list, * as well as a 256-byte region around the instruction address that * was executing when the exception occurred. Stack memory is from * 4 bytes below a thread's stack pointer up to the top of the * memory region encompassing the stack. */ MD_NORMAL = 0x00000000, MD_WITH_DATA_SEGS = 0x00000001, MD_WITH_FULL_MEMORY = 0x00000002, MD_WITH_HANDLE_DATA = 0x00000004, MD_FILTER_MEMORY = 0x00000008, MD_SCAN_MEMORY = 0x00000010, MD_WITH_UNLOADED_MODULES = 0x00000020, MD_WITH_INDIRECTLY_REFERENCED_MEMORY = 0x00000040, MD_FILTER_MODULE_PATHS = 0x00000080, MD_WITH_PROCESS_THREAD_DATA = 0x00000100, MD_WITH_PRIVATE_READ_WRITE_MEMORY = 0x00000200, MD_WITHOUT_OPTIONAL_DATA = 0x00000400, MD_WITH_FULL_MEMORY_INFO = 0x00000800, MD_WITH_THREAD_INFO = 0x00001000, MD_WITH_CODE_SEGS = 0x00002000, MD_WITHOUT_AUXILLIARY_SEGS = 0x00004000, MD_WITH_FULL_AUXILLIARY_STATE = 0x00008000, MD_WITH_PRIVATE_WRITE_COPY_MEMORY = 0x00010000, MD_IGNORE_INACCESSIBLE_MEMORY = 0x00020000, MD_WITH_TOKEN_INFORMATION = 0x00040000 } MDType; /* MINIDUMP_TYPE */ typedef struct { uint32_t stream_type; MDLocationDescriptor location; } MDRawDirectory; /* MINIDUMP_DIRECTORY */ /* For (MDRawDirectory).stream_type */ typedef enum { MD_UNUSED_STREAM = 0, MD_RESERVED_STREAM_0 = 1, MD_RESERVED_STREAM_1 = 2, MD_THREAD_LIST_STREAM = 3, /* MDRawThreadList */ MD_MODULE_LIST_STREAM = 4, /* MDRawModuleList */ MD_MEMORY_LIST_STREAM = 5, /* MDRawMemoryList */ MD_EXCEPTION_STREAM = 6, /* MDRawExceptionStream */ MD_SYSTEM_INFO_STREAM = 7, /* MDRawSystemInfo */ MD_THREAD_EX_LIST_STREAM = 8, MD_MEMORY_64_LIST_STREAM = 9, MD_COMMENT_STREAM_A = 10, MD_COMMENT_STREAM_W = 11, MD_HANDLE_DATA_STREAM = 12, MD_FUNCTION_TABLE_STREAM = 13, MD_UNLOADED_MODULE_LIST_STREAM = 14, MD_MISC_INFO_STREAM = 15, /* MDRawMiscInfo */ MD_MEMORY_INFO_LIST_STREAM = 16, /* MDRawMemoryInfoList */ MD_THREAD_INFO_LIST_STREAM = 17, MD_HANDLE_OPERATION_LIST_STREAM = 18, MD_TOKEN_STREAM = 19, MD_JAVASCRIPT_DATA_STREAM = 20, MD_SYSTEM_MEMORY_INFO_STREAM = 21, MD_PROCESS_VM_COUNTERS_STREAM = 22, MD_THREAD_NAME_LIST_STREAM = 24, /* MDRawThreadNameList */ MD_LAST_RESERVED_STREAM = 0x0000ffff, /* Breakpad extension types. 0x4767 = "Gg" */ MD_BREAKPAD_INFO_STREAM = 0x47670001, /* MDRawBreakpadInfo */ MD_ASSERTION_INFO_STREAM = 0x47670002, /* MDRawAssertionInfo */ /* These are additional minidump stream values which are specific to * the linux breakpad implementation. */ MD_LINUX_CPU_INFO = 0x47670003, /* /proc/cpuinfo */ MD_LINUX_PROC_STATUS = 0x47670004, /* /proc/$x/status */ MD_LINUX_LSB_RELEASE = 0x47670005, /* /etc/lsb-release */ MD_LINUX_CMD_LINE = 0x47670006, /* /proc/$x/cmdline */ MD_LINUX_ENVIRON = 0x47670007, /* /proc/$x/environ */ MD_LINUX_AUXV = 0x47670008, /* /proc/$x/auxv */ MD_LINUX_MAPS = 0x47670009, /* /proc/$x/maps */ MD_LINUX_DSO_DEBUG = 0x4767000A, /* MDRawDebug{32,64} */ /* Crashpad extension types. 0x4350 = "CP" * See Crashpad's minidump/minidump_extensions.h. */ MD_CRASHPAD_INFO_STREAM = 0x43500001, /* MDRawCrashpadInfo */ } MDStreamType; /* MINIDUMP_STREAM_TYPE */ typedef struct { uint32_t length; /* Length of buffer in bytes (not characters), * excluding 0-terminator */ uint16_t buffer[1]; /* UTF-16-encoded, 0-terminated */ } MDString; /* MINIDUMP_STRING */ static const size_t MDString_minsize = offsetof(MDString, buffer[0]); typedef struct { uint32_t thread_id; uint32_t suspend_count; uint32_t priority_class; uint32_t priority; uint64_t teb; /* Thread environment block */ MDMemoryDescriptor stack; MDLocationDescriptor thread_context; /* MDRawContext[CPU] */ } MDRawThread; /* MINIDUMP_THREAD */ typedef struct { uint32_t number_of_threads; MDRawThread threads[1]; } MDRawThreadList; /* MINIDUMP_THREAD_LIST */ static const size_t MDRawThreadList_minsize = offsetof(MDRawThreadList, threads[0]); #pragma pack(push, 4) typedef struct { uint32_t thread_id; MDRVA64 thread_name_rva; /* MDString */ } MDRawThreadName; /* MINIDUMP_THREAD_NAME */ typedef struct { uint32_t number_of_thread_names; MDRawThreadName thread_names[1]; } MDRawThreadNameList; /* MINIDUMP_THREAD_NAME_LIST */ #pragma pack(pop) static const size_t MDRawThreadNameList_minsize = offsetof(MDRawThreadNameList, thread_names[0]); typedef struct { uint64_t base_of_image; uint32_t size_of_image; uint32_t checksum; /* 0 if unknown */ uint32_t time_date_stamp; /* time_t */ MDRVA module_name_rva; /* MDString, pathname or filename */ MDVSFixedFileInfo version_info; /* The next field stores a CodeView record and is populated when a module's * debug information resides in a PDB file. It identifies the PDB file. */ MDLocationDescriptor cv_record; /* The next field is populated when a module's debug information resides * in a DBG file. It identifies the DBG file. This field is effectively * obsolete with modules built by recent toolchains. */ MDLocationDescriptor misc_record; /* Alignment problem: reserved0 and reserved1 are defined by the platform * SDK as 64-bit quantities. However, that results in a structure whose * alignment is unpredictable on different CPUs and ABIs. If the ABI * specifies full alignment of 64-bit quantities in structures (as ppc * does), there will be padding between miscRecord and reserved0. If * 64-bit quantities can be aligned on 32-bit boundaries (as on x86), * this padding will not exist. (Note that the structure up to this point * contains 1 64-bit member followed by 21 32-bit members.) * As a workaround, reserved0 and reserved1 are instead defined here as * four 32-bit quantities. This should be harmless, as there are * currently no known uses for these fields. */ uint32_t reserved0[2]; uint32_t reserved1[2]; } MDRawModule; /* MINIDUMP_MODULE */ /* The inclusion of a 64-bit type in MINIDUMP_MODULE forces the struct to * be tail-padded out to a multiple of 64 bits under some ABIs (such as PPC). * This doesn't occur on systems that don't tail-pad in this manner. Define * this macro to be the usable size of the MDRawModule struct, and use it in * place of sizeof(MDRawModule). */ #define MD_MODULE_SIZE 108 /* (MDRawModule).cv_record can reference MDCVInfoPDB20 or MDCVInfoPDB70. * Ref.: path_to_url * MDCVInfoPDB70 is the expected structure type with recent toolchains. */ typedef struct { uint32_t signature; uint32_t offset; /* Offset to debug data (expect 0 in minidump) */ } MDCVHeader; typedef struct { MDCVHeader cv_header; uint32_t signature; /* time_t debug information created */ uint32_t age; /* revision of PDB file */ uint8_t pdb_file_name[1]; /* Pathname or filename of PDB file */ } MDCVInfoPDB20; static const size_t MDCVInfoPDB20_minsize = offsetof(MDCVInfoPDB20, pdb_file_name[0]); #define MD_CVINFOPDB20_SIGNATURE 0x3031424e /* cvHeader.signature = '01BN' */ typedef struct { uint32_t cv_signature; MDGUID signature; /* GUID, identifies PDB file */ uint32_t age; /* Identifies incremental changes to PDB file */ uint8_t pdb_file_name[1]; /* Pathname or filename of PDB file, * 0-terminated 8-bit character data (UTF-8?) */ } MDCVInfoPDB70; static const size_t MDCVInfoPDB70_minsize = offsetof(MDCVInfoPDB70, pdb_file_name[0]); #define MD_CVINFOPDB70_SIGNATURE 0x53445352 /* cvSignature = 'SDSR' */ /* * Modern ELF toolchains insert a "build id" into the ELF headers that * usually contains a hash of some ELF headers + sections to uniquely * identify a binary. * * path_to_url * path_to_url#index-g_t_002d_002dbuild_002did-292 */ typedef struct { uint32_t cv_signature; uint8_t build_id[1]; /* Bytes of build id from GNU_BUILD_ID ELF note. * This is variable-length, but usually 20 bytes * as the binutils ld default is a SHA-1 hash. */ } MDCVInfoELF; static const size_t MDCVInfoELF_minsize = offsetof(MDCVInfoELF, build_id[0]); #define MD_CVINFOELF_SIGNATURE 0x4270454c /* cvSignature = 'BpEL' */ /* In addition to the two CodeView record formats above, used for linking * to external pdb files, it is possible for debugging data to be carried * directly in the CodeView record itself. These signature values will * be found in the first 4 bytes of the CodeView record. Additional values * not commonly experienced in the wild are given by "Microsoft Symbol and * Type Information", path_to_url section * 7.2. An in-depth description of the CodeView 4.1 format is given by * "Undocumented Windows 2000 Secrets", Windows 2000 Debugging Support/ * Microsoft Symbol File Internals/CodeView Subsections, * path_to_url */ #define MD_CVINFOCV41_SIGNATURE 0x3930424e /* '90BN', CodeView 4.10. */ #define MD_CVINFOCV50_SIGNATURE 0x3131424e /* '11BN', CodeView 5.0, * MS C7-format (/Z7). */ #define MD_CVINFOUNKNOWN_SIGNATURE 0xffffffff /* An unlikely value. */ /* (MDRawModule).miscRecord can reference MDImageDebugMisc. The Windows * structure is actually defined in WinNT.h. This structure is effectively * obsolete with modules built by recent toolchains. */ typedef struct { uint32_t data_type; /* IMAGE_DEBUG_TYPE_*, not defined here because * this debug record type is mostly obsolete. */ uint32_t length; /* Length of entire MDImageDebugMisc structure */ uint8_t unicode; /* True if data is multibyte */ uint8_t reserved[3]; uint8_t data[1]; } MDImageDebugMisc; /* IMAGE_DEBUG_MISC */ static const size_t MDImageDebugMisc_minsize = offsetof(MDImageDebugMisc, data[0]); typedef struct { uint32_t number_of_modules; MDRawModule modules[1]; } MDRawModuleList; /* MINIDUMP_MODULE_LIST */ static const size_t MDRawModuleList_minsize = offsetof(MDRawModuleList, modules[0]); typedef struct { uint32_t number_of_memory_ranges; MDMemoryDescriptor memory_ranges[1]; } MDRawMemoryList; /* MINIDUMP_MEMORY_LIST */ static const size_t MDRawMemoryList_minsize = offsetof(MDRawMemoryList, memory_ranges[0]); #define MD_EXCEPTION_MAXIMUM_PARAMETERS 15u typedef struct { uint32_t exception_code; /* Windows: MDExceptionCodeWin, * Mac OS X: MDExceptionMac, * Linux: MDExceptionCodeLinux. */ uint32_t exception_flags; /* Windows: 1 if noncontinuable, Mac OS X: MDExceptionCodeMac. */ uint64_t exception_record; /* Address (in the minidump-producing host's * memory) of another MDException, for * nested exceptions. */ uint64_t exception_address; /* The address that caused the exception. * Mac OS X: exception subcode (which is * typically the address). */ uint32_t number_parameters; /* Number of valid elements in * exception_information. */ uint32_t __align; uint64_t exception_information[MD_EXCEPTION_MAXIMUM_PARAMETERS]; } MDException; /* MINIDUMP_EXCEPTION */ #include "minidump_exception_fuchsia.h" #include "minidump_exception_linux.h" #include "minidump_exception_mac.h" #include "minidump_exception_ps3.h" #include "minidump_exception_solaris.h" #include "minidump_exception_win32.h" typedef struct { uint32_t thread_id; /* Thread in which the exception * occurred. Corresponds to * (MDRawThread).thread_id. */ uint32_t __align; MDException exception_record; MDLocationDescriptor thread_context; /* MDRawContext[CPU] */ } MDRawExceptionStream; /* MINIDUMP_EXCEPTION_STREAM */ typedef union { struct { uint32_t vendor_id[3]; /* cpuid 0: ebx, edx, ecx */ uint32_t version_information; /* cpuid 1: eax */ uint32_t feature_information; /* cpuid 1: edx */ uint32_t amd_extended_cpu_features; /* cpuid 0x80000001, ebx */ } x86_cpu_info; struct { uint32_t cpuid; uint32_t elf_hwcaps; /* linux specific, 0 otherwise */ } arm_cpu_info; struct { uint64_t processor_features[2]; } other_cpu_info; } MDCPUInformation; /* CPU_INFORMATION */ /* For (MDCPUInformation).arm_cpu_info.elf_hwcaps. * This matches the Linux kernel definitions from <asm/hwcaps.h> */ typedef enum { MD_CPU_ARM_ELF_HWCAP_SWP = (1 << 0), MD_CPU_ARM_ELF_HWCAP_HALF = (1 << 1), MD_CPU_ARM_ELF_HWCAP_THUMB = (1 << 2), MD_CPU_ARM_ELF_HWCAP_26BIT = (1 << 3), MD_CPU_ARM_ELF_HWCAP_FAST_MULT = (1 << 4), MD_CPU_ARM_ELF_HWCAP_FPA = (1 << 5), MD_CPU_ARM_ELF_HWCAP_VFP = (1 << 6), MD_CPU_ARM_ELF_HWCAP_EDSP = (1 << 7), MD_CPU_ARM_ELF_HWCAP_JAVA = (1 << 8), MD_CPU_ARM_ELF_HWCAP_IWMMXT = (1 << 9), MD_CPU_ARM_ELF_HWCAP_CRUNCH = (1 << 10), MD_CPU_ARM_ELF_HWCAP_THUMBEE = (1 << 11), MD_CPU_ARM_ELF_HWCAP_NEON = (1 << 12), MD_CPU_ARM_ELF_HWCAP_VFPv3 = (1 << 13), MD_CPU_ARM_ELF_HWCAP_VFPv3D16 = (1 << 14), MD_CPU_ARM_ELF_HWCAP_TLS = (1 << 15), MD_CPU_ARM_ELF_HWCAP_VFPv4 = (1 << 16), MD_CPU_ARM_ELF_HWCAP_IDIVA = (1 << 17), MD_CPU_ARM_ELF_HWCAP_IDIVT = (1 << 18), } MDCPUInformationARMElfHwCaps; typedef struct { /* The next 3 fields and numberOfProcessors are from the SYSTEM_INFO * structure as returned by GetSystemInfo */ uint16_t processor_architecture; uint16_t processor_level; /* x86: 5 = 586, 6 = 686, ... */ /* ARM: 6 = ARMv6, 7 = ARMv7 ... */ uint16_t processor_revision; /* x86: 0xMMSS, where MM=model, * SS=stepping */ /* ARM: 0 */ uint8_t number_of_processors; uint8_t product_type; /* Windows: VER_NT_* from WinNT.h */ /* The next 5 fields are from the OSVERSIONINFO structure as returned * by GetVersionEx */ uint32_t major_version; uint32_t minor_version; uint32_t build_number; uint32_t platform_id; MDRVA csd_version_rva; /* MDString further identifying the * host OS. * Windows: name of the installed OS * service pack. * Mac OS X: the Apple OS build number * (sw_vers -buildVersion). * Linux: uname -srvmo */ uint16_t suite_mask; /* Windows: VER_SUITE_* from WinNT.h */ uint16_t reserved2; MDCPUInformation cpu; } MDRawSystemInfo; /* MINIDUMP_SYSTEM_INFO */ /* For (MDRawSystemInfo).processor_architecture: */ typedef enum { MD_CPU_ARCHITECTURE_X86 = 0, /* PROCESSOR_ARCHITECTURE_INTEL */ MD_CPU_ARCHITECTURE_MIPS = 1, /* PROCESSOR_ARCHITECTURE_MIPS */ MD_CPU_ARCHITECTURE_ALPHA = 2, /* PROCESSOR_ARCHITECTURE_ALPHA */ MD_CPU_ARCHITECTURE_PPC = 3, /* PROCESSOR_ARCHITECTURE_PPC */ MD_CPU_ARCHITECTURE_SHX = 4, /* PROCESSOR_ARCHITECTURE_SHX * (Super-H) */ MD_CPU_ARCHITECTURE_ARM = 5, /* PROCESSOR_ARCHITECTURE_ARM */ MD_CPU_ARCHITECTURE_IA64 = 6, /* PROCESSOR_ARCHITECTURE_IA64 */ MD_CPU_ARCHITECTURE_ALPHA64 = 7, /* PROCESSOR_ARCHITECTURE_ALPHA64 */ MD_CPU_ARCHITECTURE_MSIL = 8, /* PROCESSOR_ARCHITECTURE_MSIL * (Microsoft Intermediate Language) */ MD_CPU_ARCHITECTURE_AMD64 = 9, /* PROCESSOR_ARCHITECTURE_AMD64 */ MD_CPU_ARCHITECTURE_X86_WIN64 = 10, /* PROCESSOR_ARCHITECTURE_IA32_ON_WIN64 (WoW64) */ MD_CPU_ARCHITECTURE_ARM64 = 12, /* PROCESSOR_ARCHITECTURE_ARM64 */ MD_CPU_ARCHITECTURE_SPARC = 0x8001, /* Breakpad-defined value for SPARC */ MD_CPU_ARCHITECTURE_PPC64 = 0x8002, /* Breakpad-defined value for PPC64 */ MD_CPU_ARCHITECTURE_ARM64_OLD = 0x8003, /* Breakpad-defined value for ARM64 */ MD_CPU_ARCHITECTURE_MIPS64 = 0x8004, /* Breakpad-defined value for MIPS64 */ MD_CPU_ARCHITECTURE_RISCV = 0x8005, /* Breakpad-defined value for RISCV */ MD_CPU_ARCHITECTURE_RISCV64 = 0x8006, /* Breakpad-defined value for RISCV64 */ MD_CPU_ARCHITECTURE_UNKNOWN = 0xffff /* PROCESSOR_ARCHITECTURE_UNKNOWN */ } MDCPUArchitecture; /* For (MDRawSystemInfo).platform_id: */ typedef enum { MD_OS_WIN32S = 0, /* VER_PLATFORM_WIN32s (Windows 3.1) */ MD_OS_WIN32_WINDOWS = 1, /* VER_PLATFORM_WIN32_WINDOWS (Windows 95-98-Me) */ MD_OS_WIN32_NT = 2, /* VER_PLATFORM_WIN32_NT (Windows NT, 2000+) */ MD_OS_WIN32_CE = 3, /* VER_PLATFORM_WIN32_CE, VER_PLATFORM_WIN32_HH * (Windows CE, Windows Mobile, "Handheld") */ /* The following values are Breakpad-defined. */ MD_OS_UNIX = 0x8000, /* Generic Unix-ish */ MD_OS_MAC_OS_X = 0x8101, /* Mac OS X/Darwin */ MD_OS_IOS = 0x8102, /* iOS */ MD_OS_LINUX = 0x8201, /* Linux */ MD_OS_SOLARIS = 0x8202, /* Solaris */ MD_OS_ANDROID = 0x8203, /* Android */ MD_OS_PS3 = 0x8204, /* PS3 */ MD_OS_NACL = 0x8205, /* Native Client (NaCl) */ MD_OS_FUCHSIA = 0x8206 /* Fuchsia */ } MDOSPlatform; typedef struct { uint64_t base_of_image; uint32_t size_of_image; uint32_t checksum; uint32_t time_date_stamp; MDRVA module_name_rva; } MDRawUnloadedModule; typedef struct { uint32_t size_of_header; uint32_t size_of_entry; uint32_t number_of_entries; } MDRawUnloadedModuleList; /* MINIDUMP_UNLOADED_MODULE_LIST */ typedef struct { uint16_t year; uint16_t month; uint16_t day_of_week; uint16_t day; uint16_t hour; uint16_t minute; uint16_t second; uint16_t milliseconds; } MDSystemTime; /* SYSTEMTIME */ typedef struct { /* Required field. The bias is the difference, in minutes, between * Coordinated Universal Time (UTC) and local time. * Formula: UTC = local time + bias */ int32_t bias; /* A description for standard time. For example, "EST" could indicate Eastern * Standard Time. In practice this contains the full time zone names. This * string can be empty. */ uint16_t standard_name[32]; /* UTF-16-encoded, 0-terminated */ /* A MDSystemTime structure that contains a date and local time when the * transition from daylight saving time to standard time occurs on this * operating system. If the time zone does not support daylight saving time, * the month member in the MDSystemTime structure is zero. */ MDSystemTime standard_date; /* The bias value to be used during local time translations that occur during * standard time. */ int32_t standard_bias; /* A description for daylight saving time. For example, "PDT" could indicate * Pacific Daylight Time. In practice this contains the full time zone names. * This string can be empty. */ uint16_t daylight_name[32]; /* UTF-16-encoded, 0-terminated */ /* A MDSystemTime structure that contains a date and local time when the * transition from standard time to daylight saving time occurs on this * operating system. If the time zone does not support daylight saving time, * the month member in the MDSystemTime structure is zero.*/ MDSystemTime daylight_date; /* The bias value to be used during local time translations that occur during * daylight saving time. */ int32_t daylight_bias; } MDTimeZoneInformation; /* TIME_ZONE_INFORMATION */ /* MAX_PATH from windef.h */ #define MD_MAX_PATH 260 /* For MDXStateConfigFeatureMscInfo.features */ typedef struct { uint32_t offset; uint32_t size; } MDXStateFeature; /* For MDXStateConfigFeatureMscInfo.enabled_features from winnt.h */ typedef enum { MD_XSTATE_LEGACY_FLOATING_POINT = 0, /* XSTATE_LEGACY_FLOATING_POINT */ MD_XSTATE_LEGACY_SSE = 1, /* XSTATE_LEGACY_SSE */ MD_XSTATE_GSSE = 2, /* XSTATE_GSSE */ MD_XSTATE_AVX = MD_XSTATE_GSSE, /* XSTATE_AVX */ MD_XSTATE_MPX_BNDREGS = 3, /* XSTATE_MPX_BNDREGS */ MD_XSTATE_MPX_BNDCSR = 4, /* XSTATE_MPX_BNDCSR */ MD_XSTATE_AVX512_KMASK = 5, /* XSTATE_AVX512_KMASK */ MD_XSTATE_AVX512_ZMM_H = 6, /* XSTATE_AVX512_ZMM_H */ MD_XSTATE_AVX512_ZMM = 7, /* XSTATE_AVX512_ZMM */ MD_XSTATE_IPT = 8, /* XSTATE_IPT */ MD_XSTATE_LWP = 62 /* XSTATE_LWP */ } MDXStateFeatureFlag; /* MAXIMUM_XSTATE_FEATURES from winnt.h */ #define MD_MAXIMUM_XSTATE_FEATURES 64 /* For MDRawMiscInfo.xstate_data */ typedef struct { uint32_t size_of_info; uint32_t context_size; /* An entry in the features array is valid only if the corresponding bit in * the enabled_features flag is set. */ uint64_t enabled_features; MDXStateFeature features[MD_MAXIMUM_XSTATE_FEATURES]; } MDXStateConfigFeatureMscInfo; /* The miscellaneous information stream contains a variety * of small pieces of information. A member is valid if * it's within the available size and its corresponding * bit is set. */ typedef struct { uint32_t size_of_info; /* Length of entire MDRawMiscInfo structure. */ uint32_t flags1; /* The next field is only valid if flags1 contains * MD_MISCINFO_FLAGS1_PROCESS_ID. */ uint32_t process_id; /* The next 3 fields are only valid if flags1 contains * MD_MISCINFO_FLAGS1_PROCESS_TIMES. */ uint32_t process_create_time; /* time_t process started */ uint32_t process_user_time; /* seconds of user CPU time */ uint32_t process_kernel_time; /* seconds of kernel CPU time */ /* The following fields are not present in MINIDUMP_MISC_INFO but are * in MINIDUMP_MISC_INFO_2. When this struct is populated, these values * may not be set. Use flags1 and size_of_info to determine whether these * values are present. These are only valid when flags1 contains * MD_MISCINFO_FLAGS1_PROCESSOR_POWER_INFO. */ uint32_t processor_max_mhz; uint32_t processor_current_mhz; uint32_t processor_mhz_limit; uint32_t processor_max_idle_state; uint32_t processor_current_idle_state; /* The following fields are not present in MINIDUMP_MISC_INFO_2 but are * in MINIDUMP_MISC_INFO_3. When this struct is populated, these values * may not be set. Use flags1 and size_of_info to determine whether these * values are present. */ /* The following field is only valid if flags1 contains * MD_MISCINFO_FLAGS1_PROCESS_INTEGRITY. */ uint32_t process_integrity_level; /* The following field is only valid if flags1 contains * MD_MISCINFO_FLAGS1_PROCESS_EXECUTE_FLAGS. */ uint32_t process_execute_flags; /* The following field is only valid if flags1 contains * MD_MISCINFO_FLAGS1_PROTECTED_PROCESS. */ uint32_t protected_process; /* The following 2 fields are only valid if flags1 contains * MD_MISCINFO_FLAGS1_TIMEZONE. */ uint32_t time_zone_id; MDTimeZoneInformation time_zone; /* The following fields are not present in MINIDUMP_MISC_INFO_3 but are * in MINIDUMP_MISC_INFO_4. When this struct is populated, these values * may not be set. Use flags1 and size_of_info to determine whether these * values are present. */ /* The following 2 fields are only valid if flags1 contains * MD_MISCINFO_FLAGS1_BUILDSTRING. */ uint16_t build_string[MD_MAX_PATH]; /* UTF-16-encoded, 0-terminated */ uint16_t dbg_bld_str[40]; /* UTF-16-encoded, 0-terminated */ /* The following fields are not present in MINIDUMP_MISC_INFO_4 but are * in MINIDUMP_MISC_INFO_5. When this struct is populated, these values * may not be set. Use flags1 and size_of_info to determine whether these * values are present. */ /* The following field has its own flags for establishing the validity of * the structure's contents.*/ MDXStateConfigFeatureMscInfo xstate_data; /* The following field is only valid if flags1 contains * MD_MISCINFO_FLAGS1_PROCESS_COOKIE. */ uint32_t process_cookie; } MDRawMiscInfo; /* MINIDUMP_MISC_INFO, MINIDUMP_MISC_INFO_2, * MINIDUMP_MISC_INFO_3, MINIDUMP_MISC_INFO_4, * MINIDUMP_MISC_INFO_5, MINIDUMP_MISC_INFO_N */ static const size_t MD_MISCINFO_SIZE = offsetof(MDRawMiscInfo, processor_max_mhz); static const size_t MD_MISCINFO2_SIZE = offsetof(MDRawMiscInfo, process_integrity_level); static const size_t MD_MISCINFO3_SIZE = offsetof(MDRawMiscInfo, build_string[0]); static const size_t MD_MISCINFO4_SIZE = offsetof(MDRawMiscInfo, xstate_data); /* Version 5 of the MDRawMiscInfo structure is not a multiple of 8 in size and * yet it contains some 8-bytes sized fields. This causes many compilers to * round the structure size up to a multiple of 8 by adding padding at the end. * The following hack is thus required for matching the proper on-disk size. */ static const size_t MD_MISCINFO5_SIZE = offsetof(MDRawMiscInfo, process_cookie) + sizeof(uint32_t); /* For (MDRawMiscInfo).flags1. These values indicate which fields in the * MDRawMiscInfoStructure are valid. */ typedef enum { MD_MISCINFO_FLAGS1_PROCESS_ID = 0x00000001, /* MINIDUMP_MISC1_PROCESS_ID */ MD_MISCINFO_FLAGS1_PROCESS_TIMES = 0x00000002, /* MINIDUMP_MISC1_PROCESS_TIMES */ MD_MISCINFO_FLAGS1_PROCESSOR_POWER_INFO = 0x00000004, /* MINIDUMP_MISC1_PROCESSOR_POWER_INFO */ MD_MISCINFO_FLAGS1_PROCESS_INTEGRITY = 0x00000010, /* MINIDUMP_MISC3_PROCESS_INTEGRITY */ MD_MISCINFO_FLAGS1_PROCESS_EXECUTE_FLAGS = 0x00000020, /* MINIDUMP_MISC3_PROCESS_EXECUTE_FLAGS */ MD_MISCINFO_FLAGS1_TIMEZONE = 0x00000040, /* MINIDUMP_MISC3_TIMEZONE */ MD_MISCINFO_FLAGS1_PROTECTED_PROCESS = 0x00000080, /* MINIDUMP_MISC3_PROTECTED_PROCESS */ MD_MISCINFO_FLAGS1_BUILDSTRING = 0x00000100, /* MINIDUMP_MISC4_BUILDSTRING */ MD_MISCINFO_FLAGS1_PROCESS_COOKIE = 0x00000200, /* MINIDUMP_MISC5_PROCESS_COOKIE */ } MDMiscInfoFlags1; /* * Around DbgHelp version 6.0, the style of new LIST structures changed * from including an array of length 1 at the end of the struct to * represent the variable-length data to including explicit * "size of header", "size of entry" and "number of entries" fields * in the header, presumably to allow backwards-compatibly-extending * the structures in the future. The actual list entries follow the * header data directly in this case. */ typedef struct { uint32_t size_of_header; /* sizeof(MDRawMemoryInfoList) */ uint32_t size_of_entry; /* sizeof(MDRawMemoryInfo) */ uint64_t number_of_entries; } MDRawMemoryInfoList; /* MINIDUMP_MEMORY_INFO_LIST */ typedef struct { uint64_t base_address; /* Base address of a region of pages */ uint64_t allocation_base; /* Base address of a range of pages * within this region. */ uint32_t allocation_protection; /* Memory protection when this region * was originally allocated: * MDMemoryProtection */ uint32_t __alignment1; uint64_t region_size; uint32_t state; /* MDMemoryState */ uint32_t protection; /* MDMemoryProtection */ uint32_t type; /* MDMemoryType */ uint32_t __alignment2; } MDRawMemoryInfo; /* MINIDUMP_MEMORY_INFO */ /* For (MDRawMemoryInfo).state */ typedef enum { MD_MEMORY_STATE_COMMIT = 0x1000, /* physical storage has been allocated */ MD_MEMORY_STATE_RESERVE = 0x2000, /* reserved, but no physical storage */ MD_MEMORY_STATE_FREE = 0x10000 /* available to be allocated */ } MDMemoryState; /* For (MDRawMemoryInfo).allocation_protection and .protection */ typedef enum { MD_MEMORY_PROTECT_NOACCESS = 0x01, /* PAGE_NOACCESS */ MD_MEMORY_PROTECT_READONLY = 0x02, /* PAGE_READONLY */ MD_MEMORY_PROTECT_READWRITE = 0x04, /* PAGE_READWRITE */ MD_MEMORY_PROTECT_WRITECOPY = 0x08, /* PAGE_WRITECOPY */ MD_MEMORY_PROTECT_EXECUTE = 0x10, /* PAGE_EXECUTE */ MD_MEMORY_PROTECT_EXECUTE_READ = 0x20, /* PAGE_EXECUTE_READ */ MD_MEMORY_PROTECT_EXECUTE_READWRITE = 0x40, /* PAGE_EXECUTE_READWRITE */ MD_MEMORY_PROTECT_EXECUTE_WRITECOPY = 0x80, /* PAGE_EXECUTE_WRITECOPY */ /* These options can be combined with the previous flags. */ MD_MEMORY_PROTECT_GUARD = 0x100, /* PAGE_GUARD */ MD_MEMORY_PROTECT_NOCACHE = 0x200, /* PAGE_NOCACHE */ MD_MEMORY_PROTECT_WRITECOMBINE = 0x400, /* PAGE_WRITECOMBINE */ } MDMemoryProtection; /* Used to mask the mutually exclusive options from the combinable flags. */ const uint32_t MD_MEMORY_PROTECTION_ACCESS_MASK = 0xFF; /* For (MDRawMemoryInfo).type */ typedef enum { MD_MEMORY_TYPE_PRIVATE = 0x20000, /* not shared by other processes */ MD_MEMORY_TYPE_MAPPED = 0x40000, /* mapped into the view of a section */ MD_MEMORY_TYPE_IMAGE = 0x1000000 /* mapped into the view of an image */ } MDMemoryType; /* * Breakpad extension types */ typedef struct { /* validity is a bitmask with values from MDBreakpadInfoValidity, indicating * which of the other fields in the structure are valid. */ uint32_t validity; /* Thread ID of the handler thread. dump_thread_id should correspond to * the thread_id of an MDRawThread in the minidump's MDRawThreadList if * a dedicated thread in that list was used to produce the minidump. If * the MDRawThreadList does not contain a dedicated thread used to produce * the minidump, this field should be set to 0 and the validity field * must not contain MD_BREAKPAD_INFO_VALID_DUMP_THREAD_ID. */ uint32_t dump_thread_id; /* Thread ID of the thread that requested the minidump be produced. As * with dump_thread_id, requesting_thread_id should correspond to the * thread_id of an MDRawThread in the minidump's MDRawThreadList. For * minidumps produced as a result of an exception, requesting_thread_id * will be the same as the MDRawExceptionStream's thread_id field. For * minidumps produced "manually" at the program's request, * requesting_thread_id will indicate which thread caused the dump to be * written. If the minidump was produced at the request of something * other than a thread in the MDRawThreadList, this field should be set * to 0 and the validity field must not contain * MD_BREAKPAD_INFO_VALID_REQUESTING_THREAD_ID. */ uint32_t requesting_thread_id; } MDRawBreakpadInfo; /* For (MDRawBreakpadInfo).validity: */ typedef enum { /* When set, the dump_thread_id field is valid. */ MD_BREAKPAD_INFO_VALID_DUMP_THREAD_ID = 1 << 0, /* When set, the requesting_thread_id field is valid. */ MD_BREAKPAD_INFO_VALID_REQUESTING_THREAD_ID = 1 << 1 } MDBreakpadInfoValidity; typedef struct { /* expression, function, and file are 0-terminated UTF-16 strings. They * may be truncated if necessary, but should always be 0-terminated when * written to a file. * Fixed-length strings are used because MiniDumpWriteDump doesn't offer * a way for user streams to point to arbitrary RVAs for strings. */ uint16_t expression[128]; /* Assertion that failed... */ uint16_t function[128]; /* ...within this function... */ uint16_t file[128]; /* ...in this file... */ uint32_t line; /* ...at this line. */ uint32_t type; } MDRawAssertionInfo; /* For (MDRawAssertionInfo).type: */ typedef enum { MD_ASSERTION_INFO_TYPE_UNKNOWN = 0, /* Used for assertions that would be raised by the MSVC CRT but are * directed to an invalid parameter handler instead. */ MD_ASSERTION_INFO_TYPE_INVALID_PARAMETER, /* Used for assertions that would be raised by the MSVC CRT but are * directed to a pure virtual call handler instead. */ MD_ASSERTION_INFO_TYPE_PURE_VIRTUAL_CALL } MDAssertionInfoData; /* These structs are used to store the DSO debug data in Linux minidumps, * which is necessary for converting minidumps to usable coredumps. * Because of a historical accident, several fields are variably encoded * according to client word size, so tools potentially need to support both. */ typedef struct { uint32_t addr; MDRVA name; uint32_t ld; } MDRawLinkMap32; typedef struct { uint32_t version; MDRVA map; /* array of MDRawLinkMap32 */ uint32_t dso_count; uint32_t brk; uint32_t ldbase; uint32_t dynamic; } MDRawDebug32; typedef struct { uint64_t addr; MDRVA name; uint64_t ld; } MDRawLinkMap64; typedef struct { uint32_t version; MDRVA map; /* array of MDRawLinkMap64 */ uint32_t dso_count; uint64_t brk; uint64_t ldbase; uint64_t dynamic; } MDRawDebug64; /* Crashpad extension types. See Crashpad's minidump/minidump_extensions.h. */ typedef struct { MDRVA key; MDRVA value; } MDRawSimpleStringDictionaryEntry; typedef struct { uint32_t count; MDRawSimpleStringDictionaryEntry entries[0]; } MDRawSimpleStringDictionary; typedef struct { MDRVA name; uint16_t type; uint16_t reserved; MDRVA value; } MDRawCrashpadAnnotation; typedef struct { uint32_t count; MDRawCrashpadAnnotation objects[0]; } MDRawCrashpadAnnotationList; typedef struct { uint32_t version; MDLocationDescriptor list_annotations; MDLocationDescriptor simple_annotations; /* MDRawSimpleStringDictionary */ MDLocationDescriptor annotation_objects; /* MDRawCrashpadAnnotationList */ } MDRawModuleCrashpadInfo; typedef struct { uint32_t minidump_module_list_index; MDLocationDescriptor location; /* MDRawModuleCrashpadInfo */ } MDRawModuleCrashpadInfoLink; typedef struct { uint32_t count; MDRawModuleCrashpadInfoLink modules[0]; } MDRawModuleCrashpadInfoList; typedef struct { uint32_t version; MDGUID report_id; MDGUID client_id; MDLocationDescriptor simple_annotations; /* MDRawSimpleStringDictionary */ MDLocationDescriptor module_list; /* MDRawModuleCrashpadInfoList */ uint32_t reserved; uint64_t address_mask; } MDRawCrashpadInfo; #if defined(_MSC_VER) #pragma warning(pop) #endif /* _MSC_VER */ #endif /* GOOGLE_BREAKPAD_COMMON_MINIDUMP_FORMAT_H__ */ ```
```ruby require_relative '../../spec_helper' require_relative 'fixtures/classes' describe "IO.pipe" do after :each do @r.close if @r && !@r.closed? @w.close if @w && !@w.closed? end it "creates a two-ended pipe" do @r, @w = IO.pipe @w.puts "test_create_pipe\\n" @w.close @r.read(16).should == "test_create_pipe" end it "returns two IO objects" do @r, @w = IO.pipe @r.should be_kind_of(IO) @w.should be_kind_of(IO) end it "returns instances of a subclass when called on a subclass" do @r, @w = IOSpecs::SubIO.pipe @r.should be_an_instance_of(IOSpecs::SubIO) @w.should be_an_instance_of(IOSpecs::SubIO) end it "does not use IO.new method to create pipes and allows its overriding" do ScratchPad.record [] # so redefined .new is not called, but original #initialize is @r, @w = IOSpecs::SubIOWithRedefinedNew.pipe ScratchPad.recorded.should == [:call_original_initialize, :call_original_initialize] # called 2 times - for each pipe (r and w) @r.should be_an_instance_of(IOSpecs::SubIOWithRedefinedNew) @w.should be_an_instance_of(IOSpecs::SubIOWithRedefinedNew) end end describe "IO.pipe" do describe "passed a block" do it "yields two IO objects" do IO.pipe do |r, w| r.should be_kind_of(IO) w.should be_kind_of(IO) end end it "returns the result of the block" do IO.pipe { |r, w| :result }.should == :result end it "closes both IO objects" do r, w = IO.pipe do |_r, _w| [_r, _w] end r.should.closed? w.should.closed? end it "closes both IO objects when the block raises" do r = w = nil -> do IO.pipe do |_r, _w| r = _r w = _w raise RuntimeError end end.should raise_error(RuntimeError) r.should.closed? w.should.closed? end it "allows IO objects to be closed within the block" do r, w = IO.pipe do |_r, _w| _r.close _w.close [_r, _w] end r.should.closed? w.should.closed? end end end describe "IO.pipe" do before :each do @default_external = Encoding.default_external @default_internal = Encoding.default_internal end after :each do Encoding.default_external = @default_external Encoding.default_internal = @default_internal end it "sets the external encoding of the read end to the default when passed no arguments" do Encoding.default_external = Encoding::ISO_8859_1 IO.pipe do |r, w| r.external_encoding.should == Encoding::ISO_8859_1 r.internal_encoding.should be_nil end end it "sets the internal encoding of the read end to the default when passed no arguments" do Encoding.default_external = Encoding::ISO_8859_1 Encoding.default_internal = Encoding::UTF_8 IO.pipe do |r, w| r.external_encoding.should == Encoding::ISO_8859_1 r.internal_encoding.should == Encoding::UTF_8 end end it "sets the internal encoding to nil if the same as the external" do Encoding.default_external = Encoding::UTF_8 Encoding.default_internal = Encoding::UTF_8 IO.pipe do |r, w| r.external_encoding.should == Encoding::UTF_8 r.internal_encoding.should be_nil end end it "sets the external encoding of the read end when passed an Encoding argument" do IO.pipe(Encoding::UTF_8) do |r, w| r.external_encoding.should == Encoding::UTF_8 r.internal_encoding.should be_nil end end it "sets the external and internal encodings of the read end when passed two Encoding arguments" do IO.pipe(Encoding::UTF_8, Encoding::UTF_16BE) do |r, w| r.external_encoding.should == Encoding::UTF_8 r.internal_encoding.should == Encoding::UTF_16BE end end it "sets the external encoding of the read end when passed the name of an Encoding" do IO.pipe("UTF-8") do |r, w| r.external_encoding.should == Encoding::UTF_8 r.internal_encoding.should be_nil end end it "accepts 'bom|' prefix for external encoding" do IO.pipe("BOM|UTF-8") do |r, w| r.external_encoding.should == Encoding::UTF_8 r.internal_encoding.should be_nil end end it "sets the external and internal encodings specified as a String and separated with a colon" do IO.pipe("UTF-8:ISO-8859-1") do |r, w| r.external_encoding.should == Encoding::UTF_8 r.internal_encoding.should == Encoding::ISO_8859_1 end end it "accepts 'bom|' prefix for external encoding when specifying 'external:internal'" do IO.pipe("BOM|UTF-8:ISO-8859-1") do |r, w| r.external_encoding.should == Encoding::UTF_8 r.internal_encoding.should == Encoding::ISO_8859_1 end end it "sets the external and internal encoding when passed two String arguments" do IO.pipe("UTF-8", "UTF-16BE") do |r, w| r.external_encoding.should == Encoding::UTF_8 r.internal_encoding.should == Encoding::UTF_16BE end end it "accepts an options Hash with one String encoding argument" do IO.pipe("BOM|UTF-8:ISO-8859-1", invalid: :replace) do |r, w| r.external_encoding.should == Encoding::UTF_8 r.internal_encoding.should == Encoding::ISO_8859_1 end end it "accepts an options Hash with two String encoding arguments" do IO.pipe("UTF-8", "ISO-8859-1", invalid: :replace) do |r, w| r.external_encoding.should == Encoding::UTF_8 r.internal_encoding.should == Encoding::ISO_8859_1 end end it "calls #to_hash to convert an options argument" do options = mock("io pipe encoding options") options.should_receive(:to_hash).and_return({ invalid: :replace }) IO.pipe("UTF-8", "ISO-8859-1", **options) { |r, w| } end it "calls #to_str to convert the first argument to a String" do obj = mock("io_pipe_encoding") obj.should_receive(:to_str).and_return("UTF-8:UTF-16BE") IO.pipe(obj) do |r, w| r.external_encoding.should == Encoding::UTF_8 r.internal_encoding.should == Encoding::UTF_16BE end end it "calls #to_str to convert the second argument to a String" do obj = mock("io_pipe_encoding") obj.should_receive(:to_str).at_least(1).times.and_return("UTF-16BE") IO.pipe(Encoding::UTF_8, obj) do |r, w| r.external_encoding.should == Encoding::UTF_8 r.internal_encoding.should == Encoding::UTF_16BE end end it "sets no external encoding for the write end" do IO.pipe(Encoding::UTF_8) do |r, w| w.external_encoding.should be_nil end end it "sets no internal encoding for the write end" do IO.pipe(Encoding::UTF_8) do |r, w| w.external_encoding.should be_nil end end end ```
```xml <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="path_to_url" xmlns:app="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/teal_500_teal_400"> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/turnOnNotifications_fragment_container"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:id="@+id/turnOnNotifications_title_container" android:layout_marginLeft="24dp" android:layout_marginRight="24dp" android:layout_marginTop="64dp"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/turnOnNotifications_title" android:gravity="center" android:layout_gravity="center" android:text="@string/turn_on_notifications_title" android:textAppearance="@style/TextAppearance.Mega.Subtitle1.Medium.Variant3" /> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/turnOnNotifications_subtitle" android:layout_marginTop="24dp" android:gravity="center" android:layout_gravity="center" android:text="@string/turn_on_notifications_subtitle" android:textAppearance="@style/TextAppearance.Mega.Subtitle1.Variant4"/> </LinearLayout> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/turnOnNotifications_content_container" android:layout_marginTop="40dp" android:layout_marginLeft="24dp" android:layout_marginRight="24dp"> <LinearLayout android:id="@+id/turnOnNotifications_container_first_step" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <ImageView android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/ic_w_settings" app:tint="@color/white_grey_087" /> <LinearLayout android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="center_vertical"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="12dp" android:textAppearance="@style/TextAppearance.Mega.Subtitle1.Medium.Variant5" android:text="1."/> <TextView android:id="@+id/first_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:textAppearance="@style/TextAppearance.Mega.Subtitle1.Medium.Variant4" /> </LinearLayout> </LinearLayout> <LinearLayout android:id="@+id/turnOnNotifications_container_second_step" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="27dp" android:orientation="horizontal" android:layout_below="@id/turnOnNotifications_container_first_step"> <ImageView android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/ic_apps" app:tint="@color/white_grey_087" /> <LinearLayout android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="center_vertical"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="12dp" android:textAppearance="@style/TextAppearance.Mega.Subtitle1.Medium.Variant5" android:text="2."/> <TextView android:id="@+id/second_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:textAppearance="@style/TextAppearance.Mega.Subtitle1.Medium.Variant4" /> </LinearLayout> </LinearLayout> <LinearLayout android:id="@+id/turnOnNotifications_container_third_step" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="27dp" android:orientation="horizontal" android:layout_below="@id/turnOnNotifications_container_second_step"> <ImageView android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/ic_mega_logo" app:tint="@color/white_grey_087" /> <LinearLayout android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="center_vertical"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="12dp" android:textAppearance="@style/TextAppearance.Mega.Subtitle1.Medium.Variant5" android:text="3."/> <TextView android:id="@+id/third_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:textAppearance="@style/TextAppearance.Mega.Subtitle1.Medium.Variant4" /> </LinearLayout> </LinearLayout> <LinearLayout android:id="@+id/turnOnNotifications_container_fourth_step" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="36dp" android:layout_marginTop="27dp" android:orientation="horizontal" android:layout_below="@id/turnOnNotifications_container_third_step"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.Mega.Subtitle1.Medium.Variant5" android:text="4."/> <TextView android:id="@+id/fourth_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:textAppearance="@style/TextAppearance.Mega.Subtitle1.Medium.Variant4" /> </LinearLayout> <LinearLayout android:id="@+id/turnOnNotifications_container_fifth_step" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="36dp" android:layout_marginTop="27dp" android:layout_marginBottom="100dp" android:orientation="horizontal" android:layout_below="@id/turnOnNotifications_container_fourth_step"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.Mega.Subtitle1.Medium.Variant5" android:text="5."/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:text="@string/turn_on_notifications_fifth_step" android:textAppearance="@style/TextAppearance.Mega.Subtitle1.Medium.Variant4" /> </LinearLayout> </RelativeLayout> </LinearLayout> </ScrollView> ```
Sir Philip Carteret, 1st Baronet (1620 – between 1663 and 1675), also known as Philippe de Carteret III, was the 4th Seigneur of Sark. He supported the Royalist (Cavalier) cause during the War of the Three Kingdoms. Biography Philip Carteret was the son of Philippe de Carteret II. He succeeded to the Seigneurie of Sark on the death of his father in 1643. During the English Civil War Carteret was lieutenant to his kinsman George Carteret, and was knighted on the beach of St Aubin's Bay in Jersey by the exiled Charles, Prince of Wales in 1645. In 1661 he became Bailiff of Jersey. in 1670 he was created a baronet, of St Ouen on the Island of Jersey. Family Carteret married Anne (1566–1644), daughter of Abraham Dumaresq Seig Des Augres. They had children including Phillip (1650-1693) and two daughters. References Sources 1620 births 1660s deaths Philippe de Carteret III People from Sark Bailiffs of Jersey Baronets in the Baronetage of England
```html <!--Three line list with avatar --> <ul class="list-group pmd-z-depth pmd-list pmd-card-list"> <li class="list-group-item"> <div class="media-left"> <a href="javascript:void(0);" class="avatar-list-img"> <img alt="40x40" data-src="holder.js/40x40" class="img-responsive" src="path_to_url" data-holder-rendered="true"> </a> </div> <div class="media-body"> <h3 class="list-group-item-heading">Two-line item</h3> <span class="list-group-item-text">Lorem Ipsum is simply dummy text of the printing and typesetting industry. </span> </div> </li> <li class="list-group-item"> <div class="media-left"> <a href="javascript:void(0);" class="avatar-list-img"> <img alt="40x40" data-src="holder.js/40x40" class="img-responsive" src="path_to_url" data-holder-rendered="true"> </a> </div> <div class="media-body"> <h3 class="list-group-item-heading">Two-line item</h3> <span class="list-group-item-text">Lorem Ipsum is simply dummy text of the printing and typesetting industry. </span> </div> </li> <li class="list-group-item"> <div class="media-left"> <a href="javascript:void(0);" class="avatar-list-img"> <img alt="40x40" data-src="holder.js/40x40" class="img-responsive" src="path_to_url" data-holder-rendered="true"> </a> </div> <div class="media-body"> <h3 class="list-group-item-heading">Two-line item</h3> <span class="list-group-item-text">Lorem Ipsum is simply dummy text of the printing and typesetting industry. </span> </div> </li> </ul> <!--Three line list with avatar and icon --> <ul class="list-group pmd-z-depth pmd-list pmd-card-list"> <li class="list-group-item"> <div class="media-left"> <a href="javascript:void(0);" class="avatar-list-img"> <img alt="40x40" data-src="holder.js/40x40" class="img-responsive" src="path_to_url" data-holder-rendered="true"> </a> </div> <div class="media-body"> <h3 class="list-group-item-heading">Two-line item</h3> <span class="list-group-item-text">Lorem Ipsum is simply dummy text of the printing and typesetting industry. </span> </div> <i class="material-icons media-right">check_box</i> </li> <li class="list-group-item"> <div class="media-left"> <a href="javascript:void(0);" class="avatar-list-img"> <img alt="40x40" data-src="holder.js/40x40" class="img-responsive" src="path_to_url" data-holder-rendered="true"> </a> </div> <div class="media-body"> <h3 class="list-group-item-heading">Two-line item</h3> <span class="list-group-item-text">Lorem Ipsum is simply dummy text of the printing and typesetting industry. </span> </div> <i class="material-icons media-right">check_box_outline_blank</i> </li> <li class="list-group-item"> <div class="media-left"> <a href="javascript:void(0);" class="avatar-list-img"> <img alt="40x40" data-src="holder.js/40x40" class="img-responsive" src="path_to_url" data-holder-rendered="true"> </a> </div> <div class="media-body"> <h3 class="list-group-item-heading">Two-line item</h3> <span class="list-group-item-text">Lorem Ipsum is simply dummy text of the printing and typesetting industry. </span> </div> <i class="material-icons media-right">check_box_outline_blank</i> </li> </ul> ```
```php <?php return ['domain'=>NULL,'plural-forms'=>NULL,'language'=>'da_DK','project-id-version'=>'Advanced Custom Fields','pot-creation-date'=>'2024-07-18T08:47:14+00:00','po-revision-date'=>'2024-05-22T11:47:45+00:00','x-generator'=>'gettext','messages'=>['[ACF shortcode value disabled for preview]'=>'[Vrdien af ACF shortcode vises ikke i preview]','Close Modal'=>'Luk modal','Field moved to other group'=>'Felt er flyttet til en anden gruppe','Close modal'=>'Luk modal','Start a new group of tabs at this tab.'=>'Start en ny gruppe af tabs med denne tab.','New Tab Group'=>'Ny tab gruppe','Use a stylized checkbox using select2'=>'Brug en stylet checkbox med select2','Save Other Choice'=>'Gem andre valg','Allow Other Choice'=>'Tillad Andet valg','Add Toggle All'=>'Tilfj "Vlg alle"','Save Custom Values'=>'Gem brugerdefineret vrdier','Allow Custom Values'=>'Tillad brugerdefinerede vrdier','Updates'=>'Opdateringer','Advanced Custom Fields logo'=>'Advanced Custom Fields logo','Save Changes'=>'Gem ndringer','Field Group Title'=>'Feltgruppe titel','Add title'=>'Tilfj titel','New to ACF? Take a look at our <a href="%s" target="_blank">getting started guide</a>.'=>'Ny til ACF? Tag et kig p vores <a href="%s" target="_blank">kom godt i gang guide</a>.','<strong>Error</strong>: %s'=>'<strong>FEJL</strong>: %s','Widget'=>'Widget','User Role'=>'Brugerrolle','Comment'=>'Kommentar','Post Format'=>'Indlgsformat','Menu Item'=>'Menu element','Post Status'=>'Indlgs status','Menus'=>'Menuer','Menu Locations'=>'Menu omrder','Menu'=>'Menu','Post Taxonomy'=>'Indlgstaksonomi','Posts Page'=>'Indlgsside','Front Page'=>'Forside','Page Type'=>'Sidetype','Viewing back end'=>'Viser backend','Viewing front end'=>'Viser frontend','Logged in'=>'Logget ind','Current User'=>'Nuvrende bruger','Page Template'=>'Sideskabelon','Register'=>'Registrer','Add / Edit'=>'Tilfj / rediger','User Form'=>'Brugerformular','Page Parent'=>'Sideforlder','Super Admin'=>'Superadministrator','Current User Role'=>'Nuvrende brugerrolle','Default Template'=>'Standard skabelon','Post Template'=>'Indlgsskabelon','Post Category'=>'Indlgskategori','All %s formats'=>'Alle %s formater','Attachment'=>'Vedhftning','%s value is required'=>'%s vrdi er pkrvet','Show this field if'=>'Vis dette felt hvis','Conditional Logic'=>'Betinget logik','and'=>'og','Local JSON'=>'Lokal JSON','Clone Field'=>'Klon felt','Please also check all premium add-ons (%s) are updated to the latest version.'=>'Tjek ogs at alle premium add-ons (%s) er opdateret til den seneste version.','This version contains improvements to your database and requires an upgrade.'=>'Denne version indeholder en opdatering af din database og krver en opgradering.','Thank you for updating to %1$s v%2$s!'=>'Tak fordi du opdaterede til %1$s v%2$s!','Database Upgrade Required'=>'Databaseopgradering pkrvet','Options Page'=>'Indstillinger side','Gallery'=>'Galleri','Flexible Content'=>'Fleksibelt indhold','Repeater'=>'Gentagelser','Back to all tools'=>'Tilbage til alle vrktjer','<b>Select</b> items to <b>hide</b> them from the edit screen.'=>'<b>Vlg</b> elementer for at <b>skjule</b> dem i p redigeringssiden.','Hide on screen'=>'Skjul p skrm','Send Trackbacks'=>'Send trackbacks','Tags'=>'Tags','Categories'=>'Kategorier','Page Attributes'=>'Sideegenskaber','Format'=>'Format','Author'=>'Forfatter','Slug'=>'Korttitel','Revisions'=>'ndringer','Comments'=>'Kommentarer','Discussion'=>'Diskussion','Excerpt'=>'Uddrag','Content Editor'=>'Indholdseditor','Permalink'=>'Permalink','Shown in field group list'=>'Vist i feltgruppe liste','Field groups with a lower order will appear first'=>'Feltgrupper med et lavere rkkeflge nr. vises frst.','Order No.'=>'Rkkeflge nr.','Below fields'=>'Under felter','Below labels'=>'Under labels','Instruction Placement'=>'Instruktions placering','Label Placement'=>'Label placering','Side'=>'Side','Normal (after content)'=>'Normal (efter indhold)','High (after title)'=>'Hj (efter titel)','Position'=>'Placering','Seamless (no metabox)'=>'Integreret (ingen metaboks)','Standard (WP metabox)'=>'Standard (WP Metaboks)','Style'=>'Stil','Type'=>'Type','Key'=>'Ngle','Order'=>'Sortering','Close Field'=>'Luk felt','id'=>'id','class'=>'class','width'=>'bredde','Required'=>'Pkrvet','Instructions for authors. Shown when submitting data'=>'Instruktioner til forfattere. Bliver vist nr data indsendes','Instructions'=>'Instruktioner','Field Type'=>'Felttype','Single word, no spaces. Underscores and dashes allowed'=>'Enkelt ord, ingen mellemrum. Understregning og bindestreger er tilladt.','Field Name'=>'Feltnavn','This is the name which will appear on the EDIT page'=>'Dette er navnet der vil blive vist p REDIGER siden','Field Label'=>'Felt label','Delete'=>'Slet','Delete field'=>'Slet felt','Move'=>'Flyt','Move field to another group'=>'Flyt felt til anden gruppe','Duplicate field'=>'Duplikr felt','Edit field'=>'Rediger felt','Drag to reorder'=>'Trk for at ndre rkkeflgen','Show this field group if'=>'Vis denne feltgruppe hvis','No updates available.'=>'Ingen tilgngelige opdateringer','Database upgrade complete. <a href="%s">See what\'s new</a>'=>'Database opgradering udfrt. <a href="%s">Se hvad der er ndret</a>','Reading upgrade tasks...'=>'Indlser opgraderings opgaver...','Upgrade failed.'=>'Opdatering fejlede.','Upgrade complete.'=>'Opdatering gennemfrt','Upgrading data to version %s'=>'Opdaterer data til version %s','It is strongly recommended that you backup your database before proceeding. Are you sure you wish to run the updater now?'=>'Det er yderst anbefalet at du tager en backup af din database inden du fortstter. Er du sikker p at du vil kre opdateringen nu?','Please select at least one site to upgrade.'=>'Vlg venligst mindst et websted at opgradere.','Database Upgrade complete. <a href="%s">Return to network dashboard</a>'=>'Databaseopgradering udfrt. <a href="%s">Tilbage til netvrk kontrolpanel</a>','Site is up to date'=>'Webstedet er opdateret','Site requires database upgrade from %1$s to %2$s'=>'Webstedet krver en databaseopgradering %1$s til %2$s','Site'=>'Websted','Upgrade Sites'=>'Opgrader websteder','The following sites require a DB upgrade. Check the ones you want to update and then click %s.'=>'De flgende websteder krver en databaseopgradering. Vlg dem du nsker at opgradere og klik p %s.','Add rule group'=>'Tilfj regelgruppe','Rules'=>'Regler','Copied'=>'Kopieret','Copy to clipboard'=>'Kopier til udklipsholder','Select Field Groups'=>'Vlg feltgrupper','No field groups selected'=>'Ingen feltgrupper valgt','Generate PHP'=>'Generr PHP','Export Field Groups'=>'Eksporter feltgrupper','Import file empty'=>'Importeret fil er tom','Incorrect file type'=>'Forkert filtype','Error uploading file. Please try again'=>'Fejl ved upload af fil. Prv venligst igen','Select the Advanced Custom Fields JSON file you would like to import. When you click the import button below, ACF will import the items in that file.'=>'Vlg ACF JSON filen du gerne vil importere. Nr du klikker import herunder, vil ACF importere feltgrupperne.','Import Field Groups'=>'Importer feltgrupper','Sync'=>'Synkroniser','Select %s'=>'Vlg %s','Duplicate'=>'Duplikr','Duplicate this item'=>'Dupliker dette element','Supports'=>'Understtter','Documentation'=>'Dokumentation','Description'=>'Beskrivelse','Sync available'=>'Synkronisering tilgngelig','Field group synchronized.'=>'Feltgruppe synkroniseret.' . "\0" . '%s feltgrupper synkroniseret.','Field group duplicated.'=>'Feltgruppe duplikeret.' . "\0" . '%s feltgrupper duplikeret.','Active <span class="count">(%s)</span>'=>'Aktive <span class="count">(%s)</span>' . "\0" . 'Aktive <span class="count">(%s)</span>','Review sites & upgrade'=>'Gennemg websteder og opdater','Upgrade Database'=>'Opgradr database','Custom Fields'=>'Tilpasset felter','Move Field'=>'Flyt felt','Please select the destination for this field'=>'Vlg venligst destinationen for dette felt','The %1$s field can now be found in the %2$s field group'=>'Feltet %1$s kan nu findes i %2$s feltgruppen','Move Complete.'=>'Flytning udfrt.','Active'=>'Aktiv','Field Keys'=>'Feltngler','Settings'=>'Indstillinger','Location'=>'Placering','Null'=>'Null','copy'=>'Kopier','(this field)'=>'(dette felt)','Checked'=>'Valgt','Move Custom Field'=>'Flyt tilpasset Felt','Field group title is required'=>'Feltgruppe titel er pkrvet','This field cannot be moved until its changes have been saved'=>'Dette felt kan ikke flyttes fr ndringerne er blevet gemt','The string "field_" may not be used at the start of a field name'=>'Strengen "field_" m ikke bruges i starten af et felts navn','Field group draft updated.'=>'Feltgruppe kladde opdateret.','Field group scheduled for.'=>'Feltgruppe planlagt til.','Field group submitted.'=>'Feltgruppe indsendt.','Field group saved.'=>'Feltgruppe gemt.','Field group published.'=>'Feltgruppe udgivet.','Field group deleted.'=>'Feltgruppe slettet.','Field group updated.'=>'Feltgruppe opdateret.','Tools'=>'Vrktjer','is not equal to'=>'er ikke lig med','is equal to'=>'er lig med','Forms'=>'Formularer','Page'=>'Side','Post'=>'Indlg','Choice'=>'Valg','Basic'=>'Grundlggende','Unknown'=>'Ukendt','Field type does not exist'=>'Felttype eksisterer ikke','Spam Detected'=>'Spam opdaget','Post updated'=>'Indlg opdateret','Update'=>'Opdater','Validate Email'=>'Validr e-mail','Content'=>'Indhold','Title'=>'Titel','Edit field group'=>'Rediger feltgruppe','Selection is less than'=>'Det valgte er mindre end','Selection is greater than'=>'Det valgte er strre end','Value is less than'=>'Vrdien er mindre end','Value is greater than'=>'Vrdien er hjere end','Value contains'=>'Vrdi indeholder','Value is not equal to'=>'Vrdien er ikke lige med','Value is equal to'=>'Vrdien er lige med','Has no value'=>'Har ingen vrdi','Has any value'=>'Har enhver vrdi','Cancel'=>'Annuller','Are you sure?'=>'Er du sikker?','%d fields require attention'=>'%d felter krver opmrksomhed','1 field requires attention'=>'1 felt krver opmrksomhed','Validation failed'=>'Validering fejlede','Validation successful'=>'Validering lykkedes','Restricted'=>'Begrnset','Collapse Details'=>'Skjul detaljer','Expand Details'=>'Udvid detailer','Uploaded to this post'=>'Uploadet til dette indlg','verbUpdate'=>'Opdater','verbEdit'=>'Rediger','The changes you made will be lost if you navigate away from this page'=>'Dine ndringer vil g tabt, hvis du gr vk fra denne side','File type must be %s.'=>'Filtypen skal vre %s.','or'=>'eller','File size must not exceed %s.'=>'Filstrrelsen m ikke overskride %s. ','File size must be at least %s.'=>'Filens strrelse skal vre mindst %s.','Image height must not exceed %dpx.'=>'Billedets hjde m ikke overskride %dpx.','Image height must be at least %dpx.'=>'Billedets hjde skal vre mindst %dpx.','Image width must not exceed %dpx.'=>'Billedets bredde m ikke overskride %dpx.','Image width must be at least %dpx.'=>'Billedets bredde skal vre mindst %dpx.','(no title)'=>'(ingen titel)','Full Size'=>'Fuld strrelse','Large'=>'Stor','Medium'=>'Medium','Thumbnail'=>'Thumbnail','(no label)'=>'(intet mrkat)','Sets the textarea height'=>'Stter tekstomrdets hjde','Rows'=>'Rkker','Text Area'=>'Tekstomrde','Add new choice'=>'Tilfj nyt valg','Toggle All'=>'Vlg alle','Allow Archives URLs'=>'Tillad Arkiv URLer','Archives'=>'Arkiver','Page Link'=>'Side link','Add'=>'Tilfj','Name'=>'Navn','%s added'=>'%s tilfjet','%s already exists'=>'%s findes allerede','User unable to add new %s'=>'Brugeren kan ikke tilfje ny %s','Term ID'=>'Term ID','Term Object'=>'Term Objekt','Load value from posts terms'=>'Indls vrdi fra indlggets termer','Load Terms'=>'Indls termer','Connect selected terms to the post'=>'Forbind valgte termer til indlget','Save Terms'=>'Gem termer','Create Terms'=>'Opret termer','Radio Buttons'=>'Radioknapper','Single Value'=>'Enkelt vrdi','Multiple Values'=>'Flere vrdier','Select the appearance of this field'=>'Vlg udseendet for dette felt','Appearance'=>'Udseende','Select the taxonomy to be displayed'=>'Vlg klassificeringen der vises','No TermsNo %s'=>'Ingen %s','Value must be equal to or lower than %d'=>'Vrdien skal vre mindre end eller lig med %d','Value must be equal to or higher than %d'=>'Vrdien skal vre lig med eller hjere end %d','Value must be a number'=>'Vrdien skal vre et tal','Number'=>'Nummer','Save \'other\' values to the field\'s choices'=>'Gem \'andre\' vrdier i feltet valgmuligheder','Add \'other\' choice to allow for custom values'=>'Tilfj \'andet\' muligheden for at tillade tilpasset vrdier','Other'=>'Andre','Radio Button'=>'Radio-knap','Open'=>'ben','Accordion'=>'Akkordion','Restrict which files can be uploaded'=>'Begrns hvilke filer der kan uploades','File ID'=>'Fil ID','File URL'=>'Fil URL','File Array'=>'Fil array','Add File'=>'Tilfj fil','No file selected'=>'Ingen fil valgt','File name'=>'Filnavn','Update File'=>'Opdater fil','Edit File'=>'Rediger fil','Select File'=>'Vlg fil','File'=>'Fil','Password'=>'Adgangskode','Enter each default value on a new line'=>'Indtast hver standardvrdi p en ny linie','verbSelect'=>'Vlg','Select2 JS load_failLoading failed'=>'Indlsning fejlede','Select2 JS searchingSearching&hellip;'=>'Sger&hellip;','Select2 JS load_moreLoading more results&hellip;'=>'Indlser flere resultater&hellip;','Select2 JS selection_too_long_nYou can only select %d items'=>'Du kan kun vlge %d elementer','Select2 JS selection_too_long_1You can only select 1 item'=>'Du kan kun vlge 1 element','Select2 JS input_too_long_nPlease delete %d characters'=>'Fjern venligst %d karakterer','Select2 JS input_too_long_1Please delete 1 character'=>'Fjern venligst 1 karakter','Select2 JS input_too_short_nPlease enter %d or more characters'=>'Tilfj venligst %d eller flere karakterer','Select2 JS input_too_short_1Please enter 1 or more characters'=>'Tilfj venligst 1 eller flere karakterer','Select2 JS matches_0No matches found'=>'Ingen match fundet','Select2 JS matches_n%d results are available, use up and down arrow keys to navigate.'=>'%d resultater fundet, brug piletasterne op og ned for at navigere.','Select2 JS matches_1One result is available, press enter to select it.'=>'Et resultat er tilgngeligt, tryk enter for at vlge det.','nounSelect'=>'Vlg','User ID'=>'Bruger ID','User Object'=>'Bruger objekt','User Array'=>'Bruger array','All user roles'=>'Alle brugerroller','Filter by Role'=>'Filtrer efter rolle','User'=>'Bruger','Separator'=>'Separator','Select Color'=>'Vlg farve','Default'=>'Standard','Clear'=>'Ryd','Color Picker'=>'Farvevlger','Date Time Picker JS pmTextShortP'=>'P','Date Time Picker JS pmTextPM'=>'PM','Date Time Picker JS amTextShortA'=>'A','Date Time Picker JS amTextAM'=>'AM','Date Time Picker JS selectTextSelect'=>'Vlg','Date Time Picker JS closeTextDone'=>'Udfrt','Date Time Picker JS currentTextNow'=>'Nu','Date Time Picker JS timezoneTextTime Zone'=>'Tidszone','Date Time Picker JS microsecTextMicrosecond'=>'Mikrosekund','Date Time Picker JS millisecTextMillisecond'=>'Millisekund','Date Time Picker JS secondTextSecond'=>'Sekund','Date Time Picker JS minuteTextMinute'=>'Minut','Date Time Picker JS hourTextHour'=>'Time','Date Time Picker JS timeTextTime'=>'Tid','Date Time Picker JS timeOnlyTitleChoose Time'=>'Vlg tidpunkt','Date Time Picker'=>'Datovlger','Endpoint'=>'Endpoint','Left aligned'=>'Venstrejusteret','Placement'=>'Placering','Tab'=>'Tab','Value must be a valid URL'=>'Vrdien skal vre en valid URL','Link URL'=>'Link URL','Link Array'=>'Link array','Opens in a new window/tab'=>'bner i et nyt vindue/faneblad','Select Link'=>'Vlg link','Link'=>'Link','Email'=>'E-mail','Maximum Value'=>'Maksimum vrdi','Minimum Value'=>'Minimum vrdi','Both (Array)'=>'Begge (Array)','Label'=>'Etiket','Value'=>'Vrdi','Vertical'=>'Vertikal','Horizontal'=>'Horisontal','red : Red'=>'rd : Rd','For more control, you may specify both a value and label like this:'=>'For mere kontrol, kan du specificere bde vrdi og label, sdan:','Choices'=>'Valg','Button Group'=>'Knappe gruppe','Allow Null'=>'Tillad null','Parent'=>'Forlder','Toolbar'=>'Vrktjslinje','Text Only'=>'Kun tekst','Visual Only'=>'Kun visuelt','Visual & Text'=>'Visuelt & tekst','Tabs'=>'Tabs','Name for the Text editor tab (formerly HTML)Text'=>'Tekst','Visual'=>'Visuel','Value must not exceed %d characters'=>'Vrdi m ikke overskride %d karakterer','Character Limit'=>'Karakterbegrnsning','Appears after the input'=>'Vises efter feltet','Append'=>'Tilfj fr','Appears before the input'=>'Vises fr feltet','Prepend'=>'Tilfj efter','Appears within the input'=>'Vises i feltet','Appears when creating a new post'=>'Vises nr et nyt indlg oprettes','Text'=>'Tekst','%1$s requires at least %2$s selection'=>'%1$s krver mindst %2$s valg' . "\0" . '%1$s krver mindst %2$s valg','Post ID'=>'Indlgs ID','Post Object'=>'Indlgs objekt','Maximum Posts'=>'Maksimum antal indlg','Minimum Posts'=>'Minimum antal indlg','Featured Image'=>'Fremhvet billede','Selected elements will be displayed in each result'=>'Valgte elementer vil blive vist i hvert resultat','Elements'=>'Elementer','Taxonomy'=>'Klassificering','Post Type'=>'Indholdstype','Filters'=>'Filtre','All taxonomies'=>'Alle klassificeringer','Filter by Taxonomy'=>'Filtrer efter klassificeringer','All post types'=>'Alle indholdstyper','Filter by Post Type'=>'Filtrer efter indholdstype','Search...'=>'Sg...','Select taxonomy'=>'Vlg klassificering','Select post type'=>'Vlg indholdstype','No matches found'=>'Ingen match fundet','Loading'=>'Indlser','Maximum values reached ( {max} values )'=>'Maksimalt antal vrdier net ( {max} vrdier )','Relationship'=>'Relation','Comma separated list. Leave blank for all types'=>'Kommasepareret liste. Efterlad blank hvis alle typer tillades','Allowed File Types'=>'Tilladte filtyper','Maximum'=>'Maksimum','File size'=>'Filstrrelse','Minimum'=>'Minimum','Uploaded to post'=>'Uploadet til indlg','All'=>'Alle','Library'=>'Bibliotek','Preview Size'=>'Strrelse p forhndsvisning','Image ID'=>'Billede ID','Image URL'=>'Billede URL','Image Array'=>'Billede array','Specify the returned value on front end'=>'Specificerer vrdien der returneres til frontenden','Return Value'=>'Returneret vrdi','Add Image'=>'Tilfj billede','No image selected'=>'Intet billede valgt','Remove'=>'Fjern','Edit'=>'Rediger','All images'=>'Alle billeder','Update Image'=>'Opdater billede','Edit Image'=>'Rediger billede','Select Image'=>'Vlg billede','Image'=>'Billede','Allow HTML markup to display as visible text instead of rendering'=>'Tillad at HTML kode bliver vist som tekst i stedet for at blive renderet','Escape HTML'=>'Escape HTML','No Formatting'=>'Ingen formatering','Automatically add &lt;br&gt;'=>'Tilfj automatisk &lt;br&gt;','Automatically add paragraphs'=>'Tilfj automatisk afsnit','Controls how new lines are rendered'=>'Kontroller hvordan linjeskift vises','New Lines'=>'Linjeskift','Week Starts On'=>'Ugen starter','Save Format'=>'Gem format','Date Picker JS weekHeaderWk'=>'Uge','Date Picker JS prevTextPrev'=>'Forrige','Date Picker JS nextTextNext'=>'Nste','Date Picker JS closeTextDone'=>'Udfrt','Date Picker'=>'Datovlger','Width'=>'Bredde','Enter URL'=>'Indtast URL','oEmbed'=>'oEmbed','Default Value'=>'Standardvrdi','Message'=>'Besked','No'=>'Nej','Yes'=>'Ja','True / False'=>'Sand / Falsk','Row'=>'Rkke','Table'=>'Tabel','Block'=>'Blok','Layout'=>'Layout','Sub Fields'=>'Underfelter','Group'=>'Gruppe','Customize the map height'=>'Tilpas kortets hjde','Height'=>'Hjde','Set the initial zoom level'=>'St standard zoom niveau','Zoom'=>'Zoom','Center the initial map'=>'Kortets centrum fra start','Center'=>'Centrum','Search for address...'=>'Sg efter adresse...','Find current location'=>'Find nuvrende lokation','Clear location'=>'Ryd lokation','Search'=>'Sg','Sorry, this browser does not support geolocation'=>'Beklager, denne browser understtter ikke geolokation','Google Map'=>'Google Map','Custom:'=>'Tilpasset:','Inactive <span class="count">(%s)</span>'=>'Inaktivt <span class="count">(%s)</span>' . "\0" . 'Inaktive <span class="count">(%s)</span>','No Fields found in Trash'=>'Ingen felter fundet i papirkurven.','No Fields found'=>'Ingen felter fundet','Search Fields'=>'Sge felter','View Field'=>'Vis felt','New Field'=>'Nyt felt','Edit Field'=>'Rediger felt','Add New Field'=>'Tilfj nyt felt','Field'=>'Felt','Fields'=>'Felter','No Field Groups found in Trash'=>'Ingen gruppefelter fundet i papirkurven','No Field Groups found'=>'Ingen gruppefelter fundet','Search Field Groups'=>'Sg feltgrupper','View Field Group'=>'Vis feltgruppe','New Field Group'=>'Ny feltgruppe','Edit Field Group'=>'Rediger feltgruppe','Add New Field Group'=>'Tilfj ny feltgruppe','Add New'=>'Tilfj ny','Field Group'=>'Feltgruppe','Field Groups'=>'Feltgrupper','Customize WordPress with powerful, professional and intuitive fields.'=>'Tilpas WordPress med effektfulde, professionelle og intuitive felter.','path_to_url ```
```shell How to unstage a staged file Using tags for version control What is stored in a commit? How to set your username and email Intent to add ```
```objective-c /* $OpenBSD: radiovar.h,v 1.4 2022/03/21 19:22:40 miod Exp $ */ /* $RuOBSD: radiovar.h,v 1.3 2001/09/29 17:10:16 pva Exp $ */ /* * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef _SYS_DEV_RADIOVAR_H #define _SYS_DEV_RADIOVAR_H struct radio_softc { struct device dev; void *hw_hdl; /* hardware driver handle */ struct device *sc_dev; /* hardware device struct */ const struct radio_hw_if *hw_if; /* hardware interface */ char sc_dying; /* device detached */ }; #endif /* _SYS_DEV_RADIOVAR_H */ ```
```python # # # path_to_url # # Unless required by applicable law or agreed to in writing, software # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. from __future__ import annotations import unittest from functools import partial import numpy as np from program_config import ProgramConfig, TensorConfig from trt_layer_auto_scan_test import TrtLayerAutoScanTest import paddle.inference as paddle_infer class TrtConvertInverse(TrtLayerAutoScanTest): def is_program_valid(self, program_config: ProgramConfig) -> bool: return True def sample_program_configs(self): def generate_input1(): return np.random.random([32, 32]).astype(np.float32) ops_config = [ { "op_type": "inverse", "op_inputs": { "Input": ["input_data"], }, "op_outputs": {"Output": ["output_data"]}, "op_attrs": {}, } ] ops = self.generate_op_config(ops_config) for i in range(10): program_config = ProgramConfig( ops=ops, weights={}, inputs={ "input_data": TensorConfig( data_gen=partial(generate_input1) ), }, outputs=["output_data"], ) yield program_config def sample_predictor_configs( self, program_config ) -> tuple[paddle_infer.Config, list[int], float]: def generate_dynamic_shape(attrs): self.dynamic_shape.min_input_shape = { "input_data": [1, 1], } self.dynamic_shape.max_input_shape = { "input_data": [64, 64], } self.dynamic_shape.opt_input_shape = { "input_data": [32, 32], } def clear_dynamic_shape(): self.dynamic_shape.max_input_shape = {} self.dynamic_shape.min_input_shape = {} self.dynamic_shape.opt_input_shape = {} attrs = [ program_config.ops[i].attrs for i in range(len(program_config.ops)) ] # for static_shape clear_dynamic_shape() self.trt_param.precision = paddle_infer.PrecisionType.Float32 yield self.create_inference_config(), (0, 3), 1e-5 self.trt_param.precision = paddle_infer.PrecisionType.Half yield self.create_inference_config(), (0, 3), 1e-3 # for dynamic_shape generate_dynamic_shape(attrs) self.trt_param.precision = paddle_infer.PrecisionType.Float32 yield self.create_inference_config(), (1, 2), 1e-5 self.trt_param.precision = paddle_infer.PrecisionType.Half yield self.create_inference_config(), (1, 2), 1e-3 def test(self): self.run_test() if __name__ == "__main__": unittest.main() ```
Daniel Workman Barwick (born June 21, 1968) is an American author, fundraiser, journalist, podcaster, higher education administrator, and teacher. He was the President of Independence Community College in Independence, Kansas. Biography and education Barwick was born in New Hartford, New York, and raised in Utica, New York. Following high school, he attended school in Strangnas, Sweden, as a Rotary International Exchange Student, returning to the United States in 1987 to attend the State University of New York College at Geneseo, where he completed his Bachelor of Arts degree. He then earned a Master of Arts degree in Philosophy from the University of Iowa, studying under Panayot Butchvarov. He earned his PhD from the State University of New York at Buffalo, where Barry Smith served as his dissertation advisor. His graduate work was primarily in metaphysics and bioethics, and his dissertation was on the metaphysics of concepts. He is a 2012 graduate of Leadership Independence and a 2013 graduate of Leadership Kansas. Career Barwick was CEO of CBD Associates, LLC, a real estate holding company in New York, and CFO for The Well-Dressed Reader, an internet specialty company. Barwick was Associate Professor of Philosophy and Director of Institutional Advancement at Alfred State College, Executive Director of that college's Development Fund, and held a number of other administrative positions there. He became President of Independence Community College in 2011. From 2008-2018, Barwick was certified by CFRE International, a provider of professional certification of fundraising proficiency. Since 2007, he has worked primarily as a fundraiser for nonprofit organizations, raising over $100M since that time. Barwick was named by Ingram's Business Magazine as one of the "Fifty Kansans You Should Know" in 2016. In 2017, he was elected President of the Council of Presidents, the Kansas-wide group of community college presidents. During the 2017-2018 fiscal year in which he represented Kansas Community Colleges, community college funding statewide received its first increase in eight years. Active in Rotary International, he became the president of the Independence, Kansas Rotary Club in 2017. Since 2018, Barwick has published a blog on higher education issues from a senior leadership perspective, The Mortarboard Blog. He hosts a companion podcast, The Mortarboard. Barwick played a minor role as himself in the 2018 and 2019 seasons of the Netflix documentary series Last Chance U, which featured Independence Community College. Barwick resigned as President of Independence Community College in June 2019, as the Mortarboard became a larger organization and he took on the role of President. In 2020, Barwick became Director of Development of the School of Health and Human Services at Indiana State University. In his first two years at the university, Indiana State University achieved its highest ever university-wide fundraising totals, as well as its highest totals for the health sciences. In 2022, Barwick became the Director of Philanthropy for the University of Missouri - Kansas City School of Dentistry, and Executive Director of the Rinehart Foundation. He also has periodically taught philosophy as an adjunct instructor for a variety of schools. Barwick is the author of the 2020 book Risk and Reward: How Small Colleges Get Better Against the Odds, published by ABJames. He is also the author of the 1994 book Intentional Implications: The impact of a reduction of mind on philosophy, published by University Press of America. According to WorldCat, the book is held in 95 libraries. Educational issues Following conflict in 2005-2006 that took place between the Alfred State College campus president Uma Gupta and employees, which attracted national coverage in the New York Times, The Chronicle of Higher Education, and other venues, Barwick identified the event as the first time that social media criticism had contributed substantially to the reassignment of a public college president, publishing positively reviewed analyses in national and international publications. Barwick was a proponent of the view that a negative link between large class size, generically understood, and reduced learning outcomes has not been proven to exist in higher education, and has argued that additional funding for research is needed. An early advocate for the Mooc, he has argued that although a negative link has been established between certain types of instruction in large classes and learning outcomes, there was not sufficient experimentation with different instructional methods to determine whether large class size was always correlated with poorer outcomes. In 2013, Independence Community College became the first public college in Kansas to allow the concealed carry of handguns. As more states require public colleges to allow concealed carry, Barwick has spoken and published on the data gathered during the period since the rule was enacted, the process used to construct his campus' policy, and the insurance options for schools who choose to allow concealed carry. In 2016, Barwick was one of eight presidents who threatened to leave the Kansas Jayhawk Community College Conference over concerns regarding football roster limitations. Barwick and the seven other presidents argued that the roster limitations were originally based on racial discrimination, and continued to have a discriminatory effect against minority athletes. The conference subsequently voted unanimously to eliminate the restrictions. In 2021, Barwick first published his view that the majority of colleges should shift to what he called a “trundle,” a teaching-based version of Scott Galloway’s “rundle,” which is itself a combination of bundling of services and a subscription-based payment model. Barwick has argued that the current transaction model of higher education, which requires a commitment of time, effort, and money from the student with no guarantee of success, is increasingly unattractive to prospective students and will gradually erode enrollments further. References 1968 births Living people Businesspeople from New York (state) People from Independence, Kansas People from Utica, New York State University of New York at Geneseo alumni State University of New York faculty University at Buffalo alumni University of Iowa alumni
```html <div class="alain-default__content-title"> <h1> Cache , <a href="path_to_url" target="_blank">Document</a> </h1> </div> <nz-card nzTitle="Service"> <button nz-button (click)="set()"></button> <button nz-button (click)="get()" class="ml-sm"></button> </nz-card> ```
The 2000 Football League First Division play-off final was an association football match played at Wembley Stadium on 29 May 2000, to determine the third and final team to gain promotion from the First Division to the Premiership in the 1999–2000 season. Ipswich Town faced Barnsley in the last domestic competitive fixture to be played at the original Wembley Stadium. The match was both teams' first appearance in a First Division play-off final. It was the first time Barnsley had been in the play-offs, having been relegated to the First Division after the 1997–98 season, and finishing mid-table the following season. Ipswich made the play-offs for the fourth consecutive season, but this was the first time they had advanced further than the semifinals. Watched by a crowd of more than 73,000, Ipswich Town came from behind to win 4–2 and secured promotion to the Premiership. Route to the final Ipswich finished the regular 1999–2000 Football League season in third place in the First Division, the second tier of the English football league system, one place ahead of Barnsley. Both therefore missed out on the two automatic places for promotion to the Premiership and instead took part in the play-offs to determine the third promoted team. It was Ipswich's fourth year running in the playoffs. Ipswich finished two points behind Manchester City (who were promoted in second place) and four behind league winners Charlton Athletic. Barnsley were in fourth place in the league, a further five points behind Ipswich – they also finished as the highest scorers in the division with 88 goals. On the final day of the league season Ipswich played Walsall, and won 2–0. At one point, after David Johnson scored his first goal, second place Manchester City were trailing to Blackburn, meaning that Ipswich would qualify for promotion automatically. However, City eventually scored four goals to win the match and secure promotion, meaning Ipswich needed to seek promotion through the play-offs. In the play-off semi-finals, Ipswich faced sixth-placed Bolton Wanderers who had beaten them in the semifinal the previous year. After being 2-0 down in the first leg away at the Reebok Stadium, Marcus Stewart scored two to secure a 2–2 draw. In the second leg at Portman Road, Jim Magilton scored a hat-trick as Ipswich won 5–3, winning 7–5 on aggregate. Barnsley won the first leg 4–0 away against Birmingham City at St Andrew's. Despite losing the second leg 2–1 at Oakwell, they reached the final 5–2 on aggregate. Match Background This was Ipswich's fourth consecutive appearance in the play-offs, and fifth in total. It was the first time they had progressed to the final, having lost in the play-off semifinals for the past three years, to Sheffield United in the 1997 play-offs, Charlton Athletic in the 1998 play-offs, and Bolton Wanderers in the 1999 play-offs. Ipswich's previous appearance at Wembley was in the 1978 FA Charity Shield against Nottingham Forest. It was Barnsley's first appearance in both the play-offs and at Wembley. During the regular season, Ipswich had beaten Barnsley 6–1 at Portman Road and 2–0 at Oakwell, and Ipswich striker Marcus Stewart stated before the game that he would have "picked Barnsley ... perhaps they'll be thinking we're their bogey side". Barnsley had played 55 games during the regular season and scored 106 goals, with Craig Hignett (20 goals), Neil Shipperley (15), Darren Barnard (15) and Mike Sheron (11) all in double figures for goals scored. Ipswich were going into the match without their fan's and player's player of the season: James Scowcroft was out with a hamstring injury. Dutchman Martijn Reuser was slated to replace him in the starting line-up, and John McGreal came back into the team following an ankle injury. The play-off final was the last domestic competitive fixture to be played at the original Wembley Stadium. Match referee Terry Heilbron became the first person to officiate in four play-off finals, with the 2000 final being his last before retirement. Promotion from the First Division to the Premiership was estimated to be worth up to £12 million. First half Ipswich kicked off and immediately sought to press Barnsley, with David Johnson making a heavy challenge on goalkeeper Kevin Miller but injuring himself in the process. After just five minutes, an own goal from Ipswich's goalkeeper Richard Wright put the Yorkshire club ahead: a Craig Hignett strike from rebounded off the bar, hit Wright on the arm and was deflected into the net. Ipswich's first shot came on nine minutes from Mark Venus and gradually the East Anglian side regained confidence. The teams exchanged challenges and chances until, in the twenty-second minute of the game, Johnson was replaced by substitute Richard Naylor. Barnsley's Hignett struck a shot in the 25th minute which passed narrowly outside the post with opposition goalkeeper Wright beaten, and two minutes later a shot from Ipswich's Matt Holland was blocked for a corner. Played to the far post by Jim Magilton, the ball was headed past Miller by Ipswich's 36-year-old defender Tony Mowbray to level the score. The goal sparked a period of Ipswich dominance with attempts from Holland and Naylor being saved by Miller. One minute before half-time, Richard Wright's challenge on Hignett was deemed a penalty: Darren Barnard stepped up to take the kick which Wright saved to his right and the half ended 1–1. Second half The second half started scrappily but with shots from both sides, firstly Ipswich's Holland and then Barnsley's Bruce Dyer. Six minutes in, Ipswich's Marcus Stewart flicked a long ball on to Naylor who delayed his shot before passing it past Miller to make the score 2–1. Removing his shirt to celebrate, Naylor was shown the yellow card by referee Heilbron. Further good work from Naylor saw his cross poorly cleared by Keith Brown, only for Jermaine Wright to miss the resulting chance to score. Two minutes later, in the 57th minute, Naylor played a ball out wide to Jamie Clapham who crossed for Stewart to head in Ipswich's third goal. Barnsley made their first substitution of the game on 60 minutes with South African Eric Tinkler being replaced by Geoff Thomas. Ipswich narrowly missed extending their lead as Mowbray headed a Magilton cross wide, before Barnsley's second substitution, this time Macedonian international striker Gjorgji Hristov coming on to replace Dyer. After a chance for Hristov, Barnsley's third and final substitution was made in the 71st minute, John Curtis being substituted for Nicky Eaden. Magilton's 72nd minute free kick was deflected off the Barnsley wall, and a Neil Shipperley shot was saved by Wright, before a second Barnsley penalty was awarded in the 77th minute. Mowbray was adjudged to have fouled Thomas as he moved through the box, and Hignett converted the penalty taking the score to 3–2 with just over ten minutes remaining. With Ipswich beginning to appear nervous, Burley substituted Stewart off for Reuser in the 83rd minute. Barnsley came close to equalising a minute later with Wright saving a point-blank header from Hristov, and then two minutes after that, catching another Barnsley opportunity. An appeal for a penalty was turned down as Reuser went down in the area with two minutes remaining. Not long after, Jermaine Wright was substituted off for Fabian Wilnis. In the last minute of regular time, and with Barnsley sending their team forward, a break for Ipswich saw Reuser pick up the ball in his own half before running half the length of the pitch and striking the ball from the edge of the Barnsley area into the roof of the net, taking the score to 4–2. Five minutes of injury time were played out with no further incident. Details In a change from Barnsley's traditional kit of red top and white shorts, for the play-off final they wore an all-red strip. Post-match After the game, Ipswich manager George Burley remarked "We are ready for the Premiership ... We have got a fantastic squad of players, and they are quality players". Barnsley manager Dave Bassett conceded that "overall Ipswich deserved it over the 90 minutes. We didn't play as well as we can do, but all credit to Ipswich". Ipswich striker Marcus Stewart claimed it was "the best day of his life ... apart from [his] kid being born" but paid tribute to the efforts of his teammate Richard Wright whose save at 3–2, Stewart noted, "won the game for us. He was the saviour." Simon Barnes of The Times described the match as a "classic play-off final", noting that he had watched it at a hotel in Ipswich, adding "I didn't think such hysteria was legally permitted on licensed premises". The following season, Ipswich finished fifth in the 2000–01 FA Premier League, qualifying for the 2001–02 UEFA Cup, and went out of the 2000–01 Football League Cup at the semifinal stage. George Burley was recognised as the Premier League Manager of the Season, the first recipient of the award for 26 years who had not won the league. Barnsley ended their subsequent season 16th in the First Division. See also 2000 Football League Second Division play-off final 2000 Football League Third Division play-off final References EFL Championship play-off finals Play-off Final 2000 Play-off Final 2000 1 Football League First Division play-off final Football League First Division play-off final
Willy Bocklant (26 January 1941 – 6 June 1985) was a Belgian professional road racing cyclist active as a professional between 1962 and 1969. Among his biggest victories are the 1964 edition of Liège–Bastogne–Liège and the overall classification of the Tour de Romandie in 1963. Bocklant was born in Bellegem and died in Mouscron. Palmarès External links 1941 births 1985 deaths Cyclists from Kortrijk Belgian male cyclists 20th-century Belgian people
Plastic soul is described as soul music that is believed to lack authenticity. Usages Paul McCartney referenced the phrase as the name of the Beatles 1965 album Rubber Soul, which was inspired by the term "plastic soul". In a studio conversation recorded in June 1965 after recording the first take of "I'm Down", McCartney says "Plastic soul, man. Plastic soul." David Bowie also described his own funky, soulful songs released in the early to mid-1970s as "plastic soul". These singles sold well, and Bowie became one of the few white performers to be invited to perform on Soul Train. In a 1976 Playboy interview, Bowie described his recent album Young Americans as "the definitive plastic soul record. It's the squashed remains of ethnic music as it survives in the age of Muzak, written and sung by a white limey." Bowie's most commercially successful album, Let's Dance, has also been described as plastic soul. See also Selling out Commercialism Artistic integrity Notes 1960s neologisms 1960s in music 1970s in music 1980s in music British styles of music David Bowie The Beatles
```scala package com.wavesplatform.it.api import com.wavesplatform.it.Node import com.wavesplatform.network.client.NetworkSender import scala.concurrent.Future object AsyncNetworkApi { implicit class NodeAsyncNetworkApi(node: Node) { import scala.concurrent.ExecutionContext.Implicits.global def nonce: Long = System.currentTimeMillis() def sendByNetwork(messages: Any*): Future[Unit] = { val sender = new NetworkSender( node.settings.networkSettings.trafficLogger, node.settings.blockchainSettings.addressSchemeCharacter, s"it-client-to-${node.name}", nonce ) sender.connect(node.networkAddress).flatMap { ch => if (ch.isActive) sender.send(ch, messages*).map(_ => sender.close()) else { sender.close() Future.failed(new Exception("Channel is inactive")) } } } } } ```
The Fara (911 m) is a mountain in the Grampian Mountains, Scotland, on the shore of Loch Ericht near the village of Dalwhinnie. A large and bulky mountain, it rises high above Loch Ericht, and has a summit ridge that stretches for several miles from north to south. The mountain is fairly easy to climb and makes for an excellent vantage point. The Fara just misses out on Munro status, by a height of only three metres. References Mountains and hills of Highland (council area) Marilyns of Scotland Corbetts
```java /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package com.oracle.svm.hosted.methodhandles; import com.oracle.svm.hosted.annotation.CustomSubstitutionType; import jdk.vm.ci.meta.ResolvedJavaType; class InjectedInvokerSubstitutionType extends CustomSubstitutionType { private final String stableName; InjectedInvokerSubstitutionType(ResolvedJavaType original, String stableName) { super(original); this.stableName = stableName; } @Override public String getName() { return stableName; } } ```
Argalista is a genus of sea snails, marine gastropod mollusks in the family Colloniidae. Distribution These marine species are endemic to New Zealand, except Argalista kingensis, which occurs off Tasmania and Argalista rosea, which occurs off Victoria, Australia. Species Species within the genus Argalista include: Argalista corallina (Cotton & Godfrey, 1935) Argalista crassicostata (Murdoch, 1905) Argalista fluctuata (Hutton, 1883) Argalista fugitiva (Hedley, 1911) Argalista imperforata (Suter, 1908) Argalista kingensis May, 1923 Argalista micans Powell, 1931 Argalista nana Finlay, 1930 Argalista rosea (Tenison Woods, 1876) Argalista roseopunctata (Angas, 1880) Argalista rotella Powell, 1937 Argalista umbilicata Powell, 1926 Argalista variecostata Powell, 1937 References Iredale, T. 1915. A commentary on Suter's Manual of the New Zealand Mollusca. Transactions and Proceedings of the Royal Society of the New Zealand Institute. 47: 417-497 Colloniidae
Jungholz () is a village in the district of Reutte in the Austrian state of Tyrol that is only accessible via Germany. The lack of a road connection to anywhere else in Austria led to Jungholz being included in the German customs area before Austria joined the EU in 1995. It also used the instead of the Austrian schilling as currency until 2002, when the euro took over. Letters to Jungholz can be addressed with either a German or an Austrian postal code. Quadripoint Jungholz forms a pene-exclave of Austria that is connected to the rest of Austria by a single point, which is the summit of the mountain Sorgschrofen (). As well as housing border post number 110 on the normal international border between Tyrol and Bavaria, a second border starts and, having gone round Jungholz, ends there. There are thus borders extending in four directions from the summit, called a quadripoint. Two Austrian (Tyrolean, Reutte) and two German (Bavarian, Oberallgäu) municipalities meet at that point, starting with Jungholz and continuing clockwise: Jungholz (Austrian, north) Pfronten (German, east) Schattwald (Austrian, south) Bad Hindelang (German, west) History On 24 June 1342, Hermann Häselin, a farmer from Wertach in Germany, sold the area to Heinz Lochpyler, an Austrian taxman from nearby Tannheim. The buyer had the area incorporated with his other possession of Tyrol. In the Bavarian–Austrian border treaty of 1844 Jungholz went to Austria. Its customs union with Germany dates to a Treaty signed in 1868. See also List of enclaves and exclaves List of towns in Austria References External links Jungholz's official website (in German only) Cities and towns in Reutte District Enclaves and exclaves Austria–Germany border crossings
Supercopa can refer to: Supercopa de España (disambiguation) Supercopa do Brasil, a Brazilian football (soccer) competition. Supercopa Honduras, a defunct Honduran football (soccer) competition. Supercopa de Costa Rica, a Costa Rican Football (soccer) competition. Copa Master de Supercopa, a defunct South American football (soccer) competition. Supercopa Libertadores, a defunct South American football (soccer) competition. fr:Supercoupe ko:슈퍼컵 zh:超級盃
```javascript import { View } from 'react-native'; import { connectAnimation } from '@shoutem/animation'; import { connectStyle } from '@shoutem/theme'; const AnimatedScreen = connectAnimation(View); const Screen = connectStyle('shoutem.ui.Screen')(AnimatedScreen); export { Screen }; ```
```smalltalk namespace GameServerCore.Packets.PacketDefinitions.Requests { public class PingLoadInfoRequest : ICoreRequest { public int ClientID { get; } public long PlayerID { get; } public float Percentage { get; } public float ETA { get; } public ushort Count { get; } public ushort Ping { get; } public bool Ready { get; } public PingLoadInfoRequest(int clientId, long playerId, float percentage, float eta, ushort count, ushort ping, bool ready) { ClientID = clientId; PlayerID = playerId; Percentage = percentage; ETA = eta; Count = count; Ping = ping; Ready = ready; } } } ```
Brother Island is a small, uninhabited island off the coast of Goat Island in the U.S. state of New York. It lies in the Niagara River, close to the Horseshoe Falls and the Three Sisters Islands. It is part of the city of Niagara Falls. It is one of only five islands in the area surrounding the Horseshoe Falls which have not been claimed by Canada. References External links Topographic map Niagara Falls Islands of Niagara County, New York Niagara Falls, New York Islands of the Niagara River River islands of New York (state) Islands of New York (state) Uninhabited islands of New York (state)
Bartolo Musil is an Austrian baritone singer and composer, born in Klagenfurt. Trained as a composer, pianist, and singer, he has been working as a musician from his early childhood. He studied at the Universities of Vienna, Salzburg and Detmold with teachers such as Walter Berry and Thomas Quasthoff. Additionally he attended private tuition and masterclasses with Jessica Cash, Edith Mathis, Cornelia Kallisch, Kurt Widmer, Rudolph Piernay, and others. At present he is coached by the belcanto experts Michael Aspinall and Gioacchino Zarrelli. Already as a student he started receiving awards and grants, and was recently awarded the First Prize at the International Competition “Concours de la Mélodie française” in Toulouse. Bartolo Musil's repertoire reaches from Renaissance and early Baroque up to contemporary experimental opera. As a concert and opera singer he has sung important parts at the Chigiana Festival in Siena (Atenaide by Vivaldi, broadcast by the RAI) in the Vienna Musikverein (e.g. staged Monteverdi madrigals in the Great Hall) and Konzerthaus, the Berlin Festival, the Berlin Philharmonie (Messiah and The Creation), the Holland Belcanto Festival, the Festival of Early Music in Innsbruck, the festival Carinthischer Sommer festival, the Stephaniensaal Graz, the Cathedrals of Berlin and Vienna, the Vienna Kammeroper, Neue Oper Wien (Le Balcon by Eötvös), and many others. When he, after only two weeks of preparation, took on the title role of Monteverdi’s L'Orfeo in a big production of the German festival “Antikenfestspiele” in Trier, he achieved a particular success with the audience and press, and was listed in “Who’s Hot” in the magazine “Opera Now”. Bartolo Musil has worked with the Venice Baroque Orchestra, conducted by Andrea Marcon, the Wiener Klangforum, the Ensemble Kontrapunkte, the Moscow Symphony Orchestra, the SWR-Orchester, the Orpheus Kammerorchester, the Savaria Baroque Orchestra, Armonio Tributo, conducted by Lorenz Duftschmid, and directors such as Pet Halmen and Achim Freyer. Song recitals, radio and CD productions and his cabaret duo "" complete his activities. In 2006 his first solo recital CD "Virtuosity - il Baritono Barocco" was published by the Italian label Bongiovanni. As a composer Bartolo Musil has written commissioned works for several important venues, such as the Vienna Musikverein and Konzerthaus, the festival Carinthischer Sommer, the Jeunesses Musicales, etc., and was also awarded several prizes. Research and Teaching Bartolo Musil is an artistic researcher and has completed an artistic doctorate at the University of Music and Performing Arts, Graz. In 2015 he was appointed as a University Professor for Voice by the university Mozarteum in Salzburg. Trivia Twentieth century writer Robert Musil and Austrian orientalist Alois Musil are relatives of Bartolo Musil. External links (official website as a singer) (documentation of his work as a composer) Living people 20th-century Austrian male singers 21st-century Austrian male singers Austrian male composers Austrian composers Musicians from Klagenfurt Year of birth missing (living people)
The Sandman is a children's book written by Ralph Fletcher and illustrated by Richard Cowdrey. It was first published in 2008 by Henry Holt and Company. Plot summary Tor is an inches tall man who can not fall asleep no matter what he tries. He discovers a dragon scale while walking in the woods. He learns that the powder made by grinding the scale induces sleep. He then travels sprinkling the sand into the eyes of sleepless children. Reception Ian Chipman in his review for Booklist said "Fletcher’s spin on the classic character responsible for suddenly leaden lids is helped along by Cowdry’s quaint, deeply hued artwork." He described the book as "charming and comforting bedtime tale." Kirkus Reviews said "Fletcher's fantasy narrative fleshes out the familiar trope by combining worlds of fairy-tale-forest settings with average household bedtime environments. Cowdrey's deeply colored acrylics of flora, fauna, one frightfully greenish and nostril-smoking dragon, workshop scenes and angelically dozing children alternate with black-and-white images of a cherubic dimple-chinned bald and white mustachioed tiny gentleman hard at work." Lauralyn Persson in her review for School Library Journal said "Fletcher's smoothly written story flows in a thoroughly plausible way and is beautifully served by Cowdrey's vibrant acrylic paintings. All in all, this is a compelling story with pictures that add drama, charm, and atmosphere." Notes External links Ralph Fletcher's website Richard Cowdrey's website 2008 children's books American picture books Picture books by Ralph Fletcher Henry Holt and Company books Sandman
The Health Professions Admissions Test (HPAT) is a university admissions test. It is used by all universities in Ireland for admissions to medicine courses, and by the University of Ulster for some medicine related courses. References Standardized tests in healthcare education
The 28th annual Venice International Film Festival was held from 26 August to 8 September 1967. Italian writer and journalist Alberto Moravia was the Jury President. The Golden Lion winner was Belle de Jour directed by Luis Buñuel. Jury Alberto Moravia, Italian writer and journalist - Jury President Carlos Fuentes, Mexican writer Juan Goytisolo, Spanish writer and poet Erwin Leiser, West-German filmmaker and actor Violette Morin, French Susan Sontag, American writer, philosopher and activist Rostislav Yurenev, Soviet film critic Films in competition Official Awards Main Competition Golden Lion: Belle de Jour by Luis Buñuel Special Jury Prize: La Chinoise by Jean-Luc Godard China is Near by Marco Bellocchio Volpi Cup for Best Actor: Ljubiša Samardžić for Jutro Volpi Cup for Best Actress: Shirley Knight for Dutchman Best First Work: Lust for Love by Edgar Reitz Best Short Film: From One to Eight by Hristo Kovachev Independent Awards FIPRESCI Prize China is Near by Marco Bellocchio Samurai Rebellion by Masaki Kobayashi OCIC Award O Salto by Christian de Chalonge Pasinetti Award Belle de Jour by Luis Buñuel Parallel Sections: Mouchette by Robert Bresson Golden Rudder Il padre di famiglia by Nanni Loy References External links Venice Film Festival 1967 Awards on IMDb Venice International Film Festival Venice International Film Festival Venice Film Festival Film Venice International Film Festival Venice International Film Festival
Futebol Clube do Porto is a Portuguese sports club founded in 1893 in Porto. Its association football team played its first competitive matches in 1911, when it took part and won the first edition of the José Monteiro da Costa Cup. Two years later, the club began competing in the Campeonato do Porto, a regional championship organised by the Porto Football Association. In 1921–22, Porto won the inaugural Campeonato de Portugal, a nationwide competition to determine the Portuguese champions from among the winners of the different regional championships. The Primeira Liga was established in 1934–35 as an experimental nationwide competition played in a league format, and was contested in parallel with the Campeonato de Portugal. Porto were its first winners and repeated the triumph in 1938–39, when it became the official top-tier championship in place of the Campeonato de Portugal, which was converted into the Taça de Portugal. Porto is one of three clubs, together with Benfica and Sporting CP, to have never been relegated from the Primeira Liga since its establishment. Between 1940 and 1978, Porto endured the darkest period of its league history, during which they collected only two titles (1955–56 and 1958–59), and recorded an all-time low ninth place (1969–70). Since incumbent president Jorge Nuno Pinto da Costa took office in 1982, Porto have experienced routine league success, winning the competition 23 times in 40 seasons – five of them in succession (1995–1999), a record in Portuguese football. They achieved their first league and cup double in 1956, and have repeated it eight more times (1988, 1998, 2003, 2006, 2009, 2011, 2020, 2022). Porto's debut in international competitions took place in 1956–57, when they competed in the second edition of the European Cup. They reached their first European final in 1984, losing the Cup Winners' Cup to Juventus, and won their first European silverware three years later, beating Bayern Munich in the 1987 European Cup Final. The following season, Porto collected the European Super Cup and Intercontinental Cup trophies. In 2003, they won the UEFA Cup for the first time, becoming the only Portuguese team to have won any of these three international trophies. As of the 2022–23 season, Porto have won 84 major honours, which include 30 Primeira Liga, 19 Taça de Portugal, 1 Taça da Liga, 23 Supertaça Cândido de Oliveira, 4 Campeonato de Portugal, 2 European Cup/UEFA Champions League, 2 UEFA Cup/Europa League, 1 UEFA Super Cup, and 2 Intercontinental Cup. This list details the club's competitive performance and achievements for each season since 1911, and provides statistics and top scorers for domestic (regional and national) championships. Key Table headers Pos = Final position Pld = Matches played W = Matches won D = Matches drawn L = Matches lost GF = Goals for GA = Goals against Pts = Points Divisions Reg = Regional championship (Campeonato do Porto) Prim = Primeira Liga / Primeira Divisão (1st tier) Top scorers Results and rounds or = Champion or Winner or = Runner-up GS / GS2 = Group stage / Second group stage PO = Play-offs PR = Preliminary round Q3 = Third qualifying round QF = Quarter-finals R16 / R32 / R64 = Round of 16, 32 and 64 R1 / R2 / R3 / R4 = First, second, third and fourth round SF = Semi-finals Seasons This list is updated as of 4 June 2023. Ongoing competitions or player statistics are shown in italics. Notes References Seasons Porto
```c++ /* * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * * path_to_url * * Unless required by applicable law or agreed to in writing, * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * specific language governing permissions and limitations */ #ifndef THETA_CONSTANTS_HPP_ #define THETA_CONSTANTS_HPP_ #include <climits> namespace datasketches { namespace theta_constants { enum resize_factor { X1, X2, X4, X8 }; static const uint64_t MAX_THETA = LLONG_MAX; // signed max for compatibility with Java static const uint8_t MIN_LG_K = 5; static const uint8_t MAX_LG_K = 26; } } /* namespace datasketches */ #endif ```
Timothy J. Davlin (August 27, 1957 – December 14, 2010) was the mayor of the U.S. city of Springfield, Illinois, from April 2003 until his suicide in December 2010 at age 53. Although the mayor's office is officially non-partisan, the Illinois capital has a strong tradition of partisanship, including municipal races. Both major parties of Sangamon County endorse candidates. Davlin had the backing of the Democratic Party. Background Davlin was born on August 27, 1957, to Robert E. and Norene O'Brien Davlin. He attended Blessed Sacrament Grade School, Griffin High School and Springfield College (now known as Benedictine University at Springfield) (where he received his Associate Arts degree), all Roman Catholic schools. He later attended Sangamon State University (now known as the University of Illinois Springfield), where he earned his baccalaureate. He worked for the Sangamon County Sheriff's Office as a non-merit Deputy from 1980 to 1982. Davlin married Nancy L. Conway in 1977 and they had four children. Davlin started in the financial and insurance business in 1981 when he became a Registered Representative with AXA Advisor, LLC. He provided financial products and services to individuals and businesses. He sat on the board of directors of the Mid-West Truckers Association, Inc. and was a member of the Board of Directors of the Illinois Municipal League and the Greater Springfield Chamber of Commerce. Davlin was a Past Grand Knight (four terms) and Past Trustee for the Knights of Columbus Council #364. He was one of the youngest men inducted into the Knights of Columbus Diocesan Hall of Fame for exemplary service to the organization. He was a member of St. Agnes' Parish in Springfield, and served on various fundraising committees during the construction on the church and its school. He was a member of the Springfield Motor Boat Club and Illini Country Club. He was elected to a second term on April 19, 2007. However, the Republican-endorsed candidates unexpectedly won nearly every seat on the Springfield City Council, in that same election. Terms for Springfield municipal officials run for four years. Controversies In May 2010 the Internal Revenue Service filed a notice of a Federal Tax Lien against Davlin for non-payment of taxes for the years 2003, 2005 and 2006. The amount of unpaid taxes was $89,702.11 He was also under scrutiny for actions as executor of his cousin's probate case. Ultimately, a settlement was reached to recover money found missing from the estate of the late Margaret Ettelbrick after the suicide of her executor, Mayor Davlin. Under the agreement, $250,000 will be paid to Ettelbrick's estate from the deceased mayor's estate-about $90,000 less than was determined to be missing. Most of the money, in turn, will be paid to Catholic Charities, as specified in Ettelbrick's will. The money will come largely from the sale of Midwest Service Corp. stock owned by Davlin, much of which apparently was purchased using money from the Ettelbrick estate. Midwest Service Corp. is the parent company of the Mid-West Truckers Association. Robert Davlin, the mayor's father, was one of the founders of the trucking association. Timothy Davlin was found dead of a self-inflicted gunshot on December 14, the day he was due in court to provide a final accounting of the Ettelbrick's estate. It was later learned that more than $340,000 was missing from the estate. In June 2011, McDermott filed claims for that amount against Davlin's estate. According to the claims, Davlin sold Ettelbrick's house for $46,449 less than it was worth, spent $85,512 on personal expenses and used $203,750 to buy stock in Midwest Service Corp. Davlin's campaign fund was under scrutiny by the federal government at the time he took his life, according to a statement given to investigators by former City Water, Light and Power general manager Todd Renfrow, who told police that the U.S. attorney's office had subpoenaed Davlin's campaign records. Death Davlin was found dead at his home on the morning of December 14, 2010 from a self-inflicted gunshot wound to the chest. He was 53 years old. He had been scheduled to appear in court that morning in the matter of the estate of his late cousin. There were allegations that $187,000 from the cousin's estate, which was earmarked for Catholic Charities, had disappeared. The investigation of his death was turned over to the Illinois State Police, the only law enforcement agency in the area with which Davlin had no immediate connection. An autopsy was scheduled for Wednesday, December 15, 2010, to verify the cause of death, according to the State Police and the Sangamon County coroner's office. Springfield Ward 3 Alderman Frank Kunz, who was the mayor pro tempore of the city of Springfield, was sworn into office the same day as the acting mayor of Springfield. On December 28, 2010, Ward 1 Alderman Frank Edwards was sworn in as mayor relieving Frank Kunz as mayor pro tempore. The Springfield Superintendent of Schools, Illinois Governor Pat Quinn, Illinois Secretary of State Jesse White, U.S. Senator and Majority Whip Dick Durbin, U.S. Representative Aaron Schock, Illinois State Senator Larry Bomke, and Bishop Thomas John Paprocki of the Roman Catholic Diocese of Springfield in Illinois all released statements of condolence upon hearing of Mayor Davlin's death. Suicide On January 20, 2011, Sgt. Brad Sterling of the Illinois State Police testified during an inquest hearing that Timothy Davlin had died of a self-inflicted gunshot wound. Sangamon County Coroner's office ruled the death as a suicide. Toxicology reports were negative for alcohol or drugs. A bullet was fired from a six-shot revolver and traveled through Davlin's heart and into the seat of a Lincoln Navigator owned by Davlin. Items found in the passenger area of the Navigator included the revolver, a police radio, and a cordless home telephone. It is unknown if a suicide note was found, as Sterling declined to answer questions. References External links Timothy Davlin biography at the City of Springfield official website 1957 births 2010 suicides 2010 deaths American politicians who committed suicide Benedictine University at Springfield alumni University of Illinois at Springfield alumni Illinois Democrats Mayors of Springfield, Illinois Suicides by firearm in Illinois
James David Bourchier (18 December 1850 at Baggotstown, near Bruff in County Limerick – 30 December 1920 in Sofia, Bulgaria) was an Irish journalist and political activist. He lived in Sofia from 1892 to 1915. Bourchier was an honourable member of the Sofia Journalists' Society. He acted as an intermediary between the Balkan states in the beginning and at the conclusion of the Balkan Wars of 1912–1913. Life Bourchier was born in Limerick and studied at Portora Royal School, Enniskillen and Trinity College Dublin, where he was elected a scholar in classics in 1871. Deeply engaged in the processes that were taking place on the Balkan peninsula at that time, Bourchier supported the idea that the island of Crete be annexed by Greece. In his writings he criticised certain clauses of the Bucharest Peace Treaty of 1913, which he deemed unfair to Bulgaria. As a result of the treaty Bulgaria lost the southern part of Dobrudja (which was annexed by Romania), and part of Macedonia. Bourchier also expressed his strong support for Bulgaria during the Paris Peace Conference of 1919–1920. The conference produced five treaties, including the Treaty of Neuilly (the peace agreement between the Allies and Bulgaria). Under the terms of the treaty, Bulgaria had to cede part of Western Thrace to Greece and several border areas to Yugoslavia. Southern Dobrudja was confirmed in Romanian possession, reparations were required, and the Bulgarian Army was limited to 20,000 men. With his numerous publications in the British press, and in his private and social correspondence, Bourchier repeatedly voiced his sympathy towards Bulgaria and its people. According to The Times: "He was a private man, nervous, haunted by growing deafness, probably homosexual, but he became the close confidant of kings and ambassadors in their labyrinthine intrigues." After his death in December 1920, James Bourchier was buried near the Rila Monastery in southwestern Bulgaria. He remains the only foreigner ever allowed to be buried at the one of the greatest monasteries in Bulgaria, on behalf of a grateful Bulgarian nation. Honours Bourchier Peak on Rila Mountain, James Bourchier Boulevard and James Bourchier Metro Station in Sofia,James Bourchier Boulevard in Blagoevgrad and Bourchier Cove on Smith Island in the South Shetland Islands, Antarctica are named after James David Bourchier. In 1990 the recently established Bulgarian Society for British Studies devoted its first national conference to the 140th anniversary of Bourchier’s birth, in Limerick, Ireland, and 70th anniversary of his death. Today James Bourchier Boulevard is a busy street in Sofia with numerous administrative and office buildings on it. Its most notable landmark is probably the Hotel Marinela Sofia. The Faculty of Physics, the Faculty of Mathematics and Informatics, and the Faculty of Chemistry of Sofia University are also located there, as is the office of the Union of Physicists in Bulgaria and the headquarters of the Bulgarian Red Cross. There are also streets named after him in Varna and Blagoevgrad. Notes External links James David Bourchier in 'Miscellaneous Limerick People' file at Limerick City Library, Ireland Bibliography W. B. Stanford gives an account of James David Bourchier, b. Bruff, Co. Limerick, Ireland, who assisted the Greeks in the insurrection in Crete of 1896; bibl. Lady Grogan, Life of J. D. Bourchier (London 1926). 1850 births 1920 deaths Burials at the Rila Monastery Expatriates in Bulgaria Irish male journalists People of the Balkan Wars The Times journalists Scholars of Trinity College Dublin War correspondents of the Balkan Wars People from Bruff People educated at Portora Royal School 19th-century Irish journalists 20th-century Irish journalists Writers from County Limerick
Rejmon Horo (born 19 July 1970) is a Yugoslav alpine skier. He competed in two events at the 1992 Winter Olympics. References 1970 births Living people Yugoslav male alpine skiers Olympic alpine skiers for Yugoslavia Alpine skiers at the 1992 Winter Olympics Place of birth missing (living people)
```python """Frechet derivative of the matrix exponential.""" import numpy as np import scipy.linalg __all__ = ['expm_frechet', 'expm_cond'] def expm_frechet(A, E, method=None, compute_expm=True, check_finite=True): """ Frechet derivative of the matrix exponential of A in the direction E. Parameters ---------- A : (N, N) array_like Matrix of which to take the matrix exponential. E : (N, N) array_like Matrix direction in which to take the Frechet derivative. method : str, optional Choice of algorithm. Should be one of - `SPS` (default) - `blockEnlarge` compute_expm : bool, optional Whether to compute also `expm_A` in addition to `expm_frechet_AE`. Default is True. check_finite : bool, optional Whether to check that the input matrix contains only finite numbers. Disabling may give a performance gain, but may result in problems (crashes, non-termination) if the inputs do contain infinities or NaNs. Returns ------- expm_A : ndarray Matrix exponential of A. expm_frechet_AE : ndarray Frechet derivative of the matrix exponential of A in the direction E. For ``compute_expm = False``, only `expm_frechet_AE` is returned. See also -------- expm : Compute the exponential of a matrix. Notes ----- This section describes the available implementations that can be selected by the `method` parameter. The default method is *SPS*. Method *blockEnlarge* is a naive algorithm. Method *SPS* is Scaling-Pade-Squaring [1]_. It is a sophisticated implementation which should take only about 3/8 as much time as the naive implementation. The asymptotics are the same. .. versionadded:: 0.13.0 References ---------- .. [1] Awad H. Al-Mohy and Nicholas J. Higham (2009) Computing the Frechet Derivative of the Matrix Exponential, with an application to Condition Number Estimation. SIAM Journal On Matrix Analysis and Applications., 30 (4). pp. 1639-1657. ISSN 1095-7162 Examples -------- >>> import scipy.linalg >>> rng = np.random.default_rng() >>> A = rng.standard_normal((3, 3)) >>> E = rng.standard_normal((3, 3)) >>> expm_A, expm_frechet_AE = scipy.linalg.expm_frechet(A, E) >>> expm_A.shape, expm_frechet_AE.shape ((3, 3), (3, 3)) >>> import scipy.linalg >>> rng = np.random.default_rng() >>> A = rng.standard_normal((3, 3)) >>> E = rng.standard_normal((3, 3)) >>> expm_A, expm_frechet_AE = scipy.linalg.expm_frechet(A, E) >>> M = np.zeros((6, 6)) >>> M[:3, :3] = A; M[:3, 3:] = E; M[3:, 3:] = A >>> expm_M = scipy.linalg.expm(M) >>> np.allclose(expm_A, expm_M[:3, :3]) True >>> np.allclose(expm_frechet_AE, expm_M[:3, 3:]) True """ if check_finite: A = np.asarray_chkfinite(A) E = np.asarray_chkfinite(E) else: A = np.asarray(A) E = np.asarray(E) if A.ndim != 2 or A.shape[0] != A.shape[1]: raise ValueError('expected A to be a square matrix') if E.ndim != 2 or E.shape[0] != E.shape[1]: raise ValueError('expected E to be a square matrix') if A.shape != E.shape: raise ValueError('expected A and E to be the same shape') if method is None: method = 'SPS' if method == 'SPS': expm_A, expm_frechet_AE = expm_frechet_algo_64(A, E) elif method == 'blockEnlarge': expm_A, expm_frechet_AE = expm_frechet_block_enlarge(A, E) else: raise ValueError('Unknown implementation %s' % method) if compute_expm: return expm_A, expm_frechet_AE else: return expm_frechet_AE def expm_frechet_block_enlarge(A, E): """ This is a helper function, mostly for testing and profiling. Return expm(A), frechet(A, E) """ n = A.shape[0] M = np.vstack([ np.hstack([A, E]), np.hstack([np.zeros_like(A), A])]) expm_M = scipy.linalg.expm(M) return expm_M[:n, :n], expm_M[:n, n:] """ Maximal values ell_m of ||2**-s A|| such that the backward error bound does not exceed 2**-53. """ ell_table_61 = ( None, # 1 2.11e-8, 3.56e-4, 1.08e-2, 6.49e-2, 2.00e-1, 4.37e-1, 7.83e-1, 1.23e0, 1.78e0, 2.42e0, # 11 3.13e0, 3.90e0, 4.74e0, 5.63e0, 6.56e0, 7.52e0, 8.53e0, 9.56e0, 1.06e1, 1.17e1, ) # The b vectors and U and V are copypasted # from scipy.sparse.linalg.matfuncs.py. # M, Lu, Lv follow (6.11), (6.12), (6.13), (3.3) def _diff_pade3(A, E, ident): b = (120., 60., 12., 1.) A2 = A.dot(A) M2 = np.dot(A, E) + np.dot(E, A) U = A.dot(b[3]*A2 + b[1]*ident) V = b[2]*A2 + b[0]*ident Lu = A.dot(b[3]*M2) + E.dot(b[3]*A2 + b[1]*ident) Lv = b[2]*M2 return U, V, Lu, Lv def _diff_pade5(A, E, ident): b = (30240., 15120., 3360., 420., 30., 1.) A2 = A.dot(A) M2 = np.dot(A, E) + np.dot(E, A) A4 = np.dot(A2, A2) M4 = np.dot(A2, M2) + np.dot(M2, A2) U = A.dot(b[5]*A4 + b[3]*A2 + b[1]*ident) V = b[4]*A4 + b[2]*A2 + b[0]*ident Lu = (A.dot(b[5]*M4 + b[3]*M2) + E.dot(b[5]*A4 + b[3]*A2 + b[1]*ident)) Lv = b[4]*M4 + b[2]*M2 return U, V, Lu, Lv def _diff_pade7(A, E, ident): b = (17297280., 8648640., 1995840., 277200., 25200., 1512., 56., 1.) A2 = A.dot(A) M2 = np.dot(A, E) + np.dot(E, A) A4 = np.dot(A2, A2) M4 = np.dot(A2, M2) + np.dot(M2, A2) A6 = np.dot(A2, A4) M6 = np.dot(A4, M2) + np.dot(M4, A2) U = A.dot(b[7]*A6 + b[5]*A4 + b[3]*A2 + b[1]*ident) V = b[6]*A6 + b[4]*A4 + b[2]*A2 + b[0]*ident Lu = (A.dot(b[7]*M6 + b[5]*M4 + b[3]*M2) + E.dot(b[7]*A6 + b[5]*A4 + b[3]*A2 + b[1]*ident)) Lv = b[6]*M6 + b[4]*M4 + b[2]*M2 return U, V, Lu, Lv def _diff_pade9(A, E, ident): b = (17643225600., 8821612800., 2075673600., 302702400., 30270240., 2162160., 110880., 3960., 90., 1.) A2 = A.dot(A) M2 = np.dot(A, E) + np.dot(E, A) A4 = np.dot(A2, A2) M4 = np.dot(A2, M2) + np.dot(M2, A2) A6 = np.dot(A2, A4) M6 = np.dot(A4, M2) + np.dot(M4, A2) A8 = np.dot(A4, A4) M8 = np.dot(A4, M4) + np.dot(M4, A4) U = A.dot(b[9]*A8 + b[7]*A6 + b[5]*A4 + b[3]*A2 + b[1]*ident) V = b[8]*A8 + b[6]*A6 + b[4]*A4 + b[2]*A2 + b[0]*ident Lu = (A.dot(b[9]*M8 + b[7]*M6 + b[5]*M4 + b[3]*M2) + E.dot(b[9]*A8 + b[7]*A6 + b[5]*A4 + b[3]*A2 + b[1]*ident)) Lv = b[8]*M8 + b[6]*M6 + b[4]*M4 + b[2]*M2 return U, V, Lu, Lv def expm_frechet_algo_64(A, E): n = A.shape[0] s = None ident = np.identity(n) A_norm_1 = scipy.linalg.norm(A, 1) m_pade_pairs = ( (3, _diff_pade3), (5, _diff_pade5), (7, _diff_pade7), (9, _diff_pade9)) for m, pade in m_pade_pairs: if A_norm_1 <= ell_table_61[m]: U, V, Lu, Lv = pade(A, E, ident) s = 0 break if s is None: # scaling s = max(0, int(np.ceil(np.log2(A_norm_1 / ell_table_61[13])))) A = A * 2.0**-s E = E * 2.0**-s # pade order 13 A2 = np.dot(A, A) M2 = np.dot(A, E) + np.dot(E, A) A4 = np.dot(A2, A2) M4 = np.dot(A2, M2) + np.dot(M2, A2) A6 = np.dot(A2, A4) M6 = np.dot(A4, M2) + np.dot(M4, A2) b = (64764752532480000., 32382376266240000., 7771770303897600., 1187353796428800., 129060195264000., 10559470521600., 670442572800., 33522128640., 1323241920., 40840800., 960960., 16380., 182., 1.) W1 = b[13]*A6 + b[11]*A4 + b[9]*A2 W2 = b[7]*A6 + b[5]*A4 + b[3]*A2 + b[1]*ident Z1 = b[12]*A6 + b[10]*A4 + b[8]*A2 Z2 = b[6]*A6 + b[4]*A4 + b[2]*A2 + b[0]*ident W = np.dot(A6, W1) + W2 U = np.dot(A, W) V = np.dot(A6, Z1) + Z2 Lw1 = b[13]*M6 + b[11]*M4 + b[9]*M2 Lw2 = b[7]*M6 + b[5]*M4 + b[3]*M2 Lz1 = b[12]*M6 + b[10]*M4 + b[8]*M2 Lz2 = b[6]*M6 + b[4]*M4 + b[2]*M2 Lw = np.dot(A6, Lw1) + np.dot(M6, W1) + Lw2 Lu = np.dot(A, Lw) + np.dot(E, W) Lv = np.dot(A6, Lz1) + np.dot(M6, Z1) + Lz2 # factor once and solve twice lu_piv = scipy.linalg.lu_factor(-U + V) R = scipy.linalg.lu_solve(lu_piv, U + V) L = scipy.linalg.lu_solve(lu_piv, Lu + Lv + np.dot((Lu - Lv), R)) # squaring for k in range(s): L = np.dot(R, L) + np.dot(L, R) R = np.dot(R, R) return R, L def vec(M): """ Stack columns of M to construct a single vector. This is somewhat standard notation in linear algebra. Parameters ---------- M : 2-D array_like Input matrix Returns ------- v : 1-D ndarray Output vector """ return M.T.ravel() def expm_frechet_kronform(A, method=None, check_finite=True): """ Construct the Kronecker form of the Frechet derivative of expm. Parameters ---------- A : array_like with shape (N, N) Matrix to be expm'd. method : str, optional Extra keyword to be passed to expm_frechet. check_finite : bool, optional Whether to check that the input matrix contains only finite numbers. Disabling may give a performance gain, but may result in problems (crashes, non-termination) if the inputs do contain infinities or NaNs. Returns ------- K : 2-D ndarray with shape (N*N, N*N) Kronecker form of the Frechet derivative of the matrix exponential. Notes ----- This function is used to help compute the condition number of the matrix exponential. See also -------- expm : Compute a matrix exponential. expm_frechet : Compute the Frechet derivative of the matrix exponential. expm_cond : Compute the relative condition number of the matrix exponential in the Frobenius norm. """ if check_finite: A = np.asarray_chkfinite(A) else: A = np.asarray(A) if len(A.shape) != 2 or A.shape[0] != A.shape[1]: raise ValueError('expected a square matrix') n = A.shape[0] ident = np.identity(n) cols = [] for i in range(n): for j in range(n): E = np.outer(ident[i], ident[j]) F = expm_frechet(A, E, method=method, compute_expm=False, check_finite=False) cols.append(vec(F)) return np.vstack(cols).T def expm_cond(A, check_finite=True): """ Relative condition number of the matrix exponential in the Frobenius norm. Parameters ---------- A : 2-D array_like Square input matrix with shape (N, N). check_finite : bool, optional Whether to check that the input matrix contains only finite numbers. Disabling may give a performance gain, but may result in problems (crashes, non-termination) if the inputs do contain infinities or NaNs. Returns ------- kappa : float The relative condition number of the matrix exponential in the Frobenius norm Notes ----- A faster estimate for the condition number in the 1-norm has been published but is not yet implemented in SciPy. .. versionadded:: 0.14.0 See also -------- expm : Compute the exponential of a matrix. expm_frechet : Compute the Frechet derivative of the matrix exponential. Examples -------- >>> from scipy.linalg import expm_cond >>> A = np.array([[-0.3, 0.2, 0.6], [0.6, 0.3, -0.1], [-0.7, 1.2, 0.9]]) >>> k = expm_cond(A) >>> k 1.7787805864469866 """ if check_finite: A = np.asarray_chkfinite(A) else: A = np.asarray(A) if len(A.shape) != 2 or A.shape[0] != A.shape[1]: raise ValueError('expected a square matrix') X = scipy.linalg.expm(A) K = expm_frechet_kronform(A, check_finite=False) # The following norm choices are deliberate. # The norms of A and X are Frobenius norms, # and the norm of K is the induced 2-norm. A_norm = scipy.linalg.norm(A, 'fro') X_norm = scipy.linalg.norm(X, 'fro') K_norm = scipy.linalg.norm(K, 2) kappa = (K_norm * A_norm) / X_norm return kappa ```
William Courtenay, 1st Viscount Courtenay (11 February 1709 – 16 May 1762), also de jure 7th Earl of Devon, was a British peer. He was the son of William Courtenay, 6th Earl of Devon and 2nd Baronet Courtenay, and Lady Anne Bertie. Life Sir William Courtenay was educated at Westminster School and graduated from Magdalen College, Oxford University in 1731 with a Master of Arts. He succeeded to the title of 3rd Baronet Courtenay and de jure to the title of 7th Earl of Devon on 10 October 1735. He was awarded the honorary degree of Doctor of Civil Law by Magdalen College in 1739. He held the office of Member of Parliament for Honiton as a Tory between 1734 and 1741 and for Devon from 1741 to 6 May 1762, when he was created 1st Viscount Courtenay of Powderham Castle. Marriage and children He married on 2 April 1741 Lady Frances Finch (d.1761), daughter of Heneage Finch, 2nd Earl of Aylesford by his wife Mary Fisher (1690-1740), daughter and heiress of Sir Clement Fisher, 3rd Baronet (d.1729) of Packington Hall, Warwickshire. They had the following children: William Courtenay, 2nd Viscount Courtenay (30 October 1742 - 14 October 1788) the Hon. Charlotte Courtenay (d. 1826), married Alexander Wedderburn, 1st Earl of Rosslyn the Hon. Frances Courtenay (d. 1828), married Sir John Wrottesley, 8th Baronet Death and burial He was buried on 31 May 1762 at Powderham, Devon, England. Residences His seats in Devon were Powderham Castle, which he greatly remodelled, and Forde House, Wolborough, near Newton Abbot. His townhouse in Exeter was the site of the present Devon and Exeter Institution at 7 Cathedral Close, on the north side of the Cathedral Green. It was at one time, like Forde, home of the Parliamentary general, Sir William Waller, whose daughter Margaret Waller was the wife of Courtenay's great-grandfather Sir William Courtenay, 1st Baronet (d.1702). Parts of Waller's building survive at the rear and the gatehouse range fronting the Close. The old hall and kitchen were demolished in 1813 to make way for the Institution and in their place and on the former courtyard are now situated the libraries. Overmantel in Exeter townhouse Overmantel circa 1750, in former townhouse of Courtenays of Powderham, now home of the Devon and Exeter Institution, 7 Cathedral Close, Exeter. The left-hand painted panel shows the arms of William Courtenay, 1st Viscount Courtenay (1711-1762) impaling the arms of Finch, the family of his wife. The sinister supporter is one of the Finch heraldic griffins, the dexter one is the Courtenay boar. The Courtenay motto is shown underneath: Ubi lapsus quid feci ("Where did I slip what have I done"). The panel on the right shows the arms of Bishop Peter Courtenay (1432–1492), Bishop of Exeter and Winchester, of the Powderham family. His arms (Courtenay with each point of the label charged with three plates for difference) are impaled by the arms of the See of Winchester. The whole is circumscribed by the Garter. The supporters are: dexter, the Courtenay dolphin, sinister, the Courtenay boar. The motto beneath is: Quod verum tutum ("What is true is safe"). References 1709 births 1762 deaths People educated at Westminster School, London Alumni of Magdalen College, Oxford Courtenay, William, 3rd Baronet Courtenay, William, 3rd Baronet Courtenay, William, 3rd Baronet Courtenay, William, 3rd Baronet Courtenay, William, 3rd Baronet Courtenay, William, 3rd Baronet Viscounts in the Peerage of Great Britain Peers of Great Britain created by George III Earls of Devon (1553 creation)
```xml import { ReactNode, createContext, useContext } from 'react'; import { UploadProviderState } from './UploadProviderState'; import useUpload from './useUpload'; const UploadContext = createContext<UploadProviderState | null>(null); /** * @private please use TextAreaTwo instead */ export const UploadProvider = ({ children }: { children: ReactNode }) => { const [providerState, { conflictModal, fileThresholdModal }] = useUpload(); return ( <UploadContext.Provider value={{ ...providerState }}> {children} {conflictModal} {fileThresholdModal} </UploadContext.Provider> ); }; export const useUploadProvider = (): UploadProviderState => { const state = useContext(UploadContext); if (!state) { throw new Error('Trying to use uninitialized UploadProvider'); } return state; }; ```
```python #!/usr/bin/env pypy """@package vmonkey The ViperMonkey command line and programatic interface. The top level function for using ViperMonkey programatically is process_file(). ViperMonkey is a specialized engine to parse, analyze and interpret Microsoft VBA macros (Visual Basic for Applications), mainly for malware analysis. Author: Philippe Lagadec - path_to_url Project Repository: path_to_url """ from __future__ import print_function # Do this before any other imports to make sure we have an unlimited # packrat parsing cache. Do not move or remove this line. import pyparsing pyparsing.ParserElement.enablePackrat(cache_size_limit=100000) import shutil import logging import json import random import optparse import sys import os import traceback import colorlog import re from datetime import datetime from datetime import timedelta import zipfile import io import prettytable from oletools.thirdparty.xglob import xglob from oletools.olevba import VBA_Parser, filter_vba, FileOpenError import olefile from core.meta import get_metadata_exif # add the vipermonkey folder to sys.path (absolute+normalized path): _thismodule_dir = os.path.normpath(os.path.abspath(os.path.dirname(__file__))) if _thismodule_dir not in sys.path: sys.path.insert(0, _thismodule_dir) # relative import of core ViperMonkey modules: import core import core.excel as excel import core.read_ole_fields as read_ole_fields from core.utils import safe_print from core.utils import safe_str_convert # for logging from core.logger import log from core.logger import CappedFileHandler from logging import FileHandler #=== LICENSE ================================================================== # ViperMonkey is copyright (c) 2015-2021 Philippe Lagadec (path_to_url # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and the following disclaimer. # * Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the following disclaimer in the documentation # and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #your_sha256_hash-------------- # CHANGELOG: # 2015-02-12 v0.01 PL: - first prototype # 2015-2016 PL: - many changes # 2016-10-06 v0.03 PL: - fixed vipermonkey.core import # 2016-12-11 v0.04 PL: - fixed relative import for core package (issue #17) # 2018-01-12 v0.05 KS: - lots of bug fixes and additions by Kirk Sayre (PR #23) # 2018-06-20 v0.06 PL: - fixed issue #28, import prettytable # 2018-08-17 v0.07 KS: - lots of bug fixes and additions by Kirk Sayre (PR #34) # PL: - added ASCII art banner __version__ = '1.0.3' #your_sha256_hash-------------- # TODO: # TODO: detect subs/functions with same name (in different modules) # TODO: can several projects call each other? # TODO: Word XML with several projects? # - cleanup main, use optionparser # - option -e to extract and evaluate constant expressions # - option -t to trace execution # - option --entrypoint to specify the Sub name to use as entry point # - use olevba to get all modules from a file # Environ => VBA object # vbCRLF, etc => Const (parse to string) # py2vba: convert python string to VBA string, e.g. \" => "" (for olevba to scan expressions) - same thing for ints, etc? #TODO: expr_int / expr_str #TODO: eval(parent) => for statements to set local variables into parent functions/procedures + main VBA module #TODO: __repr__ for printing #TODO: Environ('str') => '%str%' #TODO: determine the order of Auto subs for Word, Excel # TODO later: # - add VBS support (two modes?) #your_sha256_hash-------------- # REFERENCES: # - [MS-VBAL]: VBA Language Specification # path_to_url # - [MS-OVBA]: Microsoft Office VBA File Format Structure # path_to_url def get_vb_contents_from_hta(vba_code): """Pull out Visual Basic code from .hta file contents. @param vba_code (str) The HTA file contents from which to extract the VBScript code. @return (str) If the given data is HTA that contains VBScript script elements, the VBScript in the HTA is returned. If the given data is not VBScript HTA, the original data is returned. """ # Fix some obfuscation if needed. # '&#86;' if (re.search(r"&#\d{1,3};", vba_code) is not None): for i in range(0, 256): curr_c = chr(i) vba_code = vba_code.replace("&#" + str(i) + ";", curr_c) # Try several regexes to pull out HTA script contents. hta_regexes = [r"<\s*[Ss][Cc][Rr][Ii][Pp][Tt]\s+(?:(?:[Ll][Aa][Nn][Gg][Uu][Aa][Gg][Ee])|(?:[Tt][Yy][Pp][Ee]))\s*=" + \ r"\s*\"?.{0,10}[Vv][Bb][Ss][Cc][Rr][Ii][Pp][Tt]\"?\s*>(.{20,}?)</\s*[Ss][Cc][Rr][Ii][Pp][Tt][^>]*>", r"<\s*[Ss][Cc][Rr][Ii][Pp][Tt]\s+\%\d{1,10}\s*>(.{20,}?)</\s*[Ss][Cc][Rr][Ii][Pp][Tt][^>]*>", r"<\s*[Ss][Cc][Rr][Ii][Pp][Tt]\s+(?:(?:[Ll][Aa][Nn][Gg][Uu][Aa][Gg][Ee])|(?:[Tt][Yy][Pp][Ee]))\s*=" + \ r"\s*\"?.{0,10}[Vv][Bb][Ss][Cc][Rr][Ii][Pp][Tt]\"?\s*>(.{20,})$"] code = [] for pat in hta_regexes: code = re.findall(pat, vba_code.strip(), re.DOTALL) if (len(code) > 0): #for c in code: # print("\n\n%%%%%%%%%%%%%%%%%%%%%%%%%%%\n\n") # print(c) break if (len(code) == 0): return vba_code # We have script block VB code. # Return the code. r = "" for b in code: b = b.strip() if ("</script>" in b.lower()): b = b[:b.lower().index("</script>")] if ("<![CDATA[" in b.upper()): b = b[b.upper().index("<![CDATA[") + len("<![CDATA["):] if ("]]>" in b[-10:]): b = b[:b.rindex("]]>")] # More tag stripping. pat = r"<!\-\-(.+)/?/?\-\->" tmp_b = re.findall(pat, b, re.DOTALL) if (len(tmp_b) > 0): b = tmp_b[0].strip() if (b.endswith("//")): b = b[:-2] r += b + "\n" return r def parse_stream(subfilename, stream_path=None, vba_filename=None, vba_code=None, strip_useless=False, local_funcs=None): """Parse the macros from a single OLE stream. @param subfilename (str) The name of the file containing the macros. @param stream_path (??) ?? @param vba_filename (??) ?? @param vba_code (str) The macro code to parse. @param local_funcs (list) A list of the names of already declared local VBA functions. @return (Module object) A parsed module object. """ # Set local func list if needed. if (local_funcs is None): local_funcs = [] # Check for timeouts. core.vba_object.limits_exceeded(throw_error=True) # Are the arguments all in a single tuple? if (stream_path is None): subfilename, stream_path, vba_filename, vba_code = subfilename # Skip old-style XLM macros. if (repr(stream_path).strip() == "'xlm_macro'"): log.warning("Skipping XLM macro stream...") return "empty" # Collapse long lines. vba_code = core.vba_collapse_long_lines(vba_code) # Filter cruft from the VBA. vba_code = filter_vba(vba_code) # Pull out Visual Basic from .hta contents (if we are looking at a # .hta file). vba_code = get_vb_contents_from_hta(vba_code) # Do not analyze the file if the VBA looks like garbage characters. if (read_ole_fields.is_garbage_vba(vba_code)): raise ValueError("VBA looks corrupted. Not analyzing.") # Skip some XML that olevba gives for some 2007+ streams. if (vba_code.strip().startswith("<?xml")): log.warning("Skipping XML stream.") return "empty" # Strip out code that does not affect the end result of the program. if (strip_useless): vba_code = core.strip_lines.strip_useless_code(vba_code, local_funcs) safe_print('-'*79) safe_print('VBA MACRO %s ' % vba_filename) safe_print('in file: %s - OLE stream: %s' % (subfilename, repr(stream_path))) safe_print('- '*39) # Parse the macro. m = None if vba_code.strip() == '': safe_print('(empty macro)') m = "empty" else: safe_print('-'*79) safe_print('VBA CODE (with long lines collapsed):') safe_print(vba_code) safe_print('-'*79) #sys.exit(0) safe_print('PARSING VBA CODE:') try: m = core.module.parseString(vba_code + "\n", parseAll=True)[0] pyparsing.ParserElement.resetCache() m.code = vba_code except pyparsing.ParseException as err: safe_print(err.line) safe_print(" "*(err.column-1) + "^") safe_print(err) log.error("Parse Error. Processing Aborted.") return None # Check for timeouts. core.vba_object.limits_exceeded(throw_error=True) # Return the parsed macro. return m def get_all_local_funcs(vba): """Get the names of all locally defined functions. Also get the names of all defined constants. The constant names are saved in core.strip_lines.defined_constants. @params vba (VBA_Parser object) The olevba VBA_Parser object for reading the Office file being analyzed. """ # Find the sub/function definitions. pat = r"(?:Sub |Function )([^\(]+)" r = [] for (_, _, _, vba_code) in vba.extract_macros(): if (vba_code is None): continue # Get local func names. for line in vba_code.split("\n"): names = re.findall(pat, line) r.extend(names) # Get constant defs. This is saved in strip_lines.defined_constants. core.strip_lines.find_defined_constants(vba_code) # Return local function names. return r def parse_streams(vba, strip_useless=False): """Parse all the VBA streams and return list of parsed module objects. @params vba (VBA_Parser object) The olevba VBA_Parser object for reading the Office file being analyzed. @param strip_useless (boolean) Flag turning on/off modification of VB code prior to parsing. @return (list) A list of parsed Module objects. """ # Get the names of all the locally defined functions. local_funcs = get_all_local_funcs(vba) # Parse the VBA streams. r = [] for (subfilename, stream_path, vba_filename, vba_code) in vba.extract_macros(): m = parse_stream(subfilename, stream_path, vba_filename, vba_code, strip_useless, local_funcs) if (m is None): return None r.append(m) return r # === Top level utility functions ================================================================================ def read_excel_sheets(fname): """Read all the sheets of a given Excel file as CSV and return them as a ExcelBook object. @param fname (str) The name of the Excel file to read. @return (core.excel.ExceBook object) On success return the Excel sheets as an ExcelBook object. Returns None on error. """ # Read the sheets. try: f = open(fname, 'rb') data = f.read() f.close() return excel.load_excel_libreoffice(data) except Exception as e: if (log.getEffectiveLevel() == logging.DEBUG): log.debug("Reading Excel sheets failed. " + str(e)) return None def pull_urls_office97(fname): """Pull URLs directly from an Office97 file. @param fname (str) The name of the file from which to scrape URLs. @return (set) The URLs scraped from the file. This will be empty if there are no URLs. """ return read_ole_fields.pull_urls_office97(fname, False, None) # === Top level Programatic Interface ================================================================================ # pylint: disable=too-many-arguments def process_file(container, filename, data, strip_useless=False, entry_points=None, time_limit=None, verbose=False, display_int_iocs=False, set_log=False, tee_log=False, tee_bytes=0, artifact_dir=None, out_file_name=None, do_jit=False): """Process an Office file with VBA macros, a VBScript file, or VBScript HTA file with ViperMonkey. This is the main programatic interface for ViperMonkey. @param container (str) Path and filename of container if the file is within a zip archive, None otherwise. @param filename (str) str, path and filename of file on disk, or within the container. @param data (bytes) content of the file if it is in a container, None if it is a file on disk. @param strip_useless (boolean) Flag turning on/off modification of VB code prior to parsing. @param entry_points (list) A list of the names (str) of the VB functions from which to start emulation. @param time_limit (int) The emulation time limit, in minutes. If None there is not time limit. @param verbose (boolean) Flag turning debug logging on/off. @param display_int_iocs (boolean) Flag turning on/off the reporting of intermediate IOCs (base64 strings and URLs) found during the emulation process. @param set_log (boolean) A flag?? @param tee_log (boolean) A flag turning on/off saving all of ViperMonkey's output in a text log file. The log file will be FNAME.log, where FNAME is the name of the file being analyzed. @param tee_bytes (int) If tee_log is true, this gives the number of bytes at which to cap the saved log file. @param artifact_dir (str) The directory in which to save artifacts dropped by the sample under analysis. If None the artifact directory will be FNAME_artifacts/ where FNAME is the name of the file being analyzed. @param out_file_name (str) The name of the file in which to store the ViperMonkey analysis results as JSON. If None no JSON results will be saved. @param do_jit (str) A flag turning on/off doing VB -> Python transpiling of loops to speed up loop emulation. @return (list) A list of actions if actions found, an empty list if no actions found, and None if there was an error. """ # set logging level if verbose: colorlog.basicConfig(level=logging.DEBUG, format='%(log_color)s%(levelname)-8s %(message)s') elif set_log: colorlog.basicConfig(level=logging.INFO, format='%(log_color)s%(levelname)-8s %(message)s') # assume they want a tee'd file if they give bytes for it if tee_bytes > 0: tee_log = True # add handler for tee'd log file if tee_log: tee_filename = "./" + filename if ("/" in filename): tee_filename = "./" + filename[filename.rindex("/") + 1:] if tee_bytes > 0: capped_handler = CappedFileHandler(tee_filename + ".log", sizecap=tee_bytes) capped_handler.setFormatter(logging.Formatter("%(levelname)-8s %(message)s")) log.addHandler(capped_handler) else: file_handler = FileHandler(tee_filename + ".log", mode="w") file_handler.setFormatter(logging.Formatter("%(levelname)-8s %(message)s")) log.addHandler(file_handler) # Check for files that do not exist. if (isinstance(data, Exception)): log.error("Cannot open file '" + str(filename) + "'.") return None # Read in file contents if we have not already been provided data to analyze. if not data: # TODO: replace print by writing to a provided output file (sys.stdout by default) if container: display_filename = '%s in %s' % (filename, container) else: display_filename = filename safe_print('='*79) safe_print('FILE: ' + str(display_filename)) # FIXME: the code below only works if the file is on disk and not in a zip archive # TODO: merge process_file and _process_file try: input_file = open(filename,'rb') data = input_file.read() input_file.close() except IOError as e: log.error("Cannot open file '" + str(filename) + "'. " + str(e)) return None r = _process_file(filename, data, strip_useless=strip_useless, entry_points=entry_points, time_limit=time_limit, display_int_iocs=display_int_iocs, artifact_dir=artifact_dir, out_file_name=out_file_name, do_jit=do_jit) # Reset logging. colorlog.basicConfig(level=logging.ERROR, format='%(log_color)s%(levelname)-8s %(message)s') # Done. return r def _remove_duplicate_iocs(iocs): """Remove IOC strings that are substrings of other IOC strings. @param iocs (list) List of IOCs (str). @return (set) The original IOC list with duplicate-ish IOC strings stripped out. """ # Track whether to keep an IOC string. r = set() skip = set() log.info("Found " + str(len(iocs)) + " possible IOCs. Stripping duplicates...") for ioc1 in iocs: # Does this IOC look like straight up garbage? if (read_ole_fields.is_garbage_vba(ioc1, test_all=True, bad_pct=.25)): skip.add(ioc1) continue # Looks somewhat sensible. See if it is a duplicate. keep_curr = True for ioc2 in iocs: if (ioc2 in skip): continue if ((ioc1 != ioc2) and (ioc1 in ioc2)): keep_curr = False break if ((ioc1 != ioc2) and (ioc2 in ioc1)): skip.add(ioc2) if (keep_curr): r.add(ioc1) # Return stripped IOC set. return r def _get_vba_parser(data): """Get an olevba VBA_Parser object for reading an Office file. This handles regular Office files and HTA files with VBScript script elements. @param data (str) The file contents for which to generate a VBA_Parser. @return (VBA_Parser object) On success, the olevba VBA_Parser object for the given file contents. On error, None. """ # First just try the most common case where olevba can directly get the VBA. vba = None try: vba = VBA_Parser('', data, relaxed=True) except Exception as e: if (log.getEffectiveLevel() == logging.DEBUG): log.debug("Creating VBA_PArser() Failed. Trying as HTA. " + str(e)) # If that did not work see if we can pull HTA wrapped VB from the data. extracted_data = get_vb_contents_from_hta(data) # If this throws an exception it will get passed up. vba = VBA_Parser('', extracted_data, relaxed=True) # Return the vba parser. return vba def pull_embedded_pe_files(data, out_dir): """Directly pull out any PE files embedded in the given data. The PE files will be saved in a directory and will be named things like embedded*.exe. @param data (str) The contents of the file being analyzed. @param out_dir (str) The directory in which to save extracted PE files. """ # Is this a Office 2007 (zip) file? if core.filetype.is_office2007_file(data, is_data=True): # convert data to a BytesIO buffer so that we can use zipfile in memory # without writing a temp file on disk: data_io = io.BytesIO(data) # Pull embedded PE files from each file in the zip. with zipfile.ZipFile(data_io, "r") as f: for name in f.namelist(): curr_data = f.read(name) pull_embedded_pe_files(curr_data, out_dir) return # Is a PE file in the data at all? pe_pat = r"MZ.{70,80}This program (?:(?:cannot be run in DOS mode\.)|(?:must be run under Win32))" if (re.search(pe_pat, data) is None): return # There is an embedded PE. Break them out. # Get where each PE file starts. pe_starts = [] for match in re.finditer(pe_pat, data): pe_starts.append(match.span()[0]) pe_starts.append(len(data)) # Make the 2nd stage output directory if needed. if not os.path.isdir(out_dir): os.makedirs(out_dir) # Break out each PE file. Note that we probably will get extra data, # but due to the PE file format the file will be a valid PE (with an overlay). pos = 0 out_index = 0 while (pos < len(pe_starts) - 1): curr_data = data[pe_starts[pos]:pe_starts[pos+1]] curr_name = out_dir + "/embedded_pe" + str(out_index) + ".bin" # Make sure name is unique. while os.path.isfile(curr_name): out_index += 1 curr_name = out_dir + "/embedded_pe" + str(out_index) + ".bin" f = open(curr_name, "wb") f.write(curr_data) f.close() pos += 1 out_index += 1 def _report_analysis_results(vm, data, display_int_iocs, orig_filename, out_file_name): """Report analysis results (screen and file) to the user. Results will be printed to stdout and saved in an output file as JSON if needed. @param vm (ViperMonkey object) The ViperMonkey emulation engine object that did the emulation. @param data (str) The read in Office file (data). @param display_int_iocs (boolean) Flag turning on/off the reporting of intermediate IOCs (base64 strings and URLs) found during the emulation process. @param orig_filename (str) path and filename of file on disk, or within the container. @param out_file_name (str) The name of the file in which to store the ViperMonkey analysis results as JSON. If None no JSON results will be saved. @return (tuple) A 3 element tuple where the 1st element is a list of reported actions all converted to strings, the 2nd element is a list of unique intermediate IOCs, and the 3rd element is a list of shell code bytes injected by the VB (empty list if no shell code). """ # Print table of all recorded actions safe_print('\nRecorded Actions:') safe_print(vm.dump_actions()) safe_print('') full_iocs = core.vba_context.intermediate_iocs raw_b64_iocs = read_ole_fields.pull_base64(data) for ioc in raw_b64_iocs: if (core.vba_context.num_b64_iocs > 200): log.warning("Found too many potential base64 IOCs. Skipping the rest.") break full_iocs.add(ioc) core.vba_context.num_b64_iocs += 1 # Report intermediate IOCs. tmp_iocs = [] if (len(full_iocs) > 0): tmp_iocs = _remove_duplicate_iocs(full_iocs) if (display_int_iocs): safe_print('Intermediate IOCs:') safe_print('') for ioc in tmp_iocs: safe_print("+---------------------------------------------------------+") safe_print(ioc) safe_print("+---------------------------------------------------------+") safe_print('') # Display injected shellcode. shellcode_bytes = core.vba_context.get_shellcode_data() if (len(shellcode_bytes) > 0): safe_print("+---------------------------------------------------------+") safe_print("Shell Code Bytes: " + str(shellcode_bytes)) safe_print("+---------------------------------------------------------+") safe_print('') # See if we can directly pull any embedded PE files from the file. pull_embedded_pe_files(data, core.vba_context.out_dir) safe_print('VBA Builtins Called: ' + str(vm.external_funcs)) safe_print('') safe_print('Finished analyzing ' + str(orig_filename) + " .\n") # Reporting results in JSON file? if out_file_name: # Create the results data structure. actions_data = [] for action in vm.actions: actions_data.append({ "action": str(action[0]), "parameters": str(action[1]), "description": str(action[2]) }) out_data = { "file_name": orig_filename, "potential_iocs": list(tmp_iocs), "shellcode" : shellcode_bytes, "vba_builtins": vm.external_funcs, "actions": actions_data } # Write out the results as JSON. try: with open(out_file_name, 'w') as out_file: out_file.write("\n" + json.dumps(out_data, indent=4)) except Exception as exc: log.error("Failed to output results to output file. " + str(exc)) # Make sure all the action fields are strings before returning. str_actions = [] for action in vm.actions: str_actions.append((safe_str_convert(action[0]), safe_str_convert(action[1]), safe_str_convert(action[2]))) # Done. return (str_actions, tmp_iocs, shellcode_bytes) # Wrapper for original function; from here out, only data is a valid variable. # filename gets passed in _temporarily_ to support dumping to vba_context.out_dir = out_dir. def _process_file (filename, data, strip_useless=False, entry_points=None, time_limit=None, display_int_iocs=False, artifact_dir=None, out_file_name=None, do_jit=False): """Process a single file. @param container (str) Path and filename of container if the file is within a zip archive, None otherwise. @param filename (str) path and filename of file on disk, or within the container. @param data (bytes) content of the file if it is in a container, None if it is a file on disk. @param strip_useless (boolean) Flag turning on/off modification of VB code prior to parsing. @param entry_points (list) A list of the names (str) of the VB functions from which to start emulation. @param time_limit (int) The emulation time limit, in minutes. If None there is not time limit. @param display_int_iocs (boolean) Flag turning on/off the reporting of intermediate IOCs (base64 strings and URLs) found during the emulation process. @param artifact_dir (str) The directory in which to save artifacts dropped by the sample under analysis. If None the artifact @param out_file_name (str) The name of the file in which to store the ViperMonkey analysis results as JSON. If None no JSON results will be saved. @param do_jit (str) A flag turning on/off doing VB -> Python transpiling of loops to speed up loop emulation. @return (list) A list of actions if actions found, an empty list if no actions found, and None if there was an error. """ # Increase Python call depth. sys.setrecursionlimit(13000) # Set the emulation time limit. if (time_limit is not None): core.vba_object.max_emulation_time = datetime.now() + timedelta(minutes=time_limit) # Create the emulator. log.info("Starting emulation...") vm = core.ViperMonkey(filename, data, do_jit=do_jit) orig_filename = filename if (entry_points is not None): for entry_point in entry_points: vm.entry_points.append(entry_point) try: #TODO: handle olefile errors, when an OLE file is malformed if (isinstance(data, Exception)): data = None vba = None try: vba = _get_vba_parser(data) except FileOpenError as e: # Is this an unrecognized format? if ("Failed to open file is not a supported file type, cannot extract VBA Macros." not in str(e)): # No, it is some other problem. Pass on the exception. raise e # This may be VBScript with some null characters. Remove those and try again. data = data.replace("\x00", "") vba = _get_vba_parser(data) # Do we have analyzable VBA/VBScript? Do the analysis even # without VBA/VBScript if we are scraping for intermediate # IOCs. if (vba.detect_vba_macros() or display_int_iocs): # Read in document metadata. try: log.info("Reading document metadata...") ole = olefile.OleFileIO(data) vm.set_metadata(ole.get_metadata()) except Exception as e: log.warning("Reading in metadata failed. Trying fallback. " + str(e)) vm.set_metadata(get_metadata_exif(orig_filename)) # If this is an Excel spreadsheet, read it in. vm.loaded_excel = excel.load_excel(data) # Set where to store directly dropped files if needed. if (artifact_dir is None): artifact_dir = "./" if ((filename is not None) and ("/" in filename)): artifact_dir = filename[:filename.rindex("/")] only_filename = filename if ((filename is not None) and ("/" in filename)): only_filename = filename[filename.rindex("/")+1:] # Set the output directory in which to put dumped files generated by # the macros. out_dir = None if (only_filename is not None): out_dir = artifact_dir + "/" + only_filename + "_artifacts/" if os.path.exists(out_dir): shutil.rmtree(out_dir) else: out_dir = "/tmp/tmp_file_" + str(random.randrange(0, 10000000000)) log.info("Saving dropped analysis artifacts in " + out_dir) core.vba_context.out_dir = out_dir del filename # We already have this in memory, we don't need to read it again. # Parse the VBA streams. log.info("Parsing VB...") comp_modules = parse_streams(vba, strip_useless) if (comp_modules is None): return None got_code = False for m in comp_modules: if (m != "empty"): vm.add_compiled_module(m) got_code = True if ((not got_code) and (not display_int_iocs)): log.info("No VBA or VBScript found. Exiting.") return ([], [], [], []) # Get the VBA code. vba_code = "" for (_, _, _, macro_code) in vba.extract_macros(): if (macro_code is not None): vba_code += macro_code # Do not analyze the file if the VBA looks like garbage. if (read_ole_fields.is_garbage_vba(vba_code)): raise ValueError("VBA looks corrupted. Not analyzing.") # Read in text values from all of the various places in # Office 97/2000+ that text values can be hidden. So many # places. read_ole_fields.read_payload_hiding_places(data, orig_filename, vm, vba_code, vba) # Do Emulation. safe_print("") safe_print('-'*79) safe_print('TRACING VBA CODE (entrypoint = Auto*):') if (entry_points is not None): log.info("Starting emulation from function(s) " + str(entry_points)) pyparsing.ParserElement.resetCache() vm.vba = vba vm.trace() # Done with emulation. # Report the results. str_actions, tmp_iocs, shellcode_bytes = _report_analysis_results(vm, data, display_int_iocs, orig_filename, out_file_name) # Return the results. return (str_actions, vm.external_funcs, tmp_iocs, shellcode_bytes) # No VBA/VBScript found? else: safe_print('Finished analyzing ' + str(orig_filename) + " .\n") safe_print('No VBA macros found.') safe_print('') return ([], [], [], []) # Handle uncaught exceptions triggered during analysis. except Exception as e: # Print error info. if (("SystemExit" not in str(e)) and (". Aborting analysis." not in str(e))): traceback.print_exc() log.error(str(e)) # If this is an out of memory error terminate the process with an # error code indicating that there are memory problems. This is so # that higer level systems using ViperMonkey can see that there is a # memory issue and handle it accordingly. if isinstance(e, MemoryError): log.error("Exiting ViperMonkey with error code 137 (out of memory)") sys.exit(137) # Done. Analysis failed. return None def process_file_scanexpr (container, filename, data): """Process a single file. @param container (str) Path and filename of container if the file is within a zip archive, None otherwise. @param filename (str) path and filename of file on disk, or within the container. @param data (bytes) Content of the file if it is in a container, None if it is a file on disk. """ #TODO: replace print by writing to a provided output file (sys.stdout by default) if container: display_filename = '%s in %s' % (filename, container) else: display_filename = filename safe_print('='*79) safe_print('FILE: ' + str(display_filename)) all_code = '' try: #TODO: handle olefile errors, when an OLE file is malformed import oletools oletools.olevba.enable_logging() if (log.getEffectiveLevel() == logging.DEBUG): log.debug('opening %r' % filename) vba = VBA_Parser(filename, data, relaxed=True) if vba.detect_vba_macros(): # Read in document metadata. vm = core.ViperMonkey(filename, data) ole = olefile.OleFileIO(filename) try: vm.set_metadata(ole.get_metadata()) except Exception as e: log.warning("Reading in metadata failed. Trying fallback. " + str(e)) vm.set_metadata(get_metadata_exif(filename)) #print 'Contains VBA Macros:' for (subfilename, stream_path, vba_filename, vba_code) in vba.extract_macros(): # hide attribute lines: #TODO: option to disable attribute filtering vba_code = filter_vba(vba_code) safe_print('-'*79) safe_print('VBA MACRO %s ' % vba_filename) safe_print('in file: %s - OLE stream: %s' % (subfilename, repr(stream_path))) safe_print('- '*39) # detect empty macros: if vba_code.strip() == '': safe_print('(empty macro)') else: # TODO: option to display code safe_print(vba_code) vba_code = core.vba_collapse_long_lines(vba_code) all_code += '\n' + vba_code safe_print('-'*79) safe_print('EVALUATED VBA EXPRESSIONS:') t = prettytable.PrettyTable(('Obfuscated expression', 'Evaluated value')) t.align = 'l' t.max_width['Obfuscated expression'] = 36 t.max_width['Evaluated value'] = 36 for expression, expr_eval in core.scan_expressions(all_code): t.add_row((repr(expression), repr(expr_eval))) safe_print(t) else: safe_print('No VBA macros found.') except Exception as e: log.error("Caught exception. " + str(e)) if (log.getEffectiveLevel() == logging.DEBUG): traceback.print_exc() safe_print('') def print_version(): """Print ViperMonkey version information. """ safe_print("Version Information:\n") safe_print("ViperMonkey:\t\t" + str(__version__)) safe_print("Python:\t\t\t" + str(sys.version_info)) safe_print("pyparsing:\t\t" + str(pyparsing.__version__)) safe_print("olefile:\t\t" + str(olefile.__version__)) import oletools.olevba safe_print("olevba:\t\t\t" + str(oletools.olevba.__version__)) def main(): """Main function, called when vipermonkey is run from the command line. """ # Increase recursion stack depth. sys.setrecursionlimit(13000) # print banner with version # Generated with path_to_url#p=display&f=Slant&t=ViperMonkey safe_print(''' _ ___ __ ___ __ | | / (_)___ ___ _____/ |/ /___ ____ / /_____ __ __ | | / / / __ \/ _ \/ ___/ /|_/ / __ \/ __ \/ //_/ _ \/ / / / | |/ / / /_/ / __/ / / / / / /_/ / / / / ,< / __/ /_/ / |___/_/ .___/\___/_/ /_/ /_/\____/_/ /_/_/|_|\___/\__, / /_/ /____/ ''') safe_print('vmonkey %s - path_to_url % __version__) safe_print('THIS IS WORK IN PROGRESS - Check updates regularly!') safe_print('Please report any issue at path_to_url safe_print('') DEFAULT_LOG_LEVEL = "info" # Default log level LOG_LEVELS = { 'debug': logging.DEBUG, 'info': logging.INFO, 'warning': logging.WARNING, 'error': logging.ERROR, 'critical': logging.CRITICAL } usage = 'usage: %prog [options] <filename> [filename2 ...]' parser = optparse.OptionParser(usage=usage) parser.add_option("-r", action="store_true", dest="recursive", help='find files recursively in subdirectories.') parser.add_option("-z", "--zip", dest='zip_password', type='str', default=None, help='if the file is a zip archive, open first file from it, using the ' 'provided password (requires Python 2.6+)') parser.add_option("-f", "--zipfname", dest='zip_fname', type='str', default='*', help='if the file is a zip archive, file(s) to be opened within the zip. ' 'Wildcards * and ? are supported. (default:*)') parser.add_option("-e", action="store_true", dest="scan_expressions", help='Extract and evaluate/deobfuscate constant expressions') parser.add_option('-l', '--loglevel', dest="loglevel", action="store", default=DEFAULT_LOG_LEVEL, help="logging level debug/info/warning/error/critical (default=%default)") parser.add_option("-s", '--strip', action="store_true", dest="strip_useless_code", help='Strip useless VB code from macros prior to parsing.') parser.add_option("-j", '--jit', action="store_true", dest="do_jit", help='Speed up emulation by JIT compilation of VB loops to Python.') parser.add_option('-i', '--init', dest="entry_points", action="store", default=None, help="Emulate starting at the given function name(s). Use comma seperated " "list for multiple entries.") parser.add_option('-t', '--time-limit', dest="time_limit", action="store", default=None, type='int', help="Time limit (in minutes) for emulation.") parser.add_option("-c", '--iocs', action="store_true", dest="display_int_iocs", help='Display potential IOCs stored in intermediate VBA variables ' 'assigned during emulation (URLs and base64).') parser.add_option("-v", '--version', action="store_true", dest="print_version", help='Print version information of packages used by ViperMonkey.') parser.add_option("-o", "--out-file", action="store", default=None, type="str", help="JSON output file containing resulting IOCs, builtins, and actions") parser.add_option("-p", "--tee-log", action="store_true", default=False, help="output also to a file in addition to standard out") parser.add_option("-b", "--tee-bytes", action="store", default=0, type="int", help="number of bytes to limit the tee'd log to") (options, args) = parser.parse_args() # Print version information and exit? if (options.print_version): print_version() sys.exit(0) # Print help if no arguments are passed if len(args) == 0: safe_print(__doc__) parser.print_help() sys.exit(0) # setup logging to the console # logging.basicConfig(level=LOG_LEVELS[options.loglevel], format='%(levelname)-8s %(message)s') colorlog.basicConfig(level=LOG_LEVELS[options.loglevel], format='%(log_color)s%(levelname)-8s %(message)s') json_results = [] for container, filename, data in xglob.iter_files(args, recursive=options.recursive, zip_password=options.zip_password, zip_fname=options.zip_fname): # ignore directory names stored in zip files: if container and filename.endswith('/'): continue if options.scan_expressions: process_file_scanexpr(container, filename, data) else: entry_points = None if (options.entry_points is not None): entry_points = options.entry_points.split(",") process_file(container, filename, data, strip_useless=options.strip_useless_code, entry_points=entry_points, time_limit=options.time_limit, display_int_iocs=options.display_int_iocs, tee_log=options.tee_log, tee_bytes=options.tee_bytes, out_file_name=options.out_file, do_jit=options.do_jit) # add json results to list if (options.out_file): with open(options.out_file, 'r') as json_file: try: json_results.append(json.loads(json_file.read())) except ValueError: pass if (options.out_file): with open(options.out_file, 'w') as json_file: if (len(json_results) > 1): json_file.write(json.dumps(json_results, indent=2)) else: json_file.write(json.dumps(json_results[0], indent=2)) log.info("Saved results JSON to output file " + options.out_file) if __name__ == '__main__': main() # Soundtrack: This code was developed while listening to The Pixies "Monkey Gone to Heaven" ```
```python #!/usr/bin/env python2 """ gc_stats_to_tsv.py Turn a set of files with OILS_GC_STATS output into a TSV file. """ from __future__ import print_function import collections import os import sys def main(argv): header = None for path in argv[1:]: filename = os.path.basename(path) join_id, _ = os.path.splitext(filename) d = collections.OrderedDict() d["join_id"] = join_id with open(path) as f: for line in f: line = line.strip() if not line: continue key, value = line.split("=", 1) key = key.strip().replace(" ", "_") value = value.strip() d[key] = value if header is None: header = d.keys() print("\t".join(header)) else: # Ensure the order assert d.keys() == header row = d.values() print("\t".join(row)) if __name__ == '__main__': try: main(sys.argv) except RuntimeError as e: print('FATAL: %s' % e, file=sys.stderr) sys.exit(1) ```
```go /* path_to_url Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package fake import ( meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" v1 "k8s.io/client-go/pkg/api/v1" testing "k8s.io/client-go/testing" ) // FakeConfigMaps implements ConfigMapInterface type FakeConfigMaps struct { Fake *FakeCoreV1 ns string } var configmapsResource = schema.GroupVersionResource{Group: "", Version: "v1", Resource: "configmaps"} var configmapsKind = schema.GroupVersionKind{Group: "", Version: "v1", Kind: "ConfigMap"} func (c *FakeConfigMaps) Create(configMap *v1.ConfigMap) (result *v1.ConfigMap, err error) { obj, err := c.Fake. Invokes(testing.NewCreateAction(configmapsResource, c.ns, configMap), &v1.ConfigMap{}) if obj == nil { return nil, err } return obj.(*v1.ConfigMap), err } func (c *FakeConfigMaps) Update(configMap *v1.ConfigMap) (result *v1.ConfigMap, err error) { obj, err := c.Fake. Invokes(testing.NewUpdateAction(configmapsResource, c.ns, configMap), &v1.ConfigMap{}) if obj == nil { return nil, err } return obj.(*v1.ConfigMap), err } func (c *FakeConfigMaps) Delete(name string, options *meta_v1.DeleteOptions) error { _, err := c.Fake. Invokes(testing.NewDeleteAction(configmapsResource, c.ns, name), &v1.ConfigMap{}) return err } func (c *FakeConfigMaps) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error { action := testing.NewDeleteCollectionAction(configmapsResource, c.ns, listOptions) _, err := c.Fake.Invokes(action, &v1.ConfigMapList{}) return err } func (c *FakeConfigMaps) Get(name string, options meta_v1.GetOptions) (result *v1.ConfigMap, err error) { obj, err := c.Fake. Invokes(testing.NewGetAction(configmapsResource, c.ns, name), &v1.ConfigMap{}) if obj == nil { return nil, err } return obj.(*v1.ConfigMap), err } func (c *FakeConfigMaps) List(opts meta_v1.ListOptions) (result *v1.ConfigMapList, err error) { obj, err := c.Fake. Invokes(testing.NewListAction(configmapsResource, configmapsKind, c.ns, opts), &v1.ConfigMapList{}) if obj == nil { return nil, err } label, _, _ := testing.ExtractFromListOptions(opts) if label == nil { label = labels.Everything() } list := &v1.ConfigMapList{} for _, item := range obj.(*v1.ConfigMapList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } } return list, err } // Watch returns a watch.Interface that watches the requested configMaps. func (c *FakeConfigMaps) Watch(opts meta_v1.ListOptions) (watch.Interface, error) { return c.Fake. InvokesWatch(testing.NewWatchAction(configmapsResource, c.ns, opts)) } // Patch applies the patch and returns the patched configMap. func (c *FakeConfigMaps) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.ConfigMap, err error) { obj, err := c.Fake. Invokes(testing.NewPatchSubresourceAction(configmapsResource, c.ns, name, data, subresources...), &v1.ConfigMap{}) if obj == nil { return nil, err } return obj.(*v1.ConfigMap), err } ```
```java /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * specific language governing permissions and limitations */ package io.ballerina.semtype; /** * Represent SubtypeData type. * * @since 2.0.0 */ public interface SubtypeData { } ```