2,771 research outputs found

    Typechecking protocols with Mungo and StMungo: a session type toolchain for Java

    Get PDF
    Static typechecking is an important feature of many standard programming languages. However, static typing focuses on data rather than communication, and therefore does not help programmers correctly implement communication protocols in distributed systems. The theory of session types provides a basis for tackling this problem; we use it to develop two tools that support static typechecking of communication protocols in Java. The first tool, Mungo, extends Java with typestate definitions, which allow classes to be associated with state machines defining permitted sequences of method calls: for example, communication methods. The second tool, StMungo, takes a session type describing a communication protocol, and generates a typestate specification of the permitted sequences of messages in the protocol. Protocol implementations can be validated by Mungo against their typestate definitions and then compiled with a standard Java compiler. The result is a toolchain for static typechecking of communication protocols in Java. We formalise and prove soundness of the typestate inference system used by Mungo, and show that our toolchain can be used to typecheck a client for the standard Simple Mail Transfer Protocol (SMTP)

    Imperative functional programs that explain their work

    Get PDF
    Program slicing provides explanations that illustrate how program outputs were produced from inputs. We build on an approach introduced in prior work by Perera et al., where dynamic slicing was defined for pure higher-order functional programs as a Galois connection between lattices of partial inputs and partial outputs. We extend this approach to imperative functional programs that combine higher-order programming with references and exceptions. We present proofs of correctness and optimality of our approach and a proof-of-concept implementation and experimental evaluation.Comment: Full version of ICFP 2017 paper, with appendice

    Rivaroxaban or aspirin for patent foramen ovale and embolic stroke of undetermined source: a prespecified subgroup analysis from the NAVIGATE ESUS trial

    Get PDF
    Background: Patent foramen ovale (PFO) is a contributor to embolic stroke of undetermined source (ESUS). Subgroup analyses from previous studies suggest that anticoagulation could reduce recurrent stroke compared with antiplatelet therapy. We hypothesised that anticoagulant treatment with rivaroxaban, an oral factor Xa inhibitor, would reduce the risk of recurrent ischaemic stroke compared with aspirin among patients with PFO enrolled in the NAVIGATE ESUS trial. Methods: NAVIGATE ESUS was a double-blinded, randomised, phase 3 trial done at 459 centres in 31 countries that assessed the efficacy and safety of rivaroxaban versus aspirin for secondary stroke prevention in patients with ESUS. For this prespecified subgroup analysis, cohorts with and without PFO were defined on the basis of transthoracic echocardiography (TTE) and transoesophageal echocardiography (TOE). The primary efficacy outcome was time to recurrent ischaemic stroke between treatment groups. The primary safety outcome was major bleeding, according to the criteria of the International Society of Thrombosis and Haemostasis. The primary analyses were based on the intention-to-treat population. Additionally, we did a systematic review and random-effects meta-analysis of studies in which patients with cryptogenic stroke and PFO were randomly assigned to receive anticoagulant or antiplatelet therapy. Findings: Between Dec 23, 2014, and Sept 20, 2017, 7213 participants were enrolled and assigned to receive rivaroxaban (n=3609) or aspirin (n=3604). Patients were followed up for a mean of 11 months because of early trial termination. PFO was reported as present in 534 (7·4%) patients on the basis of either TTE or TOE. Patients with PFO assigned to receive aspirin had a recurrent ischaemic stroke rate of 4·8 events per 100 person-years compared with 2·6 events per 100 person-years in those treated with rivaroxaban. Among patients with known PFO, there was insufficient evidence to support a difference in risk of recurrent ischaemic stroke between rivaroxaban and aspirin (hazard ratio [HR] 0·54; 95% CI 0·22–1·36), and the risk was similar for those without known PFO (1·06; 0·84–1·33; pinteraction=0·18). The risks of major bleeding with rivaroxaban versus aspirin were similar in patients with PFO detected (HR 2·05; 95% CI 0·51–8·18) and in those without PFO detected (HR 2·82; 95% CI 1·69–4·70; pinteraction=0·68). The random-effects meta-analysis combined data from NAVIGATE ESUS with data from two previous trials (PICSS and CLOSE) and yielded a summary odds ratio of 0·48 (95% CI 0·24–0·96; p=0·04) for ischaemic stroke in favour of anticoagulation, without evidence of heterogeneity. Interpretation: Among patients with ESUS who have PFO, anticoagulation might reduce the risk of recurrent stroke by about half, although substantial imprecision remains. Dedicated trials of anticoagulation versus antiplatelet therapy or PFO closure, or both, are warranted. Funding: Bayer and Janssen

    Population structures of Brazilian tall coconut (Cocos nucifera L.) by microsatellite markers

    Get PDF
    Coconut palms of the Tall group were introduced to Brazil from the Cape Verde Islands in 1553. The present study sought to evaluate the genetic diversity among and within Brazilian Tall coconut populations. Samples were collected of 195 trees from 10 populations. Genetic diversity was accessed by investigating 13 simple sequence repeats (SSR) loci. This provided a total of 68 alleles, ranging from 2 to 13 alleles per locus, with an average of 5.23. The mean values of gene diversity (He ) and observed heterozygosity (Ho ) were 0.459 and 0.443, respectively. The genetic differentiation among populations was estimated at θ^P=0.1600and the estimated apparent outcrossing rate was ta = 0.92. Estimates of genetic distances between the populations varied from 0.034 to 0.390. Genetic distance and the corresponding clustering analysis indicate the formation of two groups. The first consists of the Baía Formosa, Georgino Avelino, and São José do Mipibu populations and the second consists of the Japoatã, Pacatuba, and Praia do Forte populations. The correlation matrix between genetic and geographic distances was positive and significant at a 1% probability. Taken together, our results suggest a spatial structuring of the genetic variability among the populations. Geographically closer populations exhibited greater similarities

    Rivaroxaban or aspirin for patent foramen ovale and embolic stroke of undetermined source: a prespecified subgroup analysis from the NAVIGATE ESUS trial

    Get PDF
    Background: Patent foramen ovale (PFO) is a contributor to embolic stroke of undetermined source (ESUS). Subgroup analyses from previous studies suggest that anticoagulation could reduce recurrent stroke compared with antiplatelet therapy. We hypothesised that anticoagulant treatment with rivaroxaban, an oral factor Xa inhibitor, would reduce the risk of recurrent ischaemic stroke compared with aspirin among patients with PFO enrolled in the NAVIGATE ESUS trial. Methods: NAVIGATE ESUS was a double-blinded, randomised, phase 3 trial done at 459 centres in 31 countries that assessed the efficacy and safety of rivaroxaban versus aspirin for secondary stroke prevention in patients with ESUS. For this prespecified subgroup analysis, cohorts with and without PFO were defined on the basis of transthoracic echocardiography (TTE) and transoesophageal echocardiography (TOE). The primary efficacy outcome was time to recurrent ischaemic stroke between treatment groups. The primary safety outcome was major bleeding, according to the criteria of the International Society of Thrombosis and Haemostasis. The primary analyses were based on the intention-to-treat population. Additionally, we did a systematic review and random-effects meta-analysis of studies in which patients with cryptogenic stroke and PFO were randomly assigned to receive anticoagulant or antiplatelet therapy. Findings: Between Dec 23, 2014, and Sept 20, 2017, 7213 participants were enrolled and assigned to receive rivaroxaban (n=3609) or aspirin (n=3604). Patients were followed up for a mean of 11 months because of early trial termination. PFO was reported as present in 534 (7·4%) patients on the basis of either TTE or TOE. Patients with PFO assigned to receive aspirin had a recurrent ischaemic stroke rate of 4·8 events per 100 person-years compared with 2·6 events per 100 person-years in those treated with rivaroxaban. Among patients with known PFO, there was insufficient evidence to support a difference in risk of recurrent ischaemic stroke between rivaroxaban and aspirin (hazard ratio [HR] 0·54; 95% CI 0·22–1·36), and the risk was similar for those without known PFO (1·06; 0·84–1·33; pinteraction=0·18). The risks of major bleeding with rivaroxaban versus aspirin were similar in patients with PFO detected (HR 2·05; 95% CI 0·51–8·18) and in those without PFO detected (HR 2·82; 95% CI 1·69–4·70; pinteraction=0·68). The random-effects meta-analysis combined data from NAVIGATE ESUS with data from two previous trials (PICSS and CLOSE) and yielded a summary odds ratio of 0·48 (95% CI 0·24–0·96; p=0·04) for ischaemic stroke in favour of anticoagulation, without evidence of heterogeneity. Interpretation: Among patients with ESUS who have PFO, anticoagulation might reduce the risk of recurrent stroke by about half, although substantial imprecision remains. Dedicated trials of anticoagulation versus antiplatelet therapy or PFO closure, or both, are warranted. Funding: Bayer and Janssen

    Should all acutely ill children in primary care be tested with point-of-care CRP: A cluster randomised trial

    Get PDF
    Background: Point-of-care blood C-reactive protein (CRP) testing has diagnostic value in helping clinicians rule out the possibility of serious infection. We investigated whether it should be offered to all acutely ill children in primary care or restricted to those identified as at risk on clinical assessment. Methods: Cluster randomised controlled trial involving acutely ill children presenting to 133 general practitioners (GPs) at 78 GP practices in Belgium. Practices were randomised to undertake point-of-care CRP testing in all children (1730 episodes) or restricted to children identified as at clinical risk (1417 episodes). Clinical risk was assessed by a validated clinical decision rule (presence of one of breathlessness, temperature ≥ 40 °C, diarrhoea and age 12-30 months, or clinician concern). The main trial outcome was hospital admission with serious infection within 5 days. No specific guidance was given to GPs on interpreting CRP levels but diagnostic performance is reported at 5, 20, 80 and 200 mg/L. Results: Restricting CRP testing to those identified as at clinical risk substantially reduced the number of children tested by 79.9 % (95 % CI, 77.8-82.0 %). There was no significant difference between arms in the number of children with serious infection who were referred to hospital immediately (0.16 % vs. 0.14 %, P = 0.88). Only one child with a CRP < 5 mg/L had an illness requiring admission (a child with viral gastroenteritis admitted for rehydration). However, of the 80 children referred to hospital to rule out serious infection, 24 (30.7 %, 95 % CI, 19.6-45.6 %) had a CRP < 5 mg/L. Conclusions: CRP testing should be restricted to children at higher risk after clinical assessment. A CRP < 5 mg/L rules out serious infection and could be used by GPs to avoid unnecessary hospital referrals

    Measurement of the Forward-Backward Asymmetry in the B -> K(*) mu+ mu- Decay and First Observation of the Bs -> phi mu+ mu- Decay

    Get PDF
    We reconstruct the rare decays B+K+μ+μB^+ \to K^+\mu^+\mu^-, B0K(892)0μ+μB^0 \to K^{*}(892)^0\mu^+\mu^-, and Bs0ϕ(1020)μ+μB^0_s \to \phi(1020)\mu^+\mu^- in a data sample corresponding to 4.4fb14.4 {\rm fb^{-1}} collected in ppˉp\bar{p} collisions at s=1.96TeV\sqrt{s}=1.96 {\rm TeV} by the CDF II detector at the Fermilab Tevatron Collider. Using 121±16121 \pm 16 B+K+μ+μB^+ \to K^+\mu^+\mu^- and 101±12101 \pm 12 B0K0μ+μB^0 \to K^{*0}\mu^+\mu^- decays we report the branching ratios. In addition, we report the measurement of the differential branching ratio and the muon forward-backward asymmetry in the B+B^+ and B0B^0 decay modes, and the K0K^{*0} longitudinal polarization in the B0B^0 decay mode with respect to the squared dimuon mass. These are consistent with the theoretical prediction from the standard model, and most recent determinations from other experiments and of comparable accuracy. We also report the first observation of the Bs0ϕμ+μdecayandmeasureitsbranchingratioB^0_s \to \phi\mu^+\mu^- decay and measure its branching ratio {\mathcal{B}}(B^0_s \to \phi\mu^+\mu^-) = [1.44 \pm 0.33 \pm 0.46] \times 10^{-6}using using 27 \pm 6signalevents.Thisiscurrentlythemostrare signal events. This is currently the most rare B^0_s$ decay observed.Comment: 7 pages, 2 figures, 3 tables. Submitted to Phys. Rev. Let
    corecore