10,322 research outputs found

    Effective Analysis of C Programs by Rewriting Variability

    Get PDF
    Context. Variability-intensive programs (program families) appear in many application areas and for many reasons today. Different family members, called variants, are derived by switching statically configurable options (features) on and off, while reuse of the common code is maximized. Inquiry. Verification of program families is challenging since the number of variants is exponential in the number of features. Existing single-program analysis and verification tools cannot be applied directly to program families, and designing and implementing the corresponding variability-aware versions is tedious and laborious. Approach. In this work, we propose a range of variability-related transformations for translating program families into single programs by replacing compile-time variability with run-time variability (non-determinism). The obtained transformed programs can be subsequently analyzed using the conventional off- the-shelf single-program analysis tools such as type checkers, symbolic executors, model checkers, and static analyzers. Knowledge. Our variability-related transformations are outcome-preserving, which means that the relation between the outcomes in the transformed single program and the union of outcomes of all variants derived from the original program family is equality. Grounding. We show our transformation rules and their correctness with respect to a minimal core imperative language IMP. Then, we discuss our experience of implementing and using the transformations for efficient and effective analysis and verification of real-world C program families. Importance. We report some interesting variability-related bugs that we discovered using various state-of-the-art single-program C verification tools, such as Frama-C, Clang, LLBMC.Comment: The Art, Science, and Engineering of Programming, Vol. 1, Issue 1, Article

    Farm household risk balancing : implications for policy from an EU perspective

    Get PDF
    Purpose - Building on the risk balancing theory and on recent discussions the appropriateness of using farm income maximization as behavioural assumption, this paper extends the risk balancing framework by accounting for business-household interactions. The purpose of this paper is to theoretically introduce the concept of farm household risk balancing, a theoretical framework in which the farm household sets a constraint on the total household-level risk and balances farm-level and off-farm-level risk. Design/methodology/approach - The paper argues that the risk behaviour of farmers is better understood by considering risk at the household level. Using an analytical framework, equations are derived linking the farm activities, off-farm activities, consumption and business and private liquidity. Findings - The framework shows that a farm household that wants to minimize the risk that total household cash flow falls below consumption needs, may exhibit a wide variety of behavioural responses to changes in the policy and economic environment. Social implications - The framework suggests multiple ways for policy makers and individual farmers to support risk management. Originality/value - Risk management is at the core of the agricultural policy and it is of paramount importance to be able to understand behavioural responses to market and policy instruments. This paper contributes to that by suggesting that the focus of current risk analysis and management studies may be too narrowly focused at the farm level

    A model and framework for reliable build systems

    Full text link
    Reliable and fast builds are essential for rapid turnaround during development and testing. Popular existing build systems rely on correct manual specification of build dependencies, which can lead to invalid build outputs and nondeterminism. We outline the challenges of developing reliable build systems and explore the design space for their implementation, with a focus on non-distributed, incremental, parallel build systems. We define a general model for resources accessed by build tasks and show its correspondence to the implementation technique of minimum information libraries, APIs that return no information that the application doesn't plan to use. We also summarize preliminary experimental results from several prototype build managers

    Calibrating Generative Models: The Probabilistic Chomsky-SchĂĽtzenberger Hierarchy

    Get PDF
    A probabilistic Chomsky–Schützenberger hierarchy of grammars is introduced and studied, with the aim of understanding the expressive power of generative models. We offer characterizations of the distributions definable at each level of the hierarchy, including probabilistic regular, context-free, (linear) indexed, context-sensitive, and unrestricted grammars, each corresponding to familiar probabilistic machine classes. Special attention is given to distributions on (unary notations for) positive integers. Unlike in the classical case where the "semi-linear" languages all collapse into the regular languages, using analytic tools adapted from the classical setting we show there is no collapse in the probabilistic hierarchy: more distributions become definable at each level. We also address related issues such as closure under probabilistic conditioning

    Positive tension 3-branes in an AdS5AdS_{5} bulk

    Full text link
    In this work, we review and extend the so-called consistency conditions for the existence of a braneworld scenario in arbitrary dimensions in the Brans-Dicke (BD) gravitational theory. After that, we consider the particular case of a five-dimensional scenario which seems to have phenomenological interesting implications. We show that, in the BD framework, it is possible to achieve necessary conditions pointing to the possibility of accommodating branes with positive tensions in an AdS bulk by the presence of the additional BD scalar field, avoiding in this way the necessity of including unstable objects in the compactification scheme. Furthermore, in the context of time variable brane tension, it is shown that the brane tension may change its sign, following the bulk cosmological constant sign.Comment: 15 pages, new version to appear in JHE
    • …
    corecore