Template-based Circuit Understanding

Size: px
Start display at page:

Download "Template-based Circuit Understanding"

Transcription

1 Template-based Circuit Understanding Adrià Gascón 1 Pramod Subramanyan 2 Bruno Dutertre 1 Ashish Tiwari 1 Dejan Jovanović 1 Sharad Malik 2 1 SRI International 2 Princeton University

2 Motivation Verify/reverse-engineer a digital circuit EXTRACT and UNDERSTAND subcomponents

3 Verify/reverse-engineer a digital circuit EXTRACT and UNDERSTAND subcomponents FSM extraction [Shi et. al.] Functional aggregation and matching [Subramanyan et. al.] Word identification and propagation [Li et. al.] Identification of repeated structures [Hansen et. al.]

4 Verify/reverse-engineer a digital circuit EXTRACT and UNDERSTAND subcomponents FSM extraction [Shi et. al.] Functional aggregation and matching [Subramanyan et. al.] Word identification and propagation [Li et. al.] Identification of repeated structures [Hansen et. al.] Most of these techniques do not the find the right permutations in word components

5 Verify/reverse-engineer a digital circuit EXTRACT and UNDERSTAND subcomponents

6 What does it mean to understand a combinational circuit C? Find an equivalent higher-level definition Flatten verilog netlist High-level Verilog Basic Boolean logic Boolean Logic + Words and operations on Words

7 What does it mean to understand a combinational circuit C? Find an equivalent higher-level definition Flatten verilog netlist High-level Verilog Basic Boolean logic Boolean Logic + Words and operations on Words Goal Given purely Boolean Formula C, produce equivalent Formula F over the theory of bitvectors.

8 A Combinational Boolean circuit C(I, O) is (a) a list of input Boolean variables I = x 1,..., x n and (b) a list O = f 1,..., f m of single-output Boolean formulas with inputs I. For x {0, 1} n, y {0, 1} m, by C( x, y) we denote that C produces output y on input x

9 The library aproach Check functional equivalence against a library of known components. C( x 1,..., x n, f 1,..., f m ) C lib ( x 1,..., x n, g 1,..., g m ) Fixed permutations σ, θ i {1,..., m}, x {0, 1} m : f θ(i) (σ( x)) = g i ( x)

10 The library aproach Check functional equivalence against a library of known components. C( x 1,..., x n, f 1,..., f m ) C lib ( x 1,..., x n, g 1,..., g m ) Fixed permutations σ, θ i {1,..., m}, x {0, 1} m : f θ(i) (σ( x)) = g i ( x) Limitation: Permutations σ, θ must be known.

11 Permutation-independent equivalence checking C( x 1,..., x n, f 1,..., f m ) C lib ( x 1,..., x n, g 1,..., g m ) To be determined permutations σ, θ σ, θ : i {1,..., m}, x {0, 1} m : f θ(i) (σ( x)) = g i ( x)

12 Permutation-independent equivalence checking C( x 1,..., x n, f 1,..., f m ) C lib ( x 1,..., x n, g 1,..., g m ) To be determined permutations σ, θ σ, θ : i {1,..., m}, x {0, 1} m : f θ(i) (σ( x)) = g i ( x) Limitation: Still too restrictive. 1. C usually does not have a standard functionality. 2. C s functionality must be fully matched.

13 Template-based synthesis Instead of a reference circuit, our approach requires a template of a specific form.

14 How do our templates look like? A template T of a combinational circuit C(I, O) is: A subset O T O, a partition I = (I C n i=1 (W i)), and a conjuntion of guarded assignments of the form a i : ψ i (I C ) ( θ(o T ) := φ i (σ(w i1 ), τ(w i2 )) ) where ψ i is a to be determined assignment on I C, θ, σ, τ are to be determined permutations, and φ i is a binary function over words. i 1, i 2 {1,..., n}.

15 1. Circuit C(I, O) 2. Subset outputs := O 3. Partition I := control inputsa inputsb 4. Template with (a) To be determined assignments v1, v2 (b) To be determined permutations p, q (and (=> (value v1 control) (= outputs (bv-add (permute p inputsa) (permute q inputsb) ) ) ) (=> (value v2 control) (= outputs (ite (bv-slt (permute p inputsa) (permute q inputsb) ) (mk-bv 32 1) (mk-bv 32 0) ) ) ) )

16 1. Circuit C(I, O) 2. Subset outputs := O 3. Partition I := control inputsa inputsb 4. Template with (a) To be determined assignments v1, v2 (b) To be determined permutations p, q p, q, v1, v2 : x {0, 1} n, y {0, 1} m : C( x, y) T (p, q, v1, v2, x, y) (and (=> (value v1 control) (= outputs (bv-add (permute p inputsa) (permute q inputsb) ) ) ) (=> (value v2 control) (= outputs (ite (bv-slt (permute p inputsa) (permute q inputsb) ) (mk-bv 32 1) (mk-bv 32 0) ) ) ) )

17 Check validity of Boolean formulas over the theory of bit-vectors with two levels of quantification ( QF BV): x : C( x) y : A( x, y) 1. High-level preprocessing and simplifications [Wintersteiger et. al.] 2. Counterexample-refinement loop, similar to the approach used in 2QBF solvers [Ranjan et. al., Janota et. al.] 3. Functional signatures [Mohnke et. al.]

18 (1) Miniscoping: x : A B x : A x : B x : A B x : A x : B (2) Equality resolution: x : C( x) y : ( i (y i = x i ) B( y)) x : E( x) y : i ({y i x i })(B( y)) (3) Distinguishing signatures.

19 Distinguishing Signatures An output signature s out is a function s out : B n D such that, for every function f and permutation τ: s out (f (x 1,..., x n )) = s out (f (τ(x 1 ),..., τ(x n ))))

20 Distinguishing Signatures An output signature s out is a function s out : B n D such that, for every function f and permutation τ: s out (f (x 1,..., x n )) = s out (f (τ(x 1 ),..., τ(x n )))) σ, θ : i {1,..., m}, x {0, 1} m : f θ(i) (σ( x)) = g i ( x)

21 Distinguishing Signatures An output signature s out is a function s out : B n D such that, for every function f and permutation τ: s out (f (x 1,..., x n )) = s out (f (τ(x 1 ),..., τ(x n )))) σ, θ : i {1,..., m}, x {0, 1} m : f θ(i) (σ( x)) = g i ( x) x, y : s out (f x ) s out (g y ) θ(y) x

22 Distinguishing Signatures An output signature s out is a function s out : B n D such that, for every function f and permutation τ: s out (f (x 1,..., x n )) = s out (f (τ(x 1 ),..., τ(x n )))) σ, θ : i {1,..., m}, x {0, 1} m : f θ(i) (σ( x)) = g i ( x) θ(y) x x, y : s out (f x ) s out (g y ) θ(y) x

23 We consider one input signature and one output signature. Input dependency Output dependency Signatures can be computed independently in the circuit and the template.

24 Benchmarks (40 Sat/40 Unsat): Reverse engineering benchmarks generated from high-level (behavioral) Verilog using the Synopsys Compiler. Experiments From ISCAS, an academic processor implementation, and synthetic examples. ALUs, multipliers, shifters, counters... Tools: Yices Z3 Bloqqer + DepQBF Bloqqer + RareQs Bloqqer + skizzo Cir-CEGAR (Mini-SAT) Variants: (Yices format) (SMT2 format) (QDimacs) (QDimacs) (QDimacs) (QDimacs + top titeral) Considered two simple encodings for permutations Studied effect of preprocessing, encodings, and signatures

25 Conclusion and further work Yices and Z3 are sensitive to the encoding of permutations Preprocessing and signatures are harmless and crucial in many cases Benchmarks are available in SMT2, YICES, QBF and (soon) QCIR Just putting together two SAT/SMT solvers is not enough QDIMACS encoding is not suitable for this kind of synthesis Integrate signature computation in the Exist-Forall loop Compare to other synthesis algorithms

26 Questions? Comments? Suggestions?

27

28

29

Template-based circuit understanding

Template-based circuit understanding Template-based circuit understanding Adrià Gascón, Pramod Subramanyan, Bruno Dutertre, Ashish Tiwari Dejan Jovanović, Sharad Malik SRI International adria.gascon@sri.com, bruno@csl.sri.com, tiwari@csl.sri.com,

More information

COUNTEREXAMPLE-GUIDED MODEL SYNTHESIS

COUNTEREXAMPLE-GUIDED MODEL SYNTHESIS COUNTEREXAMPLE-GUIDED MODEL SYNTHESIS Mathias Preiner, Aina Niemetz and Armin Biere Institute for Formal Models and Verification (FMV) Johannes Kepler University, Linz, Austria http://fmv.jku.at/ TACAS

More information

PySMT: a Solver-Agnostic Library for Fast Prototyping of SMT-Based Algorithms

PySMT: a Solver-Agnostic Library for Fast Prototyping of SMT-Based Algorithms 1/14 PySMT: a Solver-Agnostic Library for Fast Prototyping of SMT-Based Algorithms Marco Gario and Andrea Micheli gario@fbk.eu Fondazione Bruno Kessler (FBK) University of Trento 2015-05-04 Interaction

More information

Simulation Graphs for Reverse Engineering

Simulation Graphs for Reverse Engineering Simulation Graphs for Reverse Engineering Mathias Soeken 1,2,4 Baruch Sterin 3 Rolf Drechsler 2,4 Robert Brayton 3 1 Faculty of Engineering, University of Freiburg, Freiburg, Germany 2 Faculty of Mathematics

More information

Challenging Problems for Yices

Challenging Problems for Yices Challenging Problems for Yices Bruno Dutertre, SRI International Deduction at Scale Seminar March, 2011 SMT Solvers at SRI 2000-2004: Integrated Canonizer and Solver (ICS) Based on Shostak s method + a

More information

Efficiently Solving Quantified Bit-Vector Formulas

Efficiently Solving Quantified Bit-Vector Formulas FMSD manuscript No. (will be inserted by the editor) Efficiently Solving Quantified Bit-Vector Formulas Christoph M. Wintersteiger Youssef Hamadi Leonardo de Moura Received: date / Accepted: date Abstract

More information

CAQE: A Certifying QBF Solver

CAQE: A Certifying QBF Solver CAQE: A Certifying QBF Solver Markus N. Rabe University of California, Berkeley rabe@berkeley.edu Leander Tentrup Saarland University tentrup@cs.uni-saarland.de Abstract We present a new CEGAR-based algorithm

More information

Yices 1.0: An Efficient SMT Solver

Yices 1.0: An Efficient SMT Solver Yices 1.0: An Efficient SMT Solver AFM 06 Tutorial Leonardo de Moura (joint work with Bruno Dutertre) {demoura, bruno}@csl.sri.com. Computer Science Laboratory SRI International Menlo Park, CA Yices: An

More information

Satisfiability Modulo Theories. DPLL solves Satisfiability fine on some problems but not others

Satisfiability Modulo Theories. DPLL solves Satisfiability fine on some problems but not others DPLL solves Satisfiability fine on some problems but not others DPLL solves Satisfiability fine on some problems but not others Does not do well on proving multipliers correct pigeon hole formulas cardinality

More information

Decision Procedures in the Theory of Bit-Vectors

Decision Procedures in the Theory of Bit-Vectors Decision Procedures in the Theory of Bit-Vectors Sukanya Basu Guided by: Prof. Supratik Chakraborty Department of Computer Science and Engineering, Indian Institute of Technology, Bombay May 1, 2010 Sukanya

More information

Turbo-Charging Lemmas on Demand with Don t Care Reasoning

Turbo-Charging Lemmas on Demand with Don t Care Reasoning Turbo-Charging Lemmas on Demand with Don t Care Reasoning Aina Niemetz, Mathias Preiner and Armin Biere Institute for Formal Models and Verification (FMV) Johannes Kepler University, Linz, Austria http://fmv.jku.at/

More information

Network Verification: Reflections from Electronic Design Automation (EDA)

Network Verification: Reflections from Electronic Design Automation (EDA) Network Verification: Reflections from Electronic Design Automation (EDA) Sharad Malik Princeton University MSR Faculty Summit: 7/8/2015 $4 Billion EDA industry EDA Consortium $350 Billion Semiconductor

More information

COUNTEREXAMPLE-GUIDED MODEL SYNTHESIS

COUNTEREXAMPLE-GUIDED MODEL SYNTHESIS COUNTEREXAMPLE-GUIDED MODEL SYNTHESIS Mathias Preiner, Aina Niemetz and Armin Biere Johannes Kepler University Stanford University SMT Workshop July 22-23, 2017 Heidelberg, Germany Introduction Counterexample-Guided

More information

LEARNING TO INSTANTIATE QUANTIFIERS

LEARNING TO INSTANTIATE QUANTIFIERS LEARNING TO INSTANTIATE QUANTIFIERS Armin Biere 1 joint work with Mathias Preiner 1,2, Aina Niemetz 1,2 TACAS 17, SMT 17, PhD Thesis Mathias Preiner in 2017 1 Johannes Kepler University Linz 2 Stanford

More information

COUNTEREXAMPLE-GUIDED MODEL SYNTHESIS

COUNTEREXAMPLE-GUIDED MODEL SYNTHESIS COUNTEREXAMPLE-GUIDED MODEL SYNTHESIS Mathias Preiner?y, Aina Niemetz?y and Armin Biere?? Johannes Kepler University y Stanford University SMT Workshop July 22-23, 2017 Heidelberg, Germany Introduction

More information

Solving QBF with Counterexample Guided Refinement

Solving QBF with Counterexample Guided Refinement Solving QBF with Counterexample Guided Refinement Mikoláš Janota 1, William Klieber 3, Joao Marques-Silva 1,2, and Edmund Clarke 3 1 IST/INESC-ID, Lisbon, Portugal 2 University College Dublin, Ireland

More information

Program Synthesis Using Dual Interpretation

Program Synthesis Using Dual Interpretation Program Synthesis Using Dual Interpretation Ashish Tiwari, Adrià Gascón, and Bruno Dutertre SRI International, Menlo Park, CA, USA. Abstract. We present an approach to component-based program synthesis

More information

Skolem Function Continuation for Quantified Boolean Formulas

Skolem Function Continuation for Quantified Boolean Formulas Skolem Function Continuation for Quantified Boolean Formulas Katalin Fazekas 1, Marijn J. H. Heule 2, Martina Seidl 1, Armin Biere 1 1 Institute for Formal Models and Verification, JKU Linz, Austria 2

More information

OpenSMT2. A Parallel, Interpolating SMT Solver. Antti Hyvärinen, Matteo Marescotti, Leonardo Alt, Sepideh Asadi, and Natasha Sharygina

OpenSMT2. A Parallel, Interpolating SMT Solver. Antti Hyvärinen, Matteo Marescotti, Leonardo Alt, Sepideh Asadi, and Natasha Sharygina OpenSMT2 A Parallel, Interpolating SMT Solver Antti Hyvärinen, Matteo Marescotti, Leonardo Alt, Sepideh Asadi, and Natasha Sharygina Why another SMT solver? Model checking OpenSMT Interpolation Parallel

More information

Motivation. CS389L: Automated Logical Reasoning. Lecture 17: SMT Solvers and the DPPL(T ) Framework. SMT solvers. The Basic Idea.

Motivation. CS389L: Automated Logical Reasoning. Lecture 17: SMT Solvers and the DPPL(T ) Framework. SMT solvers. The Basic Idea. Motivation Lecture 17: SMT rs and the DPPL(T ) Framework şıl Dillig n previous lectures, we looked at decision procedures for conjunctive formulas in various first-order theories This lecture: How to handle

More information

Verification of Fault-Tolerant Protocols with Sally

Verification of Fault-Tolerant Protocols with Sally Verification of Fault-Tolerant Protocols with Sally Bruno Dutertre, Dejan Jovanović, and Jorge A. Navas Computer Science Laboratory, SRI International Abstract. Sally is a model checker for infinite-state

More information

Blocked Literals are Universal

Blocked Literals are Universal Blocked Literals are Universal Marijn J.H. Heule 1, Martina Seidl 2, and Armin Biere 2 1 Department of Computer Science, The University of Texas at Austin, USA marijn@cs.utexas.edu 2 Institute for Formal

More information

Minimum Satisfying Assignments for SMT. Işıl Dillig, Tom Dillig Ken McMillan Alex Aiken College of William & Mary Microsoft Research Stanford U.

Minimum Satisfying Assignments for SMT. Işıl Dillig, Tom Dillig Ken McMillan Alex Aiken College of William & Mary Microsoft Research Stanford U. Minimum Satisfying Assignments for SMT Işıl Dillig, Tom Dillig Ken McMillan Alex Aiken College of William & Mary Microsoft Research Stanford U. 1 / 20 Satisfiability Modulo Theories (SMT) Today, SMT solvers

More information

Yices 2.2. Bruno Dutertre. Computer Science Laboratory, SRI International, 333 Ravenswood Avenue, Menlo Park, CA 94025, USA

Yices 2.2. Bruno Dutertre. Computer Science Laboratory, SRI International, 333 Ravenswood Avenue, Menlo Park, CA 94025, USA Yices 2.2 Bruno Dutertre Computer Science Laboratory, SRI International, 333 Ravenswood Avenue, Menlo Park, CA 94025, USA bruno@csl.sri.com Abstract. Yices is an SMT solver developed by SRI International.

More information

Decision Procedures. An Algorithmic Point of View. Bit-Vectors. D. Kroening O. Strichman. Version 1.0, ETH/Technion

Decision Procedures. An Algorithmic Point of View. Bit-Vectors. D. Kroening O. Strichman. Version 1.0, ETH/Technion Decision Procedures An Algorithmic Point of View Bit-Vectors D. Kroening O. Strichman ETH/Technion Version 1.0, 2007 Part VI Bit-Vectors Outline 1 Introduction to Bit-Vector Logic 2 Syntax 3 Semantics

More information

Yices 1.0: An Efficient SMT Solver

Yices 1.0: An Efficient SMT Solver Yices 1.0: An Efficient SMT Solver SMT-COMP 06 Leonardo de Moura (joint work with Bruno Dutertre) {demoura, bruno}@csl.sri.com. Computer Science Laboratory SRI International Menlo Park, CA Yices: An Efficient

More information

Generating Tests for Detecting Faults in Feature Models

Generating Tests for Detecting Faults in Feature Models Generating Tests for Detecting Faults in Feature Models Paolo Arcaini 1, Angelo Gargantini 2, Paolo Vavassori 2 1 Charles University in Prague, Czech Republic 2 University of Bergamo, Italy Outline Feature

More information

2QBF: Challenges and Solutions

2QBF: Challenges and Solutions 2QBF: Challenges and Solutions Valeriy Balabanov 1(B), Jie-Hong Roland Jiang 2, Christoph Scholl 3, Alan Mishchenko 4, and Robert K. Brayton 4 1 Calypto Systems Division, Mentor Graphics, Fremont, USA

More information

Automation in Cryptology

Automation in Cryptology Automation in Cryptology Ashish Tiwari Abstract Inspired by the recent work on sketching-based synthesis of programs [SLRBE05, SLTB + 06], we have developed a language for specifying sketches, or partially

More information

Deductive Methods, Bounded Model Checking

Deductive Methods, Bounded Model Checking Deductive Methods, Bounded Model Checking http://d3s.mff.cuni.cz Pavel Parízek CHARLES UNIVERSITY IN PRAGUE faculty of mathematics and physics Deductive methods Pavel Parízek Deductive Methods, Bounded

More information

Solving QBF with Counterexample Guided Refinement

Solving QBF with Counterexample Guided Refinement Solving QBF with Counterexample Guided Refinement Mikoláš Janota 1, William Klieber 3, Joao Marques-Silva 1,2, and Edmund Clarke 3 1 IST/INESC-ID, Lisbon, Portugal 2 University College Dublin, Ireland

More information

An Introduction to Satisfiability Modulo Theories

An Introduction to Satisfiability Modulo Theories An Introduction to Satisfiability Modulo Theories Philipp Rümmer Uppsala University Philipp.Ruemmer@it.uu.se February 13, 2019 1/28 Outline From theory... From DPLL to DPLL(T) Slides courtesy of Alberto

More information

Lemmas on Demand for Lambdas

Lemmas on Demand for Lambdas Lemmas on Demand for Lambdas Mathias Preiner, Aina Niemetz and Armin Biere Institute for Formal Models and Verification (FMV) Johannes Kepler University, Linz, Austria http://fmv.jku.at/ DIFTS Workshop

More information

Symbolic and Concolic Execution of Programs

Symbolic and Concolic Execution of Programs Symbolic and Concolic Execution of Programs Information Security, CS 526 Omar Chowdhury 10/7/2015 Information Security, CS 526 1 Reading for this lecture Symbolic execution and program testing - James

More information

A Tour of CVC4. Tim King

A Tour of CVC4. Tim King A Tour of CVC4 Morgan Deters mdeters@cs.nyu.edu Cesare Tinelli cesare-tinelli@uiowa.edu Tim King tim.king@imag.fr Andrew Reynolds andrew.reynolds@epfl.ch Clark Barrett barrett@cs.nyu.edu ÉC O L E P O L

More information

Finite Model Generation for Isabelle/HOL Using a SAT Solver

Finite Model Generation for Isabelle/HOL Using a SAT Solver Finite Model Generation for / Using a SAT Solver Tjark Weber webertj@in.tum.de Technische Universität München Winterhütte, März 2004 Finite Model Generation for / p.1/21 is a generic proof assistant: Highly

More information

Integrating a SAT Solver with Isabelle/HOL

Integrating a SAT Solver with Isabelle/HOL Integrating a SAT Solver with / Tjark Weber (joint work with Alwen Tiu et al.) webertj@in.tum.de First Munich-Nancy Workshop on Decision Procedures for Theorem Provers March 6th & 7th, 2006 Integrating

More information

Clause Sharing and Partitioning for Cloud-Based SMT Solving

Clause Sharing and Partitioning for Cloud-Based SMT Solving Università della Svizzera italiana Facoltà di scienze informatiche Clause Sharing and Partitioning for Cloud-Based SMT Solving Matteo Marescotti, Antti E. J. Hyvärinen, and Natasha Sharygina Università

More information

HECTOR: Formal System-Level to RTL Equivalence Checking

HECTOR: Formal System-Level to RTL Equivalence Checking ATG SoC HECTOR: Formal System-Level to RTL Equivalence Checking Alfred Koelbl, Sergey Berezin, Reily Jacoby, Jerry Burch, William Nicholls, Carl Pixley Advanced Technology Group Synopsys, Inc. June 2008

More information

Introduction. Preliminaries. Original IC3. Tree-IC3. IC3 on Control Flow Automata. Conclusion

Introduction. Preliminaries. Original IC3. Tree-IC3. IC3 on Control Flow Automata. Conclusion .. Introduction Preliminaries Original IC3 Tree-IC3 IC3 on Control Flow Automata Conclusion 2 of 22 Lifting IC3 to Control Flow Automata Tim Lange tim.lange@cs.rwth-aachen.de Introduction Preliminaries

More information

Formally Certified Satisfiability Solving

Formally Certified Satisfiability Solving SAT/SMT Proof Checking Verifying SAT Solver Code Future Work Computer Science, The University of Iowa, USA April 23, 2012 Seoul National University SAT/SMT Proof Checking Verifying SAT Solver Code Future

More information

QBF Gallery 2014: The QBF Competition at the FLoC 2014 Olympic Games

QBF Gallery 2014: The QBF Competition at the FLoC 2014 Olympic Games Journal on Satisfiability, Boolean Modeling and Computation 9 (206) 87-206 QBF Gallery 204: The QBF Competition at the FLoC 204 Olympic Games Mikoláš Janota SAT Group INESC-ID Lisboa Portugal Charles Jordan

More information

QBF Gallery 2014: The QBF Competition at the FLoC 2014 Olympic Games

QBF Gallery 2014: The QBF Competition at the FLoC 2014 Olympic Games Journal on Satisfiability, Boolean Modeling and Computation (204) XXX QBF Gallery 204: The QBF Competition at the FLoC 204 Olympic Games Mikoláš Janota SAT Group INESC-ID Lisboa, Portugal Charles Jordan

More information

Combining Induction, Deduction and Structure for Synthesis

Combining Induction, Deduction and Structure for Synthesis Combining Induction, Deduction and Structure for Synthesis Sanjit A. Seshia Associate Professor EECS Department UC Berkeley Students: S. Jha, B. Brady, J. Kotker, W.Li Collaborators: R. Bryant, S. Gulwani,

More information

Circuit versus CNF Reasoning for Equivalence Checking

Circuit versus CNF Reasoning for Equivalence Checking Circuit versus CNF Reasoning for Equivalence Checking Armin Biere Institute for Formal Models and Verification Johannes Kepler University Linz, Austria Equivalence Checking Workshop 25 Madonna di Campiglio,

More information

OpenSMT2: An SMT Solver for Multi-Core and Cloud Computing

OpenSMT2: An SMT Solver for Multi-Core and Cloud Computing OpenSMT2: An SMT Solver for Multi-Core and Cloud Computing Antti E. J. Hyvärinen, Matteo Marescotti, Leonardo Alt, and Natasha Sharygina Faculty of Informatics, University of Lugano Via Giuseppe Buffi

More information

Topics. Verilog. Verilog vs. VHDL (2) Verilog vs. VHDL (1)

Topics. Verilog. Verilog vs. VHDL (2) Verilog vs. VHDL (1) Topics Verilog Hardware modeling and simulation Event-driven simulation Basics of register-transfer design: data paths and controllers; ASM charts. High-level synthesis Initially a proprietary language,

More information

Combining forces to solve Combinatorial Problems, a preliminary approach

Combining forces to solve Combinatorial Problems, a preliminary approach Combining forces to solve Combinatorial Problems, a preliminary approach Mohamed Siala, Emmanuel Hebrard, and Christian Artigues Tarbes, France Mohamed SIALA April 2013 EDSYS Congress 1 / 19 Outline Context

More information

Template-based Parameterized Synthesis of Uniform Instruction-Level Abstractions for SoC Verification

Template-based Parameterized Synthesis of Uniform Instruction-Level Abstractions for SoC Verification 1 Template-based Parameterized Synthesis of Uniform Instruction-Level Abstractions for SoC Verification Pramod Subramanyan, Bo-Yuan Huang, Yakir Vizel, Aarti Gupta, and Sharad Malik Abstract Modern system-on-chip

More information

Abstraction Techniques for Word-level RTL Designs

Abstraction Techniques for Word-level RTL Designs Abstraction Techniques for Word-level RTL Designs MTP Stage I Report Submitted in partial fulfillment of the requirements for the degree of Master of Technology by Sukanya Basu Roll No : 09305908 under

More information

Automated Testing and Debugging of SAT and QBF Solvers

Automated Testing and Debugging of SAT and QBF Solvers Automated Testing and Debugging of SAT and QBF Solvers JKU Linz, Austria 13 th International Conference on Theory and Applications of Satisfiability Testing July 13, 2010 Edinburgh, Scotland, UK Outline

More information

PLDI 2016 Tutorial Automata-Based String Analysis

PLDI 2016 Tutorial Automata-Based String Analysis PLDI 2016 Tutorial Automata-Based String Analysis Tevfik Bultan, Abdulbaki Aydin, Lucas Bang Verification Laboratory http://vlab.cs.ucsb.edu Department of Computer Science Common Usages of Strings } Input

More information

Integration of SMT Solvers with ITPs There and Back Again

Integration of SMT Solvers with ITPs There and Back Again Integration of SMT Solvers with ITPs There and Back Again Sascha Böhme and University of Sheffield 7 May 2010 1 2 Features: SMT-LIB vs. Yices Translation Techniques Caveats 3 4 Motivation Motivation System

More information

Combinational Equivalence Checking

Combinational Equivalence Checking Combinational Equivalence Checking Virendra Singh Associate Professor Computer Architecture and Dependable Systems Lab. Dept. of Electrical Engineering Indian Institute of Technology Bombay viren@ee.iitb.ac.in

More information

Pluggable SAT-Solvers for SMT-Solvers

Pluggable SAT-Solvers for SMT-Solvers Pluggable SAT-Solvers for SMT-Solvers Bas Schaafsma DISI, University of Trento & Fondazione Bruno Kessler May 29, 2013 http://mathsat.fbk.eu/ 1 The SAT/SMT problem Applications of SAT/SMT-Solvers Motivation

More information

Local Two-Level And-Inverter Graph Minimization without Blowup

Local Two-Level And-Inverter Graph Minimization without Blowup Local Two-Level And-Inverter Graph Minimization without Blowup Robert Brummayer and Armin Biere Institute for Formal Models and Verification Johannes Kepler University Linz, Austria {robert.brummayer,

More information

VS 3 : SMT Solvers for Program Verification

VS 3 : SMT Solvers for Program Verification VS 3 : SMT Solvers for Program Verification Saurabh Srivastava 1,, Sumit Gulwani 2, and Jeffrey S. Foster 1 1 University of Maryland, College Park, {saurabhs,jfoster}@cs.umd.edu 2 Microsoft Research, Redmond,

More information

18733: Applied Cryptography S17. Mini Project. due April 19, 2017, 11:59pm EST. φ(x) := (x > 5) (x < 10)

18733: Applied Cryptography S17. Mini Project. due April 19, 2017, 11:59pm EST. φ(x) := (x > 5) (x < 10) 18733: Applied Cryptography S17 Mini Project due April 19, 2017, 11:59pm EST 1 SMT Solvers 1.1 Satisfiability Modulo Theory SMT (Satisfiability Modulo Theories) is a decision problem for logical formulas

More information

Improving Local Search for Bit-Vector Logics in SMT with Path Propagation

Improving Local Search for Bit-Vector Logics in SMT with Path Propagation Improving Local Search for Bit-Vector Logics in SMT with Path Propagation Aina Niemetz, Mathias Preiner, Andreas Fröhlich and Armin Biere Institute for Formal Models and Verification (FMV) Johannes Kepler

More information

23. Digital Baseband Design

23. Digital Baseband Design 23. Digital Baseband Design Algorithm-to-VLSI Circuit Refinement (Floating Point) Tradeoff (SNR Loss, BER) (Fixed Point) VHDL, Verilog VHDL, Verilog Memory Control For I=0 to I=15 Sum = Sum + array[i]

More information

Using Higher Levels of Abstraction for Solving Optimization Problems by Boolean Satisfiability

Using Higher Levels of Abstraction for Solving Optimization Problems by Boolean Satisfiability Using Higher Levels of Abstraction for Solving Optimization Problems by Boolean Satisfiability Robert Wille Daniel Große Mathias Soeken Rolf Drechsler Institute of Computer Science University of Bremen,

More information

A Decision Procedure for (Co)datatypes in SMT Solvers. Andrew Reynolds Jasmin Christian Blanchette IJCAI sister conference track, July 12, 2016

A Decision Procedure for (Co)datatypes in SMT Solvers. Andrew Reynolds Jasmin Christian Blanchette IJCAI sister conference track, July 12, 2016 A Decision Procedure for (Co)datatypes in SMT Solvers Andrew Reynolds Jasmin Christian Blanchette IJCAI sister conference track, July 12, 2016 Satisfiability Modulo Theories (SMT) Solvers Software Verification

More information

Combinational Equivalence Checking Using Incremental SAT Solving, Output Ordering, and Resets

Combinational Equivalence Checking Using Incremental SAT Solving, Output Ordering, and Resets ASP-DAC 2007 Yokohama Combinational Equivalence Checking Using Incremental SAT Solving, Output ing, and Resets Stefan Disch Christoph Scholl Outline Motivation Preliminaries Our Approach Output ing Heuristics

More information

Synthesis of Loop-free Programs

Synthesis of Loop-free Programs Synthesis of Loop-free Programs Sumit Gulwani Microsoft Research, Redmond sumitg@microsoft.com Susmit Jha University of California, Berkeley jha@eecs.berkeley.edu Ashish Tiwari SRI International, Menlo

More information

Translation validation: from Simulink to C

Translation validation: from Simulink to C Translation validation: from Simulink to C Ofer Strichman Michael Ryabtsev Technion, Haifa, Israel. Email: ofers@ie.technion.ac.il, michaelr@cs.technion.ac.il Abstract. Translation validation is a technique

More information

Lecture Notes on Real-world SMT

Lecture Notes on Real-world SMT 15-414: Bug Catching: Automated Program Verification Lecture Notes on Real-world SMT Matt Fredrikson Ruben Martins Carnegie Mellon University Lecture 15 1 Introduction In the previous lecture we studied

More information

Efficiently Solving Bit-Vector Problems Using Model Checkers

Efficiently Solving Bit-Vector Problems Using Model Checkers Efficiently Solving Bit-Vector Problems Using Model Checkers Institute for Formal Models and Verification Johannes Kepler University, Linz, Austria http://fmv.jku.at SMT 2013 July 8 - July 9, 2013 Helsinki,

More information

Model Checking Software Programs with. First Order Logic Specifications using AIG Solvers

Model Checking Software Programs with. First Order Logic Specifications using AIG Solvers Model Checking Software Programs with 1 First Order Logic Specifications using AIG Solvers Fadi A. Zaraket, Mohamad Noureddine arxiv:1409.6825v1 [cs.se] 24 Sep 2014 Abstract Static verification techniques

More information

Reduction of nite linear CSPs to SAT using dierent encod

Reduction of nite linear CSPs to SAT using dierent encod Reduction of nite linear CSPs to SAT using dierent encodings Mirko Stojadinovi mirkos@matf.bg.ac.rs Department of Computer Science Faculty of Mathematics University of Belgrade Fifth Workshop on Formal

More information

The SMT-LIB Standard Version 2.0

The SMT-LIB Standard Version 2.0 The SMT-LIB Standard Version 2.0 Clark Barrett 1 Aaron Stump 2 Cesare Tinelli 2 1 New York University, barrett@cs.nyu.edu 2 University of Iowa, astump tinelli@cs.uiowa.edu Abstract The SMT-LIB initiative

More information

SAT Solvers: A Condensed History. Sharad Malik Princeton University COS 598d 3/1/2010

SAT Solvers: A Condensed History. Sharad Malik Princeton University COS 598d 3/1/2010 SAT Solvers: A Condensed History Sharad Malik Princeton University COS 598d 3/1/2010 Where are we today? Intractability of the problem no longer daunting Can regularly handle practical instances with millions

More information

Efficient SAT-based Boolean Matching for FPGA Technology Mapping

Efficient SAT-based Boolean Matching for FPGA Technology Mapping Efficient SAT-based Boolean Matching for FPGA Technology Mapping Sean Safarpour, Andreas Veneris Department of Electrical and Computer Engineering University of Toronto Toronto, ON, Canada {sean, veneris}@eecg.toronto.edu

More information

On the Quest for an Acyclic Graph

On the Quest for an Acyclic Graph On the Quest for an Acyclic Graph Mikoláš Janota 1 Radu Grigore 2 Vasco Manquinho 1 RCRA 2017, Bari 1 INESC-ID/IST, University of Lisbon, Portugal 2 School of Computing, University of Kent, UK Janota et

More information

Integration of SMT-LIB Support into Maple

Integration of SMT-LIB Support into Maple Integration of SMT-LIB Support into Maple SMT-CAS Integration Some SMT solvers presently incorporate computer algebra techniques in their theory solvers. Examples: verit [3], SMT-RAT [4] Alternate avenue

More information

Exploring Abstraction Techniques for Scalable Bit-Precise Verification of Embedded Software

Exploring Abstraction Techniques for Scalable Bit-Precise Verification of Embedded Software Exploring Abstraction Techniques for Scalable Bit-Precise Verification of Embedded Software Nannan He Dissertation submitted to the Faculty of Virginia Polytechnic Institute and State University in partial

More information

Bounded Model Checking with Parametric Data Structures

Bounded Model Checking with Parametric Data Structures Bounded Model Checking with Marc Herbstritt (joint work with Erika Ábrahám, Bernd Becker, Martin Steffen) www.avacs.org August 15 2006 4th International Workshop on Bounded Model Checking Context Automated

More information

Improving Coq Propositional Reasoning Using a Lazy CNF Conversion

Improving Coq Propositional Reasoning Using a Lazy CNF Conversion Using a Lazy CNF Conversion Stéphane Lescuyer Sylvain Conchon Université Paris-Sud / CNRS / INRIA Saclay Île-de-France FroCoS 09 Trento 18/09/2009 Outline 1 Motivation and background Verifying an SMT solver

More information

A Unified Proof System for QBF Preprocessing

A Unified Proof System for QBF Preprocessing A Unified Proof System for QBF Preprocessing Marijn J.H. Heule 1, Martina Seidl 2, and Armin Biere 2 1 Department of Computer Science, The University of Texas at Austin, USA marijn@cs.utexas.edu 2 Institute

More information

Evaluation of SAT like Proof Techniques for Formal Verification of Word Level Circuits

Evaluation of SAT like Proof Techniques for Formal Verification of Word Level Circuits Evaluation of SAT like Proof Techniques for Formal Verification of Word Level Circuits André Sülflow Ulrich Kühne Robert Wille Daniel Große Rolf Drechsler Institute of Computer Science University of Bremen

More information

Uninterpreted Function Abstraction and Refinement for Word-level Model Checking

Uninterpreted Function Abstraction and Refinement for Word-level Model Checking Uninterpreted Function Abstraction and Refinement for Word-level Model Checking Yen-Sheng Ho 1, Alan Mishchenko 1, Robert Brayton 1 1 Department of EECS, University of California, Berkeley, CA, USA {ysho,

More information

The SMT-LIB 2 Standard: Overview and Proposed New Theories

The SMT-LIB 2 Standard: Overview and Proposed New Theories 1 / 23 The SMT-LIB 2 Standard: Overview and Proposed New Theories Philipp Rümmer Oxford University Computing Laboratory philr@comlab.ox.ac.uk Third Workshop on Formal and Automated Theorem Proving and

More information

Simulating Circuit-Level Simplifications on CNF

Simulating Circuit-Level Simplifications on CNF Journal of Automated Reasoning manuscript No. (will be inserted by the editor) Simulating Circuit-Level Simplifications on CNF Matti Järvisalo Armin Biere Marijn Heule Received: date / Accepted: date Abstract

More information

Multi Domain Logic and its Applications to SAT

Multi Domain Logic and its Applications to SAT Multi Domain Logic and its Applications to SAT Tudor Jebelean RISC Linz, Austria Tudor.Jebelean@risc.uni-linz.ac.at Gábor Kusper Eszterházy Károly College gkusper@aries.ektf.hu Abstract We describe a new

More information

Abstractions and small languages in synthesis CS294: Program Synthesis for Everyone

Abstractions and small languages in synthesis CS294: Program Synthesis for Everyone Abstractions and small languages in synthesis CS294: Program Synthesis for Everyone Ras Bodik Emina Torlak Division of Computer Science University of California, Berkeley Today Today: we describe why high-level

More information

Lecture 2: Symbolic Model Checking With SAT

Lecture 2: Symbolic Model Checking With SAT Lecture 2: Symbolic Model Checking With SAT Edmund M. Clarke, Jr. School of Computer Science Carnegie Mellon University Pittsburgh, PA 15213 (Joint work over several years with: A. Biere, A. Cimatti, Y.

More information

MajorSat: A SAT Solver to Majority Logic

MajorSat: A SAT Solver to Majority Logic MajorSat: A SAT Solver to Majority Logic Speaker : Ching-Yi Huang Authors: Yu-Min Chou, Yung-Chih Chen *, Chun-Yao Wang, Ching-Yi Huang National Tsing Hua University, Taiwan * Yuan Ze University, Taiwan

More information

CDCL SAT Solvers. Joao Marques-Silva. Theory and Practice of SAT Solving Dagstuhl Workshop. April INESC-ID, IST, ULisbon, Portugal

CDCL SAT Solvers. Joao Marques-Silva. Theory and Practice of SAT Solving Dagstuhl Workshop. April INESC-ID, IST, ULisbon, Portugal CDCL SAT Solvers Joao Marques-Silva INESC-ID, IST, ULisbon, Portugal Theory and Practice of SAT Solving Dagstuhl Workshop April 2015 The Success of SAT Well-known NP-complete decision problem [C71] The

More information

SMT-Based Bounded Model Checking for Embedded ANSI-C Software. Lucas Cordeiro, Bernd Fischer, Joao Marques-Silva

SMT-Based Bounded Model Checking for Embedded ANSI-C Software. Lucas Cordeiro, Bernd Fischer, Joao Marques-Silva SMT-Based Bounded Model Checking for Embedded ANSI-C Software Lucas Cordeiro, Bernd Fischer, Joao Marques-Silva b.fischer@ecs.soton.ac.uk Bounded Model Checking (BMC) Basic Idea: check negation of given

More information

Andrew Reynolds Liana Hadarean

Andrew Reynolds Liana Hadarean 425,7 3!7441$ 89028147 30,7 #0, 7 9 209.&8 3 $ Andrew Reynolds Liana Hadarean July 15, 2010 1 . 34 0/ 020398 University of Iowa Andrew Reynolds, Cesare Tinelli, Aaron Stump Liana Hadarean, Yeting Ge, Clark

More information

Provably Optimal Test Cube Generation using Quantified Boolean Formula Solving

Provably Optimal Test Cube Generation using Quantified Boolean Formula Solving Provably Optimal Test Cube Generation using Quantified Boolean Formula Solving ASP-DAC 2013 Albert-Ludwigs-Universität Freiburg Matthias Sauer, Sven Reimer, Ilia Polian, Tobias Schubert, Bernd Becker Chair

More information

Research Collection. Formal background and algorithms. Other Conference Item. ETH Library. Author(s): Biere, Armin. Publication Date: 2001

Research Collection. Formal background and algorithms. Other Conference Item. ETH Library. Author(s): Biere, Armin. Publication Date: 2001 Research Collection Other Conference Item Formal background and algorithms Author(s): Biere, Armin Publication Date: 2001 Permanent Link: https://doi.org/10.3929/ethz-a-004239730 Rights / License: In Copyright

More information

arxiv: v3 [cs.dm] 24 Jun 2014

arxiv: v3 [cs.dm] 24 Jun 2014 Twenty-Five Comparators is Optimal when Sorting Nine Inputs (and Twenty-Nine for Ten) Michael Codish 1, Luís Cruz-Filipe 2, Michael Frank 1, and Peter Schneider-Kamp 2 1 Department of Computer Science,

More information

Traceability Analyses between Features and Assets in Software Product Lines

Traceability Analyses between Features and Assets in Software Product Lines entropy Article Traceability Analyses between Features and Assets in Software Product Lines Ganesh Khandu Narwane 1,, José A. Galindo 2,, Shankara Narayanan Krishna 3,, David Benavides 4,, Jean-Vivien

More information

8. Symbolic Trajectory Evaluation, Term Rewriting. Motivation for Symbolic Trajectory Evaluation

8. Symbolic Trajectory Evaluation, Term Rewriting. Motivation for Symbolic Trajectory Evaluation 8. Symbolic Trajectory Evaluation, Term Rewriting 1 8. Symbolic Trajectory Evaluation, Term Rewriting Jacob Abraham Department of Electrical and Computer Engineering The University of Texas at Austin Verification

More information

Verilog for High Performance

Verilog for High Performance Verilog for High Performance Course Description This course provides all necessary theoretical and practical know-how to write synthesizable HDL code through Verilog standard language. The course goes

More information

A Tale Of Two Solvers: Eager and Lazy Approaches to Bit-vectors

A Tale Of Two Solvers: Eager and Lazy Approaches to Bit-vectors A Tale Of Two Solvers: Eager and Lazy Approaches to Bit-vectors Liana Hadarean 1, Kshitij Bansal 1, Dejan Jovanović 3, Clark Barrett 1, and Cesare Tinelli 2 1 New York University 2 The University of Iowa

More information

Coupling Reverse Engineering and SAT to Tackle NP-Complete Arithmetic Circuitry Verification in O(# of gates)

Coupling Reverse Engineering and SAT to Tackle NP-Complete Arithmetic Circuitry Verification in O(# of gates) Coupling Reverse Engineering and SAT to Tackle NP-Complete Arithmetic Circuitry Verification in O(# of gates) Yi Diao*, Xing Wei*, Tak-Kei Lam** and Yu-Liang Wu* *Easy-Logic Technology Ltd., Hong Kong

More information

Embedded Software Verification Challenges and Solutions. Static Program Analysis

Embedded Software Verification Challenges and Solutions. Static Program Analysis Embedded Software Verification Challenges and Solutions Static Program Analysis Chao Wang chaowang@nec-labs.com NEC Labs America Princeton, NJ ICCAD Tutorial November 11, 2008 www.nec-labs.com 1 Outline

More information

A Constraint Satisfaction Approach for Programmable Logic Detailed Placement

A Constraint Satisfaction Approach for Programmable Logic Detailed Placement A Constraint Satisfaction Approach for Programmable Logic Detailed Placement Andrew Mihal and Steve Teig SAT 2013 THE BEST PATH FROM IDEAS TO PRODUCTION SILICON Programmable Logic Devices Programmability

More information

Unit 2: High-Level Synthesis

Unit 2: High-Level Synthesis Course contents Unit 2: High-Level Synthesis Hardware modeling Data flow Scheduling/allocation/assignment Reading Chapter 11 Unit 2 1 High-Level Synthesis (HLS) Hardware-description language (HDL) synthesis

More information