Method and system for modifying the operation of a target computer system by using time requirements
The method iteratively modifies time requirements using evidence traces and SMT solvers to ensure consistent operation of computer systems, addressing the challenge of correcting inconsistencies in real-time systems.
Patent Information
- Application Number
- JP2023557610
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-03-24
- Filing Date
- 2021-11-30
- Publication Date
- 2024-08-19
- Estimated Expiration
- 2041-11-30
AI Technical Summary
Existing methods struggle to efficiently and automatically correct inconsistencies in time requirements for computer systems, particularly in real-time systems, making it difficult to ensure compliance and design consistency.
A method and system that utilize a modification computer system to iteratively modify a subset of time requirements by initializing constraints based on evidence traces, expanding constraints when inconsistencies are found, and verifying the updated set to ensure consistency, using tools like SMT solvers for efficient constraint satisfaction.
The method effectively corrects inconsistencies in time requirements, ensuring the computer system operates within specified constraints, preventing violations and maintaining system consistency.
Smart Images

Figure 0007536199000273 
Figure 0007536199000274 
Figure 0007536199000271
Abstract
Description
[Technical field]
[0001] The present disclosure relates to requirements engineering for computer systems, and more particularly to a method and system for modifying the operation of a target computer system by using time requirements. [Background technology]
[0002] In the process of developing a computer system, requirements engineering consists in defining, documenting, and maintaining the requirements that the computer system must comply with. Requirements can have various characteristics, but in computer systems, time requirements are important. Basically, time requirements correspond to constraints that include timing constraints between the output of a computer system and the input to this computer system. In fact, time requirements are the basis for the design and development of a computer system. After development, the time requirements may also be partially verified to check whether the actual computer system is indeed compliant with them.
[0003] Of course, designing consistent, i.e. non-conflicting, time requirements is of utmost importance to ensure that implementations that meet the time requirements are possible and can be designed and developed.
[0004] In the scientific literature, there are various concepts of consistency defined for the timing requirements of real-time systems. For example, real-time consistency (also known as RT consistency) [PHP11] requires that every finite execution sequence that does not already violate some timing requirements has an extension that satisfies all of them. In other words, this means that if an implementation produces a finite execution sequence in which every continuation necessarily leads to the violation of some timing requirement, there must be some timing requirement that is already violated by the finite execution sequence.
[0005] However, if an inconsistency or other problem in the set of time requirements is detected, the set of time requirements needs to be modified, which is very difficult even for an experienced requirements engineer. Summary of the Invention
[0006] The present disclosure aims to propose a solution for automatically correcting inconsistencies in the set of time requirements describing the behavior of a target computer system by a corrective computer system.
[0007] According to a first aspect, the present disclosure relates to a computer-implemented method of modifying the behavior of a target computer system, the behavior of which is constrained by a set of time requirements, and an execution sequence of the target computer system, called an evidence trace, satisfies a criterion for detecting conflicts between the time requirements of the set of time requirements, called an inconsistency. The set of time requirements includes a first subset and a second subset of the time requirements. The method includes initializing a set of constraints based on the evidence trace; modifying the second subset of time requirements to obtain an updated set of time requirements in which each constraint in the set of constraints is satisfied; searching traces for further evidence of inconsistency in the updated set of time requirements; when further evidence traces are found, expanding the set of constraints based on the further evidence traces; Repeating the above steps, Including, When no further evidential traces are found for the updated set of time requests, the behavior of the target computer system is deemed to have been modified.
[0008] The target computer system may be any computer system for which time requirements can be defined, such as, for example, an embedded electronic system and / or a mechatronic system and / or a machine control system.
[0009] The behavior of a target computer system is constrained by a set of time requirements. Modifying the behavior of a target computer system relies on evaluating the behavior by simulating the behavior of the target computer system at the time requirements level, for example to detect inconsistencies in the time requirements and / or gaps between the time requirements. Modifying the behavior of a target computer system therefore corresponds to modifying the set of time requirements that constrain the behavior of this target computer system. It is therefore emphasized that the modification method does not interact with a real target computer system that may not yet be designed or developed, but evaluates the behavior of the target computer system by simulating its behavior at the time requirements level. The modification method is therefore executed by a modified computer system that is different from the target computer system.
[0010] As discussed above, a timing requirement can be viewed as a constraint that includes timing constraints between outputs of a target computer system and inputs to the target computer system.
[0011] The modification method uses execution sequences of the target computer system, called "evidence traces", that lead to a conflict between time requirements, i.e., to the violation of at least one time requirement. An execution sequence essentially corresponds to a sequence of inputs to the target computer system and resulting outputs from this target computer system at successive time steps. A time requirement is violated when, at a certain point in time, the defining constraint cannot be satisfied. The evidence trace itself does not yet violate any time requirement. However, the evidence trace leads to a configuration of the target computer system that is not prevented from occurring by the considered time requirements, but which at a certain point in time necessarily violates at least one time requirement.
[0012] When such an evidence trace is found that demonstrates an inconsistency in the set of time requirements (eg, RT inconsistency), it is used to define a (trace-based) constraint that is included in the set of constraints.
[0013] The modification method then iteratively modifies a second subset of the time requirements while leaving the first subset of the time requirements unchanged to obtain a modified second subset such that each constraint in the set of constraints is satisfied. For example, for an evidence trace σ, a constraint in the set of constraints may require that this evidence trace σ be prevented from occurring when considering the updated set (combining the first subset and the modified second subset), or that it not be an inconsistent evidence trace when considering the updated set.
[0014] If such a modified subset (that satisfies all constraints of the set of constraints) is found, it is further verified whether further issues are detected for the updated set, e.g., whether further evidence traces of inconsistencies in the updated set can be found. If such further evidence traces can be found, the set of constraints is incremented with a further constraint based on this further evidence trace (i.e., this constraint is added to other previous constraints present in the set of constraints).
[0015] Thus, the set of constraints is iteratively incremented with constraints defined by the evidence traces. When modifying the second subset of time requirements, such trace-based constraints can be easily verified, thereby searching for a modified second subset that satisfies all constraints with reasonable computational complexity. When no further evidence traces are found for the updated set, the updated set replaces the original set, thereby modifying the operation of the target computer system.
[0016] In particular embodiments, the correction method may further comprise one or more of the following features, considered alone or in any technically possible combination:
[0017] In a particular embodiment, the correction method includes the steps of searching for time requests in the first subset that cannot be triggered when considering the updated set of time requests, called blank time requests; when an empty time requirement is found, determining an execution sequence that triggers the empty time requirement when considering a first subset of the time requirements, called a trigger trace, and expanding the set of constraints based on the trigger trace; Repeating When no further evidential traces and no blank time calls are found for the updated set of time calls, the behavior of the target computer system is deemed to be modified.
[0018] Thus, it is possible to fix not only the consistency of the updated set, but also the nonemptiness of the set. If a modified second subset is found (such that the updated set satisfies all constraints of the set of constraints), it is further verified whether one or more time requirements of the first subset have become empty due to the modification made to the second subset. If such an empty time requirement is found, the execution sequence that triggered the time requirement before modifying the second subset, called the "trigger trace", is identified and used to add a further constraint to the set of constraints. For example, the added constraint may require that the modified second subset of a subsequent iteration does not prevent the occurrence of the trigger trace, thereby removing the emptyness. Again, such (trigger) trace-based constraints can be easily verified.
[0019] In a particular embodiment, the step of expanding the set of constraints based on further evidence traces of inconsistency of the first subset of time demands includes adding constraints requiring that a modified second subset of time demands in a subsequent iteration prevent the generation of further evidence traces.
[0020] In particular embodiments, the step of expanding the set of constraints based on further evidence traces of inconsistency of the updated set of time requirements that are not evidence traces of inconsistency of the first subset of time requirements comprises: a second subset of the time requirements of a subsequent iteration prevents further evidence traces from being generated; or the further evidence trace is not an evidence trace of an inconsistency in the updated set of time requirements of the subsequent iteration; This includes adding a constraint requiring
[0021] In particular embodiments, operation of the target computer system is initially constrained by a first subset of time requirements, and modifying the operation of the target computer system includes adding a second subset of time requirements to the first subset of time requirements.
[0022] In a particular embodiment, the modification method includes determining a subset of parameters of the set of time requirements based on the evidence trace, and determining a first subset and a second subset based on the subset of parameters, where the second subset is modified by modifying only parameters within the subset of parameters.
[0023] In certain embodiments, the second subsets are modified such that the distance between any modified second subset and the initial second subset does not exceed a predetermined maximum distance.
[0024] In certain embodiments, the criterion for detecting a conflict is met when an RT mismatch is detected.
[0025] In certain embodiments, the second subset of time requirements is modified to obtain an updated set of time requirements where each constraint in the set of constraints is satisfied and all time requirements in the modified second subset can be triggered when considering the updated set of time requirements.
[0026] In a particular embodiment, the modification method includes expanding the set of constraints based on desired traces that can occur when considering the original set of time requirements, but that are prevented from occurring by the updated set of time requirements. This is advantageous because it prevents a dramatic reduction in the set of possible execution sequences (traces) when modifying the set of time requirements. Indeed, defining constraints based on the desired traces ensures that this desired trace remains within the set of possible execution sequences (i.e., modifying the set of time requirements does not prevent the desired trace from occurring). Constraints added to the set of constraints typically require that the updated set of subsequent iterations does not prevent the desired trace from occurring.
[0027] In particular embodiments, searching the evidence traces or trigger traces uses a Satisfiability Modulo Theory (SMT) solver.
[0028] In a specific embodiment, each time requirement is modeled as a Simplified Universal Pattern (SUP), a class of time requirements for which specific computationally efficient consistency checking tools exist.
[0029] According to a second aspect, the present disclosure relates to a computer program product comprising instructions that, when executed by at least one processor, configure the at least one processor to perform the modification method according to any one of the embodiments of the present disclosure.
[0030] According to a third aspect, the present disclosure relates to a computer-readable storage medium comprising instructions that, when executed by at least one processor, configure the at least one processor to perform a modification method according to any one of the embodiments of the present disclosure.
[0031] According to a fourth aspect, the present disclosure relates to a modified computer system for modifying operation of a target computer system, the modified computer system comprising at least one processor configured to execute the modification method according to any one of the embodiments of the present disclosure.
[0032] It should be noted that the present disclosure may also be applied when the original set is simply blank, i.e., no conflicts between time requests are detected, but one or more time requests in the original set of time requests cannot be triggered.
[0033] Thus, according to a fifth aspect, the present disclosure relates to a computer-implemented method of modifying an operation of a target computer system, the operation of the target computer system being constrained by a set of time requirements including a first subset and a second subset of the time requirements, the time requirements of the first subset, referred to as blank time requirements, cannot be triggered when considering the set of time requirements, and an execution sequence, referred to as a trigger trace, triggers the blank time requirements when considering the first subset, the method comprising: initializing a set of constraints based on the trigger trace; - modifying a second subset of the time requirements to obtain an updated set of time requirements in which each constraint in the set of constraints is satisfied; - searching for further blank time requests in the first subset that cannot be triggered when considering the updated set of time requests; - when a further empty time request is found, determining a further trigger trace which triggers the further empty time request when considering the first subset of time requests and extending the set of constraints based on this trigger trace; and considering the operation of the target computer system to be modified when no further empty time requests are found for the updated set of time requests.
[0034] The invention will be better understood on reading the following description, which is given by way of example and in no way limiting, and is made with reference to the figures. [Brief description of the drawings]
[0035] [Figure 1] FIG. 1 is a schematic diagram of time requirements modeled as a simplified universal pattern (SUP). [Diagram 2] FIG. 2 is a schematic diagram of an exemplary time requirement modeled as a timed automaton. [Diagram 3] FIG. 2 represents the main steps of an exemplary embodiment of a correction method. [Figure 4] FIG. 2 represents the main steps of a preferred embodiment of the correction method. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0036] In these figures, the same reference numbers indicate the same or similar elements throughout the figures. For clarity, elements illustrated are not to scale unless expressly specified otherwise.
[0037] The present disclosure relates to a method 30 and system for modifying the operation of a target computer system, the operation of which is constrained by a set of time requirements.
[0038] First, some definitions and conventions that will be used in the following non-limiting description are introduced, and then various embodiments of the modification method 30 are presented.
[0039] (A.Definition) We consider a target computing system (such as a programmable logic controller, or PLC) whose operation is driven by the observation of Boolean variables and is subject to discrete timing constraints. Intuitively, the execution of the target computing system can be understood as a sequence of time steps where the values of Boolean variables are observed, and the evolution of the target computing system is governed by both the timing constraints and the Boolean values of these Boolean variables.
[0040] For a target computer system of this kind, the time requirements can be represented, for example, by a timed automaton as described in [AD90], with certain restrictions but extended with Boolean variables.
[0041] (A.1. Timed Automata) Timed automata (TA) [AD90] extend finite-state automata with variables called clocks that can be used to measure (and constrain) the delays between various events along the execution. More precisely, a set of clocks X = {c i Given |1≦i≦k}, the set of permitted constraints for the timed automaton is defined using the following grammar:
number
number
number
[0042] Bid
number
number
number
[0043] In the timed automaton of the present invention, we also consider the observation of the evolution of the target computer system through the values of the Boolean variables. For this purpose, we define a set of atomic propositions AP={b i Consider |1≦i≦n} and define the set of Boolean constraints B(AP) as the set of all propositional formulas constructed for AP. These Boolean variables cannot be changed, only observed, since they belong to the target computer system itself. Note that this is in contrast to a clock, which can be reset, since it is owned only by the time requirements and is used by the time requirements to check timing constraints.
[0044] Alphabet 2 AP We consider timed automata over . For simplicity, transitions are labeled with Boolean constraints on AP rather than with a list of sets of atomic propositions.
[0045] A timed automaton is a tuple
number
number
number
[0046] A construction of a timed automaton is a pair (s,v), where s∈S and
number
number
number
number
number
number
number
[0047] A transition system that does not impose any bounds on the value of the clock during execution.
number
number
[0048]
number
number
number
[0049] The execution sequence (or trace) of this sequence is its projection onto a set of actions. In other words, this is a finite or infinite sequence of actions σ = {σ i} 0≦i≦l where:
number
number
number
[0050] Subsequently, we need to consider several time requirements, each of which is specified by a timed automaton. To this end, we define a product of timed automata. Formally, we have a discrete clock set (i.e.,
number
number
number
number
number
[0051] This product of timed automata can be easily generalized to any number of timed automata and the time requirements they specify.
number
number
number
number
[0052] (A.2. Execution Sequence) We next consider a non-restrictive way in which a timed automaton can be completed, which is to say that it can be completed for any (achievable) configuration (s ,v), and for any subset σ of AP, there exists a transition t=(s,c,g,r,s') in T such that σ|=c and v|=g. Also, in a non-restrictive manner, timed automata are considered to be deterministic: for any two configurations (a,c,g,r,s) and (a,c',g',r',s') (thus starting from the same state a), such that both c∧c' and g∧g' can be satisfied, s=s' and r=r'.
[0053] We also consider, in a non-restrictive manner, that timed automata are safe.
number
number
[0054] Note that these properties hold when constructing several timed automata. We use timed automata to encode temporal requirements. Intuitively, entering an error state of a timed automaton (i.e., leaving a subset F of the accepting states) corresponds to violating the corresponding temporal requirement. Then, for any timed automaton,
number
number
number
number
number
[0055] As discussed above, the set of atomic propositions AP = {b i Consider |1≦i≦n}. The assignment is of type
number
number
number
number
number
number
number
[0056] Thus, a trace σ is a sequence of quotations of length |σ|, and a generalized trace is a sequence of generalized quotations. A realization of a generalized trace σ is σ' for all 1≦i≦|σ|. i ≦σ i Then, the generalized trace represents a set of traces, i.e., a set of instantiations of the generalized trace.
[0057] Let AP be the set of i-th copies of atomic propositions. i ={x i |x∈AP}. A (generalized) trace of length k is AP1,...,AP k For a generalized trace σ, let DontCare(σ) be the AP1 ∪ … ∪ AP k Let us assume that the set is a subset of .
[0058] (A.3. Simplified Universal Pattern (SUP)) This subsection describes a pattern language called Simplified Universal Patterns (SUP) [Bec19] that can be used to define temporal requirements. Compared to timed automata, SUPs provide a more intuitive but less expressive way of describing temporal requirements. All SUPs can be described as timed automata, but not all timed automata can be described using SUPs.
[0059] An example of a SUP can be shown by the following:
number
[0060] Thus, an instance of a SUP is defined by a selection of Boolean expressions TSE, TC, TEE, ASE, AC, AEE and durations Tmin, Tmax, Lmin, Lmax, Amin, Amax. The Boolean expressions are propositional expressions constructed from the system Boolean variables in the set AP of atomic propositions. For simplicity, when we are discussing an individual SUP, we collect the values of these parameters in a vector P and refer to its elements by parameter name (e.g., P TSE is the value of the first parameter TSE). However, these are assignments of expressions, which may refer to some common Boolean variables when several SUPs are considered, and so their assignments may interfere with these variables.
[0061] Figure 1 shows the intuitive semantics of SUP. Intuitively, the left part of SUP defines the trigger phase, whereas the right part is the action phase. For the trigger phase to be realized, TSE (Trigger Start Event) must be true and then be determined within a duration in [Tmin, Tmax]. Deterministic means that TC (Trigger Condition) holds true until TEE (Trigger End Event) occurs. Otherwise, the trigger is aborted.
[0062] If a trigger phase is realized to satisfy the SUP, its action phase is initiated by an ASE (action initiation event) within [Lmin, Lmax] time units and then determined. Similar to the trigger case, an action phase is realized by defining both ACs (action conditions) with a determined duration within [Amin, Amax] that are true until an AEE (action end event) occurs. Otherwise, the SUP is violated.
[0063] FIG. 2 illustrates diagrammatically an example of a deterministic timed automaton that can be used to encode a SUP time request, since the SUP time request is a special case of a timed automaton as defined above.
[0064] As can be seen in Fig. 2, the timed automaton encoding the SUP time request has five states: idle, trig, delay, act, and err (err is the only error state) and an associated clock c. Also in Fig. 2, the operator ∨ corresponds to the logical "OR" and the operator ¬ corresponds to the logical operator "NOT".
[0065] This timed automaton explicitly shows the successive phases of the SUP. However, the actual timed automaton used to encode the SUP is the transitive closure of the timed automaton shown in Figure 2. For example, if TSE and TEE are simultaneously true and Tmin=0, then the transitions from idle to trig and from trig to delay must occur simultaneously. All maximally simple (i.e., no transition can appear twice) sequences of transitions must be merged in this way, provided that the conjunction of their Boolean constraints and clock guards (which take into account intermediate clock resets) can be satisfied.
[0066] For such a SUP, the set of Boolean parameters is
number
number
number
number
[0067] In the remainder, we consider in a non-restrictive manner SUPs whose Boolean parameters are defined as conjunctive expressions, and define the distance between two conjunctive expressions as follows:
number
number
number
number
number
number
[0068] (A.4.RT Consistency and Non-Spacing) As discussed above, there are various consistency concepts defined for the time requirements of real-time systems, such as RT consistency [PHP11], partial consistency [Bec19], etc. We then consider in a non-restrictive manner the case of the RT consistency concept introduced in [PHP11].
[0069] Completely deterministic timed automata
number
[0070] Therefore, the set of SUP requirements
number
number
number
number
number
[0071] We then use the notion of nonemptiness, which is essentially an existential consistency with the nonemptiness condition.
number
number
number
[0072] (B. Correction method) FIG. 3 illustrates the main steps of a method 30 for modifying the operation of a target computer system (not shown in the drawings).
[0073] The modified method 30 is executed by a modified computer system (not represented in the figure). In a preferred embodiment, the modified computer system comprises one or more processors (which may belong to the same computer or to different computers) and storage means (magnetic hard disk, optical disk, electronic memory or any computer readable storage medium) on which a computer program product is stored in the form of a set of program code instructions executed to perform all or part of the steps of the modified method 30. Alternatively, or in combination, the modified computer system may comprise one or more programmable logic circuits (FPGA, PLD, etc.) and / or one or more dedicated integrated circuits (ASICs, etc.) adapted to perform all or part of the above steps of the modified method 30. In other words, the modified computer system comprises a set of means configured by software (dedicated computer program products) and / or hardware (processors, FPGAs, PLDs, ASICs, etc.) to perform the steps of the modified method 30.
[0074] The operation of a target computer system is a set of time requirements.
number
[0075] As shown in FIG. 3, the modification method 30 is a set of time requirements.
number
[0076] set
number
number
number
number
number
[0077] A collection of time requests
number
number
number
number
number
number
[0078] In some embodiments, the first subset
number
number
number
number
number
number
number
[0079] In another embodiment, the collection
number
number
number
number
number
number
number
number
[0080] It should also be noted that it is possible to combine both approaches, i.e. by modifying some of the original time requirements that constrain the operation of the target computer system and adding new time requirements. In such a case, the second subset that is modified
number
[0081] Next, we assume the case of SUP time requirements in a non-restrictive manner.
number
number
number
number
number
number
number
[0082] As discussed above, the original set may be, for example, a first subset
number
number
number
[0083] The original set is the first subset
number
number
[0084] The original set is the set
number
number
number
number
[0085] As shown in FIG. 3, the correction method 30 then includes the following steps which are repeated: -Second subset of time requirements
number
number
number
[0086] Therefore, the second subset
number
number
number
number
number
number
number
number
number
[0087] As discussed above, a set of constraints
number
number
number
number
number
number
number
number
number
number
number
number
number
number
[0088] set
number
number
number
[0089] Figure 4 shows the updated set
number
[0090] As shown in FIG. 4, the modified method 30 includes the steps discussed with reference to FIG. 3, plus the following steps which are similarly iterated: -An updated set of requests, called blank time requests
number
number
number
number
[0091] Therefore, the second subset
number
number
number
number
number
number
number
[0092] First subset
number
number
number
number
number
number
[0093] set
number
number
number
number
number
[0094] A set of constraints
number
number
number
number
number
[0095] In a preferred embodiment, a second subset of the time requirements
number
number
number
number
number
number
[0096] Also in a preferred embodiment, evidence traces and / or trigger traces are searched and / or updated.
number
number
number
[0097] C. Detailed embodiment of the modification method Subsequently, a specific preferred embodiment of the correction method 30 is described. It is emphasized that the invention is not limited to the following exemplary embodiments, variations of these embodiments are also within the scope of the invention.
[0098] In this embodiment, in a non-limiting manner, the set
number
number
number
number
number
[0099] set
number
number
number
number
[0100] By replacing each parameter in M with a conjunction
number
number
number
number
[0101] If a given set of requirements is RT-inconsistent, the SMT solver can return a generalized evidence trace. This means that all instantiations of the returned generalized evidence trace are evidence traces for RT-inconsistency. Thus, when modifying time requirements to, for example, prevent the occurrence of generalized evidence, this implies that all instantiations of such generalized evidence traces are eliminated. Working with generalized traces is advantageous in that the modification method 30 learns new constraints using fewer iterations.
[0102] At each step i, σ i Observe that if defines a concrete assignment, then there exists a unique execution in any complete deterministic timed automaton (CDTA). However, for non-concrete executions there generally exist several corresponding executions. For example, by using universal quantification, it is possible to write an equation that constrains all concrete executions of σ to enter a given set of states in a given timed automaton.
[0103] Based on the above, a set of time requirements
number
number
number
number
number
number
number
number
number
[0104] time request
number
number
[0105] According to the first example, the non-blankness check is
number
number
number
number
[0106] Thus, the non-empty expression above:
number
number
number
[0107] According to a second example, the non-emptyness check can check whether a time request R can be triggered with infinite frequency.
number
number
number
number
number
[0108] For this reason, the non-empty expression
number
number
[0109] Depending on the situation, both non-vacuity expressions can be used. Along the way, it may happen that some time requests are intended to be triggered only a finite number of times (e.g., for the initialization phase of the target computer system), while some other time requests necessarily need to be triggered infinitely frequently. ∞ Checking ,is generally more computationally expensive for a large set of time requirements because,in the joint state space (i.e.
number
[0110] In this embodiment, we will consider finite traces that trigger a given time requirement R. Such traces, called "trigger traces", demonstrate the nonvacancy of a set of time requirements. Such trigger traces are easy to compute because the satisfiability of nonvac is proven by such trigger traces. When using an SMT solver for nonvacancy checking, such trigger traces can be obtained directly.
[0111] Based on the above, the first subset
number
number
number
number
number
number
number
number
[0112] set
number
number
number
number
number
number
number
number
[0113] For any propositional formula Φ, we denote by SAT(Φ) a satisfiability test that returns true or false.
[0114] An exemplary pseudocode implementation for an exemplary embodiment is provided below. [Table 1]
[0115] At each iteration, the resulting new set of time requirements
number
number
number
number
[0116] In the above pseudocode, we compute a minimal model M0 for the subset M, i.e., the model that minimizes the distance between the updated time requirement and the original time requirement. All parameters in M are in the set
number
number
number
number
number
[0117] To calculate the minimal model M0 of M, we use the bound d m Using an incremental solver, successive calls can be made more efficient, since only the constraints on the upper bound change between two calls.
[0118] If the updated set is null, the null time requirement R is determined.
number
number
number
number
number
number
number
[0119] If the updated set is non-empty,
number
number
number
number
number
number
number
number
[0120] In some cases, new time requirements to correct RT mismatches are added to the updated set
number
number
number
number
number
number
number
number
number
number
[0121] The above pseudocode defines one instantiation σ' of a generalized evidence trace σ,
number
[0122] Another approach is to use universal quantification to define a formula that rejects all instantiations of a generalized evidence trace σ. For a partial valuation v, let σ[v] denote the trace obtained by replacing each x with v(x) when v(x) is defined. Then the formula
number
[0123] [References] [AD90] Rajeev Alur and David L. Dill. “Automata for modeling real-time systems”. In Mike Paterson, editor, Proceedings of the 17th International Colloquium on Automata, Languages and Programming (ICALP'90), volume 443 of LNCS, pages 322-335. Springer, 1990. [Bec19] Jan Steffen Becker. “Analyzing consistency of formal requirements”. In Proceedings of the 18th International Workshop on Automated Verification of Critical Systems (AVOCS'18). EASST, 2019. [PHP11] Amalinda Post, Jochen Hoenicke, and Andreas Podelski. “RT-inconsistency: a new property for real-time requirements”. In Proceedings of the 14th International Conference on Fundamental Approaches to Software Engineering (FASE'11), volume 6603 of LNCS. Springer, 2011.
Claims
1. 1. A computer-implemented method for modifying a behavior of a target computer system, the behavior of which is constrained by a set of time requirements, and an execution sequence of the target computer system, called an evidence trace, satisfies a criterion for detecting a conflict, called an inconsistency, between time requirements of the set of time requirements, the set of time requirements including a first subset and a second subset of the time requirements, the method comprising: initializing a set of constraints based on the evidence trace; modifying the second subset of time requirements to obtain an updated set of time requirements in which each constraint in the set of constraints is satisfied; searching for further evidence traces of inconsistency in the updated set of time requirements; when the further evidence traces are found, expanding the set of constraints based on the further evidence traces; Repeating the above steps, Including, and deeming the target computer system's operation to be modified when the further evidence trace is not found for the updated set of time requests.
2. searching for time requests in said first subset that cannot be triggered when considering said updated set of time requests, called blank time requests; when said empty time requirement is found, determining an execution sequence that triggers said empty time requirement when considering a first subset of said time requirements, called a trigger trace, and expanding said set of constraints based on said trigger trace; Repeating 2. The method of claim 1, further comprising: considering the target computer system's operation as modified when the further evidence traces and the null time demands are not found for the updated set of time demands.
3. 3. The method of claim 2, wherein expanding the set of constraints based on the trigger trace comprises adding a constraint requiring that a modified second subset of the time requirements of a subsequent iteration does not prevent occurrence of the trigger trace.
4. 4. The method of claim 1, wherein the step of expanding the set of constraints based on further evidence traces of inconsistencies in the first subset of time demands comprises adding constraints requiring that a modified second subset of the time demands of a subsequent iteration prevent the occurrence of the further evidence traces.
5. expanding the set of constraints based on further evidence traces of inconsistency for the updated set of time requirements that are not evidence traces of inconsistency for the first subset of time requirements, comprising: a second subset of the time requirements of a subsequent iteration prevents the generation of further evidence traces; or the further evidence trace is not an evidence trace of the inconsistency of the updated set of time requirements of a subsequent iteration; The method of any one of claims 1 to 4, further comprising applying a constraint requiring that:
6. 6. The method of claim 1, wherein operation of the target computer system is initially constrained by a first subset of the time requirements, and modifying the operation of the target computer system comprises adding a second subset of the time requirements to the first subset of the time requirements.
7. 6. A method according to claim 1, further comprising: determining a subset of parameters of the set of time requirements based on the evidence trace; and determining the first subset and the second subset based on the subset of parameters, wherein the second subset is changed by changing only parameters within the subset of parameters.
8. The method of claim 7 , wherein the second subsets are modified such that a distance between any modified second subset and the original second subset does not exceed a predetermined maximum distance.
9. The method according to any one of claims 1 to 8, wherein the second subset of time requests is modified to obtain an updated set of time requests, whereby each constraint in the set of constraints is satisfied and when considering the updated set of time requests, all time requests in the modified second subset can be triggered.
10. 10. The method of claim 1, further comprising: expanding the set of constraints based on desired traces that may occur when considering the original set of time requirements, but that are prevented from occurring by the updated set of time requirements.
11. The method of any one of claims 1 to 10, wherein searching the evidence traces and / or the trigger traces uses a Satisfiability Modulo Theory (SMT) solver.
12. The method of any one of claims 1 to 11, wherein each said time requirement is modelled as a Simplified Universal Pattern (SUP).
13. A computer program comprising instructions which, when executed by at least one processor, configure said at least one processor to perform the method of any one of claims 1 to 12.
14. A computer readable storage medium comprising instructions which, when executed by at least one processor, configure the at least one processor to perform the method of any one of claims 1 to 12.
15. A modified computer system for modifying the operation of a target computer system, said modified computer system comprising at least one processor configured to perform the method of any one of claims 1 to 12.
Citation Information
Patent Citations
Method for detecting mismatching of time constraint in sequence diagram
JP2015087880A
Schedule program, schedule device and schedule method
JP2020129257A
Event processing based on meta-relationship definition
US20130006987A1
