Next Article in Journal
A Tentative Exploration of the Fei Qian Argumentation Scheme Based on Logic in a Broad Sense
Previous Article in Journal
A Decidable Ground Fragment of the Monotonicity Calculus
Previous Article in Special Issue
How Explainable Really Is AI? Benchmarking Explainable AI
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

SAT-Based Synthesis and DEVS Simulation from Partial Generative Specifications for Verifiable AI

by
Abdurrahman Alshareef
1,2,* and
Bernard P. Zeigler
2
1
Information Systems Department, College of Computer and Information Sciences, King Saud University, Riyadh 11451, Saudi Arabia
2
RTSync Corp., Chandler, AZ 85226, USA
*
Author to whom correspondence should be addressed.
Submission received: 7 December 2025 / Revised: 8 May 2026 / Accepted: 1 July 2026 / Published: 16 July 2026

Abstract

System models and artifacts continuously require validation and refinement to address imprecise specifications and early-stage requirements in order to derive executable simulations. We propose a multi-layer approach for the automated formalization and execution of partial generative specifications derived from high-level descriptions. The first layer processes model seeds—potentially produced by large language models—that capture coarse structural information such as node relations, ordering, and timing estimates. Rather than requiring fully specified executable models from generative sources, we restrict their role to producing partial specifications, which are then completed through formal synthesis. We implement a synthesis engine based on Boolean satisfiability that constructs executable control flow structures from these partial specifications while enforcing structural consistency and execution semantics. Satisfiability modulo theories are further used to verify temporal properties and establish simulation baselines. The resulting models are then transformed into a set-theoretic discrete event system specification, enabling executable simulation via generated code artifacts. This pipeline establishes a unified pathway from partial generative artifacts to formally validated and executable models. It enables reliable and interpretable exploration of design alternatives and experimentation under formally grounded structural and temporal constraints, while providing a foundation for integrating generative modeling with rigorous execution semantics.

1. Introduction

Generative structures can provide significant advantages for streamlining system development and workflow orchestration. They extend the scope of design automation, enabling modelers and programmers to explore vast permutations within an accelerated pipeline. When such structures are semantically enhanced (e.g., from generative AI sources), the resulting artifacts can provide valuable insights. However, producing execution and sound simulations of such structures remains challenging. Even with the advent of generative models (e.g., code-writing assistants), the resulting implementations and proposals raise interpretability issues and lack correctness guarantees. They are also prone to context limits, training bias, semantic misalignment, and other known issues [1]. The generated code could often lack an underlying model or an internal grasp of intent. The emerging tools clearly indicate the need for a significant paradigm shift in the ways we approach programming. However, without practical, advanced methods of validation and interpretation, the usability of such results can be challenging to realize.
To observe the structural aspects of generative models, we conducted a preliminary, exemplary experiment using one of the publicly available large language models (LLMs) to demonstrate the variability in generated results with minimal instructions. We prompted a generic GPT-4o [2] to suggest domains and then generated a model or diagram for each domain. The generated list of domains included healthcare systems, e-commerce platforms, embedded systems, and many others. For example, we prompted a model that had not been personalized or fine-tuned with the following: “Generate a Bayesian graph example for a healthcare system ”. Then, we recorded the observed relevant metric of the resulting graph. We report the detailed observations of the selected metrics in Table A1 and Table A2 in Appendix A. We recorded the total count for each feature (e.g., nodes, tables, or transitions) in the generated example. For instance, the generated database schema for a healthcare example consists of 6 tables and 6 relations. Whether it is a network, a process, or a diagram, the results in Table 1 suggest some level of consistency in its general structural metrics. In extreme cases, such as the depth of a decision tree, the model generated almost all trees at the same depth. None of the generated activity diagrams included a fork node or input/output parameters, unless the model was explicitly instructed to do so. A relatively high variability score was achieved in generating transitions for state machine diagrams. Table 1 shows the standard deviation result in each observed metric. We also conducted the same experiment on Gemini 2.5 Flash [3] and observed similar patterns. While such consistency can be useful, some limitations remain to realize the potential of these models for generating large-scale, highly variable structures that are beneficial for exploratory design, combinatorial analysis, and the examination of exceptional cases [4].
Thus, such issues may pose a limitation when scaling these models to address complex systems, where validating their reasoning capacity may be challenging. The generation process and the resulting structures may fail to evolve sufficiently to meet increasing needs. Some solutions attempt to explicitly introduce intermediate tokens to enhance LLM performance and improve results. Some target specific technical features, such as backtracking knowledge sources. Addressing context length [5] is another approach to enabling larger windows in growing applications. It enhances the semantic enrichment in handling larger queries while still producing intact results [6]. However, aside from predetermined benchmarks, the degradation of context remains a challenging issue, especially when it must be reliably addressed across the broader context and scale of systems.
A possible way to address this limitation is through human feedback and instruction. However, previous research has demonstrated cases of unfaithfulness and misalignment when such models are precisely instructed as they attempt to over-optimize for the predetermined measure, rather than focusing on overall quality and correctness. We demonstrated some cases in generating diagram structures with parallel flows [4]. Other works have demonstrated inaccuracies in abstractive summarization when evaluated against historical facts [7]. Some researchers frame these issues as a form of hallucination attributed to a variety of contributing factors [1]. In this work, we address forms of misalignment and semantic misattribution, as the underlying model attempts to satisfy user-specific instructions while encountering domain limitations and imprecision.
In this article, we propose a neuro-symbolic approach to examine the expressive limits of generative models while benefiting from their ability to adapt to different domain semantics. We establish baselines for logic correctness using satisfiability encoding. We guide the model development process gradually, starting from a minimal yet continually growing set, and iteratively adding intermediary corrective and simulation layers. We aim to produce executable simulation artifacts that remain interpretable within a fully automated pipeline. Our approach relies on multiple layers of generic scaffolds that can be attached to the generative model to produce basic model-structure seeds. Afterward, the results undergo verification and enhancement steps to establish a sound, interpretable simulation.

Incomplete and Semi-Formal Model Specification

Incomplete and ambiguous specifications are common, especially in the early modeling and requirement stages. While their flexibility enables an expedited, bootstrapped development cycle, their ambiguity may not be handled correctly in downstream implementation tasks, leading to failures, costly delays, and round-trip engineering. These ambiguities, especially in complex control scenarios, can be subject to various interpretations with known trade-offs. Addressing them early on in the design stages, without overburdening the modeling process, can be advantageous. A well-designed simulation framework can then rigorously highlight and exhibit such trade-offs. We also note that some ambiguities may not necessarily arise from genuine nondeterminism, but from a missing structural formation and a partial specification. Therefore, our approach addresses such an issue by elevating partial structures through explicit formal synthesis and model refinement. We reserve stochasticity for later modeling and simulation stages.
Figure 1 illustrates common structural patterns that may result in semantic ambiguities in such diagrams. The multiple incoming or outgoing flows to/from the nodes in these diagrams require explicit handling logic with specific accounts for concurrency and order (i.e., fan-in and fan-out). Such handling, especially in complex, time-sensitive systems, as well as the presence of concurrency and parallelism, can be delegated to a specialized construct within the model. The rectangular opaque nodes, for example, represent a new node type for handling synchronization between states and actions across various system diagrams. The SAT-based encoding clearly specifies the logical condition in which such handling arises. The DEVS-based formalization enables executable simulation for further validation and analytical insights. It further enables adjustment and tooling support through fully customizable code stubs that are suitable for full software and system engineering activities. The result is an integrated approach that addresses current design flaws and contextual limitations in generative structures (e.g., those produced by an LLM) through an automated formal foundation. It benefits from the multi-domain semantic richness of LLMs to fill domain-knowledge gaps in universal formal modeling methods.
Figure 1 shows three cases where satisfiability (SAT) rules can be applied for the structural resolution. In case (i), where node c receives two incoming flows, a new fork node is synthesized to isolate concurrency logic from the action node c. A similar mechanism applies in case (ii) for the multiplicity in outgoing flows from node a. In case (iii), the approach extends to support the synthesis of more detailed precedence logic where b expects an output from a, and c expects outputs from both a and b. Case (iv) shows a more elaborate diagram with a cycle.
We note that while the present work focuses on flow-like diagrams, many semi-formal modeling notations share similar structural constructs such as branching, synchronization, and ordering constraints. This suggests that the proposed synthesis architecture could be applicable more broadly. However, extending the approach requires careful consideration of the differing levels of abstraction and execution semantics associated with other diagram types, such as state machines, which may imply distinct and elaborate simulations and transformations.

2. Related Work

The advent of LLMs has spurred research across various fields, including verification and simulation modeling. Methods for utilizing these models are still emerging. Previous research has extensively investigated the use of SAT and SMT (satisfiability modulo theories) in software and system development (e.g., [8,9]), some with a particular interest in and application of execution and simulation modeling methodology [10,11]. The automated generation and refinement of system models from partial specifications has attracted interest not from a generative model perspective but rather according to formal verification rules. Some works propose the automated completion and verification of control-flow models [8,12] and transition systems [9]. In domain-specific languages, a form of string transformation synthesis has been applied [13]. SAT-based encodings have also been applied to the analysis of concurrent models such as Petri nets, including reachability and coverability problems [14], as well as net synthesis from sequential observations [15]. More recently, SAT solving has also been applied to workflow construction and composition [16]. Symbolic reasoning techniques have long been used, demonstrating that large system state spaces can be analyzed by encoding system behavior into symbolic representations and solving the resulting logical constraints [17].
Our approach elevates the application of formal methods at a different layer by connecting a generative model (e.g., an LLM) to SAT-based synthesis. The resulting model graph utilizes both the generative model and verifier as sources for auto-completion. We cast the formal encoding at the semi-formal specification and meta-layers, addressing the different diagram types used by practitioners that go beyond basic state-transition systems in program formulation. Additionally, the devised engine addresses both structural and behavioral specifications within a minimum set of execution semantics, while enabling full-cycle development and production for simulation artifacts in later stages. For example, activity flow and process models encompass a variety of control constructs that require different approaches to account for validation and execution at lower levels. Recent advances in generative models (i.e., LLMs) offer promising partial-input seeds to address such accounts but fail to provide a complete specification under formal guarantees without an extensive technical scaffold. Such checks are often delegated to an external engine, aka agentic workflow design.
Temporal and causal properties have also been extensively researched under formal modeling conditions. A wide variety of properties in software and systems are addressed using SAT/SMT solvers in conjunction with formal methods, such as timed automata and temporal logic. Several works employ SMT to validate timing constraints in dependencies in dataflow and workflow models [18,19,20]. Linear temporal logic (LTL) and bounded model checking are also commonly used to verify reachability and safety in hardware design [21]. The execution of partial models with defects has been applied to incomplete state machines, enabling early simulation and validation [11]. Within the DEVS framework, several works explore verification through constrained finite-state spaces of simulation models [10,22]. Our approach enforces bounded checks at the design stage while enabling full-fledged simulation with open, unconstrained state spaces. We also add additional checks and corrections at the meta-layer for structural properties that are semantically significant. These additional checks enable the attainment of a richer set of executable simulations and leverage generative source regardless of their result quality. They enable the validation of generative structures with partial specifications.

Executable Modeling and Simulation

Using the DEVS formalism [23] provides a computational foundation for attaining executable simulations [24]. In contrast to traditional simulation techniques, we aim to use the DEVS-compliant set-theoretic foundation, combined with a minimal simulation engine, as a means to enable simulation models to evolve computationally. Such a trait is necessary in software and systems development due to the adaptive dynamics across multiple design and production layers and abstractions. The evolving dynamics in digital twins represent a case in point that demonstrates these needs. We adhere to the modular design to enforce explicit interface contracts. We use coupling features to facilitate communication among generative elements with distinct roles.
Several environments support DEVS-based simulation, including the open-source DEVS-Suite [25] and the proprietary MS4 Me [26]. Both primarily rely on the specification of atomic and coupled models with varying degrees of support for visualizations. Recent work [27] explores the use of generic coding assistance tools to write simulation code. The study in [28] surveys the literature on techniques for model execution.
In contrast, our approach automates the synthesis and generation of executable simulation artifacts from a high-level specification. SAT-based synthesis yields structural resolutions with control artifacts that can be directly mapped to a DEVS-based specification, enabling simulation across various timing configurations. The experimental framework enables the derivation of empirical insights with assurances of correctness under both deterministic and stochastic conditions. This work addresses limitations identified in previous research [4] at a higher design level by adding an additional synthesis layer. It reinforces the generated designs and establishes experimental baselines based on the synthesis results, while accounting for both structural graph-theoretic features and execution semantics. Rather than requiring generative models to produce fully specified structures, we deliberately restrict their role to generating partial specifications. This abstraction mitigates issues related to hallucination, prompt sensitivity, and lack of guarantees, while preserving useful domain-level structure.
Table 2 summarizes the main attributes of previous studies and highlights their connection to the contribution of this paper.

3. Structural Resolution via SAT Encoding

In performing SAT encoding, responsibility for constructing an executable model is shifted to a formal synthesis layer that enforces structural consistency and execution semantics. This separation enables the integration of generative flexibility with formal guarantees. First, we start by encoding constraints to resolve the cases of structural ambiguity presented in Figure 1. Once a case is identified, a control node is introduced to delegate the synchronization and merging logic. The added node represents a control construct common in flow, activity, state, process, and business process diagrams. These constructs are intended to enhance expressiveness in modeling languages and program state and flow graphs. With adequate support, such abstractions can provide a useful foundation for building simulations and accelerating the production process through advanced interpretation techniques. The problem is recognized as an ongoing challenge. Our approach in this part is to strengthen the generative process through formal synthesis and simulation techniques.
We use a generative model (e.g., an LLM) to produce a simplified structure in JSON format (or any structured file format, for that matter). Instructing the generative model to produce the final outcome may yield erroneous results or run into a context limit. It lacks the means to provide certificates, as in theorem provers, model checkers, and simulation tools. Thus, we modularize the process into an output consisting of action (atomic) nodes inferred from their pairwise precedence constraints. The produced object serves as input to the SAT program, which then introduces additional nodes. The diagram also includes initial timing estimates that we plan to use in subsequent sections for temporal verification and simulation. For example, if the generated diagram describes steps known to take a specific amount of time or to dictate an explicit time base, then the object will indicate the estimated time. During SAT-based synthesis, when a node has multiple incoming edges/flows, the program creates a new node and redirects the corresponding flow through it. In Figure 1, the diagrams are shown before and after applying the specified rules. The resulting diagrams are guaranteed to be correct, unlike possibly malformed diagrams generated by the generative source, especially for complex control dynamics that may be susceptible to misalignment.

3.1. Problem Definition

Let V denote a set of action nodes. The input specification is a precedence relation
P V × V
where ( u , v ) P indicates that action u must precede action v.
From P, we derive predecessor and successor sets
p r e d ( v ) = { u ( u , v ) P }
s u c c ( u ) = { v ( u , v ) P }
Source and sink nodes are defined as
s o u r c e s = { v V p r e d ( v ) = }
s i n k s = { v V s u c c ( v ) = } .
The objective is to synthesize an executable control-flow structure
G = ( V , E )
that preserves the precedence constraints while assigning appropriate control semantics.

3.2. Structural Augmentation

Precedence relations alone may not encode the required control structure. To enable synthesis of forks, joins, and decision points, the solver may introduce auxiliary control nodes.
For each action v V , two optional control nodes are defined, c t r l _ i n v and c t r l _ o u t v . These represent input and output control points, respectively. The expanded node set becomes
V = V { c t r l _ i n v , c t r l _ o u t v v V } .
Edges in the synthesized structure may connect action nodes and control nodes.

3.3. Processing the Precedence Constraints

Given a precedence pair ( A B ) , where A and B are both essential components or action nodes, we define a set of candidate paths connecting A to B based on the possible presence of synchronization. For instance, if B receives multiple incoming flows (i.e., being a destination node in multiple precedence constraints), then the path from A to B has to go through a control node with two flows (a flow from A to s y n c and a flow from s y n c to B), replacing the precedence constraint ( A B ) in the original diagram. Each candidate path is expressed as a Boolean formula φ i , involving the following edge variables representing flows and control activation flags:
  • e A B : Direct edge from A to B;
  • e A c o A , e c o A B : Edges via the control-out (fan-out) node of A;
  • e A c i B , e c i B B : Edges via the control-in (fan-in) node of B;
  • e c o A c i B : Connecting edge between control-out of A and control-in of B;
  • c o A , c i B : Boolean flags controlling the activation of control-out and control-in.
The candidate path formulae are:
φ 1 : ¬ c o A ¬ c i B e A B ; φ 2 : c o A ¬ c i B e A c o A e c o A B ; φ 3 : ¬ c o A c i B e A c i B e c i B B ; φ 4 : c o A c i B e A c o A e c o A c i B e c i B B .
Let P A , B = { φ 1 , φ 2 , φ 3 , φ 4 } denote the set of valid path encodings for the precedence ( A B ) . To ensure structural consistency, we enforce the following uniqueness constraint:
! φ i P A , B such that φ i is true where i = 1 , 2 , 3 , 4
This is implemented in the solver [29] via a pseudo-Boolean equality constraint using the following constraint:
PbEq ( [ φ 1 , φ 2 , φ 3 , φ 4 ] , 1 )
Each formula φ i corresponds to one of the cases illustrated in Figure 1: φ 2 applies to case (ii), φ 3 to case (i), and φ 4 to case (iii). Meanwhile, φ 1 corresponds to the original path (the precedence pair with no added control nodes).

3.4. Control Typing

Control nodes must choose a semantic control type. Two types are supported for both input and output control: s y n c for synchronous execution, and s e l e c t for exclusive choice (a relaxed control). For the input control nodes, these correspond to join and merge semantics, respectively. The output control nodes correspond to the fork, decision, and split semantics.
Let
t y p e _ i n _ s y n c ( v ) , t y p e _ i n _ s e l e c t ( v )
denote the input control types and
t y p e _ o u t _ s y n c ( v ) , t y p e _ o u t _ s e l e c t ( v )
denote the output control types.
When a control node is active, exactly one of the corresponding control types must be selected. We refer to control nodes assigned the s e l e c t type as relaxed controls, as they relax strict synchronization requirements by allowing a single (or a subset) incoming or outgoing flow to activate the node. In contrast, s y n c controls enforce full synchronization across all associated flows. This distinction is used in reporting the results (e.g., “Relaxed Ctrl” in Table 3) and in describing the synthesized structures.

3.5. Execution Semantics

To ensure that the synthesized structure admits valid execution, token propagation semantics are encoded in the model.
Let
t o k e n ( v , t )
indicate that node v contains a token at step t. Transmission variables
s e n d ( u , v , t )
represent token transfer between nodes.
The execution horizon is defined as
H = | V | .
Source nodes initially hold tokens as follows:
t o k e n ( v , 0 ) = t r u e v s o u r c e s f a l s e o t h e r w i s e .
Tokens may propagate along realized precedence relations subject to control semantics.

3.6. Control Semantics and Progression

Flow activation obeys the semantics of the control types. If an output control node is typed as synchronous, flows propagate to all active successors. If an output control node is typed as s e l e c t , at most one of its flows gets activated. If an input control node is synchronous, all incoming flows must be present before propagation. If an input control node is s e l e c t , any incoming flow may enable propagation. These rules enforce correct execution semantics for the synthesized structure.
To prevent the synthesis of dead structures, the solver enforces that at least one sink node becomes reachable within the execution horizon:
s s i n k s : t o k e n ( s , H ) .
Source nodes initially hold tokens, and at least one sink node becomes reachable within the execution horizon. The framework supports a variety of execution specifications, including constraints on the number and distribution of tokens at sources or sinks. For the purposes of this study, we adopt the least restrictive configuration that guarantees execution progression while avoiding additional constraints that could bias the structural synthesis process.

3.7. Optimization Objective

Among the feasible solutions, the solver minimizes the number of s e l e c t constructs. Let
C = v V ( t y p e _ i n _ s e l e c t ( v ) + t y p e _ o u t _ s e l e c t ( v ) ) .
Minimizing this objective favors synchronization constructs when possible, thereby preventing degeneracy and causal collapse.
A satisfiable assignment defines the active structural edges, the inserted control nodes, the assigned control types, and the flow progression traces. Together, these define an executable control-flow graph consistent with the original precedence specification, hence the final diagram. Algorithm 1 shows the overall SAT procedure. Table 3 shows the completion results for a range of model examples. The examples include the four base cases in Figure 1, referred to as M1, M2, M3, and M4. In addition, other examples of increasing size are created to demonstrate scalability and validate the results. M5 corresponds to a wafer fabrication flow with eight nodes and eight edges [4]. Other models are generated synthetically, with the number of nodes and edges indicated in the table. Figure 1 shows the cases M1, M2, M3, and M4 of models before and after synthesis.
An input model can be obtained by calling the LLM API (i.e., GPT-4o), which returns a JSON structure containing a list of nodes and precedence constraints. An example is shown in Listing 1.
Listing 1. Sample model seed in JSON response.
Logics 04 00007 i001
Algorithm 1 SAT-Based Typed Structural Resolution from Precedence Constraints
Input: A set of action nodes V and precedence relations P V × V
Output: A synthesized executable control-flow structure with typed control nodes
1:Compute predecessor and successor sets for all v V
2:Derive source nodes, sink nodes, and horizon H | V |
3:for each action v V  do
4:    Create optional control flags ctrl _ in [ v ] and ctrl _ out [ v ]
5:    Activate ctrl _ in [ v ] iff deg ( v ) > 1 and ctrl _ out [ v ] iff deg + ( v ) > 1
6:    Create typing variables:
type _ in _ sync [ v ] , type _ in _ select [ v ] , type _ out _ sync [ v ] , type _ out _ select [ v ]
7:    Enforce exclusive typing for each active control node
8:end for
9:Create Boolean edge variables for all candidate edges
10:for each precedence pair ( A , B )  do
11:    Let c o A ctrl _ out [ A ] , c i B ctrl _ in [ B ]
12:    Define path options:
φ 1 ¬ c o A ¬ c i B e A B φ 2 c o A ¬ c i B e A c o A e c o A B φ 3 ¬ c o A c i B e A c i B e c i B B φ 4 c o A c i B e A c o A e c o A c i B e c i B B
13:     PbEq ( [ φ 1 , φ 2 , φ 3 , φ 4 ] , 1 )
14:    Define relation [ u , v ] to indicate that precedence ( u , v ) is structurally realized
15:end for
16:Create token variables token [ v , t ] for all v V and 0 t H
17:Create transmission variables send [ u , v , t ] for all ( u , v ) P and 1 t H
18:Initialize tokens at source nodes
19:for  t = 1 to H do
20:    Constrain token transmission along structurally realized precedence relations
21:    Enforce input/output semantics:
  • s y n c input/output requires from/sends to all active predecessors/successors
  • s e l e c t input/output accepts/sends from/to one active predecessor/successor
22:    Update token persistence and propagation at each node
23:end for
24:Enforce reachability of at least one sink node by time H
25:Minimize the total number of select-type control assignments
26:Run the SAT/SMT optimization solver
27:if sat then
28:    Extract active edges, activated control nodes, assigned control types, relaxed (select-type) control nodes, and token traces
29:end if
In this example (Listing 1), node A has precedence over both B and C, and represents the structural characteristic shown in case (ii) of Figure 1. Such sync-out (multiple outgoing flows) or sync-in (multiple incoming flows) configurations trigger the insertion of a s y n c node to handle synchronization semantics. The associated numbers with each precedence represent transition durations that we will use in the temporal validation and simulation stages in Section 4 and Section 5.
The SAT formulation solves small and medium instances in milliseconds and scales to graphs with up to 50 nodes and 70–90 precedence constraints, achieving sub-second times. Cyclic graphs require additional control insertion, resulting in larger synthesized structures and greater solver effort. Dense cyclic graphs are the most challenging due to increased semantic propagation requirements. An ablation experiment (Table 4) shows that reducing the execution horizon substantially decreases solve time, indicating that the temporal token propagation layer dominates the computational cost.
The graph families used in the evaluation are synthetically generated in order to provide controlled variations in size and structural characteristics. These benchmarks allow us to systematically assess the performance of the SAT-based synthesis procedure under different conditions. In practice, however, this approach is intended to operate on models produced by generative modeling workflows, where precedence structures arise as artifacts of automated or semi-automated model construction.
The following are descriptions of the columns in Table 3:
  • Nodes: The number of nodes in the original model.
  • Prec. Edges: The number of defined precedence constraints between nodes.
  • Added Ctrl: The number of control nodes inserted by the solver to enforce unambiguous control flow.
  • Relaxed Ctrl: The number of control nodes for which the solver must assign the s e l e c t type (i.e., non-synchronizing control semantics) to ensure a feasible progression.
  • Final Edges: The total number of edges in the completed model after adding control nodes.
  • Time (ms): The time taken by the Z3 solver to solve the encoding, measured in milliseconds.
  • Memory (MB): The peak memory usage recorded during the solving process.
These metrics collectively characterize the solver’s performance and the structural complexity of the model as it grows in size. The performance demonstrates the potential applicability and feasibility of this approach in real-time inference. A snippet of the implementation code is shown in Listing 2.
Listing 2. Code snippet for the SAT-based synthesis, written in Python 3.12.12 using Z3.
Logics 04 00007 i002
An important advantage of the SAT-based formulation is that multiple synthesis objectives are handled within a unified framework. Specifically, the solver simultaneously performs structural synthesis of edges, semantic validation via propagation constraints, and optimization of control semantics by minimizing the number of select-type constructs. This integration allows the solver to search directly over executable control-flow structures while guaranteeing consistency with the precedence specification.

3.8. Complexity Discussion

Since SAT solving is NP-complete in general, the worst-case complexity of the synthesis procedure is exponential in the number of Boolean variables.
Let | V | denote the number of nodes and | P | the number of precedence relations. The formulation introduces Boolean variables for control activation, control typing, structural edges, precedence realizations, and token propagation. Control flags and typing variables contribute O ( | V | ) variables. Each precedence relation introduces a constant number of candidate structural edges, yielding O ( | P | ) edge variables. The execution semantics introduce token variables t o k e n ( v , t ) for all nodes and time steps 0 t | V | , resulting in O ( | V | 2 ) variables. Additionally, token transmission variables s e n d ( u , v , t ) are created for each precedence relation and time step, resulting in O ( | P | | V | ) variables. Consequently, the total number of Boolean variables in the encoding grows as O ( | P | | V | + | V | 2 ) .
Although the worst-case complexity is exponential, modern SAT/SMT solvers can efficiently handle instances of practical size for this study due to sophisticated optimizations. Also, the choice of the horizon is conservative. Reducing it to a more effective heuristic could further reduce complexity, as confirmed by the ablation case (Table 4). In practice, the limited scalability due to the bounded execution encoding can be mitigated by modular construction within the DEVS framework. Structural completion can be applied to smaller subsystems, which are then composed hierarchically within a DEVS model. This approach enables exact synthesis at the component level while relying on DEVS-based simulation and validation to evaluate the behavior of larger systems and yet unforeseen emergent properties. Consequently, SAT-based completion and DEVS-based modeling form complementary layers. The former ensures structural correctness of the control patterns given the execution semantics of the latter, while the latter supports scalable composition and experimentation.

4. Temporal and State Formalization Using SMT and DEVS

At this stage, we draw on DEVS semantics to infer the state properties. In DEVS formalism, each atomic model evolves over a continuous time base and is formally defined by:
  • Input/output event sets X and Y;
  • A state set S including passive and active;
  • A time advance function t a : S R 0 { } ;
  • A transition function δ : S × ( X { } ) S ( δ i n t e r n a l , δ e x t e r n a l , δ c o n f l u e n t );
  • An output function λ .
We formalize the resulting structures from the resolution stage in Section 3 with a set of atomic models. The goal is to predefine formal modeling templates and then parametrize them using verified model results. For action and s y n c nodes, we specify two atomic models, one for each type. The atomic model for actions begins in the passive state with t a = , and upon receiving input, it transitions to active for a fixed duration t n before returning to passive. The atomic model for s y n c nodes consists of three phases: passive, waiting, and enabled. A s y n c node becomes enabled only after receiving inputs from all its incoming flows. Once each model is instantiated, the coupled model forms the entire structure of atomic models, with couplings corresponding to the edges connecting them.
A variety of state and temporal validations can take place using SMT. The validations are centered around durations that symbolically correspond to a node’s active processing of some input. The finish time can be characterized as the sum of the start time and duration, and so on.
Thus, each node n is associated with the following: start time s n , defined by the arrival of the input from the predecessor node; duration t n , defined by the initial time estimate; and finish time, f n = s n + t n . The system is initialized with s n , f n = for all nodes. In the case of single-input processing (only a single input can be present in the system) and an acyclic diagram, SMT constraints can be used to ensure the following:
Causal Start Constraint:
s n max p preds ( n ) f p
Guarantees that a node starts only after all its predecessors have completed.
S y n c Activation:
s s y n c < p preds ( s y n c ) , f p <
Ensures s y n c nodes activate only when all required inputs are present.
Sequential Execution Consistency: We identify all edge pairs in the resulting diagram ( p , q ) such that p q , and enforce
f p s q f q s p
The constraint prohibits causally ordered nodes from being in active states simultaneously, ensuring that either node must finish before the other starts.
Deadline Bound: Let T total = max n terminal nodes f n represent the total completion time. This bound is inferred automatically by computing the longest edge path in a cycle-free diagram as follows:
T total n critical path t n
Bottleneck Identification: The bottleneck edge is the edge with the longest duration among all edges on the critical path. We extract the length of such a path post-solution by comparing the durations of all edges.
We associate duration with the edges to allow nodes with multiple outgoing flows to have different transition times depending on the edge source and destination.
Table 5 shows the results of executing the SMT-based procedure in Z3 [29]. We also present the SMT implementation in Listing 3 for the critical-path calculation. We use the results from this step to establish the deterministic baseline for the simulation experiment and adjust the input-generation pressure by calibrating the inter-arrival time to induce more or less parallelism across the model [4]. We plan to examine further configurations of path topology and connectivity degrees (e.g., strongly connected components) in future work.
Listing 3. Code snippet determining the critical path and verifying the temporal properties, written in Python using Z3.
Logics 04 00007 i003

Notes on Handling Multiple Input Traces

The formulated rules can be extended to verify systems with concurrent inputs. Causal start, s y n c activations, and finish times will be input-sensitive and therefore checked for each input. For k parallel executions over a shared model, each constraint requires k validations to account for all input traces for each input i = 1 , , k . For example, the causality start constraint can be formulated as s n ( i ) max p preds ( n ) f p ( i ) , indicating that for each input i, each node n can only start after all precedent nodes finish processing that input.
Additional constraints can also be formulated to verify system-level properties. Since nodes may handle multiple input arrivals, constraints regarding queuing or dropping semantics can provide a critical assessment of the system, especially under pressure tests. The insights gained from these properties, in turn, can inform the generative and synthesis processes, further optimizing the model. For example, additional nodes can be added to the model if the system exceeds an average waiting time threshold. Other system-level constraints can also be added, such as a total termination time for a certain number of inputs, as well as other reachability and safety features. In this paper, we will not explicitly formulate these constraints and instead refer the reader to the established literature on this subject [30]. We focus on the prospect of automating such insights within a fully adaptive generative modeling process and on drawing on them to establish baselines for the simulation experiments. We will demonstrate some aspects of end-to-end automation in the simulation section.

5. Executable and Stochastic Simulation

In this section, we present the results of the verified modeling artifacts via an executable simulation. To conduct our experiment, we use activity and action flow semantics to specify the behavior. The flow-based and I/O communications make such a representation well suited to serve as an expressive layer of DEVS-based operational semantics.
Thus, we begin by formalizing three key elements of the activity and action flow diagram metamodel: the action, the control (also known as fork/join and decision/merge), and the entire activity diagram. The first two elements are modeled as atomic units, and their instances are coupled to represent the entire activity. We describe fork/join in s y n c to represent synchronization, and the decision/merge nodes in the s e l e c t atomic model to represent conditional features in the simulation workflow. We plan to cover a wider set of control nodes in high-level engineering languages, such as SysML [31] and UML [32], as well as general orchestration flows in software and hardware deployments (e.g., Terraform [33]), among others. Recent advances in AI coding assistance tools with limited context lengths underscore the need and potential to revisit the application of disciplined methods to approach modularity and code synthesis.
We formulate the set-theoretic specification of the s y n c nodes in a DEVS-compliant manner, thereby making them amenable to executable simulation in subsequent steps.
S Y N C = X , Y , S , δ e x t , δ i n t , δ c o n , λ , t a , X = I n × V , I n = { i n 1 , , i n n } , Y = O u t × V , O u t = { o u t 1 , , o u t m } , S = { passive , waiting , enabled } × R 0 , + × 2 X × ( I n B ) , T = T { ( i n , v ) } , C = C [ i n ] , δ e x t ( ( p h a s e , σ , T , C ) , e , ( i n , v ) ) = ( waiting , , T , C ) , i n I n : C ( i n ) = , ( enabled , 0 , T , C ) , i n I n : C ( i n ) = , δ i n t ( p h , σ , T , C ) = ( passive , , , C 0 ) , C 0 ( i n ) = , δ c o n ( s , t a ( s ) , x ) = δ e x t ( δ i n t ( s ) , 0 , x ) , λ ( enabled , σ , T ) = ( p , T ) , p O u t , t a ( p h a s e , σ ) = σ .
We also formulate the specification of action nodes in a similar manner. For brevity, we present only the specification of the external transition, internal transition, and output function.
δ e x t ( ( p h a s e , σ , T , C ) , e , ( i n , v ) ) = ( enabled , τ ( i n , v ) , ( i n , v ) , C ) ; δ i n t ( p h a s e , σ , T , C ) = ( passive , , T , C ) ; λ ( enabled , σ , T , C ) = ( o u t , v ) where t a s k = ( i n , v ) .
And the following includes the specifications of the external transition, internal transition, and output function of the s e l e c t node.
δ e x t ( ( p h a s e , σ , T , C ) , e , ( i n , v ) ) = ( enabled , 0 , ( i n , v ) , C ) ; δ i n t ( p h a s e , σ , T , C ) = ( passive , , ( i n , v ) , C ) ; λ ( enabled , σ , T , C ) = ( p i , v ) if t a s k = ( i n , v ) cond ( p i , i n , v ) = true ; where p i = choose { p O u t cond ( p , i n , v ) = true } .
Finally, the activity can be formulated with a corresponding coupled model. The set D consists of the atomic models of types action, s y n c , and s e l e c t .
A = X , Y , D , { M d d D } , E I C , E O C , I C
For clarity, we provide a brief, concrete example of how C (Boolean completion map) and T (set of inputs) evolve during a simple external transition for a sync-in node with two predecessors. Consider a sync-in node with two predecessor inputs, I n = { i n 1 , i n 2 } . Initially, the node is in the passive state
( passive , , , C 0 ) , C 0 ( i n 1 ) = , C 0 ( i n 2 ) = .
Suppose an external event ( i n 1 , v 1 ) arrives first. Then, the external transition updates the received input set and completion map to
T = { ( i n 1 , v 1 ) } , C ( i n 1 ) = , C ( i n 2 ) = ,
so the node moves to
( waiting , , { ( i n 1 , v 1 ) } , C ) .
At this point, synchronization is not yet achieved because the second required input has not arrived. Next, suppose a second event ( i n 2 , v 2 ) arrives. The state is then updated to
T = { ( i n 1 , v 1 ) , ( i n 2 , v 2 ) } , C ( i n 1 ) = , C ( i n 2 ) = ,
which satisfies the synchronization condition for all required inputs. The node therefore moves to the enabled state
( enabled , 0 , { ( i n 1 , v 1 ) , ( i n 2 , v 2 ) } , C ) ,
allowing the output function λ to emit the synchronized token bundle. After the internal transition, the node resets to
( passive , , , C 0 ) .
We note that in the implementation, each input port may maintain a queue of pending arrivals. Thus, if two consecutive events arrive on the same input port (e.g., i n 1 ) before another required predecessor input is received, both events may be buffered at the implementation level. The abstract state components T and C only record which required inputs have been observed and whether synchronization has been achieved. Accordingly, the formalization captures the logical enabling condition of the s y n c node, while the simulator configuration allows for using per-port queues to preserve multiplicity or arrival order, in addition to other policies.
Now that we have formulated the DEVS specifications, we use Acceleo [34] to write the code templates for each node. Then, the code-generation process parametrizes these templates, providing all executable code snippets necessary to run the experiment. We generated Java code for the DEVS-Suite and MS4 Me simulators. We also implemented a DEVS simulator in JavaScript 1 that can run simulations in a web environment via model interpretation. In this experiment, we will use an MS4 Me simulator to generate the simulation results and Matplotlib 3.10.1 [35] for visualization.

Simulation Experiment

We will begin by demonstrating the approach with an illustrative example. We then present a more practical case of sensor fusion.
The first example diagram shown in Figure 2 consists of two input parameters, three action nodes, two output parameters, and seven flow edges to illustrate various precedence patterns. Figure 2a shows the example before the synthesis. Figure 2b shows the diagram after synthesizing the s y n c nodes. The resulting diagram can be readily transformed into a coupled DEVS Markov model with a predefined experimental frame. The transformation is performed using Acceleo code templates to generate Java code that is executable by the MS4 Me simulator. The initial timing assignments for the action states are set to one, following an exponential distribution. The input generator alternately dispatches outputs to the coupled model: first to i n 1 and then to i n 2 . The inter-arrival time is set to ten.
For illustrative purposes, we set the time for action c to 10, assuming an exponential distribution. Figure 2c,d show the obtained turnaround times after running the experiment for 10,000 time units. Both charts validate the initial timing assignments and the realization of the formal semantics during execution. The histogram shows heavily right-skewed data with two distinct regimes. The clustered times correspond to most jobs that traverse the path involving the actions a and b. The extended tail represents the turnaround times for jobs that go through c. This result is noticeable due to the empirical cumulative distribution function (ECDF). The synthesized synchronization node before c drives a skewed distribution with a median of 13.52, while 5% of cases exceed 561.
Such a combination of generative models, verifiable synthesis, and formally specified executable simulations may provide a foundation for describing and exploring behavioral dynamics within an automated modeling pipeline. For instance, the long-tail behavior observed in the turnaround-time distribution is consistent with the temporal constraints verified by the SMT layer. In particular, the action corresponding to node c has an associated processing time constraint (set to 10 units in the experiment) that participates in the SMT-based critical path validation. The stochastic simulation then samples execution paths according to the model’s structure and service-time distributions. Because the SMT validation guarantees that these precedence and timing constraints are satisfiable and causally consistent, the simulation results reflect valid executions of the formally validated model rather than artifacts introduced by the simulation environment. The resulting analytical plots, therefore, provide empirical confirmation that the observed turnaround-time behavior remains consistent with the SMT-validated temporal constraints.
After validating the simulation results in a simple example, we demonstrate the approach’s capacity to describe domain-specific cases by using a more detailed example of a sensor fusion architecture commonly used for situational awareness in autonomous perception (Figure 3). We instructed GPT-4o to “generate a diagram for sensor fusion flow.” We implemented a tool that automatically renders the generated JSON file into an activity flow diagram. However, the devised approach aims to accommodate large structures with complex, evolving control dynamics. Figure 3a shows the generated diagram. Figure 3b shows the diagram after synthesis. As in the first example, the initial timing assignments for the action nodes are set to 1, assuming an exponential distribution. In the initial experiment, the input generator alternately dispatches outputs to the coupled model via each of the four input parameters. The inter-arrival time is set uniformly with bounds [0, 1]. Figure 3c shows the resulting turnaround times after running this experiment. Then, we adjust the inter-arrival time for the next two experiments to 1 and 10, with the turnaround time results shown in Figure 3d and Figure 3e, respectively. Figure 4 shows another generated example for the sensor fusion pipeline with one relaxed (select-type) control node.
This example demonstrates the applicability of our proposed pipeline and its scalability in handling generated structures with behavioral and timing dynamics. The SAT-based synthesis is used to ensure that the generated structures admit a consistent executable interpretation, establishing a structurally valid progression of control flow. The resulting structures can then be transformed into parallel DEVS models while preserving their behavioral semantics. Within this setting, SAT-based reasoning provides a precise mechanism for ensuring structural consistency, whereas DEVS-based simulation enables broader exploration of system behavior through dynamic execution. This perspective aligns with earlier work emphasizing the importance of semantic-preserving transformations between formal analysis and simulation environments [36]. When the initial models are generated from AI-assisted artifacts, the process can naturally support iterative cycles in which synthesis, simulation, and validation are repeatedly applied, enabling continuous refinement of both the generated structures and the behavioral scenarios explored.

6. Conclusions

Our goal in this work is to leverage the generative capacity of recent AI models (i.e., generative models such as LLMs) to produce results with sound structures that are enriched with domain knowledge. We propose an approach to obtain the partial specifications of a timed activity and action flow diagram from a generative model in a structured format. Then, we subject the resulting structure to SAT-based synthesis to identify and rectify potential design flaws, thereby further enriching the model. Such enrichment is further compounded by its transformation into a set-theoretic DEVS-compliant specification and by code-generation templates. We demonstrate the approach using executable simulations and experiments. The obtained results and visualizations demonstrate the validity and key aspects of the automation’s consistency in the proposed pipeline. The results suggest that generative control flow structures can be synthesized with formal guarantees of correctness and executability when SAT-based structural synthesis is integrated with DEVS modeling and execution semantics. This capability is particularly valuable for complex synthesis problems that require precise and reliable execution. By embedding synthesis, validation, and simulation within a unified automated pipeline, the proposed framework provides a practical, formally grounded pathway for generating executable models.
While the proposed pipeline is motivated by structural imperfections observed in generative model outputs, these imperfections are addressed through formalization under execution semantics. Rather than requiring generative models to produce fully specified and executable flow structures—which can be unreliable due to hallucinations, instruction sensitivity, and lack of guarantees—we constrain their role to generating partial specifications. The synthesis process then constructs a complete and executable model by enforcing structural and semantic consistency. Accordingly, the current evaluation focuses on representative precedence structures capturing execution-relevant structural ambiguities, rather than directly benchmarking raw LLM-generated outputs. We acknowledge that this abstraction introduces a gap between the motivating generative artifacts and the evaluated instances, as the current experiments do not directly measure performance on raw LLM-generated structural outputs. Extending the evaluation to fully integrate end-to-end pipelines operating on unfiltered generative artifacts remains an important direction for ongoing and future work.
Despite some promising results, several limitations remain. The current synthesis procedure guarantees a weak progression property, ensuring that execution can propagate from sources to at least one sink, but stronger behavioral guarantees may require additional constraints. The SAT encoding also introduces token-propagation variables whose size grows with the number of nodes and candidate paths, potentially limiting scalability for larger models. Furthermore, the approach assumes the presence of identifiable source and sink nodes to establish execution progression. Finally, while the pipeline is designed to operate on artifacts produced by generative models, the quality of the resulting structure depends on the fidelity of the generated precedence relations and their transformation into the subject modeling framework. Addressing these limitations—including improved scalability and more robust handling of cycles and incomplete generative outputs—remains a direction for future work.
More broadly, the proposed framework illustrates how SAT-based structural synthesis and DEVS modeling can be combined to provide a principled pathway from generative design to formally validated, executable system models. The contribution of this work can be viewed in two complementary aspects: (i) a principled abstraction of generative outputs into partial, reliably manageable specifications, and (ii) a unified SAT-based synthesis framework that constructs executable control flow structures while enforcing execution semantics and consistency constraints. In future work, we plan to extend the approach to include various control constructs and artifacts with different semantics. We also plan to investigate the generative model’s ability to derive new constructs and synthesize them in real time. Our code-generation templates are currently static. However, we are examining more dynamic approaches for both generation and interpretation (e.g., context-sensitive code generation that adapts to domain or simulator requirements without violating verified constraints), accounting for AI code assistance tools with additional execution semantics that yield more interpretable simulation results. We primarily used LLMs in this work. We plan to extend the approach to integrate other models in the future.

Author Contributions

Conceptualization, A.A.; methodology, A.A.; software, A.A.; validation, B.P.Z. and A.A.; formal analysis, A.A.; investigation, B.P.Z. and A.A.; resources, A.A.; data curation, A.A.; writing—original draft preparation, A.A.; writing—review and editing, B.P.Z. and A.A.; visualization, A.A.; supervision, B.P.Z.; project administration, B.P.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The generated data, source code, and simulation results produced in this study are publicly available at https://github.com/alshareef2/FlowSAT (accessed on 30 June 2026).

Conflicts of Interest

Authors Abdurrahman Alshareef and Bernard P. Zeigler were employed by RTSync Corp., which develops and maintains the MS4 Me software tool used in this study. This affiliation has been disclosed for transparency. The authors declare that the research was conducted and the results are presented without any commercial or financial influence that could have inappropriately affected the design, analysis, interpretation, or reporting of the work.

Abbreviations

The following abbreviations are used in this manuscript:
AIArtificial Intelligence
DAGDirected Acyclic Graph
DEVSDiscrete Event System Specification
LLMLarge Language Model
M&SModeling and Simulation
SATBoolean Satisfiability
SMTSatisfiability Modulo Theories

Appendix A

We report detailed results for the structural metrics of the generated graphs and diagrams in Table A1 and Table A2.
Table A1. Structural characteristics of database schemas, Bayesian networks, and decision trees.
Table A1. Structural characteristics of database schemas, Bayesian networks, and decision trees.
Database Schemas
DomainTablesRelationsTotal Att.
Healthcare System6640
E-commerce Platform8839
University Management System6728
Social Networking App71038
Banking and Finance6537
Hotel Booking System5429
Supply Chain & Inventory Management7734
Real Estate Portal71046
Learning Management System (LMS)91150
Transportation and Logistics6534
Bayesian Networks
DomainNodesEdgesDiscrete States
Medical Diagnosis5410
Fraud Detection6513
Weather Forecasting448
Autonomous Vehicles101626
Gene Expression & Bioinformatics7714
Customer Churn Prediction7620
Financial Market Modeling6718
Ecological Modeling5514
Manufacturing & Quality Control5414
Decision Trees
DomainNodesLeaf NodesMax Depth
Healthcare & Medical Diagnosis1364
Finance & Credit Scoring1374
Marketing & Customer Segmentation1164
Fraud Detection1164
Retail & Inventory Management1275
Manufacturing & Quality Control954
Education & Student Performance1064
Energy Consumption Forecasting1374
Human Resources & Hiring1166
Cybersecurity1594
Table A2. Structural characteristics of activity diagrams and state machines.
Table A2. Structural characteristics of activity diagrams and state machines.
Activity Diagrams
DomainNodesDecisionsForks & I/O
Healthcare Systems1110
Banking and Finance1210
E-commerce1100
Education and E-learning1320
Software Development800
Telecommunications1120
Government and Public Services1430
Manufacturing and Supply Chain1120
Human Resources (HR)1220
Insurance1110
State Machines
DomainStatesTransitions 
Embedded Systems57 
Networking Protocols1120 
Game Development610 
Compiler Design68 
User Interface (UI) Design916 
Telecommunications512 
Robotics and Automation613 
Workflow & Business Process Management89 
Cybersecurity/Access Control613 
Control Systems & Mechatronics58 

Note

1
https://github.com/alshareef2/devs.js (accessed on 30 June 2026).

References

  1. Ji, Z.; Lee, N.; Frieske, R.; Yu, T.; Su, D.; Xu, Y.; Ishii, E.; Bang, Y.J.; Madotto, A.; Fung, P. Survey of hallucination in natural language generation. ACM Comput. Surv. 2023, 55, 1–38. [Google Scholar] [CrossRef] [Scilit]
  2. OpenAI. GPT-4o. 2024. Available online: https://platform.openai.com/docs/models/gpt-4o (accessed on 8 January 2025).
  3. Google Inc. Gemini 2.5 Flash, 2025. Available online: https://gemini.google.com/ (accessed on 8 January 2025).
  4. Alshareef, A. Bootstrapping SysML with LLM-based inference and integrated discrete-event simulation. SIMULATION 2026, 102, 469–492. [Google Scholar] [CrossRef] [Scilit]
  5. Hooper, C.; Kim, S.; Mohammadzadeh, H.; Mahoney, M.W.; Shao, Y.S.; Keutzer, K.; Gholami, A. Kvquant: Towards 10 million context length llm inference with kv cache quantization. Adv. Neural Inf. Process. Syst. 2024, 37, 1270–1303. [Google Scholar] [CrossRef] [Scilit]
  6. Brown, T.; Mann, B.; Ryder, N.; Subbiah, M.; Kaplan, J.D.; Dhariwal, P.; Neelakantan, A.; Shyam, P.; Sastry, G.; Askell, A.; et al. Language models are few-shot learners. Adv. Neural Inf. Process. Syst. 2020, 33, 1877–1901. [Google Scholar]
  7. Maynez, J.; Narayan, S.; Bohnet, B.; McDonald, R. On faithfulness and factuality in abstractive summarization. arXiv 2020, arXiv:2005.00661. [Google Scholar]
  8. Alur, R.; Černỳ, P.; Madhusudan, P.; Nam, W. Synthesis of interface specifications for Java classes. In Proceedings of the 32nd ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, Long Beach, CA, USA, 12–14 January 2005; pp. 98–109. [Google Scholar]
  9. Chen, J.; He, F. Control flow-guided SMT solving for program verification. In Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering, Montpellier, France, 3–7 September 2018; pp. 351–361. [Google Scholar]
  10. Gholami, S.; Sarjoughian, H.S. Modeling and verification of network-on-chip using constrained-DEVS. In Proceedings of the Symposium on Theory of Modeling & Simulation, SpringSim 17: Spring Simulation Multi-Conference, Virginia Beach, VA, USA, 23–26 April 2017; pp. 1–12. [Google Scholar]
  11. Bagherzadeh, M.; Kahani, N.; Jahed, K.; Dingel, J. Execution of partial state machine models. IEEE Trans. Softw. Eng. 2020, 48, 951–972. [Google Scholar] [CrossRef] [Scilit]
  12. Biere, A.; Heule, M.; van Maaren, H. Handbook of Satisfiability; IOS Press: Amsterdam, The Netherlands, 2009; Volume 185. [Google Scholar]
  13. Grover, A.; Ehlers, R.; D’Antoni, L. Synthesizing Transducers from Complex Specifications. In Proceedings of the FMCAD, Trento, Italy, 17–21 October 2022; pp. 294–303. [Google Scholar]
  14. Abdulla, P.A.; Iyer, S.P.; Nylén, A. SAT-solving the coverability problem for Petri nets. Form. Methods Syst. Des. 2004, 24, 25–43. [Google Scholar] [CrossRef] [Scilit]
  15. Desel, J.; Reisig, W. The synthesis problem of Petri nets. Acta Inform. 1996, 33, 297–315. [Google Scholar] [CrossRef] [Scilit]
  16. Kasalica, V.; Lamprecht, A.L. Workflow discovery with semantic constraints: The SAT-based implementation of APE. Electron. Commun. EASST 2020, 78. [Google Scholar] [CrossRef]
  17. McMillan, K.L. Symbolic model checking. In Symbolic Model Checking; Springer: Berlin/Heidelberg, Germany, 1993; pp. 25–60. [Google Scholar]
  18. Monakova, G.; Kopp, O.; Leymann, F.; Moser, S.; Schäfers, K. Verifying business rules using an SMT solver for BPEL processes. In Proceedings of the Business Process, Services–Computing and Intelligent Service Management; Gesellschaft für Informatik eV: Bonn, Germany, 2009; pp. 81–94. [Google Scholar]
  19. Marjanovic, O.; Orlowska, M.E. On modeling and verification of temporal constraints in production workflows. Knowl. Inf. Syst. 1999, 1, 157–192. [Google Scholar] [CrossRef] [Scilit]
  20. Liu, X.; Wang, D.; Yuan, D.; Wang, F.; Yang, Y. Workflow temporal verification for monitoring parallel business processes. J. Softw. Evol. Process 2016, 28, 286–302. [Google Scholar] [CrossRef] [Scilit]
  21. Biere, A. Bounded model checking. In Handbook of Satisfiability; IOS Press: Amsterdam, The Netherlands, 2021; pp. 739–764. [Google Scholar]
  22. Hwang, M.H.; Zeigler, B.P. Reachability graph of finite and deterministic DEVS networks. IEEE Trans. Autom. Sci. Eng. 2009, 6, 468–478. [Google Scholar] [CrossRef] [Scilit]
  23. Zeigler, B.P.; Muzy, A.; Kofman, E. Theory of Modeling and Simulation: Discrete Event & Iterative System Computational Foundations; Academic Press: Cambridge, MA, USA, 2018. [Google Scholar]
  24. Alshareef, A.; Kim, D.; Seo, C.; Zeigler, B.P. Activity diagrams between DEVS-based modeling & simulation and fUML-based model execution. In Proceedings of the 2020 Summer Simulation Conference, Virtual, 20–22 July 2020; pp. 1–12. [Google Scholar]
  25. ACIMS. DEVS-Suite Simulator, Version 7.0.0. 2023. Available online: https://acims.asu.edu/software/devs-suite/ (accessed on 30 June 2026).
  26. MS4 Systems. MS4 Me, Version 3.0. 2025. Available online: https://www.ms4systems.com/ (accessed on 30 June 2026).
  27. Carreira-Munich, T.; Paz-Marcolla, V.; Castro, R. DEVS Copilot: Towards Generative AI-Assisted Formal Simulation Modelling based on Large Language Models. In Proceedings of the 2024 Winter Simulation Conference (WSC), Orlando, FL, USA, 15–18 December 2024; pp. 2785–2796. [Google Scholar]
  28. Hojaji, F.; Mayerhofer, T.; Zamani, B.; Hamou-Lhadj, A.; Bousse, E. Model execution tracing: A systematic mapping study. Softw. Syst. Model. 2019, 18, 3461–3485. [Google Scholar] [CrossRef] [Scilit]
  29. De Moura, L.; Bjørner, N. Z3: An efficient SMT solver. In International Conference on Tools and Algorithms for the Construction and Analysis of Systems; Springer: Berlin/Heidelberg, Germany, 2008; pp. 337–340. [Google Scholar]
  30. Waez, M.T.B.; Dingel, J.; Rudie, K. A survey of timed automata for the development of real-time systems. Comput. Sci. Rev. 2013, 9, 1–26. [Google Scholar] [CrossRef] [Scilit]
  31. Object Management Group (OMG). SysML—OMG System Modeling Language. 2025. Available online: https://www.omg.org/spec/SysML (accessed on 8 January 2025).
  32. Object Management Group (OMG). UML—OMG Unified Modeling Language v 2.5.1. 2017. Available online: https://www.omg.org/spec/UML (accessed on 8 January 2025).
  33. HashiCorp. Terraform, 2025. Available online: https://developer.hashicorp.com/terraform (accessed on 30 June 2026).
  34. Eclipse Foundation. Acceleo: Model to Text Transformation Tool, 2023. Available online: https://www.eclipse.org/acceleo/ (accessed on 8 January 2025).
  35. Hunter, J.D. Matplotlib: A 2D graphics environment. Comput. Sci. Eng. 2007, 9, 90–95. [Google Scholar] [CrossRef] [Scilit]
  36. Zeigler, B.P.; Nutaro, J.J.; Seo, C. Combining DEVS and model-checking: Concepts and tools for integrating simulation and analysis. Int. J. Simul. Process Model. 2017, 12, 2–15. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Resolving structural ambiguities in semi-formal diagrams by enforcing explicit synchronization nodes.
Figure 1. Resolving structural ambiguities in semi-formal diagrams by enforcing explicit synchronization nodes.
Logics 04 00007 g001
Figure 2. Demonstration of the approach of integrating generative models, synthesis, and formal discrete event simulation with a simple activity. (a) A generated simple activity before synthesis. (b) The post-synthesis activity with three added s y n c nodes. (c) Histogram of turnaround times, showing the heavy right-skewed distribution. (d) Empirical cumulative distribution function (ECDF) of turnaround times.
Figure 2. Demonstration of the approach of integrating generative models, synthesis, and formal discrete event simulation with a simple activity. (a) A generated simple activity before synthesis. (b) The post-synthesis activity with three added s y n c nodes. (c) Histogram of turnaround times, showing the heavy right-skewed distribution. (d) Empirical cumulative distribution function (ECDF) of turnaround times.
Logics 04 00007 g002
Figure 3. The activities and plots for the second example using the sensor fusion pipeline. (a) The generated sensor fusion flow before synthesis. (b) The post-synthesis flow after adding s y n c nodes. (c) Turnaround time growth over the simulation’s progress, demonstrating predictable, semi-linear growth behavior due to increasing input pressure. (d) Turnaround times with inter-arrival set to 1. (e) Turnaround times with inter-arrival set to 10.
Figure 3. The activities and plots for the second example using the sensor fusion pipeline. (a) The generated sensor fusion flow before synthesis. (b) The post-synthesis flow after adding s y n c nodes. (c) Turnaround time growth over the simulation’s progress, demonstrating predictable, semi-linear growth behavior due to increasing input pressure. (d) Turnaround times with inter-arrival set to 1. (e) Turnaround times with inter-arrival set to 10.
Logics 04 00007 g003
Figure 4. Another generated sensor fusion example after synthesis. One control node is assigned the s e l e c t (relaxed) type, indicated by the diamond shape.
Figure 4. Another generated sensor fusion example after synthesis. One control node is assigned the s e l e c t (relaxed) type, indicated by the diamond shape.
Logics 04 00007 g004
Table 1. Standard deviation of structural features across formalisms.
Table 1. Standard deviation of structural features across formalisms.
FormalismFeaturesStd. Dev.
Database SchemaTables, Relations, Attributes1.25, 2.20, 6.67
Bayesian NetNodes, Edges, States1.87, 3.76, 5.07
Decision TreeNodes, Leaf Nodes, Max Depth1.79, 1.25, 0.63
Activity DiagramNodes, Decisions1.58, 0.94
State MachineStates, Transitions1.83, 4.14
Table 2. Overview of related work organized by research direction and methodology.
Table 2. Overview of related work organized by research direction and methodology.
Research DirectionSAT/SMT-BasedSymbolic/Temporal VerificationPartial ModelsSimulation/Execution
Interface and control-flow synthesis, program transformation[9,13][8,9]
Concurrent systems and Petri-net synthesis[14] [15]
Workflow construction, model execution[16,18][19,20][11][28]
DEVS modeling and simulation [10,22] [4,25,26,27]
Table 3. SAT completion results across base ambiguity cases and synthetic precedence graph families. Small, medium, and large correspond approximately to graphs with 10, 30, and 50 nodes, respectively. Relaxed Ctrl denotes the number of control nodes assigned to the select type.
Table 3. SAT completion results across base ambiguity cases and synthetic precedence graph families. Small, medium, and large correspond approximately to graphs with 10, 30, and 50 nodes, respectively. Relaxed Ctrl denotes the number of control nodes assigned to the select type.
GraphCaseNodesPrec.AddedRelaxedFinalTimeMemory
EdgesCtrlCtrlEdges(ms)(MB)
Base CasesM132103217.84
M232103318.07
M333205218.21
M444216318.21
M510113114618.72
DAGSmall10136019619.13
Medium3045240696839.69
Large50672509216371.87
Sparse CyclicSmall10149123819.70
Medium3047292768642.33
Large507035310520779.40
Dense CyclicSmall102817045519.92
Medium306541310614971.11
RandomSmall10148022719.46
Medium2945250705939.23
Large487041011149199.67
Table 4. Effect of execution horizon on dense cyclic graphs.
Table 4. Effect of execution horizon on dense cyclic graphs.
NodesPrec.AddedRelaxedFinalTime (ms)
5094636157552
Table 5. SMT-based temporal and state validation results for sample DAGs.
Table 5. SMT-based temporal and state validation results for sample DAGs.
Metriciiiiiiivvvivii
Inferred Total Time33412192122
Number of Node33381212102
Number of Precedence22381423151
Bottleneck Node2225664
Bottleneck Duration2224444
Z3 Solver Statistics
Arith. Lower Bounds151521772003091615
Arith. Upper Bounds161824742324842259
Tableau Columns2527371323756413259
Tableau Rows1416241073325822872
Pivots7810214056373
Row Summations152645225109318808709
Boolean Variables3133451514327933874
Clauses Created3613661662921250
Decisions1001168157835
Resource Limit Count18612111319714,29164,177113,837577,358
Memory Usage (MB)17.3517.3517.2717.3617.4717.5218.47
Max Memory (MB)17.6517.6517.6617.8718.5119.2826.72
Time0.000.000.000.000.010.010.04
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Alshareef, A.; Zeigler, B.P. SAT-Based Synthesis and DEVS Simulation from Partial Generative Specifications for Verifiable AI. Logics 2026, 4, 7. https://doi.org/10.3390/logics4030007

AMA Style

Alshareef A, Zeigler BP. SAT-Based Synthesis and DEVS Simulation from Partial Generative Specifications for Verifiable AI. Logics. 2026; 4(3):7. https://doi.org/10.3390/logics4030007

Chicago/Turabian Style

Alshareef, Abdurrahman, and Bernard P. Zeigler. 2026. "SAT-Based Synthesis and DEVS Simulation from Partial Generative Specifications for Verifiable AI" Logics 4, no. 3: 7. https://doi.org/10.3390/logics4030007

APA Style

Alshareef, A., & Zeigler, B. P. (2026). SAT-Based Synthesis and DEVS Simulation from Partial Generative Specifications for Verifiable AI. Logics, 4(3), 7. https://doi.org/10.3390/logics4030007

Article Metrics

Back to TopTop