; LLVM IR from rl-tools/rl-tools :: src/rl/environments/pendulum/td3/cpu (benchmark)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.rl_tools::devices::CPU" = type <{ [8 x i8], %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, [7 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.rl_tools::rl::loop::steps::timing::State" = type { %"struct.rl_tools::rl::algorithms::td3::loop::core::State", %"class.std::chrono::time_point", %"class.std::chrono::time_point", i64 }
%"struct.rl_tools::rl::algorithms::td3::loop::core::State" = type { %"struct.rl_tools::nn::optimizers::Adam", [2 x %"struct.rl_tools::nn::optimizers::Adam"], %"class.std::mersenne_twister_engine", %"struct.rl_tools::rl::components::OffPolicyRunner", [1 x %"struct.rl_tools::rl::environments::Pendulum"], [1 x %"struct.rl_tools::rl::environments::pendulum::DefaultParameters"], %"struct.rl_tools::rl::algorithms::td3::ActorCritic", %"struct.rl_tools::rl::components::off_policy_runner::SequentialBatch", %"struct.rl_tools::rl::algorithms::td3::CriticTrainingBuffers", [2 x %"struct.rl_tools::nn_models::sequential::ModuleBuffer"], %"struct.rl_tools::rl::components::off_policy_runner::SequentialBatch", %"struct.rl_tools::rl::algorithms::td3::ActorTrainingBuffers", [2 x %"struct.rl_tools::nn_models::sequential::ModuleBuffer.114"], %"struct.rl_tools::nn_models::sequential::ModuleBuffer.114", i64 }
%"struct.rl_tools::nn::optimizers::Adam" = type { %"struct.rl_tools::nn::optimizers::adam::Parameters", float, float, i64 }
%"struct.rl_tools::nn::optimizers::adam::Parameters" = type { float, float, float, float, float, float, float, float, float }
%"class.std::mersenne_twister_engine" = type { [624 x i64], i64 }
%"struct.rl_tools::rl::components::OffPolicyRunner" = type { %"struct.rl_tools::rl::components::off_policy_runner::ParametersRuntime", %"struct.rl_tools::rl::components::off_policy_runner::Buffers", i64, i8, %"struct.rl_tools::Matrix.3", [8 x i8], %"struct.rl_tools::Matrix.5", %"struct.rl_tools::Matrix.7", %"struct.rl_tools::Matrix.9", %"struct.rl_tools::Matrix.11", %"struct.rl_tools::Matrix.1", %"struct.rl_tools::Matrix.13", %"struct.rl_tools::Matrix.15" }
%"struct.rl_tools::rl::components::off_policy_runner::ParametersRuntime" = type { float }
%"struct.rl_tools::rl::components::off_policy_runner::Buffers" = type { %"struct.rl_tools::Matrix", %"struct.rl_tools::Matrix.0", %"struct.rl_tools::Matrix.1", %"struct.rl_tools::Matrix", %"struct.rl_tools::Matrix.0" }
%"struct.rl_tools::Matrix" = type { %"struct.rl_tools::matrix::MatrixDynamic" }
%"struct.rl_tools::matrix::MatrixDynamic" = type { ptr }
%"struct.rl_tools::Matrix.0" = type { %"struct.rl_tools::matrix::MatrixDynamic" }
%"struct.rl_tools::Matrix.3" = type { %"struct.rl_tools::matrix::MatrixDynamic.4" }
%"struct.rl_tools::matrix::MatrixDynamic.4" = type { ptr }
%"struct.rl_tools::Matrix.5" = type { %"struct.rl_tools::matrix::MatrixDynamic.6" }
%"struct.rl_tools::matrix::MatrixDynamic.6" = type { ptr }
%"struct.rl_tools::Matrix.7" = type { %"struct.rl_tools::matrix::MatrixDynamic.8" }
%"struct.rl_tools::matrix::MatrixDynamic.8" = type { ptr }
%"struct.rl_tools::Matrix.9" = type { %"struct.rl_tools::matrix::MatrixDynamic.10" }
%"struct.rl_tools::matrix::MatrixDynamic.10" = type { ptr }
%"struct.rl_tools::Matrix.11" = type { %"struct.rl_tools::matrix::MatrixDynamic.12" }
%"struct.rl_tools::matrix::MatrixDynamic.12" = type { ptr }
%"struct.rl_tools::Matrix.1" = type { %"struct.rl_tools::matrix::MatrixDynamic.2" }
%"struct.rl_tools::matrix::MatrixDynamic.2" = type { ptr }
%"struct.rl_tools::Matrix.13" = type { %"struct.rl_tools::matrix::MatrixDynamic.14" }
%"struct.rl_tools::matrix::MatrixDynamic.14" = type { ptr }
%"struct.rl_tools::Matrix.15" = type { %"struct.rl_tools::matrix::MatrixDynamic.16" }
%"struct.rl_tools::matrix::MatrixDynamic.16" = type { ptr }
%"struct.rl_tools::rl::environments::Pendulum" = type { i8 }
%"struct.rl_tools::rl::environments::pendulum::DefaultParameters" = type { i8 }
%"struct.rl_tools::rl::algorithms::td3::ActorCritic" = type { float, float, float, %"struct.rl_tools::nn_models::sequential::Build", %"struct.rl_tools::nn_models::sequential::Build.51", %"struct.rl_tools::nn_models::sequential::Build.66", %"struct.rl_tools::nn_models::sequential::Build.66", %"struct.rl_tools::nn_models::sequential::Build.90", %"struct.rl_tools::nn_models::sequential::Build.90", %"struct.rl_tools::nn::optimizers::Adam", [2 x %"struct.rl_tools::nn::optimizers::Adam"] }
%"struct.rl_tools::nn_models::sequential::Build" = type { %"struct.rl_tools::nn_models::sequential::ModuleGradient" }
%"struct.rl_tools::nn_models::sequential::ModuleGradient" = type { %"struct.rl_tools::nn_models::sequential::ModuleBackward" }
%"struct.rl_tools::nn_models::sequential::ModuleBackward" = type { %"struct.rl_tools::nn_models::sequential::ModuleForward" }
%"struct.rl_tools::nn_models::sequential::ModuleForward" = type { %"struct.rl_tools::nn_models::mlp::NeuralNetworkGradient", %"struct.rl_tools::nn_models::sequential::ModuleGradient.48" }
%"struct.rl_tools::nn_models::mlp::NeuralNetworkGradient" = type { %"struct.rl_tools::nn_models::mlp::NeuralNetworkBackward" }
%"struct.rl_tools::nn_models::mlp::NeuralNetworkBackward" = type { %"struct.rl_tools::nn_models::mlp::NeuralNetworkForward" }
%"struct.rl_tools::nn_models::mlp::NeuralNetworkForward" = type { %"struct.rl_tools::nn::layers::dense::LayerGradient", [1 x %"struct.rl_tools::nn::layers::dense::LayerGradient.26"], %"struct.rl_tools::nn::layers::dense::LayerGradient.37" }
%"struct.rl_tools::nn::layers::dense::LayerGradient" = type { %"struct.rl_tools::nn::layers::dense::LayerBackward", %"struct.rl_tools::Matrix.24" }
%"struct.rl_tools::nn::layers::dense::LayerBackward" = type { %"struct.rl_tools::nn::layers::dense::LayerForward", %"struct.rl_tools::Matrix.24" }
%"struct.rl_tools::nn::layers::dense::LayerForward" = type { %"struct.rl_tools::nn::parameters::Adam::instance", %"struct.rl_tools::nn::parameters::Adam::instance.19" }
%"struct.rl_tools::nn::parameters::Adam::instance" = type { %"struct.rl_tools::nn::parameters::Gradient::instance", %"struct.rl_tools::Matrix.17", %"struct.rl_tools::Matrix.17" }
%"struct.rl_tools::nn::parameters::Gradient::instance" = type { %"struct.rl_tools::nn::parameters::Plain::instance", %"struct.rl_tools::Matrix.17" }
%"struct.rl_tools::nn::parameters::Plain::instance" = type { %"struct.rl_tools::Matrix.17" }
%"struct.rl_tools::Matrix.17" = type { %"struct.rl_tools::matrix::MatrixDynamic.18" }
%"struct.rl_tools::matrix::MatrixDynamic.18" = type { ptr }
%"struct.rl_tools::nn::parameters::Adam::instance.19" = type { %"struct.rl_tools::nn::parameters::Gradient::instance.20", %"struct.rl_tools::Matrix.22", %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::parameters::Gradient::instance.20" = type { %"struct.rl_tools::nn::parameters::Plain::instance.21", %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::parameters::Plain::instance.21" = type { %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::Matrix.22" = type { %"struct.rl_tools::matrix::MatrixDynamic.23" }
%"struct.rl_tools::matrix::MatrixDynamic.23" = type { ptr }
%"struct.rl_tools::Matrix.24" = type { %"struct.rl_tools::matrix::MatrixDynamic.25" }
%"struct.rl_tools::matrix::MatrixDynamic.25" = type { ptr }
%"struct.rl_tools::nn::layers::dense::LayerGradient.26" = type { %"struct.rl_tools::nn::layers::dense::LayerBackward.27", %"struct.rl_tools::Matrix.24" }
%"struct.rl_tools::nn::layers::dense::LayerBackward.27" = type { %"struct.rl_tools::nn::layers::dense::LayerForward.28", %"struct.rl_tools::Matrix.24" }
%"struct.rl_tools::nn::layers::dense::LayerForward.28" = type { %"struct.rl_tools::nn::parameters::Adam::instance.29", %"struct.rl_tools::nn::parameters::Adam::instance.34" }
%"struct.rl_tools::nn::parameters::Adam::instance.29" = type { %"struct.rl_tools::nn::parameters::Gradient::instance.30", %"struct.rl_tools::Matrix.32", %"struct.rl_tools::Matrix.32" }
%"struct.rl_tools::nn::parameters::Gradient::instance.30" = type { %"struct.rl_tools::nn::parameters::Plain::instance.31", %"struct.rl_tools::Matrix.32" }
%"struct.rl_tools::nn::parameters::Plain::instance.31" = type { %"struct.rl_tools::Matrix.32" }
%"struct.rl_tools::Matrix.32" = type { %"struct.rl_tools::matrix::MatrixDynamic.33" }
%"struct.rl_tools::matrix::MatrixDynamic.33" = type { ptr }
%"struct.rl_tools::nn::parameters::Adam::instance.34" = type { %"struct.rl_tools::nn::parameters::Gradient::instance.35", %"struct.rl_tools::Matrix.22", %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::parameters::Gradient::instance.35" = type { %"struct.rl_tools::nn::parameters::Plain::instance.36", %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::parameters::Plain::instance.36" = type { %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::layers::dense::LayerGradient.37" = type { %"struct.rl_tools::nn::layers::dense::LayerBackward.38", %"struct.rl_tools::Matrix.46" }
%"struct.rl_tools::nn::layers::dense::LayerBackward.38" = type { %"struct.rl_tools::nn::layers::dense::LayerForward.39", %"struct.rl_tools::Matrix.46" }
%"struct.rl_tools::nn::layers::dense::LayerForward.39" = type { %"struct.rl_tools::nn::parameters::Adam::instance.40", %"struct.rl_tools::nn::parameters::Adam::instance.43" }
%"struct.rl_tools::nn::parameters::Adam::instance.40" = type { %"struct.rl_tools::nn::parameters::Gradient::instance.41", %"struct.rl_tools::Matrix.22", %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::parameters::Gradient::instance.41" = type { %"struct.rl_tools::nn::parameters::Plain::instance.42", %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::parameters::Plain::instance.42" = type { %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::parameters::Adam::instance.43" = type { %"struct.rl_tools::nn::parameters::Gradient::instance.44", %"struct.rl_tools::Matrix.1", %"struct.rl_tools::Matrix.1" }
%"struct.rl_tools::nn::parameters::Gradient::instance.44" = type { %"struct.rl_tools::nn::parameters::Plain::instance.45", %"struct.rl_tools::Matrix.1" }
%"struct.rl_tools::nn::parameters::Plain::instance.45" = type { %"struct.rl_tools::Matrix.1" }
%"struct.rl_tools::Matrix.46" = type { %"struct.rl_tools::matrix::MatrixDynamic.47" }
%"struct.rl_tools::matrix::MatrixDynamic.47" = type { ptr }
%"struct.rl_tools::nn_models::sequential::ModuleGradient.48" = type { %"struct.rl_tools::nn_models::sequential::ModuleBackward.base", [7 x i8] }
%"struct.rl_tools::nn_models::sequential::ModuleBackward.base" = type { %"struct.rl_tools::nn_models::sequential::ModuleForward.base" }
%"struct.rl_tools::nn_models::sequential::ModuleForward.base" = type <{ %"struct.rl_tools::nn::layers::td3_sampling::LayerGradient", i8 }>
%"struct.rl_tools::nn::layers::td3_sampling::LayerGradient" = type { %"struct.rl_tools::nn::layers::td3_sampling::LayerBackward", %"struct.rl_tools::Matrix.46" }
%"struct.rl_tools::nn::layers::td3_sampling::LayerBackward" = type { %"struct.rl_tools::nn::layers::td3_sampling::LayerForward", %"struct.rl_tools::Matrix.46" }
%"struct.rl_tools::nn::layers::td3_sampling::LayerForward" = type { float }
%"struct.rl_tools::nn_models::sequential::Build.51" = type { %"struct.rl_tools::nn_models::sequential::ModuleForward.52" }
%"struct.rl_tools::nn_models::sequential::ModuleForward.52" = type { %"struct.rl_tools::nn_models::mlp::NeuralNetworkForward.53", %"struct.rl_tools::nn_models::sequential::ModuleForward.63" }
%"struct.rl_tools::nn_models::mlp::NeuralNetworkForward.53" = type { %"struct.rl_tools::nn::layers::dense::LayerForward.54", [1 x %"struct.rl_tools::nn::layers::dense::LayerForward.57"], %"struct.rl_tools::nn::layers::dense::LayerForward.60" }
%"struct.rl_tools::nn::layers::dense::LayerForward.54" = type { %"struct.rl_tools::nn::parameters::Plain::instance.55", %"struct.rl_tools::nn::parameters::Plain::instance.56" }
%"struct.rl_tools::nn::parameters::Plain::instance.55" = type { %"struct.rl_tools::Matrix.17" }
%"struct.rl_tools::nn::parameters::Plain::instance.56" = type { %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::layers::dense::LayerForward.57" = type { %"struct.rl_tools::nn::parameters::Plain::instance.58", %"struct.rl_tools::nn::parameters::Plain::instance.59" }
%"struct.rl_tools::nn::parameters::Plain::instance.58" = type { %"struct.rl_tools::Matrix.32" }
%"struct.rl_tools::nn::parameters::Plain::instance.59" = type { %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::layers::dense::LayerForward.60" = type { %"struct.rl_tools::nn::parameters::Plain::instance.61", %"struct.rl_tools::nn::parameters::Plain::instance.62" }
%"struct.rl_tools::nn::parameters::Plain::instance.61" = type { %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::parameters::Plain::instance.62" = type { %"struct.rl_tools::Matrix.1" }
%"struct.rl_tools::nn_models::sequential::ModuleForward.63" = type <{ %"struct.rl_tools::nn::layers::td3_sampling::LayerForward.64", [4 x i8] }>
%"struct.rl_tools::nn::layers::td3_sampling::LayerForward.64" = type { float }
%"struct.rl_tools::nn_models::sequential::Build.66" = type { %"struct.rl_tools::nn_models::sequential::ModuleGradient.base.89", [7 x i8] }
%"struct.rl_tools::nn_models::sequential::ModuleGradient.base.89" = type { %"struct.rl_tools::nn_models::sequential::ModuleBackward.base.88" }
%"struct.rl_tools::nn_models::sequential::ModuleBackward.base.88" = type { %"struct.rl_tools::nn_models::sequential::ModuleForward.base.87" }
%"struct.rl_tools::nn_models::sequential::ModuleForward.base.87" = type <{ %"struct.rl_tools::nn_models::mlp::NeuralNetworkGradient.70", i8 }>
%"struct.rl_tools::nn_models::mlp::NeuralNetworkGradient.70" = type { %"struct.rl_tools::nn_models::mlp::NeuralNetworkBackward.71" }
%"struct.rl_tools::nn_models::mlp::NeuralNetworkBackward.71" = type { %"struct.rl_tools::nn_models::mlp::NeuralNetworkForward.72" }
%"struct.rl_tools::nn_models::mlp::NeuralNetworkForward.72" = type { %"struct.rl_tools::nn::layers::dense::LayerGradient.73", [1 x %"struct.rl_tools::nn::layers::dense::LayerGradient.81"], %"struct.rl_tools::nn::layers::dense::LayerGradient.84" }
%"struct.rl_tools::nn::layers::dense::LayerGradient.73" = type { %"struct.rl_tools::nn::layers::dense::LayerBackward.74", %"struct.rl_tools::Matrix.24" }
%"struct.rl_tools::nn::layers::dense::LayerBackward.74" = type { %"struct.rl_tools::nn::layers::dense::LayerForward.75", %"struct.rl_tools::Matrix.24" }
%"struct.rl_tools::nn::layers::dense::LayerForward.75" = type { %"struct.rl_tools::nn::parameters::Adam::instance.76", %"struct.rl_tools::nn::parameters::Adam::instance.19" }
%"struct.rl_tools::nn::parameters::Adam::instance.76" = type { %"struct.rl_tools::nn::parameters::Gradient::instance.77", %"struct.rl_tools::Matrix.79", %"struct.rl_tools::Matrix.79" }
%"struct.rl_tools::nn::parameters::Gradient::instance.77" = type { %"struct.rl_tools::nn::parameters::Plain::instance.78", %"struct.rl_tools::Matrix.79" }
%"struct.rl_tools::nn::parameters::Plain::instance.78" = type { %"struct.rl_tools::Matrix.79" }
%"struct.rl_tools::Matrix.79" = type { %"struct.rl_tools::matrix::MatrixDynamic.80" }
%"struct.rl_tools::matrix::MatrixDynamic.80" = type { ptr }
%"struct.rl_tools::nn::layers::dense::LayerGradient.81" = type { %"struct.rl_tools::nn::layers::dense::LayerBackward.82", %"struct.rl_tools::Matrix.24" }
%"struct.rl_tools::nn::layers::dense::LayerBackward.82" = type { %"struct.rl_tools::nn::layers::dense::LayerForward.83", %"struct.rl_tools::Matrix.24" }
%"struct.rl_tools::nn::layers::dense::LayerForward.83" = type { %"struct.rl_tools::nn::parameters::Adam::instance.29", %"struct.rl_tools::nn::parameters::Adam::instance.34" }
%"struct.rl_tools::nn::layers::dense::LayerGradient.84" = type { %"struct.rl_tools::nn::layers::dense::LayerBackward.85", %"struct.rl_tools::Matrix.46" }
%"struct.rl_tools::nn::layers::dense::LayerBackward.85" = type { %"struct.rl_tools::nn::layers::dense::LayerForward.86", %"struct.rl_tools::Matrix.46" }
%"struct.rl_tools::nn::layers::dense::LayerForward.86" = type { %"struct.rl_tools::nn::parameters::Adam::instance.40", %"struct.rl_tools::nn::parameters::Adam::instance.43" }
%"struct.rl_tools::nn_models::sequential::Build.90" = type { %"struct.rl_tools::nn_models::sequential::ModuleForward.base.97", [7 x i8] }
%"struct.rl_tools::nn_models::sequential::ModuleForward.base.97" = type <{ %"struct.rl_tools::nn_models::mlp::NeuralNetworkForward.92", i8 }>
%"struct.rl_tools::nn_models::mlp::NeuralNetworkForward.92" = type { %"struct.rl_tools::nn::layers::dense::LayerForward.93", [1 x %"struct.rl_tools::nn::layers::dense::LayerForward.95"], %"struct.rl_tools::nn::layers::dense::LayerForward.96" }
%"struct.rl_tools::nn::layers::dense::LayerForward.93" = type { %"struct.rl_tools::nn::parameters::Plain::instance.94", %"struct.rl_tools::nn::parameters::Plain::instance.56" }
%"struct.rl_tools::nn::parameters::Plain::instance.94" = type { %"struct.rl_tools::Matrix.79" }
%"struct.rl_tools::nn::layers::dense::LayerForward.95" = type { %"struct.rl_tools::nn::parameters::Plain::instance.58", %"struct.rl_tools::nn::parameters::Plain::instance.59" }
%"struct.rl_tools::nn::layers::dense::LayerForward.96" = type { %"struct.rl_tools::nn::parameters::Plain::instance.61", %"struct.rl_tools::nn::parameters::Plain::instance.62" }
%"struct.rl_tools::rl::algorithms::td3::CriticTrainingBuffers" = type { %"struct.rl_tools::Tensor.102", %"struct.rl_tools::Tensor.106", %"struct.rl_tools::Tensor.108", %"struct.rl_tools::Tensor.109", %"struct.rl_tools::Tensor.102", %"struct.rl_tools::Tensor.102", %"struct.rl_tools::Tensor.102", %"struct.rl_tools::Tensor.102", %"struct.rl_tools::Tensor.106", %"struct.rl_tools::Tensor.102" }
%"struct.rl_tools::Tensor.108" = type { %"struct.rl_tools::tensor::TensorDynamic.107" }
%"struct.rl_tools::tensor::TensorDynamic.107" = type { ptr }
%"struct.rl_tools::Tensor.109" = type { %"struct.rl_tools::tensor::TensorDynamic.107" }
%"struct.rl_tools::Tensor.106" = type { %"struct.rl_tools::tensor::TensorDynamic.107" }
%"struct.rl_tools::Tensor.102" = type { %"struct.rl_tools::tensor::TensorDynamic.103" }
%"struct.rl_tools::tensor::TensorDynamic.103" = type { ptr }
%"struct.rl_tools::nn_models::sequential::ModuleBuffer" = type { %"struct.rl_tools::Tensor.110", %"struct.rl_tools::Tensor.110", %"struct.rl_tools::nn_models::sequential::ContentBuffer" }
%"struct.rl_tools::Tensor.110" = type { %"struct.rl_tools::tensor::TensorDynamic.111" }
%"struct.rl_tools::tensor::TensorDynamic.111" = type { ptr }
%"struct.rl_tools::nn_models::sequential::ContentBuffer" = type { %"struct.rl_tools::nn_models::mlp::NeuralNetworkBuffers", [8 x i8] }
%"struct.rl_tools::nn_models::mlp::NeuralNetworkBuffers" = type <{ %"struct.rl_tools::Matrix.24", %"struct.rl_tools::Matrix.24", [8 x i8] }>
%"struct.rl_tools::rl::components::off_policy_runner::SequentialBatch" = type { %"struct.rl_tools::Tensor", %"struct.rl_tools::Tensor.99", %"struct.rl_tools::Tensor.99", %"struct.rl_tools::Tensor.100", %"struct.rl_tools::Tensor.101", %"struct.rl_tools::Tensor.99", %"struct.rl_tools::Tensor.100", %"struct.rl_tools::Tensor.101", %"struct.rl_tools::Tensor.99", %"struct.rl_tools::Tensor.102", %"struct.rl_tools::Tensor.104", %"struct.rl_tools::Tensor.104", %"struct.rl_tools::Tensor.104", %"struct.rl_tools::Tensor.104" }
%"struct.rl_tools::Tensor" = type { %"struct.rl_tools::tensor::TensorDynamic" }
%"struct.rl_tools::tensor::TensorDynamic" = type { ptr }
%"struct.rl_tools::Tensor.100" = type { %"struct.rl_tools::tensor::TensorDynamic" }
%"struct.rl_tools::Tensor.101" = type { %"struct.rl_tools::tensor::TensorDynamic" }
%"struct.rl_tools::Tensor.99" = type { %"struct.rl_tools::tensor::TensorDynamic" }
%"struct.rl_tools::Tensor.104" = type { %"struct.rl_tools::tensor::TensorDynamic.105" }
%"struct.rl_tools::tensor::TensorDynamic.105" = type { ptr }
%"struct.rl_tools::rl::algorithms::td3::ActorTrainingBuffers" = type { %"struct.rl_tools::Tensor.106", %"struct.rl_tools::Tensor.108", %"struct.rl_tools::Tensor.109", %"struct.rl_tools::Tensor.102", %"struct.rl_tools::Tensor.102", %"struct.rl_tools::Tensor.106", %"struct.rl_tools::Tensor.102", %"struct.rl_tools::Tensor.112" }
%"struct.rl_tools::Tensor.112" = type { %"struct.rl_tools::tensor::TensorDynamic.113" }
%"struct.rl_tools::tensor::TensorDynamic.113" = type { ptr }
%"struct.rl_tools::nn_models::sequential::ModuleBuffer.114" = type { %"struct.rl_tools::Tensor.115", %"struct.rl_tools::Tensor.115", %"struct.rl_tools::nn_models::sequential::ContentBuffer.116" }
%"struct.rl_tools::Tensor.115" = type { %"struct.rl_tools::tensor::TensorDynamic.103" }
%"struct.rl_tools::nn_models::sequential::ContentBuffer.116" = type { %"struct.rl_tools::nn_models::mlp::NeuralNetworkBuffers.117", %"struct.rl_tools::nn_models::sequential::ContentBuffer.119" }
%"struct.rl_tools::nn_models::mlp::NeuralNetworkBuffers.117" = type <{ %"struct.rl_tools::Matrix.24", %"struct.rl_tools::Matrix.24", [8 x i8] }>
%"struct.rl_tools::nn_models::sequential::ContentBuffer.119" = type <{ %"struct.rl_tools::nn::layers::td3_sampling::Buffer", [8 x i8] }>
%"struct.rl_tools::nn::layers::td3_sampling::Buffer" = type { %"struct.rl_tools::Matrix.46" }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"struct.rl_tools::devices::CPU", align 8
  %3 = alloca %"struct.rl_tools::rl::loop::steps::timing::State", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 112, ptr %2) #5
  call void @_ZN8rl_tools7devices3CPUINS0_3cpu13SpecificationINS0_4math3CPUENS0_6random3CPUENS0_7logging3CPUEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(105) %2) #5
  call void @llvm.lifetime.start.p0(i64 7096, ptr %3) #5
  invoke void @_ZN8rl_tools2rl4loop5steps6timing5StateINS3_6ConfigINS0_10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENS0_12environments8PendulumINSD_8pendulum13SpecificationIfmNSF_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNS9_22ConfigApproximatorsMLPELb1EEENS3_10ParametersImLm1EEEEENS9_5StateISN_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(7096) %3)
          to label %6 unwind label %14

6:                                                ; preds = %0
  invoke void @_ZN8rl_tools6mallocINS_7devices3CPUINS1_3cpu13SpecificationINS1_4math3CPUENS1_6random3CPUENS1_7logging3CPUEEEEENS_2rl10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENSD_12environments8PendulumINSL_8pendulum13SpecificationIfmNSN_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNSH_22ConfigApproximatorsMLPELb1EEEEEvRT_RNSH_5StateIT0_EE(ptr noundef nonnull align 8 dereferenceable(105) %2, ptr noundef nonnull align 8 dereferenceable(7072) %3)
          to label %7 unwind label %14

7:                                                ; preds = %6
  invoke void @_ZN8rl_tools4initINS_7devices3CPUINS1_3cpu13SpecificationINS1_4math3CPUENS1_6random3CPUENS1_7logging3CPUEEEEENS_2rl4loop5steps6timing6ConfigINSD_10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENSD_12environments8PendulumINSP_8pendulum13SpecificationIfmNSR_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNSL_22ConfigApproximatorsMLPELb1EEENSG_10ParametersImLm1EEEEEEEvRT_RNSG_5StateIT0_NS16_4NEXT5StateINS16_4NEXTEEEEENS16_2TIE(ptr noundef nonnull align 8 dereferenceable(105) %2, ptr noundef nonnull align 8 dereferenceable(7096) %3, i64 noundef 0)
          to label %8 unwind label %14

8:                                                ; preds = %7
  br label %9

9:                                                ; preds = %13, %8
  %10 = invoke noundef zeroext i1 @_ZN8rl_tools4stepINS_7devices3CPUINS1_3cpu13SpecificationINS1_4math3CPUENS1_6random3CPUENS1_7logging3CPUEEEEENS_2rl4loop5steps6timing6ConfigINSD_10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENSD_12environments8PendulumINSP_8pendulum13SpecificationIfmNSR_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNSL_22ConfigApproximatorsMLPELb1EEENSG_10ParametersImLm1EEEEEEEbRT_RNSG_5StateIT0_NS16_4NEXT5StateINS16_4NEXTEEEEE(ptr noundef nonnull align 8 dereferenceable(105) %2, ptr noundef nonnull align 8 dereferenceable(7096) %3)
          to label %11 unwind label %14

11:                                               ; preds = %9
  %12 = xor i1 %10, true
  br i1 %12, label %13, label %18

13:                                               ; preds = %11
  br label %9, !llvm.loop !5

14:                                               ; preds = %18, %9, %7, %6, %0
  %15 = landingpad { ptr, i32 }
          cleanup
  %16 = extractvalue { ptr, i32 } %15, 0
  store ptr %16, ptr %4, align 8
  %17 = extractvalue { ptr, i32 } %15, 1
  store i32 %17, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 7096, ptr %3) #5
  call void @_ZN8rl_tools7devices3CPUINS0_3cpu13SpecificationINS0_4math3CPUENS0_6random3CPUENS0_7logging3CPUEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(105) %2) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr %2) #5
  br label %21

18:                                               ; preds = %11
  invoke void @_ZN8rl_tools4freeINS_7devices3CPUINS1_3cpu13SpecificationINS1_4math3CPUENS1_6random3CPUENS1_7logging3CPUEEEEENS_2rl4loop5steps6timing6ConfigINSD_10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENSD_12environments8PendulumINSP_8pendulum13SpecificationIfmNSR_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNSL_22ConfigApproximatorsMLPELb1EEENSG_10ParametersImLm1EEEEEEEvRT_RNSG_5StateIT0_NS16_4NEXT5StateINS16_4NEXTEEEEE(ptr noundef nonnull align 8 dereferenceable(105) %2, ptr noundef nonnull align 8 dereferenceable(7096) %3)
          to label %19 unwind label %14

19:                                               ; preds = %18
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 7096, ptr %3) #5
  call void @_ZN8rl_tools7devices3CPUINS0_3cpu13SpecificationINS0_4math3CPUENS0_6random3CPUENS0_7logging3CPUEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(105) %2) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr %2) #5
  %20 = load i32, ptr %1, align 4
  ret i32 %20

21:                                               ; preds = %14
  %22 = load ptr, ptr %4, align 8
  %23 = load i32, ptr %5, align 4
  %24 = insertvalue { ptr, i32 } poison, ptr %22, 0
  %25 = insertvalue { ptr, i32 } %24, i32 %23, 1
  resume { ptr, i32 } %25
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8rl_tools7devices3CPUINS0_3cpu13SpecificationINS0_4math3CPUENS0_6random3CPUENS0_7logging3CPUEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(105)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8rl_tools2rl4loop5steps6timing5StateINS3_6ConfigINS0_10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENS0_12environments8PendulumINSD_8pendulum13SpecificationIfmNSF_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNS9_22ConfigApproximatorsMLPELb1EEENS3_10ParametersImLm1EEEEENS9_5StateISN_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(7096)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8rl_tools6mallocINS_7devices3CPUINS1_3cpu13SpecificationINS1_4math3CPUENS1_6random3CPUENS1_7logging3CPUEEEEENS_2rl10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENSD_12environments8PendulumINSL_8pendulum13SpecificationIfmNSN_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNSH_22ConfigApproximatorsMLPELb1EEEEEvRT_RNSH_5StateIT0_EE(ptr noundef nonnull align 8 dereferenceable(105), ptr noundef nonnull align 8 dereferenceable(7072)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8rl_tools4initINS_7devices3CPUINS1_3cpu13SpecificationINS1_4math3CPUENS1_6random3CPUENS1_7logging3CPUEEEEENS_2rl4loop5steps6timing6ConfigINSD_10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENSD_12environments8PendulumINSP_8pendulum13SpecificationIfmNSR_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNSL_22ConfigApproximatorsMLPELb1EEENSG_10ParametersImLm1EEEEEEEvRT_RNSG_5StateIT0_NS16_4NEXT5StateINS16_4NEXTEEEEENS16_2TIE(ptr noundef nonnull align 8 dereferenceable(105), ptr noundef nonnull align 8 dereferenceable(7096), i64 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN8rl_tools4stepINS_7devices3CPUINS1_3cpu13SpecificationINS1_4math3CPUENS1_6random3CPUENS1_7logging3CPUEEEEENS_2rl4loop5steps6timing6ConfigINSD_10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENSD_12environments8PendulumINSP_8pendulum13SpecificationIfmNSR_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNSL_22ConfigApproximatorsMLPELb1EEENSG_10ParametersImLm1EEEEEEEbRT_RNSG_5StateIT0_NS16_4NEXT5StateINS16_4NEXTEEEEE(ptr noundef nonnull align 8 dereferenceable(105), ptr noundef nonnull align 8 dereferenceable(7096)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8rl_tools4freeINS_7devices3CPUINS1_3cpu13SpecificationINS1_4math3CPUENS1_6random3CPUENS1_7logging3CPUEEEEENS_2rl4loop5steps6timing6ConfigINSD_10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENSD_12environments8PendulumINSP_8pendulum13SpecificationIfmNSR_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNSL_22ConfigApproximatorsMLPELb1EEENSG_10ParametersImLm1EEEEEEEvRT_RNSG_5StateIT0_NS16_4NEXT5StateINS16_4NEXTEEEEE(ptr noundef nonnull align 8 dereferenceable(105), ptr noundef nonnull align 8 dereferenceable(7096)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8rl_tools7devices3CPUINS0_3cpu13SpecificationINS0_4math3CPUENS0_6random3CPUENS0_7logging3CPUEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(105)) unnamed_addr #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.rl_tools::devices::CPU" = type <{ [8 x i8], %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, [7 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.rl_tools::rl::loop::steps::timing::State" = type { %"struct.rl_tools::rl::algorithms::td3::loop::core::State", %"class.std::chrono::time_point", %"class.std::chrono::time_point", i64 }
%"struct.rl_tools::rl::algorithms::td3::loop::core::State" = type { %"struct.rl_tools::nn::optimizers::Adam", [2 x %"struct.rl_tools::nn::optimizers::Adam"], %"class.std::mersenne_twister_engine", %"struct.rl_tools::rl::components::OffPolicyRunner", [1 x %"struct.rl_tools::rl::environments::Pendulum"], [1 x %"struct.rl_tools::rl::environments::pendulum::DefaultParameters"], %"struct.rl_tools::rl::algorithms::td3::ActorCritic", %"struct.rl_tools::rl::components::off_policy_runner::SequentialBatch", %"struct.rl_tools::rl::algorithms::td3::CriticTrainingBuffers", [2 x %"struct.rl_tools::nn_models::sequential::ModuleBuffer"], %"struct.rl_tools::rl::components::off_policy_runner::SequentialBatch", %"struct.rl_tools::rl::algorithms::td3::ActorTrainingBuffers", [2 x %"struct.rl_tools::nn_models::sequential::ModuleBuffer.114"], %"struct.rl_tools::nn_models::sequential::ModuleBuffer.114", i64 }
%"struct.rl_tools::nn::optimizers::Adam" = type { %"struct.rl_tools::nn::optimizers::adam::Parameters", float, float, i64 }
%"struct.rl_tools::nn::optimizers::adam::Parameters" = type { float, float, float, float, float, float, float, float, float }
%"class.std::mersenne_twister_engine" = type { [624 x i64], i64 }
%"struct.rl_tools::rl::components::OffPolicyRunner" = type { %"struct.rl_tools::rl::components::off_policy_runner::ParametersRuntime", %"struct.rl_tools::rl::components::off_policy_runner::Buffers", i64, i8, %"struct.rl_tools::Matrix.3", [8 x i8], %"struct.rl_tools::Matrix.5", %"struct.rl_tools::Matrix.7", %"struct.rl_tools::Matrix.9", %"struct.rl_tools::Matrix.11", %"struct.rl_tools::Matrix.1", %"struct.rl_tools::Matrix.13", %"struct.rl_tools::Matrix.15" }
%"struct.rl_tools::rl::components::off_policy_runner::ParametersRuntime" = type { float }
%"struct.rl_tools::rl::components::off_policy_runner::Buffers" = type { %"struct.rl_tools::Matrix", %"struct.rl_tools::Matrix.0", %"struct.rl_tools::Matrix.1", %"struct.rl_tools::Matrix", %"struct.rl_tools::Matrix.0" }
%"struct.rl_tools::Matrix" = type { %"struct.rl_tools::matrix::MatrixDynamic" }
%"struct.rl_tools::matrix::MatrixDynamic" = type { ptr }
%"struct.rl_tools::Matrix.0" = type { %"struct.rl_tools::matrix::MatrixDynamic" }
%"struct.rl_tools::Matrix.3" = type { %"struct.rl_tools::matrix::MatrixDynamic.4" }
%"struct.rl_tools::matrix::MatrixDynamic.4" = type { ptr }
%"struct.rl_tools::Matrix.5" = type { %"struct.rl_tools::matrix::MatrixDynamic.6" }
%"struct.rl_tools::matrix::MatrixDynamic.6" = type { ptr }
%"struct.rl_tools::Matrix.7" = type { %"struct.rl_tools::matrix::MatrixDynamic.8" }
%"struct.rl_tools::matrix::MatrixDynamic.8" = type { ptr }
%"struct.rl_tools::Matrix.9" = type { %"struct.rl_tools::matrix::MatrixDynamic.10" }
%"struct.rl_tools::matrix::MatrixDynamic.10" = type { ptr }
%"struct.rl_tools::Matrix.11" = type { %"struct.rl_tools::matrix::MatrixDynamic.12" }
%"struct.rl_tools::matrix::MatrixDynamic.12" = type { ptr }
%"struct.rl_tools::Matrix.1" = type { %"struct.rl_tools::matrix::MatrixDynamic.2" }
%"struct.rl_tools::matrix::MatrixDynamic.2" = type { ptr }
%"struct.rl_tools::Matrix.13" = type { %"struct.rl_tools::matrix::MatrixDynamic.14" }
%"struct.rl_tools::matrix::MatrixDynamic.14" = type { ptr }
%"struct.rl_tools::Matrix.15" = type { %"struct.rl_tools::matrix::MatrixDynamic.16" }
%"struct.rl_tools::matrix::MatrixDynamic.16" = type { ptr }
%"struct.rl_tools::rl::environments::Pendulum" = type { i8 }
%"struct.rl_tools::rl::environments::pendulum::DefaultParameters" = type { i8 }
%"struct.rl_tools::rl::algorithms::td3::ActorCritic" = type { float, float, float, %"struct.rl_tools::nn_models::sequential::Build", %"struct.rl_tools::nn_models::sequential::Build.51", %"struct.rl_tools::nn_models::sequential::Build.66", %"struct.rl_tools::nn_models::sequential::Build.66", %"struct.rl_tools::nn_models::sequential::Build.90", %"struct.rl_tools::nn_models::sequential::Build.90", %"struct.rl_tools::nn::optimizers::Adam", [2 x %"struct.rl_tools::nn::optimizers::Adam"] }
%"struct.rl_tools::nn_models::sequential::Build" = type { %"struct.rl_tools::nn_models::sequential::ModuleGradient" }
%"struct.rl_tools::nn_models::sequential::ModuleGradient" = type { %"struct.rl_tools::nn_models::sequential::ModuleBackward" }
%"struct.rl_tools::nn_models::sequential::ModuleBackward" = type { %"struct.rl_tools::nn_models::sequential::ModuleForward" }
%"struct.rl_tools::nn_models::sequential::ModuleForward" = type { %"struct.rl_tools::nn_models::mlp::NeuralNetworkGradient", %"struct.rl_tools::nn_models::sequential::ModuleGradient.48" }
%"struct.rl_tools::nn_models::mlp::NeuralNetworkGradient" = type { %"struct.rl_tools::nn_models::mlp::NeuralNetworkBackward" }
%"struct.rl_tools::nn_models::mlp::NeuralNetworkBackward" = type { %"struct.rl_tools::nn_models::mlp::NeuralNetworkForward" }
%"struct.rl_tools::nn_models::mlp::NeuralNetworkForward" = type { %"struct.rl_tools::nn::layers::dense::LayerGradient", [1 x %"struct.rl_tools::nn::layers::dense::LayerGradient.26"], %"struct.rl_tools::nn::layers::dense::LayerGradient.37" }
%"struct.rl_tools::nn::layers::dense::LayerGradient" = type { %"struct.rl_tools::nn::layers::dense::LayerBackward", %"struct.rl_tools::Matrix.24" }
%"struct.rl_tools::nn::layers::dense::LayerBackward" = type { %"struct.rl_tools::nn::layers::dense::LayerForward", %"struct.rl_tools::Matrix.24" }
%"struct.rl_tools::nn::layers::dense::LayerForward" = type { %"struct.rl_tools::nn::parameters::Adam::instance", %"struct.rl_tools::nn::parameters::Adam::instance.19" }
%"struct.rl_tools::nn::parameters::Adam::instance" = type { %"struct.rl_tools::nn::parameters::Gradient::instance", %"struct.rl_tools::Matrix.17", %"struct.rl_tools::Matrix.17" }
%"struct.rl_tools::nn::parameters::Gradient::instance" = type { %"struct.rl_tools::nn::parameters::Plain::instance", %"struct.rl_tools::Matrix.17" }
%"struct.rl_tools::nn::parameters::Plain::instance" = type { %"struct.rl_tools::Matrix.17" }
%"struct.rl_tools::Matrix.17" = type { %"struct.rl_tools::matrix::MatrixDynamic.18" }
%"struct.rl_tools::matrix::MatrixDynamic.18" = type { ptr }
%"struct.rl_tools::nn::parameters::Adam::instance.19" = type { %"struct.rl_tools::nn::parameters::Gradient::instance.20", %"struct.rl_tools::Matrix.22", %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::parameters::Gradient::instance.20" = type { %"struct.rl_tools::nn::parameters::Plain::instance.21", %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::parameters::Plain::instance.21" = type { %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::Matrix.22" = type { %"struct.rl_tools::matrix::MatrixDynamic.23" }
%"struct.rl_tools::matrix::MatrixDynamic.23" = type { ptr }
%"struct.rl_tools::Matrix.24" = type { %"struct.rl_tools::matrix::MatrixDynamic.25" }
%"struct.rl_tools::matrix::MatrixDynamic.25" = type { ptr }
%"struct.rl_tools::nn::layers::dense::LayerGradient.26" = type { %"struct.rl_tools::nn::layers::dense::LayerBackward.27", %"struct.rl_tools::Matrix.24" }
%"struct.rl_tools::nn::layers::dense::LayerBackward.27" = type { %"struct.rl_tools::nn::layers::dense::LayerForward.28", %"struct.rl_tools::Matrix.24" }
%"struct.rl_tools::nn::layers::dense::LayerForward.28" = type { %"struct.rl_tools::nn::parameters::Adam::instance.29", %"struct.rl_tools::nn::parameters::Adam::instance.34" }
%"struct.rl_tools::nn::parameters::Adam::instance.29" = type { %"struct.rl_tools::nn::parameters::Gradient::instance.30", %"struct.rl_tools::Matrix.32", %"struct.rl_tools::Matrix.32" }
%"struct.rl_tools::nn::parameters::Gradient::instance.30" = type { %"struct.rl_tools::nn::parameters::Plain::instance.31", %"struct.rl_tools::Matrix.32" }
%"struct.rl_tools::nn::parameters::Plain::instance.31" = type { %"struct.rl_tools::Matrix.32" }
%"struct.rl_tools::Matrix.32" = type { %"struct.rl_tools::matrix::MatrixDynamic.33" }
%"struct.rl_tools::matrix::MatrixDynamic.33" = type { ptr }
%"struct.rl_tools::nn::parameters::Adam::instance.34" = type { %"struct.rl_tools::nn::parameters::Gradient::instance.35", %"struct.rl_tools::Matrix.22", %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::parameters::Gradient::instance.35" = type { %"struct.rl_tools::nn::parameters::Plain::instance.36", %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::parameters::Plain::instance.36" = type { %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::layers::dense::LayerGradient.37" = type { %"struct.rl_tools::nn::layers::dense::LayerBackward.38", %"struct.rl_tools::Matrix.46" }
%"struct.rl_tools::nn::layers::dense::LayerBackward.38" = type { %"struct.rl_tools::nn::layers::dense::LayerForward.39", %"struct.rl_tools::Matrix.46" }
%"struct.rl_tools::nn::layers::dense::LayerForward.39" = type { %"struct.rl_tools::nn::parameters::Adam::instance.40", %"struct.rl_tools::nn::parameters::Adam::instance.43" }
%"struct.rl_tools::nn::parameters::Adam::instance.40" = type { %"struct.rl_tools::nn::parameters::Gradient::instance.41", %"struct.rl_tools::Matrix.22", %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::parameters::Gradient::instance.41" = type { %"struct.rl_tools::nn::parameters::Plain::instance.42", %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::parameters::Plain::instance.42" = type { %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::parameters::Adam::instance.43" = type { %"struct.rl_tools::nn::parameters::Gradient::instance.44", %"struct.rl_tools::Matrix.1", %"struct.rl_tools::Matrix.1" }
%"struct.rl_tools::nn::parameters::Gradient::instance.44" = type { %"struct.rl_tools::nn::parameters::Plain::instance.45", %"struct.rl_tools::Matrix.1" }
%"struct.rl_tools::nn::parameters::Plain::instance.45" = type { %"struct.rl_tools::Matrix.1" }
%"struct.rl_tools::Matrix.46" = type { %"struct.rl_tools::matrix::MatrixDynamic.47" }
%"struct.rl_tools::matrix::MatrixDynamic.47" = type { ptr }
%"struct.rl_tools::nn_models::sequential::ModuleGradient.48" = type { %"struct.rl_tools::nn_models::sequential::ModuleBackward.base", [7 x i8] }
%"struct.rl_tools::nn_models::sequential::ModuleBackward.base" = type { %"struct.rl_tools::nn_models::sequential::ModuleForward.base" }
%"struct.rl_tools::nn_models::sequential::ModuleForward.base" = type <{ %"struct.rl_tools::nn::layers::td3_sampling::LayerGradient", i8 }>
%"struct.rl_tools::nn::layers::td3_sampling::LayerGradient" = type { %"struct.rl_tools::nn::layers::td3_sampling::LayerBackward", %"struct.rl_tools::Matrix.46" }
%"struct.rl_tools::nn::layers::td3_sampling::LayerBackward" = type { %"struct.rl_tools::nn::layers::td3_sampling::LayerForward", %"struct.rl_tools::Matrix.46" }
%"struct.rl_tools::nn::layers::td3_sampling::LayerForward" = type { float }
%"struct.rl_tools::nn_models::sequential::Build.51" = type { %"struct.rl_tools::nn_models::sequential::ModuleForward.52" }
%"struct.rl_tools::nn_models::sequential::ModuleForward.52" = type { %"struct.rl_tools::nn_models::mlp::NeuralNetworkForward.53", %"struct.rl_tools::nn_models::sequential::ModuleForward.63" }
%"struct.rl_tools::nn_models::mlp::NeuralNetworkForward.53" = type { %"struct.rl_tools::nn::layers::dense::LayerForward.54", [1 x %"struct.rl_tools::nn::layers::dense::LayerForward.57"], %"struct.rl_tools::nn::layers::dense::LayerForward.60" }
%"struct.rl_tools::nn::layers::dense::LayerForward.54" = type { %"struct.rl_tools::nn::parameters::Plain::instance.55", %"struct.rl_tools::nn::parameters::Plain::instance.56" }
%"struct.rl_tools::nn::parameters::Plain::instance.55" = type { %"struct.rl_tools::Matrix.17" }
%"struct.rl_tools::nn::parameters::Plain::instance.56" = type { %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::layers::dense::LayerForward.57" = type { %"struct.rl_tools::nn::parameters::Plain::instance.58", %"struct.rl_tools::nn::parameters::Plain::instance.59" }
%"struct.rl_tools::nn::parameters::Plain::instance.58" = type { %"struct.rl_tools::Matrix.32" }
%"struct.rl_tools::nn::parameters::Plain::instance.59" = type { %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::layers::dense::LayerForward.60" = type { %"struct.rl_tools::nn::parameters::Plain::instance.61", %"struct.rl_tools::nn::parameters::Plain::instance.62" }
%"struct.rl_tools::nn::parameters::Plain::instance.61" = type { %"struct.rl_tools::Matrix.22" }
%"struct.rl_tools::nn::parameters::Plain::instance.62" = type { %"struct.rl_tools::Matrix.1" }
%"struct.rl_tools::nn_models::sequential::ModuleForward.63" = type <{ %"struct.rl_tools::nn::layers::td3_sampling::LayerForward.64", [4 x i8] }>
%"struct.rl_tools::nn::layers::td3_sampling::LayerForward.64" = type { float }
%"struct.rl_tools::nn_models::sequential::Build.66" = type { %"struct.rl_tools::nn_models::sequential::ModuleGradient.base.89", [7 x i8] }
%"struct.rl_tools::nn_models::sequential::ModuleGradient.base.89" = type { %"struct.rl_tools::nn_models::sequential::ModuleBackward.base.88" }
%"struct.rl_tools::nn_models::sequential::ModuleBackward.base.88" = type { %"struct.rl_tools::nn_models::sequential::ModuleForward.base.87" }
%"struct.rl_tools::nn_models::sequential::ModuleForward.base.87" = type <{ %"struct.rl_tools::nn_models::mlp::NeuralNetworkGradient.70", i8 }>
%"struct.rl_tools::nn_models::mlp::NeuralNetworkGradient.70" = type { %"struct.rl_tools::nn_models::mlp::NeuralNetworkBackward.71" }
%"struct.rl_tools::nn_models::mlp::NeuralNetworkBackward.71" = type { %"struct.rl_tools::nn_models::mlp::NeuralNetworkForward.72" }
%"struct.rl_tools::nn_models::mlp::NeuralNetworkForward.72" = type { %"struct.rl_tools::nn::layers::dense::LayerGradient.73", [1 x %"struct.rl_tools::nn::layers::dense::LayerGradient.81"], %"struct.rl_tools::nn::layers::dense::LayerGradient.84" }
%"struct.rl_tools::nn::layers::dense::LayerGradient.73" = type { %"struct.rl_tools::nn::layers::dense::LayerBackward.74", %"struct.rl_tools::Matrix.24" }
%"struct.rl_tools::nn::layers::dense::LayerBackward.74" = type { %"struct.rl_tools::nn::layers::dense::LayerForward.75", %"struct.rl_tools::Matrix.24" }
%"struct.rl_tools::nn::layers::dense::LayerForward.75" = type { %"struct.rl_tools::nn::parameters::Adam::instance.76", %"struct.rl_tools::nn::parameters::Adam::instance.19" }
%"struct.rl_tools::nn::parameters::Adam::instance.76" = type { %"struct.rl_tools::nn::parameters::Gradient::instance.77", %"struct.rl_tools::Matrix.79", %"struct.rl_tools::Matrix.79" }
%"struct.rl_tools::nn::parameters::Gradient::instance.77" = type { %"struct.rl_tools::nn::parameters::Plain::instance.78", %"struct.rl_tools::Matrix.79" }
%"struct.rl_tools::nn::parameters::Plain::instance.78" = type { %"struct.rl_tools::Matrix.79" }
%"struct.rl_tools::Matrix.79" = type { %"struct.rl_tools::matrix::MatrixDynamic.80" }
%"struct.rl_tools::matrix::MatrixDynamic.80" = type { ptr }
%"struct.rl_tools::nn::layers::dense::LayerGradient.81" = type { %"struct.rl_tools::nn::layers::dense::LayerBackward.82", %"struct.rl_tools::Matrix.24" }
%"struct.rl_tools::nn::layers::dense::LayerBackward.82" = type { %"struct.rl_tools::nn::layers::dense::LayerForward.83", %"struct.rl_tools::Matrix.24" }
%"struct.rl_tools::nn::layers::dense::LayerForward.83" = type { %"struct.rl_tools::nn::parameters::Adam::instance.29", %"struct.rl_tools::nn::parameters::Adam::instance.34" }
%"struct.rl_tools::nn::layers::dense::LayerGradient.84" = type { %"struct.rl_tools::nn::layers::dense::LayerBackward.85", %"struct.rl_tools::Matrix.46" }
%"struct.rl_tools::nn::layers::dense::LayerBackward.85" = type { %"struct.rl_tools::nn::layers::dense::LayerForward.86", %"struct.rl_tools::Matrix.46" }
%"struct.rl_tools::nn::layers::dense::LayerForward.86" = type { %"struct.rl_tools::nn::parameters::Adam::instance.40", %"struct.rl_tools::nn::parameters::Adam::instance.43" }
%"struct.rl_tools::nn_models::sequential::Build.90" = type { %"struct.rl_tools::nn_models::sequential::ModuleForward.base.97", [7 x i8] }
%"struct.rl_tools::nn_models::sequential::ModuleForward.base.97" = type <{ %"struct.rl_tools::nn_models::mlp::NeuralNetworkForward.92", i8 }>
%"struct.rl_tools::nn_models::mlp::NeuralNetworkForward.92" = type { %"struct.rl_tools::nn::layers::dense::LayerForward.93", [1 x %"struct.rl_tools::nn::layers::dense::LayerForward.95"], %"struct.rl_tools::nn::layers::dense::LayerForward.96" }
%"struct.rl_tools::nn::layers::dense::LayerForward.93" = type { %"struct.rl_tools::nn::parameters::Plain::instance.94", %"struct.rl_tools::nn::parameters::Plain::instance.56" }
%"struct.rl_tools::nn::parameters::Plain::instance.94" = type { %"struct.rl_tools::Matrix.79" }
%"struct.rl_tools::nn::layers::dense::LayerForward.95" = type { %"struct.rl_tools::nn::parameters::Plain::instance.58", %"struct.rl_tools::nn::parameters::Plain::instance.59" }
%"struct.rl_tools::nn::layers::dense::LayerForward.96" = type { %"struct.rl_tools::nn::parameters::Plain::instance.61", %"struct.rl_tools::nn::parameters::Plain::instance.62" }
%"struct.rl_tools::rl::algorithms::td3::CriticTrainingBuffers" = type { %"struct.rl_tools::Tensor.102", %"struct.rl_tools::Tensor.106", %"struct.rl_tools::Tensor.108", %"struct.rl_tools::Tensor.109", %"struct.rl_tools::Tensor.102", %"struct.rl_tools::Tensor.102", %"struct.rl_tools::Tensor.102", %"struct.rl_tools::Tensor.102", %"struct.rl_tools::Tensor.106", %"struct.rl_tools::Tensor.102" }
%"struct.rl_tools::Tensor.108" = type { %"struct.rl_tools::tensor::TensorDynamic.107" }
%"struct.rl_tools::tensor::TensorDynamic.107" = type { ptr }
%"struct.rl_tools::Tensor.109" = type { %"struct.rl_tools::tensor::TensorDynamic.107" }
%"struct.rl_tools::Tensor.106" = type { %"struct.rl_tools::tensor::TensorDynamic.107" }
%"struct.rl_tools::Tensor.102" = type { %"struct.rl_tools::tensor::TensorDynamic.103" }
%"struct.rl_tools::tensor::TensorDynamic.103" = type { ptr }
%"struct.rl_tools::nn_models::sequential::ModuleBuffer" = type { %"struct.rl_tools::Tensor.110", %"struct.rl_tools::Tensor.110", %"struct.rl_tools::nn_models::sequential::ContentBuffer" }
%"struct.rl_tools::Tensor.110" = type { %"struct.rl_tools::tensor::TensorDynamic.111" }
%"struct.rl_tools::tensor::TensorDynamic.111" = type { ptr }
%"struct.rl_tools::nn_models::sequential::ContentBuffer" = type { %"struct.rl_tools::nn_models::mlp::NeuralNetworkBuffers", [8 x i8] }
%"struct.rl_tools::nn_models::mlp::NeuralNetworkBuffers" = type <{ %"struct.rl_tools::Matrix.24", %"struct.rl_tools::Matrix.24", [8 x i8] }>
%"struct.rl_tools::rl::components::off_policy_runner::SequentialBatch" = type { %"struct.rl_tools::Tensor", %"struct.rl_tools::Tensor.99", %"struct.rl_tools::Tensor.99", %"struct.rl_tools::Tensor.100", %"struct.rl_tools::Tensor.101", %"struct.rl_tools::Tensor.99", %"struct.rl_tools::Tensor.100", %"struct.rl_tools::Tensor.101", %"struct.rl_tools::Tensor.99", %"struct.rl_tools::Tensor.102", %"struct.rl_tools::Tensor.104", %"struct.rl_tools::Tensor.104", %"struct.rl_tools::Tensor.104", %"struct.rl_tools::Tensor.104" }
%"struct.rl_tools::Tensor" = type { %"struct.rl_tools::tensor::TensorDynamic" }
%"struct.rl_tools::tensor::TensorDynamic" = type { ptr }
%"struct.rl_tools::Tensor.100" = type { %"struct.rl_tools::tensor::TensorDynamic" }
%"struct.rl_tools::Tensor.101" = type { %"struct.rl_tools::tensor::TensorDynamic" }
%"struct.rl_tools::Tensor.99" = type { %"struct.rl_tools::tensor::TensorDynamic" }
%"struct.rl_tools::Tensor.104" = type { %"struct.rl_tools::tensor::TensorDynamic.105" }
%"struct.rl_tools::tensor::TensorDynamic.105" = type { ptr }
%"struct.rl_tools::rl::algorithms::td3::ActorTrainingBuffers" = type { %"struct.rl_tools::Tensor.106", %"struct.rl_tools::Tensor.108", %"struct.rl_tools::Tensor.109", %"struct.rl_tools::Tensor.102", %"struct.rl_tools::Tensor.102", %"struct.rl_tools::Tensor.106", %"struct.rl_tools::Tensor.102", %"struct.rl_tools::Tensor.112" }
%"struct.rl_tools::Tensor.112" = type { %"struct.rl_tools::tensor::TensorDynamic.113" }
%"struct.rl_tools::tensor::TensorDynamic.113" = type { ptr }
%"struct.rl_tools::nn_models::sequential::ModuleBuffer.114" = type { %"struct.rl_tools::Tensor.115", %"struct.rl_tools::Tensor.115", %"struct.rl_tools::nn_models::sequential::ContentBuffer.116" }
%"struct.rl_tools::Tensor.115" = type { %"struct.rl_tools::tensor::TensorDynamic.103" }
%"struct.rl_tools::nn_models::sequential::ContentBuffer.116" = type { %"struct.rl_tools::nn_models::mlp::NeuralNetworkBuffers.117", %"struct.rl_tools::nn_models::sequential::ContentBuffer.119" }
%"struct.rl_tools::nn_models::mlp::NeuralNetworkBuffers.117" = type <{ %"struct.rl_tools::Matrix.24", %"struct.rl_tools::Matrix.24", [8 x i8] }>
%"struct.rl_tools::nn_models::sequential::ContentBuffer.119" = type <{ %"struct.rl_tools::nn::layers::td3_sampling::Buffer", [8 x i8] }>
%"struct.rl_tools::nn::layers::td3_sampling::Buffer" = type { %"struct.rl_tools::Matrix.46" }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"struct.rl_tools::devices::CPU", align 8
  %2 = alloca %"struct.rl_tools::rl::loop::steps::timing::State", align 8
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %1) #5
  call void @_ZN8rl_tools7devices3CPUINS0_3cpu13SpecificationINS0_4math3CPUENS0_6random3CPUENS0_7logging3CPUEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(105) %1) #5
  call void @llvm.lifetime.start.p0(i64 7096, ptr nonnull %2) #5
  invoke void @_ZN8rl_tools2rl4loop5steps6timing5StateINS3_6ConfigINS0_10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENS0_12environments8PendulumINSD_8pendulum13SpecificationIfmNSF_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNS9_22ConfigApproximatorsMLPELb1EEENS3_10ParametersImLm1EEEEENS9_5StateISN_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(7096) %2)
          to label %3 unwind label %.loopexit.split-lp

3:                                                ; preds = %0
  invoke void @_ZN8rl_tools6mallocINS_7devices3CPUINS1_3cpu13SpecificationINS1_4math3CPUENS1_6random3CPUENS1_7logging3CPUEEEEENS_2rl10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENSD_12environments8PendulumINSL_8pendulum13SpecificationIfmNSN_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNSH_22ConfigApproximatorsMLPELb1EEEEEvRT_RNSH_5StateIT0_EE(ptr noundef nonnull align 8 dereferenceable(105) %1, ptr noundef nonnull align 8 dereferenceable(7072) %2)
          to label %4 unwind label %.loopexit.split-lp

4:                                                ; preds = %3
  invoke void @_ZN8rl_tools4initINS_7devices3CPUINS1_3cpu13SpecificationINS1_4math3CPUENS1_6random3CPUENS1_7logging3CPUEEEEENS_2rl4loop5steps6timing6ConfigINSD_10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENSD_12environments8PendulumINSP_8pendulum13SpecificationIfmNSR_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNSL_22ConfigApproximatorsMLPELb1EEENSG_10ParametersImLm1EEEEEEEvRT_RNSG_5StateIT0_NS16_4NEXT5StateINS16_4NEXTEEEEENS16_2TIE(ptr noundef nonnull align 8 dereferenceable(105) %1, ptr noundef nonnull align 8 dereferenceable(7096) %2, i64 noundef 0)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %4, %6
  %5 = invoke noundef zeroext i1 @_ZN8rl_tools4stepINS_7devices3CPUINS1_3cpu13SpecificationINS1_4math3CPUENS1_6random3CPUENS1_7logging3CPUEEEEENS_2rl4loop5steps6timing6ConfigINSD_10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENSD_12environments8PendulumINSP_8pendulum13SpecificationIfmNSR_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNSL_22ConfigApproximatorsMLPELb1EEENSG_10ParametersImLm1EEEEEEEbRT_RNSG_5StateIT0_NS16_4NEXT5StateINS16_4NEXTEEEEE(ptr noundef nonnull align 8 dereferenceable(105) %1, ptr noundef nonnull align 8 dereferenceable(7096) %2)
          to label %6 unwind label %.loopexit

6:                                                ; preds = %.preheader
  br i1 %5, label %8, label %.preheader, !llvm.loop !5

.loopexit:                                        ; preds = %.preheader
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %7

.loopexit.split-lp:                               ; preds = %0, %3, %4, %8
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %7

7:                                                ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 7096, ptr nonnull %2) #5
  call void @_ZN8rl_tools7devices3CPUINS0_3cpu13SpecificationINS0_4math3CPUENS0_6random3CPUENS0_7logging3CPUEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(105) %1) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %1) #5
  resume { ptr, i32 } %lpad.phi

8:                                                ; preds = %6
  invoke void @_ZN8rl_tools4freeINS_7devices3CPUINS1_3cpu13SpecificationINS1_4math3CPUENS1_6random3CPUENS1_7logging3CPUEEEEENS_2rl4loop5steps6timing6ConfigINSD_10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENSD_12environments8PendulumINSP_8pendulum13SpecificationIfmNSR_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNSL_22ConfigApproximatorsMLPELb1EEENSG_10ParametersImLm1EEEEEEEvRT_RNSG_5StateIT0_NS16_4NEXT5StateINS16_4NEXTEEEEE(ptr noundef nonnull align 8 dereferenceable(105) %1, ptr noundef nonnull align 8 dereferenceable(7096) %2)
          to label %9 unwind label %.loopexit.split-lp

9:                                                ; preds = %8
  call void @llvm.lifetime.end.p0(i64 7096, ptr nonnull %2) #5
  call void @_ZN8rl_tools7devices3CPUINS0_3cpu13SpecificationINS0_4math3CPUENS0_6random3CPUENS0_7logging3CPUEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(105) %1) #5
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %1) #5
  ret i32 0
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8rl_tools7devices3CPUINS0_3cpu13SpecificationINS0_4math3CPUENS0_6random3CPUENS0_7logging3CPUEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(105)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8rl_tools2rl4loop5steps6timing5StateINS3_6ConfigINS0_10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENS0_12environments8PendulumINSD_8pendulum13SpecificationIfmNSF_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNS9_22ConfigApproximatorsMLPELb1EEENS3_10ParametersImLm1EEEEENS9_5StateISN_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(7096)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8rl_tools6mallocINS_7devices3CPUINS1_3cpu13SpecificationINS1_4math3CPUENS1_6random3CPUENS1_7logging3CPUEEEEENS_2rl10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENSD_12environments8PendulumINSL_8pendulum13SpecificationIfmNSN_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNSH_22ConfigApproximatorsMLPELb1EEEEEvRT_RNSH_5StateIT0_EE(ptr noundef nonnull align 8 dereferenceable(105), ptr noundef nonnull align 8 dereferenceable(7072)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8rl_tools4initINS_7devices3CPUINS1_3cpu13SpecificationINS1_4math3CPUENS1_6random3CPUENS1_7logging3CPUEEEEENS_2rl4loop5steps6timing6ConfigINSD_10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENSD_12environments8PendulumINSP_8pendulum13SpecificationIfmNSR_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNSL_22ConfigApproximatorsMLPELb1EEENSG_10ParametersImLm1EEEEEEEvRT_RNSG_5StateIT0_NS16_4NEXT5StateINS16_4NEXTEEEEENS16_2TIE(ptr noundef nonnull align 8 dereferenceable(105), ptr noundef nonnull align 8 dereferenceable(7096), i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN8rl_tools4stepINS_7devices3CPUINS1_3cpu13SpecificationINS1_4math3CPUENS1_6random3CPUENS1_7logging3CPUEEEEENS_2rl4loop5steps6timing6ConfigINSD_10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENSD_12environments8PendulumINSP_8pendulum13SpecificationIfmNSR_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNSL_22ConfigApproximatorsMLPELb1EEENSG_10ParametersImLm1EEEEEEEbRT_RNSG_5StateIT0_NS16_4NEXT5StateINS16_4NEXTEEEEE(ptr noundef nonnull align 8 dereferenceable(105), ptr noundef nonnull align 8 dereferenceable(7096)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8rl_tools4freeINS_7devices3CPUINS1_3cpu13SpecificationINS1_4math3CPUENS1_6random3CPUENS1_7logging3CPUEEEEENS_2rl4loop5steps6timing6ConfigINSD_10algorithms3td34loop4core6ConfigIfmSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EENSD_12environments8PendulumINSP_8pendulum13SpecificationIfmNSR_17DefaultParametersIfEEEEEE20LOOP_CORE_PARAMETERSNSL_22ConfigApproximatorsMLPELb1EEENSG_10ParametersImLm1EEEEEEEvRT_RNSG_5StateIT0_NS16_4NEXT5StateINS16_4NEXTEEEEE(ptr noundef nonnull align 8 dereferenceable(105), ptr noundef nonnull align 8 dereferenceable(7096)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8rl_tools7devices3CPUINS0_3cpu13SpecificationINS0_4math3CPUENS0_6random3CPUENS0_7logging3CPUEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(105)) unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass