There is continuing interest in accurately predicting Worst Case Execution Time (WCET) of programs, particularly in embedded systems, where missed deadlines may cause critical failure. However, with the increase in battery-dependent systems, and the huge energy operational cost of big servers, optimal energy consumption becomes an additional and growing concern. In this paper, we utilize methodologies applied in the area of WCET to perform Worst Case Energy Consumption (WCEC) analysis. WCEC seeks to find a tight upper bound on the energy consumption of a program executed on an embedded platform, providing a guarantee that a program can operate within a defined energy budget. This work is the first to the best of our knowledge to extend such analysis to a higher level than the instruction set level, namely LLVM IR, and to bound the energy consumption of multi-threaded embedded programs.