Estimation for solving a boolean satisfiability problem

WO2024198168A1PCT designated stage expired Publication Date: 2024-10-03HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/108115
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-27
Filing Date
2023-07-19
Publication Date
2024-10-03

Smart Images

  • Figure CN2023108115_03102024_PF_FP_ABST
    Figure CN2023108115_03102024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to a method, an apparatus, a device, and a computer program product for estimation for solving a SAT. The method comprises generating a SAT instance based on a miter circuit which is determined based on a first logical circuit and a second logical circuit, the first logical circuit and the second logical circuit are to be performed LEC. The method further comprises determining a plurality of subproblems based on the SAT instance. The method further comprises determining an amount of time for solving a subset of the plurality of subproblems. The method further comprises determining an estimation of time for solving the SAT instance based on the amount of time for solving the subset. Example embodiments of the present disclosure can partition a SAT instance into a set of simpler subproblems, and thus can estimate an amount of time to solve the SAT instance.
Need to check novelty before this filing date? Find Prior Art

Description

ESTIMATION FOR SOLVING A BOOLEAN SATISFIABILITY PROBLEMFIELD

[0001] Embodiments of the present disclosure generally relate to the field of computer technology and in particular, to a method, an apparatus, a device, and a computer program product for estimation for solving a Boolean satisfiability problem (SAT) .BACKGROUND

[0002] Boolean satisfiability problem (SAT) refers to a decision problem in computer science that asks whether a given Boolean formula, consisting of variables and logical operators such as AND, OR, and NOT, can be assigned values in a way that satisfies the formula. The SAT is a problem of determining if there exists an interpretation that satisfies a given Boolean formula. That is, the SAT asks whether the variables of a given Boolean formula can be replaced by the values true or false in such a way that the formula evaluates to true. If this is the case, the formula is called satisfiable. On the other hand, if no such assignment exists, the function expressed by the formula is false for all possible variable assignments and the formula is unsatisfiable.

[0003] Modern algorithms for solving a SAT are complex programs, and called a SAT solver. Because of the NP-completeness of a SAT, it is impossible to predict how much time will be spent on an arbitrary input formula (such as two logical circuits) to solve it. A phenomenon of heavy-tailed behavior has been identified by researchers as one of the reasons of the unpredictable behavior of SAT solvers. This problem can result in industrial tests taking an unreasonable amount of time to complete, and it is difficult to understand how much total time the solver requires to finish its work on the given SAT instance.SUMMARY

[0004] In general, embodiments of the present disclosure provide solutions for estimation for solving a SAT problem.

[0005] In a first aspect, there is provided a method for estimation for solving a SAT problem. The method comprises: generating a SAT instance based on a miter circuit which is determined based on a first logical circuit and a second logical circuit, wherein the first  logical circuit and the second logical circuit are to be performed logical equivalence checking (LEC) ; determining a plurality of subproblems based on the SAT instance; determining an amount of time for solving a subset of the plurality of subproblems; and determining an estimation of time for solving the SAT based on the amount of time for solving the subset. In this way, these example embodiments can partition a SAT instance into a set of simpler subproblems, and thus can estimate an amount of time to solve the SAT instance faster and more efficiently.

[0006] In some example embodiments of the first aspect, the miter circuit may indicate at least one logical difference between the first logical circuit and the second logical circuit. In some example embodiments, each of the plurality of subproblems may be selected to be solved within a same range of time length, respectively. In this way, these example embodiments can guarantee that it can use small samples of the plurality of subproblems to estimate a total hardness for the plurality of subproblems.

[0007] In some example embodiments of the first aspect, the method may determine the plurality of subproblems by: partitioning a set of inputs of the miter circuit into a plurality of subsets of inputs, and the plurality of subsets of inputs are non-overlapping; and combining inputs of each subset of inputs of the plurality of subsets of inputs using a predetermined function. In this way, the estimation for each partitioning can be substantially same.

[0008] In some example embodiments of the first aspect, the method may further determine the plurality of subproblems by: obtaining different combinations with different polarities based on the combined inputs of each subset of inputs of the plurality of subsets of inputs; and determining the different combinations as the plurality of subproblems. In this way, the subproblems can be determined in various forms and provide more accurate time estimation.

[0009] In some example embodiments of the first aspect, the method may obtain the different combinations by: determining the different combinations using a CNF which encodes the miter circuit. In some example embodiments, the predetermined function may comprise an XOR function, a disjunction function, a bent function or a majority function. In this way, these example embodiments can ensure that the partitioning results satisfy the requirement that the solving time for each of the plurality of subproblems may be within the same range of time length.

[0010] In some example embodiments of the first aspect, the method may determine the amount of time for solving the subset of the plurality of subproblems by: selecting a predetermined number of subproblems out of the plurality of subproblems as the subset of subproblems in a random manner; obtaining, from a SAT solver, a plurality of time lengths for solving the subset of subproblems; and determining a sum of the plurality of time lengths as a hardness of the subset of subproblems. In this way, these example embodiments can use a small amount of samples to estimate the whole runtime required to solve the SAT, and thus can save time and reduce computational overhead.

[0011] In some example embodiments of the first aspect, the SAT solver may solve the subproblems in the subset of subproblems in parallel, or at least partly in parallel. In some example embodiments, the method may determine the estimation of time for solving the SAT instance by: determining an average time length for solving each subproblem in the subset of subproblems as an average hardness; and determining, based on the average hardness and a number of subproblems of the plurality of subproblems, a total time length as an estimation of a hardness of the SAT. In this way, these example embodiments can save time required to estimate the overall hardness.

[0012] In some example embodiments of the first aspect, the method may determine the estimation of the hardness of the SAT instance by: if the method determines that a number of the subset of subproblems exceeds a threshold number, the method may determine a second time length as the estimation of the hardness of the SAT using at least one of a Chebyshev’s inequality and a Chernoff's bound. In this way, these example embodiments can obtain a more accurate estimated hardness if the samples are plenty compared to using the average time length multiplying the total number of the subproblems.

[0013] In some example embodiments of the first aspect, the subset of subproblems may be a first subset, and the method may further select a second subset of the plurality of subproblems from the plurality of subproblems. The method may further determine a second estimation of time length for solving the second subset. The method may further determine the second estimation of time length for solving the second subset for using in a Bayesian optimization process. The method (for example, using the optimization module) may further determine, using the Bayesian optimization process, hyperparameters to be updated for the SAT solver. In this way, these example embodiments can improve the performance of the SAT solver, such as faster or more accurate.

[0014] In some example embodiments of the first aspect, the method may further display the hyperparameters to be used by the SAT solver to a user. The method may further transmit the hyperparameters to the SAT solver. In this way, these example embodiments can let the users make their proper decision based on the lasted situation on time.

[0015] In some example embodiments of the first aspect, the method may be performed by a device associated with a standalone software package. In some example embodiments, the method may be performed by a device associated with a cloud-based solution. In some example embodiments, the method may be performed by a device associated with an application programming interface (API) . In some example embodiments, the method may be performed by a device associated with a customized solution. In some example embodiments, the method may be performed by a device associated with any combination of the above items. In this way, these example embodiments can make the various forms of the products diverse to meet the user’s requirement.

[0016] In a second aspect, there is provided an apparatus. The apparatus comprises: means for generating a SAT instance based on a miter circuit which is determined based on a first logical circuit and a second logical circuit, wherein the first logical circuit and the second logical circuit are to be performed LEC; means for determining a plurality of subproblems based on the SAT instance; means for determining an amount of time for solving a subset of the plurality of subproblems; and means for determining an estimation of time for solving the SAT instance based on the amount of time for solving the subset.

[0017] In a third aspect, there is provided an electronic device. The electronic device comprises a processor and a memory coupled with the processor, wherein the memory has instructions stored therein which, when executed by the processor, cause the device to perform actions according to the first aspect.

[0018] In a fourth aspect, there is provided a computer program product stored on a non-transitory computer-readable medium and comprising machine-executable instructions, wherein the machine-executable instructions, when executed, cause a device to perform the method according to the first aspect.

[0019] In an fifth aspect, there is provided a computer-readable medium comprising machine-executable instructions, wherein the machine-executable instructions, when executed, cause a machine to perform the method according to the first aspect.

[0020] It is to be understood that the Summary section is not intended to identify key or  essential features of embodiments of the present disclosure, nor is it intended to be used to limit the scope of the present disclosure. Other features of the present disclosure will become easily comprehensible through the following description.BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Some embodiments will now be described with reference to the accompanying drawings, where:

[0022] FIG. 1A illustrates a schematic diagram of an example environment in which a plurality of embodiments of the present disclosure can be implemented;

[0023] FIG. 1B illustrates a schematic diagram of another example environment in which a plurality of embodiments of the present disclosure can be implemented;

[0024] FIG. 1C illustrates an example comparison at a high-level overview of the solution for estimation for solving a Boolean satisfiability problem and a traditional solution related to some embodiments of the present disclosure;

[0025] FIG. 2 illustrates a schematic diagram of an example software logical structure according to some embodiments of the present disclosure;

[0026] FIG. 3 illustrates an example partitions of inputs of a circuit according to some embodiments of the present disclosure;

[0027] FIG. 4 illustrates a schematic diagram of another example software logical structure according to some embodiments of the present disclosure;

[0028] FIG. 5 illustrates a flowchart of an example method for estimation for solving a Boolean satisfiability problem according to some embodiments of the present disclosure; and

[0029] FIG. 6 illustrates a block diagram illustrating an electronic device in accordance with embodiments of the present disclosure.

[0030] Throughout all the drawings, the same or similar reference numerals represent the same or similar elements.DETAILED DESCRIPTION

[0031] The principle of the present disclosure will now be described with reference to  some embodiments. It is to be understood that these embodiments are described only for the purpose of illustration and to help those skilled in the art to understand and implement the present disclosure, without suggesting any limitation as to the scope of the disclosure. The disclosure described herein can be implemented in various manners other than the ones described below.

[0032] In the following description and claims, unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of the ordinary skills in the art to which this disclosure belongs.

[0033] References in the present disclosure to “one embodiment, ” “some embodiments, ” “an embodiment, ” and the like indicate that the embodiment described may include a particular feature, structure, or characteristic, but it is not necessary that every embodiment includes the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with some embodiments, it is submitted that it is within the knowledge of one skilled in the art to affect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.

[0034] It shall be understood that although the terms “first” and “second” etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and similarly, a second element could be termed a first element, without departing from the scope of embodiments. As used herein, the term “and / or” includes any and all combinations of one or more of the listed terms.

[0035] As used herein, the term “includes” and its variants are to be read as open terms that mean “includes, but is not limited to. ” The term “based on” is to be read as “based at least in part on. ” The term “one implementation” and “an implementation” are to be read as “at least one implementation. ” The term “another implementation” is to be read as “at least one other implementation. ” The terms “first, ” “second, ” and the like may refer to different or the same objects. Other definitions, explicit and implicit, may be included below. It is to be explained that any numerical values or numbers used in the disclosure are examples only and shall not restrict the scope of the disclosure.

[0036] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting to embodiments. As used herein, the  singular forms “a” , “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” , “comprising” , “has” , “having” , “includes” and / or “including” , when used herein, specify the presence of stated features, elements, and / or components, etc., but do not preclude the presence or addition of one or more other features, elements, components and / or combinations thereof.

[0037] Herein, hardness could be typically measured in terms of the amount of time or resources required to solve the problem. Hardness could be the level of difficulty in solving a computational problem. Hardness could be typically measured in terms of the amount of time or resources required to solve the problem. Hardness with respect to partitioning may refer to the level of difficulty in solving a SAT problem after it has been partitioned into simpler subproblems. In some embodiments, the term “hardness” may refer to either total runtime, or total number of conflicts, whatever is more convenient, appropriate or suitable for the user. This measure may take into account the complexity of solving the individual subproblems, as well as the difficulty of combining their solutions to obtain a solution to the original problem. Herein, SAT partitioning refers to the level of difficulty in solving a computational problem.

[0038] As discussed above, it is difficult to predict how long the SAT solver will work on an arbitrary input formula. The traditional technical solution involves the use of different methods and techniques to estimate a hardness of a given SAT instance. These methods may include SAT partitioning, backdoor hardness, guess-and-determine SAT-based cryptographic attacks, and decomposition hardness.

[0039] One of the early-stage tools for estimating the hardness of SAT problems estimates the percentage of the search space explored by a SAT solver. However, this estimation method is far from the actual hardness since the size of the remaining search space weakly correlates with the remaining solving time. Some other early-stage tools employ different variants of backdoors to construct partitions and estimate the hardness of SAT instances with respect to these partitions.

[0040] In some researches, they proposed a method for finding partitions of hard SAT instances. Although some papers mention an application to the inversion of some cryptographic functions, the method is not specific to cryptography and can be applied to any Boolean satisfiability problem. In a more recent research, it is suggested a notion of  decomposition hardness, which involves partitioning the SAT problem into simpler subproblems that are easier to solve.

[0041] Similarly, demonstrating possible uses of hardness estimation of SAT instances using Cube-and-Conquer (C&C) technique is also proposed. The C&C technique is a SAT partitioning technique that exploits the structure of a Boolean formula to reduce the search space. This method has several limitations, such as the lack of any guarantee on the quality of the partitioning and the difficulty in estimating the total time required to solve the problem. Additionally, the subproblems generated by the C&C technique do not necessarily have equal hardness, which can lead to inefficient use of computational resources.

[0042] As discussed above, the traditional methods for estimating SAT problem hardness have several disadvantages. Firstly, they have limited accuracy in predicting the actual hardness of the problem. For example, only weakly correlated with the remaining solving time, and backdoor finding methods typically involve a resource-intensive stage aimed at finding a good backdoor by means of metaheuristic optimization.

[0043] Furthermore, decomposition-based approaches, such as C&C, can also result in subproblems that are still difficult to solve. This is because C&C does not guarantee that each subproblem has equal hardness, and it cannot provide an accurate estimation of the total time required to solve it. Overall, these limitations make it challenging to accurately estimate the hardness of SAT problems using any prior art methods.

[0044] Therefore, the proposal solution of the present disclosure introduces a new technique for estimating the hardness of SAT instances, which is related to the important industrial problem of Logical Equivalence Checking (LEC) . The LEC is a key application in Electronic Design Automation (EDA) . Herein, LEC may refer to a problem of determining whether two Boolean circuits are equivalent, meaning they have the same truth value for all possible inputs. If the time required can be estimated and one can know that the problem can be solved in a reasonable amount of time with available resources, these resources can be utilized for important problem-solving tasks.

[0045] The high level idea for the proposal solution is based on the concept of SAT partitioning. In some example embodiments, by applying a specific SAT partitioning, the original hard SAT instance can be broken down into a set of significantly simpler SAT instances. For each instance, the runtime of a SAT solver (e.g. a conflict-driven clause learning (CDCL) -based solver) can be measured.

[0046] In some example embodiments, the total runtime of all such simple SAT instances may be referred to as the hardness. If this hardness value is reasonable, all subproblems (simpler SAT instances) can be solved in parallel, as the partitioning used provides a natural parallel plan for solving the considered problem. One useful aspect of the proposed solution is that the technique can estimate the total time required to solve all the tasks in the SAT partitioning, using a small sample of instances from a partitioning in combination with a special probabilistic technique described in the present disclosure. However, the accuracy of the estimates obtained can vary significantly depending on the chosen way to make the partitioning. In this solution for estimation for solving a SAT, a special technique for constructing SAT partitioning of hard SAT instances associated with LEC is presented. This technique can make it possible to obtain very accurate estimates of decomposition hardness in a relatively short time.

[0047] Principles and embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. Reference is first made to FIG. 1A, which illustrates a schematic diagram of an example environment 100A in which a plurality of embodiments of the present disclosure can be implemented.

[0048] The environment 100A may comprise a computing device 120. The computing device 120 may further comprise hardware components which are not shown, for example, one or more processors or processing units, a memory, a storage device, one or more communication units, one or more input devices and one or more output devices. The computing device 120 may be implemented as various user terminals or service terminals having the computing capability.

[0049] The service terminals can be servers, large-scale computing devices, and the like provided by a variety of service providers. The user terminal may be, for example, a mobile terminal, a fixed terminal, or a portable terminal of any type, including a mobile phone, a site, a unit, a device, a multimedia computer, a multimedia tablet, an Internet node, a communicator, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a Personal Communication System (PCS) device, a personal navigation device, a Personal Digital Assistant (PDA) , an audio / video player, a digital camera / video, a positioning device, a television receiver, a radio broadcast receiver, an electronic book device, a gaming device or any other combinations thereof, including accessories and peripherals of these devices or any other combinations thereof. It can also be appreciated that the computing device 120 can support any type of user-specific  interfaces (such as “wearable” circuits and the like) .

[0050] In some example embodiments, apart from being integrated on an individual device, some or all of the respective components of the computing device 120 may be set in the form of cloud computing architecture. In the cloud computing architecture, these components may be remotely arranged and may cooperate in implementing the functions described by the disclosure. In some example embodiments, the cloud computing provides computation, software, data access, and storage services without a terminal user being aware of physical positions or configurations of systems or hardware providing such services. In various embodiments, the cloud computing provides services via Wide Area Network (such as the Internet) using suitable protocols. For example, the cloud computing provider provides, via the Wide Area Network, the applications, which may be accessed through a web browser or any other computing components. Software or components of the cloud computing architecture and corresponding data may be stored on a server at a remote position. The computing resources in the cloud computing environment may be merged or spread at a remote data center. The cloud computing infrastructure may provide, via a shared data center, the services even though they are shown as a single access point for the user. Therefore, components and functions described herein may be provided using the cloud computing architecture from a service provider at a remote position. Alternatively, components and functions may be provided from a conventional server, or they may be mounted on a client device directly or in other ways.

[0051] The computing device 120 may obtain miter circuit 106. The miter circuit 106 may be determined based on a first logical circuit 102 and a second logical circuit 104. The first logical circuit 102 and the second logical circuit 104 may be the two Boolean circuits to be checked to determine if they are equivalent, meaning they have the same truth value for all possible inputs.

[0052] The computing device 120 may determine a SAT instance based on the miter circuit 106. The computing device 120 may determine a plurality of subproblems 135 based on the SAT. In this way, the computing device 120 can partition a SAT instance into a set of simpler subproblems, and thus a total runtime for all subproblems in the decomposition (i.e. estimation for the LEC problem runtime) can be can estimated using the estimation of an amount of time to solve samples of the set of simpler subproblems. The computing device 120 may determine an estimation of hardness 150 for solving the SAT based on the estimated runtime of the samples.

[0053] As discussed above, estimating runtime for solving a SAT is a challenge. For example, when solving challenging instances of the SAT problem, such as LEC instances, it is difficult to either predict the approximate solving time in advance, or provide an estimate for the remaining time during the solving process. To address this challenge, embodiments of the present disclosure propose a method that allows constructing fast and accurate estimates of hardness with respect to partitioning. Details of the example embodiments and advantages will be discussed with reference to FIGs. 1B-4 thereafter.

[0054] FIG. 1B illustrates a schematic diagram of another example environment 100B in which a plurality of embodiments of the present disclosure can be implemented. It should be understood that the example environment 100B shown in FIG. 1B is only exemplary and does not limit the functions and scopes of the embodiments described by the disclosure. The environment 100B shows more details of the architecture of the computing device. The example environment 100B may comprise the computing device 120. The example software architecture of the computing device 120 may be conceptualized as modules, each providing various functionality. The system architecture of the computing device 120 is shown in detail.

[0055] It is to be understood that the architecture and functions in the environment 100B are described for illustrative purposes only without suggesting any limitations. There may also be other devices, systems, or components that are not shown in the environment 100B. Furthermore, embodiments of the present disclosure may also be applied to other environments having different structures and / or functions.

[0056] The modules of the computing device 120 may include, but not limited to, an encoding module 125, a partitioning module 130, a hardness estimation module 145, and a hyperparameter optimization module 155. The example environment 100A may comprise an external SAT solver 140 and a user 110. It is to be noted that the user 110 may also refer to a user device operated by a user, or a client device. Alternatively, an internal SAT solver included in the computing device 120 may be used instead of the external SAT solver 140. According to various embodiments of the disclosure, the encoding module 125 may take two logical circuits as inputs from the user device 110 and may create a miter circuit that represents the logical difference between the two logical circuits. The partitioning module 130 may construct an "even" partitioning of the SAT instance, where the subproblems may have almost equal hardness. This even partitioning may be crucial for solving the SAT instances (which is also referred as subproblems) independently.

[0057] The partitioning module 130 may determine subproblems 135. The (external) SAT solver 140 may solve the subproblems 135. Alternatively, solving the SAT instances may be done in parallel, and for accurately estimating the hardness with respect to partitioning, a small sample set of such subproblems 135 can be used.

[0058] The hardness estimation module 145 may use the Monte Carlo method to estimate the total runtime (or total number of conflicts) as hardness estimation 150 for solving all subproblems in the partitioning, as well as determine the sufficient sample size to produce the estimate with the desired accuracy. The hyperparameter optimization module 155 may use the estimated hardness values to optimize the hyperparameters 160 of the SAT solver. This can allow for more efficient solving of the SAT instances (subproblems) , as the hyperparameters are tuned to minimize the estimated hardness. The hardness estimation 150 and / or the optimized hyperparameters 160 may be output to the user 110.

[0059] In some example embodiments, the computing device 120 may be involved include a server, which may hosts the SAT partitioning, hardness estimation, and hyperparameter optimization modules. A user, who may submit the SAT instance to be solved, may communicate with the server to receive the estimated hardness values and the optimized hyperparameters. The SAT solver may be also included as a device, as it is used to solve the subproblems.

[0060] Overall, the system architecture of the computing device 120 may be applicable in scenarios where there is a need to solve challenging instances of the SAT problem, particularly LEC instances, with fast and accurate estimates of hardness. The combination of an even partitioning, hardness estimation and hyperparameter optimization can allow for more efficient solving of SAT instances, and can potentially lead to significant improvements in industrial applications such as the EDA.

[0061] The proposed software solution can be delivered to customers in several forms, depending on their needs and preferences. The following product in forms of any of a standalone software package, a cloud-based solution, an API, or a customized solution may be possible.

[0062] For the standalone software package, this form may include the software and all necessary dependencies bundled together, ready to be installed on the user's machine. It may be suitable for users who prefer to have full control over the installation and configuration process and want to use the software locally.

[0063] For the cloud-based solution, this form includes a web interface or an API that allows users to access the software remotely, without having to install it locally. The software may run on a cloud server, and users may access it from anywhere with an internet connection. This form may be suitable for users who want to avoid the hassle of installing and maintaining software locally, or who need to collaborate on solving SAT instances with others.

[0064] For the API, this form may provide an application programming interface for accessing the functionality of the proposed method. This option may be ideal for customers who want to add SAT partitioning, hardness estimation, and hyperparameter optimization capabilities to their existing software products.

[0065] For the customized solution, this form may include a tailored solution designed to meet the specific needs of a particular customer. It may include modifications to the software, integration with other tools or systems, or custom development of new features. This form may be suitable for users who have specific requirements that cannot be met by the standard software offerings.

[0066] FIG. 1C illustrates an example comparison 100C at a high-level overview of the solution for estimation for solving a Boolean satisfiability problem and a traditional solution related to some embodiments of the present disclosure. The user 110 may input a hard SAT instance 165 to a traditional SAT solver 170. However, the SAT solver 170 cannot predicate runtime unless the SAT solver has done all the solving. Thus, the SAT solver 170 results in the unpredicted runtime 175.

[0067] On the contrary, in the solution for estimation for solving a SAT, a miter circuit may be constructed and a SAT may be encoded, and then a SAT solver may be used to prove the equivalence. The user device 110 may not need to wait for an unknown amount of time for the solver to complete. By using a SAT partitioning 180, accurate runtime estimation 185 may be obtained. By implementing the example embodiments of the present disclosure, an accurate estimate of the total time required to solve an instance can be provided beforehand, which can allow the user to decide whether it is worth solving the equivalence problem.

[0068] As shown in FIG. 1C, the hard SAT instance 165 may be input to a SAT partitioning 180 and thus an accurate runtime estimation 185 can be output. The present disclosure can be applied in various scenarios where the hardness of a hard SAT instance  needs to be estimated or approximated beforehand. One potential application scenario is in the EDA industry, where it is necessary to prove the equivalence of two logical circuits (LEC problem statement) .

[0069] For example, the present disclosure introduces a system architecture that accurately estimates the hardness of SAT instances with respect to partitioning and optimizes the hyperparameters of the SAT solver to efficiently solve the remaining subproblems. It is particularly useful in scenarios where solving challenging SAT problems, especially LEC instances, is required. The proposed software and method can provide a capability that constructing an evenly distributed partitioning of the given SAT instance. The proposed software and method can also provide a capability that accurately estimating the decomposition hardness of the SAT instance. The proposed software and method can further provide a capability that optimizing the hyperparameters of the SAT solver to improve solving efficiency.

[0070] According to embodiments of the present disclosure, when solving challenging instances of the SAT problem, LEC instances, it is impossible to either predict the approximate solving time in advance, or provide an estimate for the remaining time during the solving process.

[0071] FIG. 2 illustrates a schematic diagram of an example software logical structure 200 according to some embodiments of the present disclosure. The software logical structure 200 presents an overview of the example software's logical structure and one of example use cases in EDA. That is, an estimation of hardness of LEC SAT instance by the user, such as an EDA engineer, who may input logical circuits to determine their equivalence. Software logical structure 200 may comprise an input / encoding module 220, a partition module 130 and an estimation module 260. The input / encoding module 220, the partition module 130 and the estimation module 260 may be implemented in a computing device 270.

[0072] The Partition module 130 and estimation module 260 may play important roles in this example embodiment. The estimation of total runtime 265 may denote the answer the user receives, for example, an estimation of the total runtime. In the following detailed descriptions of the modules will be described.

[0073] The input / encoding module 220 may take two logical circuits 215 as an input from a user device 210. The two logical circuits 215 may be typically in forms of AND-Inverter  Graphs (AIG) , Verilog or very high-speed integrated circuit hardware description language (VHDL) . The input / Encoding module 220 may construct a miter circuit 230, which is essentially a logical exclusive or (XOR) of the two input circuits, which outputs 1 if and only if the two original circuits are not equivalent. This miter circuit may be encoded into a SAT instance 225 using standard techniques, such as the Tseitin transformation. The next module (the partition module 130) may use this constructed SAT instance and also the structure of the miter circuit, for example, as its inputs.

[0074] The partitioning module 235 may be responsible for decomposing a SAT instance generated by the encoding module into independent subproblems 240, where n represents the number of inputs, and k represents the size of each chunk. Herein, a chunk may be a subset of inputs. In other words, the chunk may be a partition of inputs (e.g., chunks are non-overlapping, and their union is all the inputs) . “n / k” represents the number of chunks. The number of chunks may determine the number of subproblem. They may have an exponential relation. For example, the decomposing process of a SAT instance by the partitioning module 235 will be described with reference to FIG. 3.

[0075] FIG. 3 illustrates an example partition 300 of inputs of a circuit according to some embodiments of the present disclosure. Generally, the partitioning module 235 may use predefined functions like XOR, OR, or MAJORITY to combine non-overlapping subsets of inputs in a given miter circuit. For example, for a circuit with n inputs, there are 2n combinations of input values. Using the partitioning module 235, it is possible to reduce 2n to subproblems. Each chunk may contain variables, and there may be n / k chunks in total. The predefined function combining the inputs in each chunk may be either true or false, leading to possible outcomes.

[0076] As an example, FIG. 3 demonstrates the construction of a 2-XOR partitioning. Here, a miter circuit with 6 inputs 340 is used for illustration purpose. The 6 inputs 340 can be split into three pairs (such as chunks 310, 320 and 330) . The pairs of inputs in each chunk may be combined using the XOR function. The partitioning module 235 may construct the following set, which may be the partitioning results:

[0077] Where C represents the conjunctive normal form (CNF) encoding the miter circuit, and the C can be augmented with different combinations of chunks with all possible polarities (such as NOT) . In this example, the partitioning consists of 8 subproblems, since k=2 and 2n / k=26 / 2=23=8. This would require to solve 26 = 64 subproblems.

[0078] It can be seen that there is a trade-off between the number of subproblems and their hardness. If the chunks are small, each subproblem may be easy, but the number of such subproblems may be large. Vice-versa, if the chunks are large, each subproblem may be relatively hard, but there may be just a few such subproblems.

[0079] The partitioning module 235 can partitioning a challenging LEC instance into a set of simpler subproblems. For example, it can obtain the predictable total time required for solving the entire partitioning. This can allow for better planning of computational resources and more accurate estimations of solving time. An efficient parallelization and distribution of the problem can be enabled, which can allow faster solving times.

[0080] The partitioning 235 module can also produce an embarrassingly parallel decomposition. For example, an ability to use all available computational resources by solving multiple subproblems simultaneously can be achieved, and thus overall solving time and improving performance can be reduced.

[0081] Referring back to FIG. 2, the partitioning module 235 may select small samples 245 from the subproblems 240 randomly, and the small samples 245 may be passed to the external SAT solver 250 for actual solving. This construction method can ensure an "even" decomposition. The subproblems have almost equal hardness (such as time required to solve them) . This, in turn, can allow for accurate total runtime estimates.

[0082] The external SAT solver module 250 may take the subproblems generated by the partitioning module 235 as input and may solve them. The external SAT solver module 250 may be any modern SAT solver, such as MiniSAT, Glucose, Cadical, Kissat. The solver may be invoked with the subproblem encoded in the DIMACS CNF format, and it may output a solution if one exists (SAT case) , or may prove its inexistence (UNSAT case) .

[0083] In some example embodiments, an external SAT solver as a component in the proposed system architecture can be utilized. The external SAT solver may be used in conjunction with the software that performs the proposed solution to solve subproblems resulting from the partitioning of the input SAT instances. The external SAT solver may be any SAT solver that is compatible with the input encoding scheme and can be invoked using a command-line or programmatic interface.

[0084] In some example embodiments, in the context of solving LEC instances, when two given circuits are in fact equivalent, all subproblems in the partitioning, and the original LEC problem are unsatisfiable. The runtime (and other statistics) of the solver may be recorded for each subproblem, and the results of the runtime 255 may be passed to the estimation module 260 for further processing.

[0085] The estimation module 260 may take the runtimes of a small sample of subproblems solved by the external SAT solver module 250 as an input. The estimation module 260 may use these runtimes to estimate the total time required to solve the entire decomposition, which may be equal to the sample average runtime for subproblems times the number of subproblems.

[0086] In some example embodiments, the estimation module 260 may estimate the sufficient sample size required for accurate estimation, based on statistical methods such as Chebyshev’s inequality and Chernoff's bound. The estimated total runtime and sample size may be passed to the display module for presentation to the user 210.

[0087] In some example embodiment, a software application that can implement the example embodiments of FIG. 2 may be integrated into an EDA tool to aid in the design and verification of digital circuits. For example, an engineer may use the software application to estimate the runtime for proving the equivalence of two logical circuits using a miter circuit encoded into SAT. The engineer may then decide whether it is worth solving the equivalence problem based on the estimated runtime. The estimation module 260 may estimate the problem hardness with respect to partitioning using Monte Carlo method. For example, it can allow for more accurate estimations of the problem hardness, which can be used to optimize solving strategies and improve SAT solver performance on specific LEC instances. A low runtime variance on subproblems can allow for using small samples for constructing accurate estimates. For example, it can allow for using small samples for constructing accurate estimates, and can reduce the overall computational cost of estimating  problem hardness.

[0088] By implementing the example embodiments of FIG. 2, the estimation module 260 can use a small sample of subproblems to accurately estimate the total runtime for solving the entire partitioning. The estimation may be calculated as the sample average runtime for subproblems multiplied by the total number of subproblems. The estimation module can also estimate the sufficient sample size based on the confidence level and margin of error specified by the user. For example, there may be eight subproblems in total and three subproblems may be selected as samples. Each estimation time of a sample subproblem can be determined by the external solver 265. The estimation module 260 may determine an average estimation time of the samples. The estimation module 260 may the total estimation time by multiple the average estimation time of the samples and eight.

[0089] FIG. 4 illustrates a schematic diagram of another example software logical structure 400 according to some embodiments of the present disclosure. FIG. 4 presents an overview of the proposed software's logical structure, which includes a hyperparameter optimization module 465 in addition to the partitioning and estimation modules as described in FIG. 2.

[0090] One of the possible use cases of the example embodiments in FIG. 4 may be tuning the hyperparameters of the SAT solver on the partitioning of a specific SAT LEC instance. As shown in FIG. 4, some modules are similar to those shown in FIG. 2. For the purposed of simplification, they will not be described in detail.

[0091] For example, the user device 410 in FIG. 4 may correspond to the user 210 in FIG. 2. The two circuits 415 in FIG. 4 may correspond to the two circuits 215 in FIG. 2. The input / encoding module 420 in FIG. 4 may correspond to the input / encoding module 220 in FIG. 2. The SAT instance 425 in FIG. 4 may correspond to the SAT instance 225 in FIG. 2. The miter circuit structure 430 in FIG. 4 may correspond to the miter circuit structure 230 in FIG. 2. The subproblems 440 in FIG. 4 may correspond to subproblems 240 in FIG. 2. The small samples 450 in FIG. 4 may correspond to the small samples 245 in FIG. 2. The external SAT solver 455 in FIG. 4 may correspond to the external SAT solver 250 in FIG. 2. The partitioning module 435 in FIG. 4 may correspond to the partitioning module 235 in FIG. 2, and the estimation module 445 in FIG. 4 may correspond to the estimation module 260 in FIG. 2. The estimation of total runtime 460 in FIG. 4 may correspond to the estimation of total runtime 265 in FIG. 2. The input / encoding module 420,  the partition module 435 the estimation module 445 may be implemented in a computing device 480.

[0092] The input / encoding module 420 may take two logical circuits 415 as an input from a user device 410. The input / encoding module 420 may construct a miter circuit 430. The partitioning module 435 may determine the subproblems 440 and select small samples 450 out of the subproblems 440. The external SAT solver module 455 may take the subproblems generated by the partitioning module 435 as input and may solve them.

[0093] In addition to the corresponding modules, the software logical structure 400 may comprise a hyperparameter optimization module 465. The hyperparameter optimization module 465 may tune the hyperparameters of the SAT solver 455 using the hardness estimates and an external optimizer 470, such as a Bayesian optimizer or a non-Bayesian optimizer, which are characteristics the SMAC3 software package. The SMAC3 software package may be a versatile Bayesian optimization package for hyperparameter optimization and may be available commercially.

[0094] The hyperparameter optimization module 465 may interact with the estimation module 445 to request estimation on the next small sample of subproblems, and may use the resulting runtime as a parameter in the Bayesian optimization process to find the optimal hyperparameters. The output of hyperparameter optimization module 465 may be the optimized SAT solver hyperparameters 475, which may be used to solve the remaining subproblems more efficiently.

[0095] In some example embodiments, a software application that can implement the example embodiments of FIG. 4 may be integrated into a cloud-based computing platform. The cloud-based computing platform may allow users to access the partitioning and estimation capabilities remotely. The cloud-based platform may be configured to automatically select and launch the most appropriate external SAT solver based on the user's specified requirements, such as runtime constraints, memory constraints, and solver performance. The platform may also provide users with real-time feedback on the partitioning and estimation process, allowing them to adjust the parameters as necessary.

[0096] By implementing the example embodiments of FIG. 4, estimating the hardness of LEC SAT instances can be further enhanced by incorporating the hyperparameter optimization module. The hyperparameter optimization module can be used to improve the performance of the SAT solver on subproblems obtained by partitioning the original SAT  instance.

[0097] FIG. 5 illustrates a flowchart of an example method 500 for estimation for solving a Boolean satisfiability problem according to some embodiments of the present disclosure. Method 500 may be performed by a computing device as shown in FIGs. 1A, 1B, 2 or 4. Reference will be made in combination with FIG. 1B.

[0098] At block 510, the computing device 120 generates a SAT instance based on a miter circuit. The miter circuit is determined based on a first logical circuit and a second logical circuit. The first logical circuit and the second logical circuit are to be performed LEC. For example, block 510 may be implemented in the input / encoding module 125. The input / encoding module 125 may take two logical circuits as an input from the user device 120.

[0099] At block 520, the computing device 120 determines a plurality of subproblems based on the SAT instance. The block 520 may be performed by the partitioning module 130. For example, the partitioning module 130 may decompose the SAT instance into simpler subproblems. Each subproblem may have almost same runtime for solving each subproblem, respectively.

[0100] At 530, the computing device 120 determines an amount of time for solving a subset of the plurality of subproblems. At 540, the computing device determines an estimation of time for solving the SAT instance based on the amount of time for solving the subset. For example, the blocks 530 and 540 may be performed by the hardness estimation module 145. The hardness estimation module 145 may use the Monte Carlo method to estimate the total runtime as hardness estimation 150 for solving all subproblems in the partitioning. The hardness estimation module 145 may also determine the sufficient sample size to produce the estimate with the desired accuracy.

[0101] In some example embodiments, the proposed solution may have other potential applications beyond just estimating hardness. For instance, it may be utilized to evaluate the performance of new heuristics and encoding techniques on challenging benchmarks. By applying the partitioning method and observing how changes to the SAT solver, problem encoding, or solving technique affect the "decomposition hardness" , one can make informed decisions on whether to adopt or discard a particular change.

[0102] By implementing the example embodiments of FIG. 5, a SAT instance can be partitioned into a set of simpler subproblems, and thus an amount of time to solve the SAT  instance can be can estimated using the estimation of an amount of time to solve samples of the set of the simpler subproblems. In some embodiments, hyperparameters can be determined for improving the performance of the SAT solver.

[0103] In some example embodiments, an apparatus capable of performing the method 500 may comprise means for performing the respective steps of the method 500. The means may be implemented in any suitable form. For example, the means may be implemented in a circuitry or software module.

[0104] In some example embodiments, the apparatus may comprise means for generating a SAT instance based on a miter circuit which is determined based on a first logical circuit and a second logical circuit, wherein the first logical circuit and the second logical circuit are to be performed LEC; means for determining a plurality of subproblems based on the SAT; means for determining an amount of time for solving a subset of the plurality of subproblems; and means for determining an estimation of time for solving the SAT instance based on the amount of time for solving the subset.

[0105] In some example embodiments, the miter circuit may indicate at least one logical difference between the first logical circuit and the second logical circuit. In some example embodiments, the means for generating a SAT instance may comprise means for selecting each of the plurality of subproblems to be solved within a same range of time length, respectively.

[0106] In some example embodiments, the means for determining the plurality of subproblems may further comprise means for partitioning a set of inputs of the miter circuit into a plurality of subsets of inputs; and means for combining inputs of each subset of inputs of the plurality of subsets of inputs using a predetermined function.

[0107] In some example embodiments, the means for determining the plurality of subproblems may further comprise means for obtaining different combinations with different polarities based on the combined inputs of each subset of inputs of the plurality of subsets of inputs; and means for determining the different combinations as the plurality of subproblems.

[0108] In some example embodiments, means for obtaining different combinations with different polarities may comprise means for determining the different combinations using a CNF which encodes the miter circuit.

[0109] In some example embodiments, the predetermined function may comprise one of  the following: an XOR function, a disjunction function, a bent function or a majority function.

[0110] In some example embodiments, the means for determining an estimation of time for solving the SAT instance may comprise means for selecting a predetermined number of subproblems out of the plurality of subproblems as the subset of subproblems in a random manner; means for obtaining, from a SAT solver, a plurality of time lengths for solving the subset of subproblems; and means for determining a sum of the plurality of time lengths as a hardness of the subset of subproblems.

[0111] In some example embodiments, the SAT solver may solve subproblems in the subset of subproblems at least partly in parallel.

[0112] In some example embodiments, the means for determining the estimation of time for solving the SAT instance may comprise means for determining an average time length for solving each subproblem in the subset of subproblems as an average hardness; and means for determining, based on the average hardness and a number of subproblems of the plurality of subproblems, a total time length as an estimation of a hardness of the SAT.

[0113] In some example embodiments, the means for determining the estimation of time for solving the SAT instance may further comprise means for in responsive to determining a number of the subset of subproblems exceeding a threshold number, determining, using at least one of a Chebyshev’s inequality and a Chernoff's bound, a second time length as the estimation of the hardness of the SAT instance.

[0114] In some example embodiments, the apparatus may further comprise means for displaying the estimation of time for solving the SAT instance to a user.

[0115] In some example embodiments, the subset of subproblems may be a first subset. The apparatus may further comprise means for selecting a second subset of the plurality of subproblems from the plurality of subproblems; means for determining a second estimation of time length for solving the second subset; means for determining the second estimation of time length for solving the second subset for using in a Bayesian optimization process; and means for determining, using the Bayesian optimization process, hyperparameters to be updated for the SAT solver.

[0116] In some example embodiments, the apparatus may further comprise means for displaying, to a user, the hyperparameters to be used by the SAT solver. In some example embodiments, the apparatus may further comprise means for transmitting the  hyperparameters to the SAT solver.

[0117] In some example embodiments, the apparatus may be associated with at least one of the following: a standalone software package, a cloud-based solution; an API; or a customized solution.

[0118] In some example embodiments, the apparatus may further comprise means for performing other steps in some embodiments of the method 500. In some example embodiments, the means comprises at least one processor and at least one memory including computer program code, the at least one memory and computer program code configured to, with the at least one processor, cause the performance of the apparatus.

[0119] Through discussion with reference to FIGs. 1A-5, one of the advantages of this solution is that it provides a predictable total time required to solve the entire partitioning. This is particularly useful for resource allocation and planning. Furthermore, the present disclosure can be used to improve SAT solver performance on particular LEC instances, which is a significant advantage for applications that rely on LEC, such as hardware design. Moreover, it can provide accurate estimates of problem hardness, predictable total solving time, and ability to improve the SAT solver performance.

[0120] A characteristic is that it employs a Monte Carlo method. This approach can utilize small samples to construct accurate estimates, while the low runtime variance on subproblems ensures that the estimates are predictable.

[0121] In some example embodiments, the proposed solution may be integrated with the Cube-and-Conquer (C&C) framework to replace standard reduction measures with fast and accurate hardness estimates. This integration can further enhance the C&C framework's efficiency and effectiveness in solving hard SAT instances.

[0122] FIG. 6 schematically illustrates a block diagram of an electronics device 600 in accordance with embodiments of the present disclosure. As indicated, the device 600 includes a central processing unit (CPU) 601, which can execute various appropriate actions and processing based on the computer program instructions stored in a read-only memory (ROM) 602 or the computer program instructions loaded into a random access memory (RAM) 603 from a storage unit 608. The RAM 603 also stores all kinds of programs and data required by operating the storage device 600. CPU 601, ROM 602 and RAM 603 are connected to each other via a bus 604, to which an input / output (I / O) interface 605 is also connected.

[0123] A plurality of components in the device 600 are connected to the I / O interface 605, comprising: an input unit 606, such as a keyboard, a mouse and the like; an output unit 607, such as various types of displays, loudspeakers and the like; a storage unit 608, such as a storage disk, an optical disk and the like; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver and the like. The communication unit 609 allows the device 600 to exchange information / data with other devices through computer networks such as Internet and / or various telecommunication networks.

[0124] Each procedure and processing described above, such as the method 500, can be executed by a processing unit 601. For example, in some embodiments, the method 500 can be implemented as computer software programs, which are tangibly included in a machine-readable medium, such as a storage unit 608. In some embodiments, the computer program can be partially or completely loaded and / or installed to the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded to the RAM 603 and executed by the CPU 601, one or more steps of the above described method 500 are implemented. Alternatively, in other embodiments, the CPU 601 may also be configured in any proper manner to implement the above process / method.

[0125] The present disclosure may be a method, a device, a system and / or a computer program product. The computer program product can include a computer-readable storage medium loaded with computer-readable program instructions thereon for executing various aspects of the present disclosure.

[0126] The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (anon-exhaustive list) of the computer readable storage medium would include: a portable computer diskette, a hard disk, a random access memory (RAM) , a read-only memory (ROM) , an erasable programmable read-only memory (EPROM or Flash memory) , a static random access memory (SRAM) , a portable compact disc read-only memory (CD-ROM) , a digital versatile disk (DVD) , a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination thereof. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely  propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable) , or electrical signals transmitted through a wire.

[0127] Computer readable program instructions described herein can be downloaded to respective computing / processing devices from a computer readable storage medium, or downloaded to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and / or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and / or edge servers. A network adapter card or network interface in each computing / processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing / processing device.

[0128] Computer readable program instructions for carrying out operations of the present disclosure may be assembly instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN) , or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider) . In some embodiments, by means of state information of the computer readable program instructions, an electronic circuitry including, for example, programmable logic circuitry (PLC) , field-programmable gate arrays (FPGA) , or programmable logic arrays (PLA) can be personalized to execute the computer readable program instructions, thereby implementing various aspects of the present disclosure.

[0129] Aspects of the present disclosure are described herein with reference to flowchart and / or block diagrams of methods, apparatus (systems) , and computer program products  according to embodiments of the present disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions.

[0130] These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which are executed via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and / or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function / act specified in the flowchart and / or block diagram block or blocks.

[0131] The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which are executed on the computer, other programmable apparatus, or other device implement the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0132] The flowchart and block diagrams illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, snippet, or portion of codes, which comprises one or more executable instructions for implementing the specified logical function (s) . In some alternative implementations, the functions noted in the block may be implemented in an order different from those illustrated in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flowchart illustration, and combinations of blocks in the block diagrams and / or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified  functions or acts, or by combinations of special purpose hardware and computer instructions.

[0133] Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are contained in the above discussions, these should not be construed as limitations on the scope of the present disclosure, but rather as descriptions of features that may be specific to particular embodiments. Certain features that are described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment may also be implemented in multiple embodiments separately or in any suitable sub-combination.

[0134] A person of ordinary skill in the art may be aware that, in combination with the examples described in the embodiments disclosed in this specification, units and algorithm steps can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed by hardware or software depends on particular applications and design constraints of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of this application.

[0135] It may be clearly understood by a person skilled in the art that, for the purpose of convenient and brief description, for a detailed working process of the foregoing system, apparatus, and unit, refer to a corresponding process in the foregoing method embodiment. Details are not described herein again.

[0136] In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiment is merely an example. For example, the unit division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication  connections may be implemented through some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.

[0137] The units described as separate parts may be or may not be physically separate, and parts displayed as units may be or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of the embodiments.

[0138] In addition, functional units in the embodiments of this application may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit.

[0139] When the functions are implemented in a form of a software functional unit and sold or used as an independent product, the functions may be stored in a computer readable storage medium. Based on such an understanding, the technical solutions in this application essentially, or the part contributing to the prior art, or some of the technical solutions may be implemented in a form of a software product. The computer software product is stored in a storage medium, and includes several instructions for instructing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or some of the steps of the methods described in the embodiments of this application. The foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (Read-Only Memory, ROM) , a random access memory (Random Access Memory, RAM) , a magnetic disk, or an optical disc.

[0140] The foregoing descriptions are merely specific implementations of this application, but are not intended to limit the protection scope of this application. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.

Claims

1.A method for estimation for solving a Boolean satisfiability problem (SAT) , comprising:generating a SAT instance based on a miter circuit which is determined based on a first logical circuit and a second logical circuit, wherein the first logical circuit and the second logical circuit are to be performed logical equivalence checking (LEC) ;determining a plurality of subproblems based on the SAT instance;determining an amount of time for solving a subset of the plurality of subproblems; anddetermining an estimation of time for solving the SAT instance based on the amount of time for solving the subset.2.The method of claim 1, wherein the miter circuit indicates at least one logical difference between the first logical circuit and the second logical circuit, and each of the plurality of subproblems is selected to be solved within a same range of time length, respectively.3.The method of claim 1 or 2, wherein determining the plurality of subproblems comprises:partitioning a set of inputs of the miter circuit into a plurality of subsets of inputs, wherein the plurality of subsets of inputs are non-overlapping; andcombining inputs of each subset of inputs of the plurality of subsets of inputs using a predetermined function.4.The method of claim 3, wherein determining the plurality of subproblems further comprises:obtaining different combinations with different polarities based on the combined inputs of each subset of inputs of the plurality of subsets of inputs; anddetermining the different combinations as the plurality of subproblems.5.The method of claim 4, wherein obtaining the different combinations comprises:determining the different combinations using a conjunctive normal form (CNF) which encodes the miter circuit.6.The method of any of claims 3-5, wherein the predetermined function comprises one of the following:an exclusive or (XOR) function;a disjunction function;a bent function; ora majority function.7.The method of any of claims 1-6, wherein determining the amount of time for solving the subset of the plurality of subproblems comprises:selecting a predetermined number of subproblems out of the plurality of subproblems as the subset of subproblems in a random manner;obtaining, from a SAT solver, a plurality of time lengths for solving the subset of subproblems; anddetermining a sum of the plurality of time lengths as a hardness of the subset of subproblems.8.The method of claim 7, wherein the SAT solver solves subproblems in the subset of subproblems at least partly in parallel.9.The method of claim 7 or 8, wherein determining the estimation of time for solving the SAT instance comprises:determining an average time length for solving each subproblem in the subset of subproblems as an average hardness; anddetermining, based on the average hardness and a number of subproblems of the plurality of subproblems, a total time length as an estimation of a hardness of the SAT.10.The method of claim 9, wherein determining the estimation of the hardness of the SAT instance further comprises:in responsive to determining a number of the subset of subproblems exceeding a threshold number, determining, using at least one of a Chebyshev’s inequality and a Chernoff's bound, a second time length as the estimation of the hardness of the SAT.11.The method of any of claims 1-10, further comprising:displaying the estimation of time for solving the SAT instance to a user.12.The method of any of claims 7-10, wherein the subset of subproblems is a first subset, and the method further comprises:selecting a second subset of the plurality of subproblems from the plurality of subproblems;determining a second estimation of time length for solving the second subset;determining the second estimation of time length for solving the second subset for using in a Bayesian optimization process; anddetermining, using the Bayesian optimization process, hyperparameters to be updated for the SAT solver.13.The method of claim 12, further comprising at least one of the following:displaying, to a user, the hyperparameters to be used by the SAT solver; ortransmitting the hyperparameters to the SAT solver.14.The method of any of claims 1-13, wherein the method is performed by a device associated with at least one of the following:a standalone software package;a cloud-based solution;an application programming interface (API) ; ora customized solution.15.An apparatus comprising:means for generating a Boolean satisfiability problem (SAT) instance based on a miter circuit which is determined based on a first logical circuit and a second logical circuit, wherein the first logical circuit and the second logical circuit are to be performed logical equivalence checking (LEC) ;means for determining a plurality of subproblems based on the SAT instance;means for determining an amount of time for solving a subset of the plurality of subproblems; andmeans for determining an estimation of time for solving the SAT instance based on the amount of time for solving the subset.16.An electronic device, comprising:a processor; anda memory coupled with the processor, the memory having instructions stored therein which, when executed by the processor, cause the electronic device to perform a method of any of claims 1-14.17.A computer program product being stored on a non-transitory computer storage medium and comprising machine-executable instructions which, when executed in a device, cause the device to perform a method of any of claims 1-14.

Citation Information

Patent Citations

  • Boolean satisfiability problem solving method and system

    CN112487740A

  • Method for solving SAT problem by combining CDCL solver and quantum annealing device

    CN114638162A

  • Boolean satisfiability (SAT) solver

    US10650109B1