Electronic Notes in Theoretical Computer Science · 2011 · 19 citations · 11 references
ComputingComputer ScienceAlgorithmsCompilersProgramming LanguagesAlgorithm AnalysisControl-flow AnalysisData-flow AnalysisGeneric ProgrammingType CheckingType SystemsContainersGeneric AlgorithmsLoop HandlingPrecondition CheckingRuntime Initialization OverheadRuntime PerformanceTemplate-based Library Design
The C++ Standard Template Library is a widely-used library that is based on the generic programming paradigm. The usage of this library does not warrant bug-free programs. Furthermore, many new errors may arise from the inaccurate use of the generic programming paradigm, like dereferencing invalid iterators or misunderstanding remove-like algorithms. Most of the STL algorithms have preconditions which are checked neither at compilation time nor at runtime. Violation of such a precondition results in undefined behaviour. In this paper we propose solutions for a subset of these problems. The techniques we describe help programmers use generic algorithms on sorted intervals in a safer way. We present a new iterator adaptor type and tag as well as safe containers which keep track their iteratorsʼ validness. We measure the runtime overhead of these extensions.
11
Constructing Induction Rules for Deductive Synthesis Proofs
Alan Bundy, Lucas Dixon, Jeremy Gow et al. · Electronic Notes in Theoretical Computer Science · 2006 · 2.8K citations · Full text
Rex Jaeschke · ACM SIGPLAN Notices · 1998 · 544 citations · Full text
Douglas Gregor, Jaakko Järvi, Jeremy G. Siek et al. · 2006 · 194 citations
Ralf Hinze, Andres Löh · Science of Computer Programming · 2009 · 35 citations · Full text