From 8bfd97d583e932973f0d363f8cfd695ecb5e002e Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Thu, 18 Oct 2018 13:51:21 +0100 Subject: Modernize code * use `using` instead of typdef * use `collection.empty()` instead of size * use `auto` if clear * use `emplace_back` where useful * use `nullptr` instead of NULL * use `override` if applicable * use `explicit` for constructor to avoid implicit conversion --- lib/Expr/ArrayExprOptimizer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Expr/ArrayExprOptimizer.h') diff --git a/lib/Expr/ArrayExprOptimizer.h b/lib/Expr/ArrayExprOptimizer.h index 7d895a48..40199821 100644 --- a/lib/Expr/ArrayExprOptimizer.h +++ b/lib/Expr/ArrayExprOptimizer.h @@ -24,8 +24,8 @@ namespace klee { enum ArrayOptimizationType { NONE, ALL, INDEX, VALUE }; -typedef std::map>> array2idx_ty; -typedef std::map, std::vector>> mapIndexOptimizedExpr_ty; +using array2idx_ty = std::map>>; +using mapIndexOptimizedExpr_ty = std::map, std::vector>>; class ExprOptimizer { private: -- cgit 1.4.1