// Generated by llvm2cpp - DO NOT MODIFY! #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace llvm; Module* makeLLVMModule(); int main(int argc, char**argv) { Module* Mod = makeLLVMModule(); verifyModule(*Mod, PrintMessageAction); PassManager PM; PM.add(createPrintModulePass(&outs())); PM.run(*Mod); return 0; } Module* makeLLVMModule() { // Module Construction Module* mod = new Module("tmp.2.bc", getGlobalContext()); mod->setDataLayout("e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"); mod->setTargetTriple("i386-mingw32"); // Type Definitions ArrayType* ArrayTy_0 = ArrayType::get(IntegerType::get(getGlobalContext(), 32), 307200); PointerType* PointerTy_1 = PointerType::get(ArrayTy_0, 0); ArrayType* ArrayTy_2 = ArrayType::get(IntegerType::get(getGlobalContext(), 32), 2073600); PointerType* PointerTy_3 = PointerType::get(ArrayTy_2, 0); ArrayType* ArrayTy_4 = ArrayType::get(IntegerType::get(getGlobalContext(), 8), 99); PointerType* PointerTy_5 = PointerType::get(ArrayTy_4, 0); ArrayType* ArrayTy_6 = ArrayType::get(IntegerType::get(getGlobalContext(), 8), 11); PointerType* PointerTy_7 = PointerType::get(ArrayTy_6, 0); ArrayType* ArrayTy_8 = ArrayType::get(IntegerType::get(getGlobalContext(), 8), 14); PointerType* PointerTy_9 = PointerType::get(ArrayTy_8, 0); ArrayType* ArrayTy_10 = ArrayType::get(IntegerType::get(getGlobalContext(), 8), 39); PointerType* PointerTy_11 = PointerType::get(ArrayTy_10, 0); ArrayType* ArrayTy_12 = ArrayType::get(IntegerType::get(getGlobalContext(), 8), 5); PointerType* PointerTy_13 = PointerType::get(ArrayTy_12, 0); ArrayType* ArrayTy_14 = ArrayType::get(IntegerType::get(getGlobalContext(), 8), 9); PointerType* PointerTy_15 = PointerType::get(ArrayTy_14, 0); ArrayType* ArrayTy_16 = ArrayType::get(IntegerType::get(getGlobalContext(), 8), 8); PointerType* PointerTy_17 = PointerType::get(ArrayTy_16, 0); ArrayType* ArrayTy_18 = ArrayType::get(IntegerType::get(getGlobalContext(), 8), 6); PointerType* PointerTy_19 = PointerType::get(ArrayTy_18, 0); ArrayType* ArrayTy_20 = ArrayType::get(IntegerType::get(getGlobalContext(), 8), 4); PointerType* PointerTy_21 = PointerType::get(ArrayTy_20, 0); ArrayType* ArrayTy_22 = ArrayType::get(IntegerType::get(getGlobalContext(), 8), 32); PointerType* PointerTy_23 = PointerType::get(ArrayTy_22, 0); std::vectorFuncTy_24_args; PointerType* PointerTy_25 = PointerType::get(IntegerType::get(getGlobalContext(), 8), 0); FuncTy_24_args.push_back(PointerTy_25); FunctionType* FuncTy_24 = FunctionType::get( /*Result=*/IntegerType::get(getGlobalContext(), 32), /*Params=*/FuncTy_24_args, /*isVarArg=*/false); std::vectorFuncTy_26_args; FuncTy_26_args.push_back(PointerTy_25); FunctionType* FuncTy_26 = FunctionType::get( /*Result=*/IntegerType::get(getGlobalContext(), 32), /*Params=*/FuncTy_26_args, /*isVarArg=*/true); std::vectorFuncTy_27_args; FunctionType* FuncTy_27 = FunctionType::get( /*Result=*/IntegerType::get(getGlobalContext(), 32), /*Params=*/FuncTy_27_args, /*isVarArg=*/false); std::vectorFuncTy_28_args; FuncTy_28_args.push_back(PointerTy_25); FuncTy_28_args.push_back(IntegerType::get(getGlobalContext(), 8)); FuncTy_28_args.push_back(IntegerType::get(getGlobalContext(), 32)); FuncTy_28_args.push_back(IntegerType::get(getGlobalContext(), 32)); FunctionType* FuncTy_28 = FunctionType::get( /*Result=*/Type::getVoidTy(getGlobalContext()), /*Params=*/FuncTy_28_args, /*isVarArg=*/false); std::vectorFuncTy_29_args; FuncTy_29_args.push_back(IntegerType::get(getGlobalContext(), 32)); FunctionType* FuncTy_29 = FunctionType::get( /*Result=*/IntegerType::get(getGlobalContext(), 32), /*Params=*/FuncTy_29_args, /*isVarArg=*/false); std::vectorFuncTy_30_args; FuncTy_30_args.push_back(IntegerType::get(getGlobalContext(), 32)); PointerType* PointerTy_31 = PointerType::get(PointerTy_25, 0); FuncTy_30_args.push_back(PointerTy_31); FunctionType* FuncTy_30 = FunctionType::get( /*Result=*/IntegerType::get(getGlobalContext(), 32), /*Params=*/FuncTy_30_args, /*isVarArg=*/false); ArrayType* ArrayTy_33 = ArrayType::get(Type::getDoubleTy(getGlobalContext()), 64); PointerType* PointerTy_32 = PointerType::get(ArrayTy_33, 0); ArrayType* ArrayTy_35 = ArrayType::get(PointerTy_25, 64); PointerType* PointerTy_34 = PointerType::get(ArrayTy_35, 0); PointerType* PointerTy_36 = PointerType::get(FuncTy_24, 0); std::vectorFuncTy_38_args; FunctionType* FuncTy_38 = FunctionType::get( /*Result=*/IntegerType::get(getGlobalContext(), 32), /*Params=*/FuncTy_38_args, /*isVarArg=*/true); PointerType* PointerTy_37 = PointerType::get(FuncTy_38, 0); PointerType* PointerTy_39 = PointerType::get(FuncTy_28, 0); PointerType* PointerTy_40 = PointerType::get(FuncTy_26, 0); PointerType* PointerTy_41 = PointerType::get(IntegerType::get(getGlobalContext(), 32), 0); PointerType* PointerTy_42 = PointerType::get(FuncTy_27, 0); PointerType* PointerTy_43 = PointerType::get(Type::getDoubleTy(getGlobalContext()), 0); PointerType* PointerTy_44 = PointerType::get(FuncTy_29, 0); // Function Declarations Function* func_puts = Function::Create( /*Type=*/FuncTy_24, /*Linkage=*/GlobalValue::ExternalLinkage, /*Name=*/"puts", mod); // (external, no body) func_puts->setCallingConv(CallingConv::C); AttrListPtr func_puts_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 1U; PAWI.Attrs = 0 | Attribute::NoCapture; Attrs.push_back(PAWI); PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); func_puts_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } func_puts->setAttributes(func_puts_PAL); Function* func_printf = Function::Create( /*Type=*/FuncTy_26, /*Linkage=*/GlobalValue::ExternalLinkage, /*Name=*/"printf", mod); // (external, no body) func_printf->setCallingConv(CallingConv::C); AttrListPtr func_printf_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 1U; PAWI.Attrs = 0 | Attribute::NoCapture; Attrs.push_back(PAWI); PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); func_printf_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } func_printf->setAttributes(func_printf_PAL); Function* func_clock = Function::Create( /*Type=*/FuncTy_27, /*Linkage=*/GlobalValue::ExternalLinkage, /*Name=*/"clock", mod); // (external, no body) func_clock->setCallingConv(CallingConv::C); AttrListPtr func_clock_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); func_clock_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } func_clock->setAttributes(func_clock_PAL); Function* func_llvm_memset_i32 = Function::Create( /*Type=*/FuncTy_28, /*Linkage=*/GlobalValue::ExternalLinkage, /*Name=*/"llvm.memset.i32", mod); // (external, no body) func_llvm_memset_i32->setCallingConv(CallingConv::C); AttrListPtr func_llvm_memset_i32_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 1U; PAWI.Attrs = 0 | Attribute::NoCapture; Attrs.push_back(PAWI); PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); func_llvm_memset_i32_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } func_llvm_memset_i32->setAttributes(func_llvm_memset_i32_PAL); Function* func_putchar = Function::Create( /*Type=*/FuncTy_29, /*Linkage=*/GlobalValue::ExternalLinkage, /*Name=*/"putchar", mod); // (external, no body) func_putchar->setCallingConv(CallingConv::C); AttrListPtr func_putchar_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); func_putchar_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } func_putchar->setAttributes(func_putchar_PAL); Function* func_main = Function::Create( /*Type=*/FuncTy_30, /*Linkage=*/GlobalValue::ExternalLinkage, /*Name=*/"main", mod); func_main->setCallingConv(CallingConv::C); AttrListPtr func_main_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 2U; PAWI.Attrs = 0 | Attribute::NoCapture; Attrs.push_back(PAWI); PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); func_main_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } func_main->setAttributes(func_main_PAL); Function* func_strtol = Function::Create( /*Type=*/FuncTy_38, /*Linkage=*/GlobalValue::ExternalLinkage, /*Name=*/"strtol", mod); // (external, no body) func_strtol->setCallingConv(CallingConv::C); AttrListPtr func_strtol_PAL; func_strtol->setAttributes(func_strtol_PAL); // Global Variable Declarations GlobalVariable* gvar_array_test_buf = new GlobalVariable(/*Module=*/*mod, /*Type=*/ArrayTy_0, /*isConstant=*/false, /*Linkage=*/GlobalValue::InternalLinkage, /*Initializer=*/0, // has initializer, specified below /*Name=*/"test_buf"); gvar_array_test_buf->setAlignment(32); GlobalVariable* gvar_array_test_buf2 = new GlobalVariable(/*Module=*/*mod, /*Type=*/ArrayTy_2, /*isConstant=*/false, /*Linkage=*/GlobalValue::InternalLinkage, /*Initializer=*/0, // has initializer, specified below /*Name=*/"test_buf2"); gvar_array_test_buf2->setAlignment(32); GlobalVariable* gvar_array__str = new GlobalVariable(/*Module=*/*mod, /*Type=*/ArrayTy_4, /*isConstant=*/true, /*Linkage=*/GlobalValue::PrivateLinkage, /*Initializer=*/0, // has initializer, specified below /*Name=*/".str"); gvar_array__str->setAlignment(1); GlobalVariable* gvar_array__str1 = new GlobalVariable(/*Module=*/*mod, /*Type=*/ArrayTy_6, /*isConstant=*/true, /*Linkage=*/GlobalValue::PrivateLinkage, /*Initializer=*/0, // has initializer, specified below /*Name=*/".str1"); gvar_array__str1->setAlignment(1); GlobalVariable* gvar_array__str2 = new GlobalVariable(/*Module=*/*mod, /*Type=*/ArrayTy_8, /*isConstant=*/true, /*Linkage=*/GlobalValue::PrivateLinkage, /*Initializer=*/0, // has initializer, specified below /*Name=*/".str2"); gvar_array__str2->setAlignment(1); GlobalVariable* gvar_array__str3 = new GlobalVariable(/*Module=*/*mod, /*Type=*/ArrayTy_10, /*isConstant=*/true, /*Linkage=*/GlobalValue::PrivateLinkage, /*Initializer=*/0, // has initializer, specified below /*Name=*/".str3"); gvar_array__str3->setAlignment(1); GlobalVariable* gvar_array__str4 = new GlobalVariable(/*Module=*/*mod, /*Type=*/ArrayTy_12, /*isConstant=*/true, /*Linkage=*/GlobalValue::PrivateLinkage, /*Initializer=*/0, // has initializer, specified below /*Name=*/".str4"); gvar_array__str4->setAlignment(1); GlobalVariable* gvar_array__str5 = new GlobalVariable(/*Module=*/*mod, /*Type=*/ArrayTy_14, /*isConstant=*/true, /*Linkage=*/GlobalValue::PrivateLinkage, /*Initializer=*/0, // has initializer, specified below /*Name=*/".str5"); gvar_array__str5->setAlignment(1); GlobalVariable* gvar_array__str6 = new GlobalVariable(/*Module=*/*mod, /*Type=*/ArrayTy_16, /*isConstant=*/true, /*Linkage=*/GlobalValue::PrivateLinkage, /*Initializer=*/0, // has initializer, specified below /*Name=*/".str6"); gvar_array__str6->setAlignment(1); GlobalVariable* gvar_array__str7 = new GlobalVariable(/*Module=*/*mod, /*Type=*/ArrayTy_18, /*isConstant=*/true, /*Linkage=*/GlobalValue::PrivateLinkage, /*Initializer=*/0, // has initializer, specified below /*Name=*/".str7"); gvar_array__str7->setAlignment(1); GlobalVariable* gvar_array__str8 = new GlobalVariable(/*Module=*/*mod, /*Type=*/ArrayTy_20, /*isConstant=*/true, /*Linkage=*/GlobalValue::PrivateLinkage, /*Initializer=*/0, // has initializer, specified below /*Name=*/".str8"); gvar_array__str8->setAlignment(1); GlobalVariable* gvar_array__str9 = new GlobalVariable(/*Module=*/*mod, /*Type=*/ArrayTy_22, /*isConstant=*/true, /*Linkage=*/GlobalValue::PrivateLinkage, /*Initializer=*/0, // has initializer, specified below /*Name=*/".str9"); gvar_array__str9->setAlignment(1); // Constant Definitions ConstantAggregateZero* const_array_45 = ConstantAggregateZero::get(ArrayTy_0); ConstantAggregateZero* const_array_46 = ConstantAggregateZero::get(ArrayTy_2); Constant* const_array_47 = ConstantArray::get(getGlobalContext(), "usage>test [-opts] file(s)\x0A \x83e\x83X\x83g\x83\x8B\x81[\x83`\x83\x93.\x0A -cN \x8E\x8E\x8Ds\x89\xF1\x90\x94\x82\xCC\x8Ew\x92\xE8\x0A -v \x8Co\x89\xDF\x83\x81\x83b\x83Z\x81[\x83W\x82\xF0\x91\x9D\x82\xE2\x82\xB7", true); Constant* const_array_48 = ConstantArray::get(getGlobalContext(), "\x09%s:start\x0A", true); Constant* const_array_49 = ConstantArray::get(getGlobalContext(), "\x09%s:end (%f)\x0A", true); Constant* const_array_50 = ConstantArray::get(getGlobalContext(), "\x0A\x83e\x83X\x83g\x8Cv\x91\xAA(%9d\x89\xF1\x8E\xC0\x8Ds\x82\xCC\x95\xBD\x8B\xCF) (\x83~\x83\x8A\x95b)\x0A", true); Constant* const_array_51 = ConstantArray::get(getGlobalContext(), "test", true); Constant* const_array_52 = ConstantArray::get(getGlobalContext(), ",%-21s ,", true); Constant* const_array_53 = ConstantArray::get(getGlobalContext(), "%12.3f,", true); Constant* const_array_54 = ConstantArray::get(getGlobalContext(), "%12s,", true); Constant* const_array_55 = ConstantArray::get(getGlobalContext(), "---", true); Constant* const_array_56 = ConstantArray::get(getGlobalContext(), "// \x8D\xC5\x93K\x89\xBB\x89\xF1\x94\xF0\x82\xCC\x88\xD3\x96\xA1\x82\xC8\x82\xB5\x8Fo\x97\xCD %d\x0A", true); ConstantInt* const_int32_57 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("1"), 10)); std::vector const_ptr_58_indices; ConstantInt* const_int32_59 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("0"), 10)); const_ptr_58_indices.push_back(const_int32_59); const_ptr_58_indices.push_back(const_int32_59); Constant* const_ptr_58 = ConstantExpr::getGetElementPtr(gvar_array__str, &const_ptr_58_indices[0], const_ptr_58_indices.size() ); ConstantInt* const_int8_60 = ConstantInt::get(getGlobalContext(), APInt(8, StringRef("45"), 10)); ConstantInt* const_int8_61 = ConstantInt::get(getGlobalContext(), APInt(8, StringRef("118"), 10)); ConstantInt* const_int8_62 = ConstantInt::get(getGlobalContext(), APInt(8, StringRef("99"), 10)); ConstantInt* const_int8_63 = ConstantInt::get(getGlobalContext(), APInt(8, StringRef("116"), 10)); ConstantInt* const_int32_64 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("2"), 10)); ConstantPointerNull* const_ptr_65 = ConstantPointerNull::get(PointerTy_25); ConstantInt* const_int8_66 = ConstantInt::get(getGlobalContext(), APInt(8, StringRef("0"), 10)); ConstantInt* const_int32_67 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("256"), 10)); ConstantInt* const_int32_68 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("4"), 10)); ConstantInt* const_int32_69 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("512"), 10)); ConstantInt* const_int32_70 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("8"), 10)); std::vector const_ptr_71_indices; const_ptr_71_indices.push_back(const_int32_59); const_ptr_71_indices.push_back(const_int32_59); Constant* const_ptr_71 = ConstantExpr::getGetElementPtr(gvar_array__str3, &const_ptr_71_indices[0], const_ptr_71_indices.size() ); ConstantInt* const_int32_72 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("10"), 10)); ConstantInt* const_int32_73 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("13"), 10)); ConstantInt* const_int32_74 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("640"), 10)); ConstantInt* const_int32_75 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("480"), 10)); ConstantInt* const_int32_76 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("1812433255"), 10)); std::vector const_ptr_77_indices; const_ptr_77_indices.push_back(const_int32_59); const_ptr_77_indices.push_back(const_int32_59); Constant* const_ptr_77 = ConstantExpr::getGetElementPtr(gvar_array__str4, &const_ptr_77_indices[0], const_ptr_77_indices.size() ); std::vector const_ptr_78_indices; const_ptr_78_indices.push_back(const_int32_59); const_ptr_78_indices.push_back(const_int32_59); Constant* const_ptr_78 = ConstantExpr::getGetElementPtr(gvar_array__str1, &const_ptr_78_indices[0], const_ptr_78_indices.size() ); ConstantFP* const_double_79 = ConstantFP::get(getGlobalContext(), APFloat(BitsToDouble(0x3FD5555555555555ULL) /* 3.333333e-001 */)); ConstantFP* const_double_80 = ConstantFP::get(getGlobalContext(), APFloat(-5.000000e-001)); ConstantFP* const_double_81 = ConstantFP::get(getGlobalContext(), APFloat(0.000000e+000)); ConstantFP* const_double_82 = ConstantFP::get(getGlobalContext(), APFloat(1.000000e+000)); ConstantInt* const_int32_83 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("16"), 10)); ConstantInt* const_int32_84 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("255"), 10)); ConstantInt* const_int32_85 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("24"), 10)); ConstantInt* const_int32_86 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("254"), 10)); ConstantInt* const_int32_87 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("-16777216"), 10)); ConstantInt* const_int32_88 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("16711680"), 10)); ConstantInt* const_int32_89 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("65280"), 10)); ConstantInt* const_int32_90 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("1920"), 10)); ConstantInt* const_int32_91 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("1080"), 10)); ConstantFP* const_double_92 = ConstantFP::get(getGlobalContext(), APFloat(BitsToDouble(0x3FDC71C71C71C71CULL) /* 4.444444e-001 */)); ConstantInt* const_int32_93 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("641"), 10)); ConstantInt* const_int32_94 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("1000"), 10)); ConstantFP* const_double_95 = ConstantFP::get(getGlobalContext(), APFloat(1.000000e+006)); std::vector const_ptr_96_indices; const_ptr_96_indices.push_back(const_int32_59); const_ptr_96_indices.push_back(const_int32_59); Constant* const_ptr_96 = ConstantExpr::getGetElementPtr(gvar_array__str2, &const_ptr_96_indices[0], const_ptr_96_indices.size() ); ConstantInt* const_int32_97 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("2073600"), 10)); std::vector const_ptr_98_indices; const_ptr_98_indices.push_back(const_int32_59); const_ptr_98_indices.push_back(const_int32_59); Constant* const_ptr_98 = ConstantExpr::getGetElementPtr(gvar_array__str5, &const_ptr_98_indices[0], const_ptr_98_indices.size() ); ConstantFP* const_double_99 = ConstantFP::get(getGlobalContext(), APFloat(1.000000e+003)); std::vector const_ptr_100_indices; const_ptr_100_indices.push_back(const_int32_59); const_ptr_100_indices.push_back(const_int32_59); Constant* const_ptr_100 = ConstantExpr::getGetElementPtr(gvar_array__str6, &const_ptr_100_indices[0], const_ptr_100_indices.size() ); std::vector const_ptr_101_indices; const_ptr_101_indices.push_back(const_int32_59); const_ptr_101_indices.push_back(const_int32_59); Constant* const_ptr_101 = ConstantExpr::getGetElementPtr(gvar_array__str7, &const_ptr_101_indices[0], const_ptr_101_indices.size() ); std::vector const_ptr_102_indices; const_ptr_102_indices.push_back(const_int32_59); const_ptr_102_indices.push_back(const_int32_59); Constant* const_ptr_102 = ConstantExpr::getGetElementPtr(gvar_array__str8, &const_ptr_102_indices[0], const_ptr_102_indices.size() ); ConstantInt* const_int32_103 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("64"), 10)); std::vector const_ptr_104_indices; const_ptr_104_indices.push_back(const_int32_59); const_ptr_104_indices.push_back(const_int32_59); Constant* const_ptr_104 = ConstantExpr::getGetElementPtr(gvar_array__str9, &const_ptr_104_indices[0], const_ptr_104_indices.size() ); // Global Variable Definitions gvar_array_test_buf->setInitializer(const_array_45); gvar_array_test_buf2->setInitializer(const_array_46); gvar_array__str->setInitializer(const_array_47); gvar_array__str1->setInitializer(const_array_48); gvar_array__str2->setInitializer(const_array_49); gvar_array__str3->setInitializer(const_array_50); gvar_array__str4->setInitializer(const_array_51); gvar_array__str5->setInitializer(const_array_52); gvar_array__str6->setInitializer(const_array_53); gvar_array__str7->setInitializer(const_array_54); gvar_array__str8->setInitializer(const_array_55); gvar_array__str9->setInitializer(const_array_56); // Function Definitions // Function: main (func_main) { Function::arg_iterator args = func_main->arg_begin(); Value* int32_argc = args++; int32_argc->setName("argc"); Value* ptr_argv = args++; ptr_argv->setName("argv"); BasicBlock* label_entry = BasicBlock::Create(getGlobalContext(), "entry",func_main,0); BasicBlock* label_bb = BasicBlock::Create(getGlobalContext(), "bb",func_main,0); BasicBlock* label_bb2 = BasicBlock::Create(getGlobalContext(), "bb2",func_main,0); BasicBlock* label_bb3 = BasicBlock::Create(getGlobalContext(), "bb3",func_main,0); BasicBlock* label_bb6 = BasicBlock::Create(getGlobalContext(), "bb6",func_main,0); BasicBlock* label_bb7 = BasicBlock::Create(getGlobalContext(), "bb7",func_main,0); BasicBlock* label_bb9 = BasicBlock::Create(getGlobalContext(), "bb9",func_main,0); BasicBlock* label_bb10 = BasicBlock::Create(getGlobalContext(), "bb10",func_main,0); BasicBlock* label_bb11 = BasicBlock::Create(getGlobalContext(), "bb11",func_main,0); BasicBlock* label_bb12 = BasicBlock::Create(getGlobalContext(), "bb12",func_main,0); BasicBlock* label_bb13 = BasicBlock::Create(getGlobalContext(), "bb13",func_main,0); BasicBlock* label_bb_i = BasicBlock::Create(getGlobalContext(), "bb.i",func_main,0); BasicBlock* label_bb1_i_i = BasicBlock::Create(getGlobalContext(), "bb1.i.i",func_main,0); BasicBlock* label_bb3_i_i = BasicBlock::Create(getGlobalContext(), "bb3.i.i",func_main,0); BasicBlock* label_bb2_preheader_i_i = BasicBlock::Create(getGlobalContext(), "bb2.preheader.i.i",func_main,0); BasicBlock* label_test_init1_exit_i = BasicBlock::Create(getGlobalContext(), "test_init1.exit.i",func_main,0); BasicBlock* label_bb_i_i = BasicBlock::Create(getGlobalContext(), "bb.i.i",func_main,0); BasicBlock* label_bb1_i15_i = BasicBlock::Create(getGlobalContext(), "bb1.i15.i",func_main,0); BasicBlock* label_bb2_i_i = BasicBlock::Create(getGlobalContext(), "bb2.i.i",func_main,0); BasicBlock* label_bb76_i_i = BasicBlock::Create(getGlobalContext(), "bb76.i.i",func_main,0); BasicBlock* label_bb81_i_i = BasicBlock::Create(getGlobalContext(), "bb81.i.i",func_main,0); BasicBlock* label_bb83_i_i = BasicBlock::Create(getGlobalContext(), "bb83.i.i",func_main,0); BasicBlock* label_bb84_i_i = BasicBlock::Create(getGlobalContext(), "bb84.i.i",func_main,0); BasicBlock* label_bb86_i_i = BasicBlock::Create(getGlobalContext(), "bb86.i.i",func_main,0); BasicBlock* label_bb87_i_i = BasicBlock::Create(getGlobalContext(), "bb87.i.i",func_main,0); BasicBlock* label_bb88_i_i = BasicBlock::Create(getGlobalContext(), "bb88.i.i",func_main,0); BasicBlock* label_bb89_i_i = BasicBlock::Create(getGlobalContext(), "bb89.i.i",func_main,0); BasicBlock* label_bb95_i_i = BasicBlock::Create(getGlobalContext(), "bb95.i.i",func_main,0); BasicBlock* label_bb105_i_i = BasicBlock::Create(getGlobalContext(), "bb105.i.i",func_main,0); BasicBlock* label_bb104_preheader_i_i = BasicBlock::Create(getGlobalContext(), "bb104.preheader.i.i",func_main,0); BasicBlock* label_test_1_exit = BasicBlock::Create(getGlobalContext(), "test_1.exit",func_main,0); BasicBlock* label_bb4_i_i = BasicBlock::Create(getGlobalContext(), "bb4.i.i",func_main,0); BasicBlock* label_bb5_i_i = BasicBlock::Create(getGlobalContext(), "bb5.i.i",func_main,0); BasicBlock* label_bb7_i_i = BasicBlock::Create(getGlobalContext(), "bb7.i.i",func_main,0); BasicBlock* label_benchmark_exit_i = BasicBlock::Create(getGlobalContext(), "benchmark.exit.i",func_main,0); BasicBlock* label_bb7_i = BasicBlock::Create(getGlobalContext(), "bb7.i",func_main,0); BasicBlock* label_bb8_i = BasicBlock::Create(getGlobalContext(), "bb8.i",func_main,0); BasicBlock* label_bb9_i = BasicBlock::Create(getGlobalContext(), "bb9.i",func_main,0); BasicBlock* label_bb10_i = BasicBlock::Create(getGlobalContext(), "bb10.i",func_main,0); BasicBlock* label_bb11_i = BasicBlock::Create(getGlobalContext(), "bb11.i",func_main,0); BasicBlock* label_bb12_i = BasicBlock::Create(getGlobalContext(), "bb12.i",func_main,0); BasicBlock* label_test_all_exit = BasicBlock::Create(getGlobalContext(), "test_all.exit",func_main,0); // Block entry (label_entry) AllocaInst* ptr_elaped_i = new AllocaInst(ArrayTy_33, "elaped.i", label_entry); ptr_elaped_i->setAlignment(8); AllocaInst* ptr_nm_i = new AllocaInst(ArrayTy_35, "nm.i", label_entry); ptr_nm_i->setAlignment(4); ICmpInst* int1_105 = new ICmpInst(*label_entry, ICmpInst::ICMP_SGT, int32_argc, const_int32_57, ""); BranchInst::Create(label_bb12, label_bb, int1_105, label_entry); // Block bb (label_bb) CallInst* int32_107 = CallInst::Create(func_puts, const_ptr_58, "", label_bb); int32_107->setCallingConv(CallingConv::C); int32_107->setTailCall(false);AttrListPtr int32_107_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); int32_107_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } int32_107->setAttributes(int32_107_PAL); ReturnInst::Create(getGlobalContext(), const_int32_57, label_bb); // Block bb2 (label_bb2) Argument* fwdref_109 = new Argument(IntegerType::get(getGlobalContext(), 32)); GetElementPtrInst* ptr_scevgep = GetElementPtrInst::Create(ptr_argv, fwdref_109, "scevgep", label_bb2); LoadInst* ptr_110 = new LoadInst(ptr_scevgep, "", false, label_bb2); LoadInst* int8_111 = new LoadInst(ptr_110, "", false, label_bb2); ICmpInst* int1_112 = new ICmpInst(*label_bb2, ICmpInst::ICMP_EQ, int8_111, const_int8_60, ""); BranchInst::Create(label_bb3, label_bb11, int1_112, label_bb2); // Block bb3 (label_bb3) GetElementPtrInst* ptr_114 = GetElementPtrInst::Create(ptr_110, const_int32_57, "", label_bb3); LoadInst* int8_115 = new LoadInst(ptr_114, "", false, label_bb3); SwitchInst* void_116 = SwitchInst::Create(int8_115, label_bb10, 4, label_bb3); void_116->addCase(const_int8_61, label_bb11); void_116->addCase(const_int8_62, label_bb6); void_116->addCase(const_int8_63, label_bb9); // Block bb6 (label_bb6) GetElementPtrInst* ptr_117 = GetElementPtrInst::Create(ptr_110, const_int32_64, "", label_bb6); std::vector int32_118_params; int32_118_params.push_back(ptr_117); int32_118_params.push_back(const_int32_59); int32_118_params.push_back(const_int32_59); CallInst* int32_118 = CallInst::Create(func_strtol, int32_118_params.begin(), int32_118_params.end(), "", label_bb6); int32_118->setCallingConv(CallingConv::C); int32_118->setTailCall(false);AttrListPtr int32_118_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); int32_118_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } int32_118->setAttributes(int32_118_PAL); ICmpInst* int1_119 = new ICmpInst(*label_bb6, ICmpInst::ICMP_EQ, int32_118, const_int32_59, ""); BranchInst::Create(label_bb7, label_bb11, int1_119, label_bb6); // Block bb7 (label_bb7) BranchInst::Create(label_bb11, label_bb7); // Block bb9 (label_bb9) GetElementPtrInst* ptr_122 = GetElementPtrInst::Create(ptr_110, const_int32_64, "", label_bb9); BranchInst::Create(label_bb11, label_bb9); // Block bb10 (label_bb10) CallInst* int32_124 = CallInst::Create(func_puts, const_ptr_58, "", label_bb10); int32_124->setCallingConv(CallingConv::C); int32_124->setTailCall(false);AttrListPtr int32_124_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); int32_124_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } int32_124->setAttributes(int32_124_PAL); ReturnInst::Create(getGlobalContext(), const_int32_57, label_bb10); // Block bb11 (label_bb11) Argument* fwdref_126 = new Argument(PointerTy_25); PHINode* ptr_name_0 = PHINode::Create(PointerTy_25, "name.0", label_bb11); ptr_name_0->reserveOperandSpace(5); ptr_name_0->addIncoming(fwdref_126, label_bb7); ptr_name_0->addIncoming(ptr_122, label_bb9); ptr_name_0->addIncoming(fwdref_126, label_bb2); ptr_name_0->addIncoming(fwdref_126, label_bb3); ptr_name_0->addIncoming(fwdref_126, label_bb6); Argument* fwdref_127 = new Argument(IntegerType::get(getGlobalContext(), 32)); PHINode* int32_flags_0 = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "flags.0", label_bb11); int32_flags_0->reserveOperandSpace(5); int32_flags_0->addIncoming(fwdref_127, label_bb7); int32_flags_0->addIncoming(fwdref_127, label_bb9); int32_flags_0->addIncoming(fwdref_127, label_bb2); int32_flags_0->addIncoming(const_int32_57, label_bb3); int32_flags_0->addIncoming(fwdref_127, label_bb6); Argument* fwdref_128 = new Argument(IntegerType::get(getGlobalContext(), 32)); PHINode* int32_count_0 = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "count.0", label_bb11); int32_count_0->reserveOperandSpace(5); int32_count_0->addIncoming(const_int32_57, label_bb7); int32_count_0->addIncoming(fwdref_128, label_bb9); int32_count_0->addIncoming(fwdref_128, label_bb2); int32_count_0->addIncoming(fwdref_128, label_bb3); int32_count_0->addIncoming(int32_118, label_bb6); BinaryOperator* int32_phitmp = BinaryOperator::Create(Instruction::Add, fwdref_109, const_int32_57, "phitmp", label_bb11); BranchInst::Create(label_bb12, label_bb11); // Block bb12 (label_bb12) PHINode* int32_indvar = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "indvar", label_bb12); int32_indvar->reserveOperandSpace(2); int32_indvar->addIncoming(int32_phitmp, label_bb11); int32_indvar->addIncoming(const_int32_57, label_entry); PHINode* ptr_name_1 = PHINode::Create(PointerTy_25, "name.1", label_bb12); ptr_name_1->reserveOperandSpace(2); ptr_name_1->addIncoming(ptr_name_0, label_bb11); ptr_name_1->addIncoming(const_ptr_65, label_entry); PHINode* int32_flags_1 = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "flags.1", label_bb12); int32_flags_1->reserveOperandSpace(2); int32_flags_1->addIncoming(int32_flags_0, label_bb11); int32_flags_1->addIncoming(const_int32_59, label_entry); PHINode* int32_count_1 = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "count.1", label_bb12); int32_count_1->reserveOperandSpace(2); int32_count_1->addIncoming(int32_count_0, label_bb11); int32_count_1->addIncoming(const_int32_57, label_entry); ICmpInst* int1_130 = new ICmpInst(*label_bb12, ICmpInst::ICMP_SLT, int32_indvar, int32_argc, ""); BranchInst::Create(label_bb2, label_bb13, int1_130, label_bb12); // Block bb13 (label_bb13) CastInst* ptr_nm1_i = new BitCastInst(ptr_nm_i, PointerTy_25, "nm1.i", label_bb13); std::vector void_132_params; void_132_params.push_back(ptr_nm1_i); void_132_params.push_back(const_int8_66); void_132_params.push_back(const_int32_67); void_132_params.push_back(const_int32_68); CallInst* void_132 = CallInst::Create(func_llvm_memset_i32, void_132_params.begin(), void_132_params.end(), "", label_bb13); void_132->setCallingConv(CallingConv::C); void_132->setTailCall(false);AttrListPtr void_132_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); void_132_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } void_132->setAttributes(void_132_PAL); CastInst* ptr_elaped2_i = new BitCastInst(ptr_elaped_i, PointerTy_25, "elaped2.i", label_bb13); std::vector void_133_params; void_133_params.push_back(ptr_elaped2_i); void_133_params.push_back(const_int8_66); void_133_params.push_back(const_int32_69); void_133_params.push_back(const_int32_70); CallInst* void_133 = CallInst::Create(func_llvm_memset_i32, void_133_params.begin(), void_133_params.end(), "", label_bb13); void_133->setCallingConv(CallingConv::C); void_133->setTailCall(false);AttrListPtr void_133_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); void_133_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } void_133->setAttributes(void_133_PAL); ICmpInst* int1_134 = new ICmpInst(*label_bb13, ICmpInst::ICMP_EQ, ptr_name_1, const_ptr_65, ""); BranchInst::Create(label_bb_i, label_bb2_preheader_i_i, int1_134, label_bb13); // Block bb.i (label_bb_i) std::vector int32_136_params; int32_136_params.push_back(const_ptr_71); int32_136_params.push_back(int32_count_1); CallInst* int32_136 = CallInst::Create(func_printf, int32_136_params.begin(), int32_136_params.end(), "", label_bb_i); int32_136->setCallingConv(CallingConv::C); int32_136->setTailCall(false);AttrListPtr int32_136_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); int32_136_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } int32_136->setAttributes(int32_136_PAL); BranchInst::Create(label_bb2_preheader_i_i, label_bb_i); // Block bb1.i.i (label_bb1_i_i) Argument* fwdref_138 = new Argument(IntegerType::get(getGlobalContext(), 32)); Argument* fwdref_139 = new Argument(IntegerType::get(getGlobalContext(), 32)); PHINode* int32_XorShiftRand_seed__1_tmp_0_i_i = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "XorShiftRand_seed_.1.tmp.0.i.i", label_bb1_i_i); int32_XorShiftRand_seed__1_tmp_0_i_i->reserveOperandSpace(2); int32_XorShiftRand_seed__1_tmp_0_i_i->addIncoming(fwdref_138, label_bb2_preheader_i_i); int32_XorShiftRand_seed__1_tmp_0_i_i->addIncoming(fwdref_139, label_bb1_i_i); Argument* fwdref_140 = new Argument(IntegerType::get(getGlobalContext(), 32)); PHINode* int32_XorShiftRand_seed__0_tmp_0_i_i = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "XorShiftRand_seed_.0.tmp.0.i.i", label_bb1_i_i); int32_XorShiftRand_seed__0_tmp_0_i_i->reserveOperandSpace(2); int32_XorShiftRand_seed__0_tmp_0_i_i->addIncoming(fwdref_140, label_bb2_preheader_i_i); int32_XorShiftRand_seed__0_tmp_0_i_i->addIncoming(int32_XorShiftRand_seed__1_tmp_0_i_i, label_bb1_i_i); Argument* fwdref_141 = new Argument(IntegerType::get(getGlobalContext(), 32)); PHINode* int32_x_06_i_i = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "x.06.i.i", label_bb1_i_i); int32_x_06_i_i->reserveOperandSpace(2); int32_x_06_i_i->addIncoming(const_int32_59, label_bb2_preheader_i_i); int32_x_06_i_i->addIncoming(fwdref_141, label_bb1_i_i); Argument* fwdref_142 = new Argument(IntegerType::get(getGlobalContext(), 32)); BinaryOperator* int32_tmp24 = BinaryOperator::Create(Instruction::Add, int32_x_06_i_i, fwdref_142, "tmp24", label_bb1_i_i); std::vector ptr_scevgep_i_i_indices; ptr_scevgep_i_i_indices.push_back(const_int32_59); ptr_scevgep_i_i_indices.push_back(int32_tmp24); Instruction* ptr_scevgep_i_i = GetElementPtrInst::Create(gvar_array_test_buf, ptr_scevgep_i_i_indices.begin(), ptr_scevgep_i_i_indices.end(), "scevgep.i.i", label_bb1_i_i); BinaryOperator* int32_143 = BinaryOperator::Create(Instruction::Shl, int32_XorShiftRand_seed__0_tmp_0_i_i, const_int32_72, "", label_bb1_i_i); BinaryOperator* int32_144 = BinaryOperator::Create(Instruction::Xor, int32_143, int32_XorShiftRand_seed__0_tmp_0_i_i, "", label_bb1_i_i); BinaryOperator* int32_145 = BinaryOperator::Create(Instruction::LShr, int32_XorShiftRand_seed__1_tmp_0_i_i, const_int32_72, "", label_bb1_i_i); BinaryOperator* int32_146 = BinaryOperator::Create(Instruction::LShr, int32_144, const_int32_73, "", label_bb1_i_i); BinaryOperator* int32_147 = BinaryOperator::Create(Instruction::Xor, int32_145, int32_XorShiftRand_seed__1_tmp_0_i_i, "", label_bb1_i_i); BinaryOperator* int32_148 = BinaryOperator::Create(Instruction::Xor, int32_147, int32_144, "", label_bb1_i_i); BinaryOperator* int32_149 = BinaryOperator::Create(Instruction::Xor, int32_148, int32_146, "", label_bb1_i_i); new StoreInst(int32_149, ptr_scevgep_i_i, false, label_bb1_i_i); BinaryOperator* int32_151 = BinaryOperator::Create(Instruction::Add, int32_x_06_i_i, const_int32_57, "", label_bb1_i_i); ICmpInst* int1_exitcond23 = new ICmpInst(*label_bb1_i_i, ICmpInst::ICMP_EQ, int32_151, const_int32_74, "exitcond23"); BranchInst::Create(label_bb3_i_i, label_bb1_i_i, int1_exitcond23, label_bb1_i_i); // Block bb3.i.i (label_bb3_i_i) Argument* fwdref_154 = new Argument(IntegerType::get(getGlobalContext(), 32)); BinaryOperator* int32_153 = BinaryOperator::Create(Instruction::Add, fwdref_154, const_int32_57, "", label_bb3_i_i); ICmpInst* int1_exitcond25 = new ICmpInst(*label_bb3_i_i, ICmpInst::ICMP_EQ, int32_153, const_int32_75, "exitcond25"); BranchInst::Create(label_test_init1_exit_i, label_bb2_preheader_i_i, int1_exitcond25, label_bb3_i_i); // Block bb2.preheader.i.i (label_bb2_preheader_i_i) PHINode* int32_XorShiftRand_seed__1_tmp_1_i_i = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "XorShiftRand_seed_.1.tmp.1.i.i", label_bb2_preheader_i_i); int32_XorShiftRand_seed__1_tmp_1_i_i->reserveOperandSpace(3); int32_XorShiftRand_seed__1_tmp_1_i_i->addIncoming(int32_149, label_bb3_i_i); int32_XorShiftRand_seed__1_tmp_1_i_i->addIncoming(const_int32_76, label_bb_i); int32_XorShiftRand_seed__1_tmp_1_i_i->addIncoming(const_int32_76, label_bb13); PHINode* int32_XorShiftRand_seed__0_tmp_1_i_i = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "XorShiftRand_seed_.0.tmp.1.i.i", label_bb2_preheader_i_i); int32_XorShiftRand_seed__0_tmp_1_i_i->reserveOperandSpace(3); int32_XorShiftRand_seed__0_tmp_1_i_i->addIncoming(int32_XorShiftRand_seed__1_tmp_0_i_i, label_bb3_i_i); int32_XorShiftRand_seed__0_tmp_1_i_i->addIncoming(const_int32_57, label_bb_i); int32_XorShiftRand_seed__0_tmp_1_i_i->addIncoming(const_int32_57, label_bb13); PHINode* int32_y_07_i_i = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "y.07.i.i", label_bb2_preheader_i_i); int32_y_07_i_i->reserveOperandSpace(3); int32_y_07_i_i->addIncoming(int32_153, label_bb3_i_i); int32_y_07_i_i->addIncoming(const_int32_59, label_bb_i); int32_y_07_i_i->addIncoming(const_int32_59, label_bb13); BinaryOperator* int32_tmp = BinaryOperator::Create(Instruction::Mul, int32_y_07_i_i, const_int32_74, "tmp", label_bb2_preheader_i_i); BranchInst::Create(label_bb1_i_i, label_bb2_preheader_i_i); // Block test_init1.exit.i (label_test_init1_exit_i) SelectInst* ptr_iftmp_16_0_i = SelectInst::Create(int1_134, const_ptr_77, ptr_name_1, "iftmp.16.0.i", label_test_init1_exit_i); std::vector ptr_157_indices; ptr_157_indices.push_back(const_int32_59); ptr_157_indices.push_back(const_int32_59); Instruction* ptr_157 = GetElementPtrInst::Create(ptr_nm_i, ptr_157_indices.begin(), ptr_157_indices.end(), "", label_test_init1_exit_i); new StoreInst(ptr_iftmp_16_0_i, ptr_157, false, label_test_init1_exit_i); BinaryOperator* int32_159 = BinaryOperator::Create(Instruction::And, int32_flags_1, const_int32_57, "", label_test_init1_exit_i); ICmpInst* int1_160 = new ICmpInst(*label_test_init1_exit_i, ICmpInst::ICMP_EQ, int32_159, const_int32_59, ""); BranchInst::Create(label_bb1_i15_i, label_bb_i_i, int1_160, label_test_init1_exit_i); // Block bb.i.i (label_bb_i_i) std::vector int32_162_params; int32_162_params.push_back(const_ptr_78); int32_162_params.push_back(ptr_iftmp_16_0_i); CallInst* int32_162 = CallInst::Create(func_printf, int32_162_params.begin(), int32_162_params.end(), "", label_bb_i_i); int32_162->setCallingConv(CallingConv::C); int32_162->setTailCall(false);AttrListPtr int32_162_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); int32_162_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } int32_162->setAttributes(int32_162_PAL); BranchInst::Create(label_bb1_i15_i, label_bb_i_i); // Block bb1.i15.i (label_bb1_i15_i) CallInst* int32_164 = CallInst::Create(func_clock, "", label_bb1_i15_i); int32_164->setCallingConv(CallingConv::C); int32_164->setTailCall(false);AttrListPtr int32_164_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); int32_164_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } int32_164->setAttributes(int32_164_PAL); ICmpInst* int1_165 = new ICmpInst(*label_bb1_i15_i, ICmpInst::ICMP_EQ, int32_count_1, const_int32_59, ""); BranchInst::Create(label_bb4_i_i, label_bb2_i_i, int1_165, label_bb1_i15_i); // Block bb2.i.i (label_bb2_i_i) Argument* fwdref_167 = new Argument(IntegerType::get(getGlobalContext(), 32)); PHINode* int32_j_02_i_i = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "j.02.i.i", label_bb2_i_i); int32_j_02_i_i->reserveOperandSpace(2); int32_j_02_i_i->addIncoming(fwdref_167, label_test_1_exit); int32_j_02_i_i->addIncoming(const_int32_59, label_bb1_i15_i); BranchInst::Create(label_bb104_preheader_i_i, label_bb2_i_i); // Block bb76.i.i (label_bb76_i_i) Argument* fwdref_170 = new Argument(IntegerType::get(getGlobalContext(), 32)); PHINode* int32_169 = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "", label_bb76_i_i); int32_169->reserveOperandSpace(2); int32_169->addIncoming(const_int32_59, label_bb104_preheader_i_i); int32_169->addIncoming(fwdref_170, label_bb95_i_i); Argument* fwdref_171 = new Argument(IntegerType::get(getGlobalContext(), 32)); BinaryOperator* int32_tmp1_i = BinaryOperator::Create(Instruction::Add, int32_169, fwdref_171, "tmp1.i", label_bb76_i_i); std::vector ptr_scevgep_i_i1_indices; ptr_scevgep_i_i1_indices.push_back(const_int32_59); ptr_scevgep_i_i1_indices.push_back(int32_tmp1_i); Instruction* ptr_scevgep_i_i1 = GetElementPtrInst::Create(gvar_array_test_buf2, ptr_scevgep_i_i1_indices.begin(), ptr_scevgep_i_i1_indices.end(), "scevgep.i.i1", label_bb76_i_i); CastInst* double_172 = new UIToFPInst(int32_169, Type::getDoubleTy(getGlobalContext()), "", label_bb76_i_i); BinaryOperator* double_173 = BinaryOperator::Create(Instruction::FMul, double_172, const_double_79, "", label_bb76_i_i); BinaryOperator* double_174 = BinaryOperator::Create(Instruction::FAdd, double_173, const_double_80, "", label_bb76_i_i); FCmpInst* int1_175 = new FCmpInst(*label_bb76_i_i, FCmpInst::FCMP_OLT, double_174, const_double_81, ""); SelectInst* double_sx_0_i_i = SelectInst::Create(int1_175, const_double_81, double_174, "sx.0.i.i", label_bb76_i_i); CastInst* int32_176 = new FPToUIInst(double_sx_0_i_i, IntegerType::get(getGlobalContext(), 32), "", label_bb76_i_i); CastInst* double_177 = new UIToFPInst(int32_176, Type::getDoubleTy(getGlobalContext()), "", label_bb76_i_i); BinaryOperator* double_178 = BinaryOperator::Create(Instruction::FSub, double_sx_0_i_i, double_177, "", label_bb76_i_i); BinaryOperator* double_179 = BinaryOperator::Create(Instruction::FSub, const_double_82, double_178, "", label_bb76_i_i); Argument* fwdref_181 = new Argument(Type::getDoubleTy(getGlobalContext())); BinaryOperator* double_180 = BinaryOperator::Create(Instruction::FMul, double_179, fwdref_181, "", label_bb76_i_i); BinaryOperator* double_182 = BinaryOperator::Create(Instruction::FMul, fwdref_181, double_178, "", label_bb76_i_i); Argument* fwdref_184 = new Argument(Type::getDoubleTy(getGlobalContext())); BinaryOperator* double_183 = BinaryOperator::Create(Instruction::FMul, double_179, fwdref_184, "", label_bb76_i_i); BinaryOperator* double_185 = BinaryOperator::Create(Instruction::FMul, double_178, fwdref_184, "", label_bb76_i_i); BinaryOperator* int32_186 = BinaryOperator::Create(Instruction::Add, int32_176, const_int32_57, "", label_bb76_i_i); ICmpInst* int1_187 = new ICmpInst(*label_bb76_i_i, ICmpInst::ICMP_ULT, int32_186, const_int32_74, ""); Argument* fwdref_189 = new Argument(IntegerType::get(getGlobalContext(), 32)); BinaryOperator* int32_188 = BinaryOperator::Create(Instruction::Add, int32_176, fwdref_189, "", label_bb76_i_i); std::vector ptr_190_indices; ptr_190_indices.push_back(const_int32_59); ptr_190_indices.push_back(int32_188); Instruction* ptr_190 = GetElementPtrInst::Create(gvar_array_test_buf, ptr_190_indices.begin(), ptr_190_indices.end(), "", label_bb76_i_i); LoadInst* int32_191 = new LoadInst(ptr_190, "", false, label_bb76_i_i); BranchInst::Create(label_bb81_i_i, label_bb83_i_i, int1_187, label_bb76_i_i); // Block bb81.i.i (label_bb81_i_i) Argument* fwdref_194 = new Argument(IntegerType::get(getGlobalContext(), 32)); BinaryOperator* int32_193 = BinaryOperator::Create(Instruction::Add, int32_176, fwdref_194, "", label_bb81_i_i); std::vector ptr_195_indices; ptr_195_indices.push_back(const_int32_59); ptr_195_indices.push_back(int32_193); Instruction* ptr_195 = GetElementPtrInst::Create(gvar_array_test_buf, ptr_195_indices.begin(), ptr_195_indices.end(), "", label_bb81_i_i); LoadInst* int32_196 = new LoadInst(ptr_195, "", false, label_bb81_i_i); BranchInst::Create(label_bb83_i_i, label_bb81_i_i); // Block bb83.i.i (label_bb83_i_i) PHINode* int32_iftmp_9_0_i_i = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "iftmp.9.0.i.i", label_bb83_i_i); int32_iftmp_9_0_i_i->reserveOperandSpace(2); int32_iftmp_9_0_i_i->addIncoming(int32_196, label_bb81_i_i); int32_iftmp_9_0_i_i->addIncoming(int32_191, label_bb76_i_i); Argument* fwdref_199 = new Argument(IntegerType::get(getGlobalContext(), 1)); BranchInst::Create(label_bb84_i_i, label_bb86_i_i, fwdref_199, label_bb83_i_i); // Block bb84.i.i (label_bb84_i_i) Argument* fwdref_201 = new Argument(IntegerType::get(getGlobalContext(), 32)); BinaryOperator* int32_200 = BinaryOperator::Create(Instruction::Add, fwdref_201, int32_176, "", label_bb84_i_i); std::vector ptr_202_indices; ptr_202_indices.push_back(const_int32_59); ptr_202_indices.push_back(int32_200); Instruction* ptr_202 = GetElementPtrInst::Create(gvar_array_test_buf, ptr_202_indices.begin(), ptr_202_indices.end(), "", label_bb84_i_i); LoadInst* int32_203 = new LoadInst(ptr_202, "", false, label_bb84_i_i); BranchInst::Create(label_bb86_i_i, label_bb84_i_i); // Block bb86.i.i (label_bb86_i_i) PHINode* int32_iftmp_10_0_i_i = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "iftmp.10.0.i.i", label_bb86_i_i); int32_iftmp_10_0_i_i->reserveOperandSpace(2); int32_iftmp_10_0_i_i->addIncoming(int32_203, label_bb84_i_i); int32_iftmp_10_0_i_i->addIncoming(int32_191, label_bb83_i_i); BinaryOperator* int1_205 = BinaryOperator::Create(Instruction::And, int1_187, fwdref_199, "", label_bb86_i_i); BranchInst::Create(label_bb87_i_i, label_bb88_i_i, int1_205, label_bb86_i_i); // Block bb87.i.i (label_bb87_i_i) Argument* fwdref_208 = new Argument(IntegerType::get(getGlobalContext(), 32)); BinaryOperator* int32_207 = BinaryOperator::Create(Instruction::Add, fwdref_208, int32_176, "", label_bb87_i_i); std::vector ptr_209_indices; ptr_209_indices.push_back(const_int32_59); ptr_209_indices.push_back(int32_207); Instruction* ptr_209 = GetElementPtrInst::Create(gvar_array_test_buf, ptr_209_indices.begin(), ptr_209_indices.end(), "", label_bb87_i_i); LoadInst* int32_210 = new LoadInst(ptr_209, "", false, label_bb87_i_i); BranchInst::Create(label_bb95_i_i, label_bb87_i_i); // Block bb88.i.i (label_bb88_i_i) BranchInst::Create(label_bb95_i_i, label_bb89_i_i, int1_187, label_bb88_i_i); // Block bb89.i.i (label_bb89_i_i) SelectInst* int32_iftmp_13_0_i_i = SelectInst::Create(fwdref_199, int32_iftmp_10_0_i_i, int32_191, "iftmp.13.0.i.i", label_bb89_i_i); BranchInst::Create(label_bb95_i_i, label_bb89_i_i); // Block bb95.i.i (label_bb95_i_i) PHINode* int32_iftmp_11_0_i_i = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "iftmp.11.0.i.i", label_bb95_i_i); int32_iftmp_11_0_i_i->reserveOperandSpace(3); int32_iftmp_11_0_i_i->addIncoming(int32_210, label_bb87_i_i); int32_iftmp_11_0_i_i->addIncoming(int32_iftmp_13_0_i_i, label_bb89_i_i); int32_iftmp_11_0_i_i->addIncoming(int32_iftmp_9_0_i_i, label_bb88_i_i); BinaryOperator* int32_214 = BinaryOperator::Create(Instruction::LShr, int32_191, const_int32_83, "", label_bb95_i_i); BinaryOperator* int32_215 = BinaryOperator::Create(Instruction::And, int32_214, const_int32_84, "", label_bb95_i_i); CastInst* double_216 = new SIToFPInst(int32_215, Type::getDoubleTy(getGlobalContext()), "", label_bb95_i_i); BinaryOperator* double_217 = BinaryOperator::Create(Instruction::FMul, double_216, double_180, "", label_bb95_i_i); BinaryOperator* int32_218 = BinaryOperator::Create(Instruction::LShr, int32_iftmp_9_0_i_i, const_int32_83, "", label_bb95_i_i); BinaryOperator* int32_219 = BinaryOperator::Create(Instruction::And, int32_218, const_int32_84, "", label_bb95_i_i); CastInst* double_220 = new SIToFPInst(int32_219, Type::getDoubleTy(getGlobalContext()), "", label_bb95_i_i); BinaryOperator* double_221 = BinaryOperator::Create(Instruction::FMul, double_220, double_182, "", label_bb95_i_i); BinaryOperator* double_222 = BinaryOperator::Create(Instruction::FAdd, double_217, double_221, "", label_bb95_i_i); BinaryOperator* int32_223 = BinaryOperator::Create(Instruction::LShr, int32_iftmp_10_0_i_i, const_int32_83, "", label_bb95_i_i); BinaryOperator* int32_224 = BinaryOperator::Create(Instruction::And, int32_223, const_int32_84, "", label_bb95_i_i); CastInst* double_225 = new SIToFPInst(int32_224, Type::getDoubleTy(getGlobalContext()), "", label_bb95_i_i); BinaryOperator* double_226 = BinaryOperator::Create(Instruction::FMul, double_225, double_183, "", label_bb95_i_i); BinaryOperator* double_227 = BinaryOperator::Create(Instruction::FAdd, double_222, double_226, "", label_bb95_i_i); BinaryOperator* int32_228 = BinaryOperator::Create(Instruction::LShr, int32_iftmp_11_0_i_i, const_int32_83, "", label_bb95_i_i); BinaryOperator* int32_229 = BinaryOperator::Create(Instruction::And, int32_228, const_int32_84, "", label_bb95_i_i); CastInst* double_230 = new SIToFPInst(int32_229, Type::getDoubleTy(getGlobalContext()), "", label_bb95_i_i); BinaryOperator* double_231 = BinaryOperator::Create(Instruction::FMul, double_230, double_185, "", label_bb95_i_i); BinaryOperator* double_232 = BinaryOperator::Create(Instruction::FAdd, double_227, double_231, "", label_bb95_i_i); CastInst* int32_233 = new FPToUIInst(double_232, IntegerType::get(getGlobalContext(), 32), "", label_bb95_i_i); BinaryOperator* int32_234 = BinaryOperator::Create(Instruction::LShr, int32_191, const_int32_70, "", label_bb95_i_i); BinaryOperator* int32_235 = BinaryOperator::Create(Instruction::And, int32_234, const_int32_84, "", label_bb95_i_i); CastInst* double_236 = new SIToFPInst(int32_235, Type::getDoubleTy(getGlobalContext()), "", label_bb95_i_i); BinaryOperator* double_237 = BinaryOperator::Create(Instruction::FMul, double_236, double_180, "", label_bb95_i_i); BinaryOperator* int32_238 = BinaryOperator::Create(Instruction::LShr, int32_iftmp_9_0_i_i, const_int32_70, "", label_bb95_i_i); BinaryOperator* int32_239 = BinaryOperator::Create(Instruction::And, int32_238, const_int32_84, "", label_bb95_i_i); CastInst* double_240 = new SIToFPInst(int32_239, Type::getDoubleTy(getGlobalContext()), "", label_bb95_i_i); BinaryOperator* double_241 = BinaryOperator::Create(Instruction::FMul, double_240, double_182, "", label_bb95_i_i); BinaryOperator* double_242 = BinaryOperator::Create(Instruction::FAdd, double_237, double_241, "", label_bb95_i_i); BinaryOperator* int32_243 = BinaryOperator::Create(Instruction::LShr, int32_iftmp_10_0_i_i, const_int32_70, "", label_bb95_i_i); BinaryOperator* int32_244 = BinaryOperator::Create(Instruction::And, int32_243, const_int32_84, "", label_bb95_i_i); CastInst* double_245 = new SIToFPInst(int32_244, Type::getDoubleTy(getGlobalContext()), "", label_bb95_i_i); BinaryOperator* double_246 = BinaryOperator::Create(Instruction::FMul, double_245, double_183, "", label_bb95_i_i); BinaryOperator* double_247 = BinaryOperator::Create(Instruction::FAdd, double_242, double_246, "", label_bb95_i_i); BinaryOperator* int32_248 = BinaryOperator::Create(Instruction::LShr, int32_iftmp_11_0_i_i, const_int32_70, "", label_bb95_i_i); BinaryOperator* int32_249 = BinaryOperator::Create(Instruction::And, int32_248, const_int32_84, "", label_bb95_i_i); CastInst* double_250 = new SIToFPInst(int32_249, Type::getDoubleTy(getGlobalContext()), "", label_bb95_i_i); BinaryOperator* double_251 = BinaryOperator::Create(Instruction::FMul, double_250, double_185, "", label_bb95_i_i); BinaryOperator* double_252 = BinaryOperator::Create(Instruction::FAdd, double_247, double_251, "", label_bb95_i_i); CastInst* int32_253 = new FPToUIInst(double_252, IntegerType::get(getGlobalContext(), 32), "", label_bb95_i_i); BinaryOperator* int32_254 = BinaryOperator::Create(Instruction::And, int32_191, const_int32_84, "", label_bb95_i_i); CastInst* double_255 = new SIToFPInst(int32_254, Type::getDoubleTy(getGlobalContext()), "", label_bb95_i_i); BinaryOperator* double_256 = BinaryOperator::Create(Instruction::FMul, double_255, double_180, "", label_bb95_i_i); BinaryOperator* int32_257 = BinaryOperator::Create(Instruction::And, int32_iftmp_9_0_i_i, const_int32_84, "", label_bb95_i_i); CastInst* double_258 = new SIToFPInst(int32_257, Type::getDoubleTy(getGlobalContext()), "", label_bb95_i_i); BinaryOperator* double_259 = BinaryOperator::Create(Instruction::FMul, double_258, double_182, "", label_bb95_i_i); BinaryOperator* double_260 = BinaryOperator::Create(Instruction::FAdd, double_256, double_259, "", label_bb95_i_i); BinaryOperator* int32_261 = BinaryOperator::Create(Instruction::And, int32_iftmp_10_0_i_i, const_int32_84, "", label_bb95_i_i); CastInst* double_262 = new SIToFPInst(int32_261, Type::getDoubleTy(getGlobalContext()), "", label_bb95_i_i); BinaryOperator* double_263 = BinaryOperator::Create(Instruction::FMul, double_262, double_183, "", label_bb95_i_i); BinaryOperator* double_264 = BinaryOperator::Create(Instruction::FAdd, double_260, double_263, "", label_bb95_i_i); BinaryOperator* int32_265 = BinaryOperator::Create(Instruction::And, int32_iftmp_11_0_i_i, const_int32_84, "", label_bb95_i_i); CastInst* double_266 = new SIToFPInst(int32_265, Type::getDoubleTy(getGlobalContext()), "", label_bb95_i_i); BinaryOperator* double_267 = BinaryOperator::Create(Instruction::FMul, double_266, double_185, "", label_bb95_i_i); BinaryOperator* double_268 = BinaryOperator::Create(Instruction::FAdd, double_264, double_267, "", label_bb95_i_i); CastInst* int32_269 = new FPToUIInst(double_268, IntegerType::get(getGlobalContext(), 32), "", label_bb95_i_i); BinaryOperator* int32_270 = BinaryOperator::Create(Instruction::LShr, int32_191, const_int32_85, "", label_bb95_i_i); CastInst* double_271 = new UIToFPInst(int32_270, Type::getDoubleTy(getGlobalContext()), "", label_bb95_i_i); BinaryOperator* double_272 = BinaryOperator::Create(Instruction::FMul, double_271, double_180, "", label_bb95_i_i); BinaryOperator* int32_273 = BinaryOperator::Create(Instruction::LShr, int32_iftmp_9_0_i_i, const_int32_85, "", label_bb95_i_i); CastInst* double_274 = new UIToFPInst(int32_273, Type::getDoubleTy(getGlobalContext()), "", label_bb95_i_i); BinaryOperator* double_275 = BinaryOperator::Create(Instruction::FMul, double_274, double_182, "", label_bb95_i_i); BinaryOperator* double_276 = BinaryOperator::Create(Instruction::FAdd, double_272, double_275, "", label_bb95_i_i); BinaryOperator* int32_277 = BinaryOperator::Create(Instruction::LShr, int32_iftmp_10_0_i_i, const_int32_85, "", label_bb95_i_i); CastInst* double_278 = new UIToFPInst(int32_277, Type::getDoubleTy(getGlobalContext()), "", label_bb95_i_i); BinaryOperator* double_279 = BinaryOperator::Create(Instruction::FMul, double_278, double_183, "", label_bb95_i_i); BinaryOperator* double_280 = BinaryOperator::Create(Instruction::FAdd, double_276, double_279, "", label_bb95_i_i); BinaryOperator* int32_281 = BinaryOperator::Create(Instruction::LShr, int32_iftmp_11_0_i_i, const_int32_85, "", label_bb95_i_i); CastInst* double_282 = new UIToFPInst(int32_281, Type::getDoubleTy(getGlobalContext()), "", label_bb95_i_i); BinaryOperator* double_283 = BinaryOperator::Create(Instruction::FMul, double_282, double_185, "", label_bb95_i_i); BinaryOperator* double_284 = BinaryOperator::Create(Instruction::FAdd, double_280, double_283, "", label_bb95_i_i); CastInst* int32_285 = new FPToUIInst(double_284, IntegerType::get(getGlobalContext(), 32), "", label_bb95_i_i); ICmpInst* int1_286 = new ICmpInst(*label_bb95_i_i, ICmpInst::ICMP_UGT, int32_285, const_int32_86, ""); ICmpInst* int1_287 = new ICmpInst(*label_bb95_i_i, ICmpInst::ICMP_UGT, int32_233, const_int32_84, ""); ICmpInst* int1_288 = new ICmpInst(*label_bb95_i_i, ICmpInst::ICMP_UGT, int32_253, const_int32_84, ""); ICmpInst* int1_289 = new ICmpInst(*label_bb95_i_i, ICmpInst::ICMP_UGT, int32_269, const_int32_84, ""); SelectInst* int32_ib_0_i_i = SelectInst::Create(int1_289, const_int32_84, int32_269, "ib.0.i.i", label_bb95_i_i); BinaryOperator* int32__op3_i_i = BinaryOperator::Create(Instruction::Shl, int32_285, const_int32_85, ".op3.i.i", label_bb95_i_i); SelectInst* int32_290 = SelectInst::Create(int1_286, const_int32_87, int32__op3_i_i, "", label_bb95_i_i); BinaryOperator* int32__op2_i_i = BinaryOperator::Create(Instruction::Shl, int32_233, const_int32_83, ".op2.i.i", label_bb95_i_i); SelectInst* int32_291 = SelectInst::Create(int1_287, const_int32_88, int32__op2_i_i, "", label_bb95_i_i); BinaryOperator* int32__op_i_i = BinaryOperator::Create(Instruction::Shl, int32_253, const_int32_70, ".op.i.i", label_bb95_i_i); SelectInst* int32_292 = SelectInst::Create(int1_288, const_int32_89, int32__op_i_i, "", label_bb95_i_i); BinaryOperator* int32_293 = BinaryOperator::Create(Instruction::Or, int32_290, int32_ib_0_i_i, "", label_bb95_i_i); BinaryOperator* int32_294 = BinaryOperator::Create(Instruction::Or, int32_293, int32_291, "", label_bb95_i_i); BinaryOperator* int32_295 = BinaryOperator::Create(Instruction::Or, int32_294, int32_292, "", label_bb95_i_i); new StoreInst(int32_295, ptr_scevgep_i_i1, false, label_bb95_i_i); BinaryOperator* int32_297 = BinaryOperator::Create(Instruction::Add, int32_169, const_int32_57, "", label_bb95_i_i); ICmpInst* int1_exitcond_i = new ICmpInst(*label_bb95_i_i, ICmpInst::ICMP_EQ, int32_297, const_int32_90, "exitcond.i"); BranchInst::Create(label_bb105_i_i, label_bb76_i_i, int1_exitcond_i, label_bb95_i_i); // Block bb105.i.i (label_bb105_i_i) Argument* fwdref_300 = new Argument(IntegerType::get(getGlobalContext(), 32)); BinaryOperator* int32_299 = BinaryOperator::Create(Instruction::Add, fwdref_300, const_int32_57, "", label_bb105_i_i); ICmpInst* int1_exitcond2_i = new ICmpInst(*label_bb105_i_i, ICmpInst::ICMP_EQ, int32_299, const_int32_91, "exitcond2.i"); BranchInst::Create(label_test_1_exit, label_bb104_preheader_i_i, int1_exitcond2_i, label_bb105_i_i); // Block bb104.preheader.i.i (label_bb104_preheader_i_i) PHINode* int32_302 = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "", label_bb104_preheader_i_i); int32_302->reserveOperandSpace(2); int32_302->addIncoming(const_int32_59, label_bb2_i_i); int32_302->addIncoming(int32_299, label_bb105_i_i); BinaryOperator* int32_tmp_i = BinaryOperator::Create(Instruction::Mul, int32_302, const_int32_90, "tmp.i", label_bb104_preheader_i_i); CastInst* double_303 = new UIToFPInst(int32_302, Type::getDoubleTy(getGlobalContext()), "", label_bb104_preheader_i_i); BinaryOperator* double_304 = BinaryOperator::Create(Instruction::FMul, double_303, const_double_92, "", label_bb104_preheader_i_i); BinaryOperator* double_305 = BinaryOperator::Create(Instruction::FAdd, double_304, const_double_80, "", label_bb104_preheader_i_i); FCmpInst* int1_306 = new FCmpInst(*label_bb104_preheader_i_i, FCmpInst::FCMP_OLT, double_305, const_double_81, ""); SelectInst* double_sy_0_i_i = SelectInst::Create(int1_306, const_double_81, double_305, "sy.0.i.i", label_bb104_preheader_i_i); CastInst* int32_307 = new FPToUIInst(double_sy_0_i_i, IntegerType::get(getGlobalContext(), 32), "", label_bb104_preheader_i_i); CastInst* double_308 = new UIToFPInst(int32_307, Type::getDoubleTy(getGlobalContext()), "", label_bb104_preheader_i_i); BinaryOperator* double_309 = BinaryOperator::Create(Instruction::FSub, double_sy_0_i_i, double_308, "", label_bb104_preheader_i_i); BinaryOperator* double_310 = BinaryOperator::Create(Instruction::FSub, const_double_82, double_309, "", label_bb104_preheader_i_i); BinaryOperator* int32_311 = BinaryOperator::Create(Instruction::Add, int32_307, const_int32_57, "", label_bb104_preheader_i_i); ICmpInst* int1_312 = new ICmpInst(*label_bb104_preheader_i_i, ICmpInst::ICMP_ULT, int32_311, const_int32_75, ""); BinaryOperator* int32_313 = BinaryOperator::Create(Instruction::Mul, int32_307, const_int32_74, "", label_bb104_preheader_i_i); BinaryOperator* int32_314 = BinaryOperator::Create(Instruction::Or, int32_313, const_int32_57, "", label_bb104_preheader_i_i); BinaryOperator* int32_315 = BinaryOperator::Create(Instruction::Add, int32_313, const_int32_74, "", label_bb104_preheader_i_i); BinaryOperator* int32_316 = BinaryOperator::Create(Instruction::Add, int32_313, const_int32_93, "", label_bb104_preheader_i_i); BranchInst::Create(label_bb76_i_i, label_bb104_preheader_i_i); // Block test_1.exit (label_test_1_exit) BinaryOperator* int32_318 = BinaryOperator::Create(Instruction::Add, int32_j_02_i_i, const_int32_57, "", label_test_1_exit); ICmpInst* int1_exitcond = new ICmpInst(*label_test_1_exit, ICmpInst::ICMP_EQ, int32_318, int32_count_1, "exitcond"); BranchInst::Create(label_bb4_i_i, label_bb2_i_i, int1_exitcond, label_test_1_exit); // Block bb4.i.i (label_bb4_i_i) CallInst* int32_320 = CallInst::Create(func_clock, "", label_bb4_i_i); int32_320->setCallingConv(CallingConv::C); int32_320->setTailCall(false);AttrListPtr int32_320_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); int32_320_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } int32_320->setAttributes(int32_320_PAL); BinaryOperator* int32_321 = BinaryOperator::Create(Instruction::Sub, int32_320, int32_164, "", label_bb4_i_i); CastInst* double_322 = new SIToFPInst(int32_321, Type::getDoubleTy(getGlobalContext()), "", label_bb4_i_i); BinaryOperator* int32_323 = BinaryOperator::Create(Instruction::Mul, int32_count_1, const_int32_94, "", label_bb4_i_i); CastInst* double_324 = new UIToFPInst(int32_323, Type::getDoubleTy(getGlobalContext()), "", label_bb4_i_i); BinaryOperator* double_325 = BinaryOperator::Create(Instruction::FDiv, double_322, double_324, "", label_bb4_i_i); BranchInst::Create(label_bb7_i_i, label_bb5_i_i, int1_160, label_bb4_i_i); // Block bb5.i.i (label_bb5_i_i) BinaryOperator* double_327 = BinaryOperator::Create(Instruction::FMul, double_325, const_double_95, "", label_bb5_i_i); std::vector int32_328_params; int32_328_params.push_back(const_ptr_96); int32_328_params.push_back(ptr_iftmp_16_0_i); int32_328_params.push_back(double_327); CallInst* int32_328 = CallInst::Create(func_printf, int32_328_params.begin(), int32_328_params.end(), "", label_bb5_i_i); int32_328->setCallingConv(CallingConv::C); int32_328->setTailCall(false);AttrListPtr int32_328_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); int32_328_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } int32_328->setAttributes(int32_328_PAL); BranchInst::Create(label_bb7_i_i, label_bb5_i_i); // Block bb7.i.i (label_bb7_i_i) Argument* fwdref_330 = new Argument(IntegerType::get(getGlobalContext(), 32)); PHINode* int32_test_dmy_counter_tmp_0_i_i = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "test_dmy_counter.tmp.0.i.i", label_bb7_i_i); int32_test_dmy_counter_tmp_0_i_i->reserveOperandSpace(3); int32_test_dmy_counter_tmp_0_i_i->addIncoming(fwdref_330, label_bb7_i_i); int32_test_dmy_counter_tmp_0_i_i->addIncoming(const_int32_59, label_bb5_i_i); int32_test_dmy_counter_tmp_0_i_i->addIncoming(const_int32_59, label_bb4_i_i); Argument* fwdref_331 = new Argument(IntegerType::get(getGlobalContext(), 32)); PHINode* int32_j_11_i_i = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "j.11.i.i", label_bb7_i_i); int32_j_11_i_i->reserveOperandSpace(3); int32_j_11_i_i->addIncoming(fwdref_331, label_bb7_i_i); int32_j_11_i_i->addIncoming(const_int32_59, label_bb5_i_i); int32_j_11_i_i->addIncoming(const_int32_59, label_bb4_i_i); std::vector ptr_scevgep_i16_i_indices; ptr_scevgep_i16_i_indices.push_back(const_int32_59); ptr_scevgep_i16_i_indices.push_back(int32_j_11_i_i); Instruction* ptr_scevgep_i16_i = GetElementPtrInst::Create(gvar_array_test_buf2, ptr_scevgep_i16_i_indices.begin(), ptr_scevgep_i16_i_indices.end(), "scevgep.i16.i", label_bb7_i_i); LoadInst* int32_332 = new LoadInst(ptr_scevgep_i16_i, "", false, label_bb7_i_i); BinaryOperator* int32_333 = BinaryOperator::Create(Instruction::Add, int32_332, int32_test_dmy_counter_tmp_0_i_i, "", label_bb7_i_i); BinaryOperator* int32_334 = BinaryOperator::Create(Instruction::Add, int32_j_11_i_i, const_int32_57, "", label_bb7_i_i); ICmpInst* int1_exitcond21 = new ICmpInst(*label_bb7_i_i, ICmpInst::ICMP_EQ, int32_334, const_int32_97, "exitcond21"); BranchInst::Create(label_benchmark_exit_i, label_bb7_i_i, int1_exitcond21, label_bb7_i_i); // Block benchmark.exit.i (label_benchmark_exit_i) std::vector ptr_336_indices; ptr_336_indices.push_back(const_int32_59); ptr_336_indices.push_back(const_int32_59); Instruction* ptr_336 = GetElementPtrInst::Create(ptr_elaped_i, ptr_336_indices.begin(), ptr_336_indices.end(), "", label_benchmark_exit_i); new StoreInst(double_325, ptr_336, false, label_benchmark_exit_i); BranchInst::Create(label_bb7_i, label_benchmark_exit_i); // Block bb7.i (label_bb7_i) Argument* fwdref_339 = new Argument(IntegerType::get(getGlobalContext(), 32)); PHINode* int32_j_018_i = PHINode::Create(IntegerType::get(getGlobalContext(), 32), "j.018.i", label_bb7_i); int32_j_018_i->reserveOperandSpace(2); int32_j_018_i->addIncoming(const_int32_59, label_benchmark_exit_i); int32_j_018_i->addIncoming(fwdref_339, label_bb12_i); std::vector ptr_scevgep_i_indices; ptr_scevgep_i_indices.push_back(const_int32_59); ptr_scevgep_i_indices.push_back(int32_j_018_i); Instruction* ptr_scevgep_i = GetElementPtrInst::Create(ptr_nm_i, ptr_scevgep_i_indices.begin(), ptr_scevgep_i_indices.end(), "scevgep.i", label_bb7_i); LoadInst* ptr_340 = new LoadInst(ptr_scevgep_i, "", false, label_bb7_i); ICmpInst* int1_341 = new ICmpInst(*label_bb7_i, ICmpInst::ICMP_EQ, ptr_340, const_ptr_65, ""); BranchInst::Create(label_bb12_i, label_bb8_i, int1_341, label_bb7_i); // Block bb8.i (label_bb8_i) std::vector ptr_scevgep21_i_indices; ptr_scevgep21_i_indices.push_back(const_int32_59); ptr_scevgep21_i_indices.push_back(int32_j_018_i); Instruction* ptr_scevgep21_i = GetElementPtrInst::Create(ptr_elaped_i, ptr_scevgep21_i_indices.begin(), ptr_scevgep21_i_indices.end(), "scevgep21.i", label_bb8_i); std::vector int32_343_params; int32_343_params.push_back(const_ptr_98); int32_343_params.push_back(ptr_340); CallInst* int32_343 = CallInst::Create(func_printf, int32_343_params.begin(), int32_343_params.end(), "", label_bb8_i); int32_343->setCallingConv(CallingConv::C); int32_343->setTailCall(false);AttrListPtr int32_343_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); int32_343_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } int32_343->setAttributes(int32_343_PAL); LoadInst* double_344 = new LoadInst(ptr_scevgep21_i, "", false, label_bb8_i); BinaryOperator* double_345 = BinaryOperator::Create(Instruction::FMul, double_344, const_double_99, "", label_bb8_i); FCmpInst* int1_346 = new FCmpInst(*label_bb8_i, FCmpInst::FCMP_OGT, double_345, const_double_81, ""); BranchInst::Create(label_bb9_i, label_bb10_i, int1_346, label_bb8_i); // Block bb9.i (label_bb9_i) std::vector int32_348_params; int32_348_params.push_back(const_ptr_100); int32_348_params.push_back(double_345); CallInst* int32_348 = CallInst::Create(func_printf, int32_348_params.begin(), int32_348_params.end(), "", label_bb9_i); int32_348->setCallingConv(CallingConv::C); int32_348->setTailCall(false);AttrListPtr int32_348_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); int32_348_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } int32_348->setAttributes(int32_348_PAL); BranchInst::Create(label_bb11_i, label_bb9_i); // Block bb10.i (label_bb10_i) std::vector int32_350_params; int32_350_params.push_back(const_ptr_101); int32_350_params.push_back(const_ptr_102); CallInst* int32_350 = CallInst::Create(func_printf, int32_350_params.begin(), int32_350_params.end(), "", label_bb10_i); int32_350->setCallingConv(CallingConv::C); int32_350->setTailCall(false);AttrListPtr int32_350_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); int32_350_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } int32_350->setAttributes(int32_350_PAL); BranchInst::Create(label_bb11_i, label_bb10_i); // Block bb11.i (label_bb11_i) CallInst* int32_352 = CallInst::Create(func_putchar, const_int32_72, "", label_bb11_i); int32_352->setCallingConv(CallingConv::C); int32_352->setTailCall(false);AttrListPtr int32_352_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); int32_352_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } int32_352->setAttributes(int32_352_PAL); BranchInst::Create(label_bb12_i, label_bb11_i); // Block bb12.i (label_bb12_i) BinaryOperator* int32_354 = BinaryOperator::Create(Instruction::Add, int32_j_018_i, const_int32_57, "", label_bb12_i); ICmpInst* int1_exitcond20 = new ICmpInst(*label_bb12_i, ICmpInst::ICMP_EQ, int32_354, const_int32_103, "exitcond20"); BranchInst::Create(label_test_all_exit, label_bb7_i, int1_exitcond20, label_bb12_i); // Block test_all.exit (label_test_all_exit) std::vector int32_356_params; int32_356_params.push_back(const_ptr_104); int32_356_params.push_back(int32_333); CallInst* int32_356 = CallInst::Create(func_printf, int32_356_params.begin(), int32_356_params.end(), "", label_test_all_exit); int32_356->setCallingConv(CallingConv::C); int32_356->setTailCall(false);AttrListPtr int32_356_PAL; { SmallVector Attrs; AttributeWithIndex PAWI; PAWI.Index = 4294967295U; PAWI.Attrs = 0 | Attribute::NoUnwind; Attrs.push_back(PAWI); int32_356_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } int32_356->setAttributes(int32_356_PAL); ReturnInst::Create(getGlobalContext(), const_int32_59, label_test_all_exit); // Resolve Forward References fwdref_109->replaceAllUsesWith(int32_indvar); delete fwdref_109; fwdref_126->replaceAllUsesWith(ptr_name_1); delete fwdref_126; fwdref_127->replaceAllUsesWith(int32_flags_1); delete fwdref_127; fwdref_128->replaceAllUsesWith(int32_count_1); delete fwdref_128; fwdref_138->replaceAllUsesWith(int32_XorShiftRand_seed__1_tmp_1_i_i); delete fwdref_138; fwdref_140->replaceAllUsesWith(int32_XorShiftRand_seed__0_tmp_1_i_i); delete fwdref_140; fwdref_154->replaceAllUsesWith(int32_y_07_i_i); delete fwdref_154; fwdref_300->replaceAllUsesWith(int32_302); delete fwdref_300; fwdref_139->replaceAllUsesWith(int32_149); delete fwdref_139; fwdref_141->replaceAllUsesWith(int32_151); delete fwdref_141; fwdref_142->replaceAllUsesWith(int32_tmp); delete fwdref_142; fwdref_170->replaceAllUsesWith(int32_297); delete fwdref_170; fwdref_171->replaceAllUsesWith(int32_tmp_i); delete fwdref_171; fwdref_184->replaceAllUsesWith(double_309); delete fwdref_184; fwdref_181->replaceAllUsesWith(double_310); delete fwdref_181; fwdref_199->replaceAllUsesWith(int1_312); delete fwdref_199; fwdref_189->replaceAllUsesWith(int32_313); delete fwdref_189; fwdref_194->replaceAllUsesWith(int32_314); delete fwdref_194; fwdref_201->replaceAllUsesWith(int32_315); delete fwdref_201; fwdref_208->replaceAllUsesWith(int32_316); delete fwdref_208; fwdref_167->replaceAllUsesWith(int32_318); delete fwdref_167; fwdref_330->replaceAllUsesWith(int32_333); delete fwdref_330; fwdref_331->replaceAllUsesWith(int32_334); delete fwdref_331; fwdref_339->replaceAllUsesWith(int32_354); delete fwdref_339; } return mod; }