Abstract:In this paper“merge”and“pos”functions which can be effectively implemented on modern vector machines are defined. By using the two functions the methods in which forward-if and search-if within do-loops are eliminated have been presented. The general method of vectorization for forward-loops is also discussed. Furthmore, an approach to simplify conditions (guards) of statements execution with the concept of Encapsulation Subgraph is proposed.