{"name":"diag_testScriptSimpleVM","title":"diag testScriptSimpleVM","type":"command","url":"https://community.bistudio.com/wiki/diag_testScriptSimpleVM","revid":373686,"updated":"2025-06-12T19:27:16Z","groups":["Diagnostic","Performance Profiling"],"status":"ok","games":{"arma3":"2.16"},"since":"arma3 2.16","arma3_since":"2.16","branch":["diag","prof"],"description":"Outputs the provided SQF code's end code.","syntaxes":[{"syntax":"diag_testScriptSimpleVM code","params":[{"name":"code","type":"Code","description":"the code to process","type_expr":"Code"}],"returns":{"type":"Array","type_expr":"Array"},"form":"unary","right":{"text":"code"}}],"examples":[{"code":["private _result = diag_testScriptSimpleVM { leader _x == _x && { alive _x && { not captive _x } } };\nhint str _result;\n/*\n[\"Success\", 360, \"\n0000:const any\n0010:unary leader (variants 3)\n0060:const any\n0070:binary == (variants 2)\n00C8:jmpIfFalse 0160\n00D8:const any\n00E8:unary alive (variants 1)\n0108:jmpIfFalse 0160\n0118:const any\n0128:unary captive (variants 1)\n0148:unary not (variants 1)\n0160:ret(implicit)\n\"]\n*/"]}],"see_also":["Arma 3: Diagnostics Exe","Performance Profiling"]}