use clang and a forloop