To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

Commit 8fc7d8bd authored by John Zhang's avatar John Zhang Committed by Isaac Oscar Gariano
Browse files

fix: some illegal IR in test suite (issue #77)

parent bcc061cd
// Copyright 2017 The Australian National University
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.
#include <stdio.h>
#include <stdlib.h>
......@@ -28,164 +14,164 @@
#define LIB_FILE_NAME(name) "lib" name LIB_EXT
int main(int argc, char** argv) {
MuVM* mu_59;
MuCtx* ctx_59;
MuIRBuilder* bldr_59;
MuID id_872;
MuID id_873;
MuID id_874;
MuID id_875;
MuID id_876;
MuID id_877;
MuID id_878;
MuID id_879;
MuID id_880;
MuID id_881;
MuID id_882;
MuID id_883;
MuID id_884;
MuID id_885;
MuID id_886;
MuID id_887;
MuID id_888;
MuID id_889;
MuID id_890;
MuID id_891;
MuID id_892;
MuID id_893;
MuID id_894;
MuID id_895;
MuID id_896;
MuID id_897;
MuID id_898;
MuID id_899;
MuID id_900;
MuID id_901;
MuID id_902;
MuID id_903;
MuID id_904;
MuID id_905;
MuID id_906;
MuID id_907;
MuID id_908;
MuID id_909;
MuID id_910;
MuID id_911;
MuID id_912;
MuID id_913;
MuID id_914;
MuID id_915;
MuID id_916;
MuID id_917;
MuID id_918;
MuID id_919;
MuID id_920;
MuID id_921;
MuID id_922;
MuID id_923;
MuID id_924;
MuID id_925;
mu_59 = mu_fastimpl_new_with_opts("init_mu --log-level=none --aot-emit-dir=emit");
ctx_59 = mu_59->new_context(mu_59);
bldr_59 = ctx_59->new_ir_builder(ctx_59);
id_872 = bldr_59->gen_sym(bldr_59, "@i8");
bldr_59->new_type_int(bldr_59, id_872, 0x00000008ull);
id_873 = bldr_59->gen_sym(bldr_59, "@i32");
bldr_59->new_type_int(bldr_59, id_873, 0x00000020ull);
id_874 = bldr_59->gen_sym(bldr_59, "@i64");
bldr_59->new_type_int(bldr_59, id_874, 0x00000040ull);
id_875 = bldr_59->gen_sym(bldr_59, "@void");
bldr_59->new_type_void(bldr_59, id_875);
id_876 = bldr_59->gen_sym(bldr_59, "@voidp");
bldr_59->new_type_uptr(bldr_59, id_876, id_875);
id_877 = bldr_59->gen_sym(bldr_59, "@hyb");
bldr_59->new_type_hybrid(bldr_59, id_877, NULL, 0, id_872);
id_878 = bldr_59->gen_sym(bldr_59, "@rhyb");
bldr_59->new_type_ref(bldr_59, id_878, id_877);
id_879 = bldr_59->gen_sym(bldr_59, "@phyb");
bldr_59->new_type_uptr(bldr_59, id_879, id_877);
id_880 = bldr_59->gen_sym(bldr_59, "@fd_stdout");
bldr_59->new_const_int(bldr_59, id_880, id_873, 0x0000000000000001ull);
id_881 = bldr_59->gen_sym(bldr_59, "@c_h");
bldr_59->new_const_int(bldr_59, id_881, id_872, 0x0000000000000068ull);
id_882 = bldr_59->gen_sym(bldr_59, "@c_e");
bldr_59->new_const_int(bldr_59, id_882, id_872, 0x0000000000000065ull);
id_883 = bldr_59->gen_sym(bldr_59, "@c_l");
bldr_59->new_const_int(bldr_59, id_883, id_872, 0x000000000000006cull);
id_884 = bldr_59->gen_sym(bldr_59, "@c_o");
bldr_59->new_const_int(bldr_59, id_884, id_872, 0x000000000000006full);
id_885 = bldr_59->gen_sym(bldr_59, "@c_0");
bldr_59->new_const_int(bldr_59, id_885, id_874, 0x0000000000000000ull);
id_886 = bldr_59->gen_sym(bldr_59, "@c_1");
bldr_59->new_const_int(bldr_59, id_886, id_874, 0x0000000000000001ull);
id_887 = bldr_59->gen_sym(bldr_59, "@c_len");
bldr_59->new_const_int(bldr_59, id_887, id_874, 0x0000000000000005ull);
id_888 = bldr_59->gen_sym(bldr_59, "@c_bufsz");
bldr_59->new_const_int(bldr_59, id_888, id_874, 0x0000000000000006ull);
id_889 = bldr_59->gen_sym(bldr_59, "@sig__i64");
bldr_59->new_funcsig(bldr_59, id_889, (MuTypeNode [2]){id_876, id_874}, 2, (MuTypeNode [1]){id_874}, 1);
id_890 = bldr_59->gen_sym(bldr_59, "@sig_i32voidpi64_i64");
bldr_59->new_funcsig(bldr_59, id_890, (MuTypeNode [3]){id_873, id_876, id_874}, 3, (MuTypeNode [1]){id_874}, 1);
id_891 = bldr_59->gen_sym(bldr_59, "@fnpsig_i32voidpi64_i64");
bldr_59->new_type_ufuncptr(bldr_59, id_891, id_890);
id_892 = bldr_59->gen_sym(bldr_59, "@c_write");
bldr_59->new_const_extern(bldr_59, id_892, id_891, "write");
id_893 = bldr_59->gen_sym(bldr_59, "@test_pin");
bldr_59->new_func(bldr_59, id_893, id_889);
id_894 = bldr_59->gen_sym(bldr_59, "@test_write_v1");
id_895 = bldr_59->gen_sym(bldr_59, "@test_write_v1.blk0");
id_896 = bldr_59->gen_sym(bldr_59, "");
id_897 = bldr_59->gen_sym(bldr_59, "@test_pin.v1.blk0.irs");
id_898 = bldr_59->gen_sym(bldr_59, "@test_pin.v1.blk0.irelm_0");
id_899 = bldr_59->gen_sym(bldr_59, "@test_pin.v1.blk0.irelm_1");
id_900 = bldr_59->gen_sym(bldr_59, "@test_pin.v1.blk0.irelm_2");
id_901 = bldr_59->gen_sym(bldr_59, "@test_pin.v1.blk0.irelm_3");
id_902 = bldr_59->gen_sym(bldr_59, "@test_pin.v1.blk0.irelm_4");
id_903 = bldr_59->gen_sym(bldr_59, "@test_pin.v1.blk0.irelm_5");
id_904 = bldr_59->gen_sym(bldr_59, "");
id_905 = bldr_59->gen_sym(bldr_59, "@test_pin.v1.blk0.buf");
id_906 = bldr_59->gen_sym(bldr_59, "@test_pin.v1.blk0.res");
id_907 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_newhybrid(bldr_59, id_907, id_896, id_877, id_874, id_888, MU_NO_ID);
id_908 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_getiref(bldr_59, id_908, id_897, id_877, id_896);
id_909 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_getvarpartiref(bldr_59, id_909, id_898, false, id_877, id_897);
id_910 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_store(bldr_59, id_910, false, MU_ORD_NOT_ATOMIC, id_872, id_898, id_881, MU_NO_ID);
id_911 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_shiftiref(bldr_59, id_911, id_899, false, id_872, id_874, id_898, id_886);
id_912 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_store(bldr_59, id_912, false, MU_ORD_NOT_ATOMIC, id_872, id_899, id_882, MU_NO_ID);
id_913 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_shiftiref(bldr_59, id_913, id_900, false, id_872, id_874, id_899, id_886);
id_914 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_store(bldr_59, id_914, false, MU_ORD_NOT_ATOMIC, id_872, id_900, id_883, MU_NO_ID);
id_915 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_shiftiref(bldr_59, id_915, id_901, false, id_872, id_874, id_900, id_886);
id_916 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_store(bldr_59, id_916, false, MU_ORD_NOT_ATOMIC, id_872, id_901, id_883, MU_NO_ID);
id_917 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_shiftiref(bldr_59, id_917, id_902, false, id_872, id_874, id_901, id_886);
id_918 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_store(bldr_59, id_918, false, MU_ORD_NOT_ATOMIC, id_872, id_902, id_884, MU_NO_ID);
id_919 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_shiftiref(bldr_59, id_919, id_903, false, id_872, id_874, id_902, id_886);
id_920 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_store(bldr_59, id_920, false, MU_ORD_NOT_ATOMIC, id_872, id_903, id_885, MU_NO_ID);
id_921 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_comminst(bldr_59, id_921, (MuID [1]){id_904}, 1, MU_CI_UVM_NATIVE_PIN, NULL, 0, (MuTypeNode [1]){id_878}, 1, NULL, 0, (MuVarNode [1]){id_896}, 1, MU_NO_ID, MU_NO_ID);
id_922 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_conv(bldr_59, id_922, id_905, MU_CONV_PTRCAST, id_879, id_876, id_904);
id_923 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_ccall(bldr_59, id_923, (MuID [1]){id_906}, 1, MU_CC_DEFAULT, id_891, id_890, id_892, (MuVarNode [3]){id_880, id_905, id_888}, 3, MU_NO_ID, MU_NO_ID);
id_924 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_comminst(bldr_59, id_924, NULL, 0, MU_CI_UVM_NATIVE_UNPIN, NULL, 0, (MuTypeNode [1]){id_878}, 1, NULL, 0, (MuVarNode [1]){id_896}, 1, MU_NO_ID, MU_NO_ID);
id_925 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_ret(bldr_59, id_925, (MuVarNode [1]){id_906}, 1);
bldr_59->new_bb(bldr_59, id_895, NULL, NULL, 0, MU_NO_ID, (MuInstNode [19]){id_907, id_908, id_909, id_910, id_911, id_912, id_913, id_914, id_915, id_916, id_917, id_918, id_919, id_920, id_921, id_922, id_923, id_924, id_925}, 19);
bldr_59->new_func_ver(bldr_59, id_894, id_893, (MuBBNode [1]){id_895}, 1);
mu_59->compile_to_sharedlib(mu_59, LIB_FILE_NAME("test_commoninst_pin"), NULL, 0);
MuVM* mu_60;
MuCtx* ctx_60;
MuIRBuilder* bldr_60;
MuID id_927;
MuID id_928;
MuID id_929;
MuID id_930;
MuID id_931;
MuID id_932;
MuID id_933;
MuID id_934;
MuID id_935;
MuID id_936;
MuID id_937;
MuID id_938;
MuID id_939;
MuID id_940;
MuID id_941;
MuID id_942;
MuID id_943;
MuID id_944;
MuID id_945;
MuID id_946;
MuID id_947;
MuID id_948;
MuID id_949;
MuID id_950;
MuID id_951;
MuID id_952;
MuID id_953;
MuID id_954;
MuID id_955;
MuID id_956;
MuID id_957;
MuID id_958;
MuID id_959;
MuID id_960;
MuID id_961;
MuID id_962;
MuID id_963;
MuID id_964;
MuID id_965;
MuID id_966;
MuID id_967;
MuID id_968;
MuID id_969;
MuID id_970;
MuID id_971;
MuID id_972;
MuID id_973;
MuID id_974;
MuID id_975;
MuID id_976;
MuID id_977;
MuID id_978;
MuID id_979;
MuID id_980;
mu_60 = mu_fastimpl_new_with_opts("init_mu --log-level=none --aot-emit-dir=emit");
ctx_60 = mu_60->new_context(mu_60);
bldr_60 = ctx_60->new_ir_builder(ctx_60);
id_927 = bldr_60->gen_sym(bldr_60, "@i8");
bldr_60->new_type_int(bldr_60, id_927, 0x00000008ull);
id_928 = bldr_60->gen_sym(bldr_60, "@i32");
bldr_60->new_type_int(bldr_60, id_928, 0x00000020ull);
id_929 = bldr_60->gen_sym(bldr_60, "@i64");
bldr_60->new_type_int(bldr_60, id_929, 0x00000040ull);
id_930 = bldr_60->gen_sym(bldr_60, "@void");
bldr_60->new_type_void(bldr_60, id_930);
id_931 = bldr_60->gen_sym(bldr_60, "@voidp");
bldr_60->new_type_uptr(bldr_60, id_931, id_930);
id_932 = bldr_60->gen_sym(bldr_60, "@hyb");
bldr_60->new_type_hybrid(bldr_60, id_932, NULL, 0, id_927);
id_933 = bldr_60->gen_sym(bldr_60, "@rhyb");
bldr_60->new_type_ref(bldr_60, id_933, id_932);
id_934 = bldr_60->gen_sym(bldr_60, "@phyb");
bldr_60->new_type_uptr(bldr_60, id_934, id_932);
id_935 = bldr_60->gen_sym(bldr_60, "@fd_stdout");
bldr_60->new_const_int(bldr_60, id_935, id_928, 0x0000000000000001ull);
id_936 = bldr_60->gen_sym(bldr_60, "@c_h");
bldr_60->new_const_int(bldr_60, id_936, id_927, 0x0000000000000068ull);
id_937 = bldr_60->gen_sym(bldr_60, "@c_e");
bldr_60->new_const_int(bldr_60, id_937, id_927, 0x0000000000000065ull);
id_938 = bldr_60->gen_sym(bldr_60, "@c_l");
bldr_60->new_const_int(bldr_60, id_938, id_927, 0x000000000000006cull);
id_939 = bldr_60->gen_sym(bldr_60, "@c_o");
bldr_60->new_const_int(bldr_60, id_939, id_927, 0x000000000000006full);
id_940 = bldr_60->gen_sym(bldr_60, "@c_0");
bldr_60->new_const_int(bldr_60, id_940, id_927, 0x0000000000000000ull);
id_941 = bldr_60->gen_sym(bldr_60, "@c_1");
bldr_60->new_const_int(bldr_60, id_941, id_929, 0x0000000000000001ull);
id_942 = bldr_60->gen_sym(bldr_60, "@c_len");
bldr_60->new_const_int(bldr_60, id_942, id_929, 0x0000000000000005ull);
id_943 = bldr_60->gen_sym(bldr_60, "@c_bufsz");
bldr_60->new_const_int(bldr_60, id_943, id_929, 0x0000000000000006ull);
id_944 = bldr_60->gen_sym(bldr_60, "@sig__i64");
bldr_60->new_funcsig(bldr_60, id_944, (MuTypeNode [2]){id_931, id_929}, 2, (MuTypeNode [1]){id_929}, 1);
id_945 = bldr_60->gen_sym(bldr_60, "@sig_i32voidpi64_i64");
bldr_60->new_funcsig(bldr_60, id_945, (MuTypeNode [3]){id_928, id_931, id_929}, 3, (MuTypeNode [1]){id_929}, 1);
id_946 = bldr_60->gen_sym(bldr_60, "@fnpsig_i32voidpi64_i64");
bldr_60->new_type_ufuncptr(bldr_60, id_946, id_945);
id_947 = bldr_60->gen_sym(bldr_60, "@c_write");
bldr_60->new_const_extern(bldr_60, id_947, id_946, "write");
id_948 = bldr_60->gen_sym(bldr_60, "@test_pin");
bldr_60->new_func(bldr_60, id_948, id_944);
id_949 = bldr_60->gen_sym(bldr_60, "@test_write_v1");
id_950 = bldr_60->gen_sym(bldr_60, "@test_write_v1.blk0");
id_951 = bldr_60->gen_sym(bldr_60, "");
id_952 = bldr_60->gen_sym(bldr_60, "@test_pin.v1.blk0.irs");
id_953 = bldr_60->gen_sym(bldr_60, "@test_pin.v1.blk0.irelm_0");
id_954 = bldr_60->gen_sym(bldr_60, "@test_pin.v1.blk0.irelm_1");
id_955 = bldr_60->gen_sym(bldr_60, "@test_pin.v1.blk0.irelm_2");
id_956 = bldr_60->gen_sym(bldr_60, "@test_pin.v1.blk0.irelm_3");
id_957 = bldr_60->gen_sym(bldr_60, "@test_pin.v1.blk0.irelm_4");
id_958 = bldr_60->gen_sym(bldr_60, "@test_pin.v1.blk0.irelm_5");
id_959 = bldr_60->gen_sym(bldr_60, "");
id_960 = bldr_60->gen_sym(bldr_60, "@test_pin.v1.blk0.buf");
id_961 = bldr_60->gen_sym(bldr_60, "@test_pin.v1.blk0.res");
id_962 = bldr_60->gen_sym(bldr_60, NULL);
bldr_60->new_newhybrid(bldr_60, id_962, id_951, id_932, id_929, id_943, MU_NO_ID);
id_963 = bldr_60->gen_sym(bldr_60, NULL);
bldr_60->new_getiref(bldr_60, id_963, id_952, id_932, id_951);
id_964 = bldr_60->gen_sym(bldr_60, NULL);
bldr_60->new_getvarpartiref(bldr_60, id_964, id_953, false, id_932, id_952);
id_965 = bldr_60->gen_sym(bldr_60, NULL);
bldr_60->new_store(bldr_60, id_965, false, MU_ORD_NOT_ATOMIC, id_927, id_953, id_936, MU_NO_ID);
id_966 = bldr_60->gen_sym(bldr_60, NULL);
bldr_60->new_shiftiref(bldr_60, id_966, id_954, false, id_927, id_929, id_953, id_941);
id_967 = bldr_60->gen_sym(bldr_60, NULL);
bldr_60->new_store(bldr_60, id_967, false, MU_ORD_NOT_ATOMIC, id_927, id_954, id_937, MU_NO_ID);
id_968 = bldr_60->gen_sym(bldr_60, NULL);
bldr_60->new_shiftiref(bldr_60, id_968, id_955, false, id_927, id_929, id_954, id_941);
id_969 = bldr_60->gen_sym(bldr_60, NULL);
bldr_60->new_store(bldr_60, id_969, false, MU_ORD_NOT_ATOMIC, id_927, id_955, id_938, MU_NO_ID);
id_970 = bldr_60->gen_sym(bldr_60, NULL);
bldr_60->new_shiftiref(bldr_60, id_970, id_956, false, id_927, id_929, id_955, id_941);
id_971 = bldr_60->gen_sym(bldr_60, NULL);
bldr_60->new_store(bldr_60, id_971, false, MU_ORD_NOT_ATOMIC, id_927, id_956, id_938, MU_NO_ID);
id_972 = bldr_60->gen_sym(bldr_60, NULL);
bldr_60->new_shiftiref(bldr_60, id_972, id_957, false, id_927, id_929, id_956, id_941);
id_973 = bldr_60->gen_sym(bldr_60, NULL);
bldr_60->new_store(bldr_60, id_973, false, MU_ORD_NOT_ATOMIC, id_927, id_957, id_939, MU_NO_ID);
id_974 = bldr_60->gen_sym(bldr_60, NULL);
bldr_60->new_shiftiref(bldr_60, id_974, id_958, false, id_927, id_929, id_957, id_941);
id_975 = bldr_60->gen_sym(bldr_60, NULL);
bldr_60->new_store(bldr_60, id_975, false, MU_ORD_NOT_ATOMIC, id_927, id_958, id_940, MU_NO_ID);
id_976 = bldr_60->gen_sym(bldr_60, NULL);
bldr_60->new_comminst(bldr_60, id_976, (MuID [1]){id_959}, 1, MU_CI_UVM_NATIVE_PIN, NULL, 0, (MuTypeNode [1]){id_933}, 1, NULL, 0, (MuVarNode [1]){id_951}, 1, MU_NO_ID, MU_NO_ID);
id_977 = bldr_60->gen_sym(bldr_60, NULL);
bldr_60->new_conv(bldr_60, id_977, id_960, MU_CONV_PTRCAST, id_934, id_931, id_959);
id_978 = bldr_60->gen_sym(bldr_60, NULL);
bldr_60->new_ccall(bldr_60, id_978, (MuID [1]){id_961}, 1, MU_CC_DEFAULT, id_946, id_945, id_947, (MuVarNode [3]){id_935, id_960, id_943}, 3, MU_NO_ID, MU_NO_ID);
id_979 = bldr_60->gen_sym(bldr_60, NULL);
bldr_60->new_comminst(bldr_60, id_979, NULL, 0, MU_CI_UVM_NATIVE_UNPIN, NULL, 0, (MuTypeNode [1]){id_933}, 1, NULL, 0, (MuVarNode [1]){id_951}, 1, MU_NO_ID, MU_NO_ID);
id_980 = bldr_60->gen_sym(bldr_60, NULL);
bldr_60->new_ret(bldr_60, id_980, (MuVarNode [1]){id_961}, 1);
bldr_60->new_bb(bldr_60, id_950, NULL, NULL, 0, MU_NO_ID, (MuInstNode [19]){id_962, id_963, id_964, id_965, id_966, id_967, id_968, id_969, id_970, id_971, id_972, id_973, id_974, id_975, id_976, id_977, id_978, id_979, id_980}, 19);
bldr_60->new_func_ver(bldr_60, id_949, id_948, (MuBBNode [1]){id_950}, 1);
mu_60->compile_to_sharedlib(mu_60, LIB_FILE_NAME("test_commoninst_pin"), NULL, 0);
return 0;
// Copyright 2017 The Australian National University
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.
#include <stdio.h>
#include <stdlib.h>
......@@ -28,58 +14,58 @@
#define LIB_FILE_NAME(name) "lib" name LIB_EXT
int main(int argc, char** argv) {
MuVM* mu_57;
MuCtx* ctx_57;
MuIRBuilder* bldr_57;
MuID id_808;
MuID id_809;
MuID id_810;
MuID id_811;
MuID id_812;
MuID id_813;
MuID id_814;
MuID id_815;
MuID id_816;
MuID id_817;
MuID id_818;
MuID id_819;
MuID id_820;
MuID id_821;
MuID id_822;
MuID id_823;
mu_57 = mu_fastimpl_new_with_opts("init_mu --log-level=none --aot-emit-dir=emit");
ctx_57 = mu_57->new_context(mu_57);
bldr_57 = ctx_57->new_ir_builder(ctx_57);
id_808 = bldr_57->gen_sym(bldr_57, "@i1");
bldr_57->new_type_int(bldr_57, id_808, 0x00000001ull);
id_809 = bldr_57->gen_sym(bldr_57, "@i8");
bldr_57->new_type_int(bldr_57, id_809, 0x00000008ull);
id_810 = bldr_57->gen_sym(bldr_57, "@i64");
bldr_57->new_type_int(bldr_57, id_810, 0x00000040ull);
id_811 = bldr_57->gen_sym(bldr_57, "@10_i64");
bldr_57->new_const_int(bldr_57, id_811, id_810, 0x000000000000000aull);
id_812 = bldr_57->gen_sym(bldr_57, "@20_i64");
bldr_57->new_const_int(bldr_57, id_812, id_810, 0x0000000000000014ull);
id_813 = bldr_57->gen_sym(bldr_57, "@TRUE");
bldr_57->new_const_int(bldr_57, id_813, id_809, 0x0000000000000001ull);
id_814 = bldr_57->gen_sym(bldr_57, "@sig_i8_i64");
bldr_57->new_funcsig(bldr_57, id_814, (MuTypeNode [1]){id_809}, 1, (MuTypeNode [1]){id_810}, 1);
id_815 = bldr_57->gen_sym(bldr_57, "@test_fnc");
bldr_57->new_func(bldr_57, id_815, id_814);
id_816 = bldr_57->gen_sym(bldr_57, "@test_fnc.v1");
id_817 = bldr_57->gen_sym(bldr_57, "@test_fnc.v1.blk0");
id_818 = bldr_57->gen_sym(bldr_57, "@test_fnc.v1.blk0.flag");
id_819 = bldr_57->gen_sym(bldr_57, "@test_fnc.v1.blk0.cmpres");
id_820 = bldr_57->gen_sym(bldr_57, "@test_fnc.v1.blk0.res");
id_821 = bldr_57->gen_sym(bldr_57, NULL);
bldr_57->new_cmp(bldr_57, id_821, id_819, MU_CMP_EQ, id_810, id_818, id_813);
id_822 = bldr_57->gen_sym(bldr_57, NULL);
bldr_57->new_select(bldr_57, id_822, id_820, id_808, id_810, id_819, id_811, id_812);
id_823 = bldr_57->gen_sym(bldr_57, NULL);
bldr_57->new_ret(bldr_57, id_823, (MuVarNode [1]){id_820}, 1);
bldr_57->new_bb(bldr_57, id_817, (MuID [1]){id_818}, (MuTypeNode [1]){id_809}, 1, MU_NO_ID, (MuInstNode [3]){id_821, id_822, id_823}, 3);
bldr_57->new_func_ver(bldr_57, id_816, id_815, (MuBBNode [1]){id_817}, 1);
mu_57->compile_to_sharedlib(mu_57, LIB_FILE_NAME("test_select"), NULL, 0);
MuVM* mu_59;
MuCtx* ctx_59;
MuIRBuilder* bldr_59;
MuID id_911;
MuID id_912;
MuID id_913;
MuID id_914;
MuID id_915;
MuID id_916;
MuID id_917;
MuID id_918;
MuID id_919;
MuID id_920;
MuID id_921;
MuID id_922;
MuID id_923;
MuID id_924;
MuID id_925;
MuID id_926;
mu_59 = mu_fastimpl_new_with_opts("init_mu --log-level=none --aot-emit-dir=emit");
ctx_59 = mu_59->new_context(mu_59);
bldr_59 = ctx_59->new_ir_builder(ctx_59);
id_911 = bldr_59->gen_sym(bldr_59, "@i1");
bldr_59->new_type_int(bldr_59, id_911, 0x00000001ull);
id_912 = bldr_59->gen_sym(bldr_59, "@i8");
bldr_59->new_type_int(bldr_59, id_912, 0x00000008ull);
id_913 = bldr_59->gen_sym(bldr_59, "@i64");
bldr_59->new_type_int(bldr_59, id_913, 0x00000040ull);
id_914 = bldr_59->gen_sym(bldr_59, "@10_i64");
bldr_59->new_const_int(bldr_59, id_914, id_913, 0x000000000000000aull);
id_915 = bldr_59->gen_sym(bldr_59, "@20_i64");
bldr_59->new_const_int(bldr_59, id_915, id_913, 0x0000000000000014ull);
id_916 = bldr_59->gen_sym(bldr_59, "@TRUE");
bldr_59->new_const_int(bldr_59, id_916, id_912, 0x0000000000000001ull);
id_917 = bldr_59->gen_sym(bldr_59, "@sig_i8_i64");
bldr_59->new_funcsig(bldr_59, id_917, (MuTypeNode [1]){id_912}, 1, (MuTypeNode [1]){id_913}, 1);
id_918 = bldr_59->gen_sym(bldr_59, "@test_fnc");
bldr_59->new_func(bldr_59, id_918, id_917);
id_919 = bldr_59->gen_sym(bldr_59, "@test_fnc.v1");
id_920 = bldr_59->gen_sym(bldr_59, "@test_fnc.v1.blk0");
id_921 = bldr_59->gen_sym(bldr_59, "@test_fnc.v1.blk0.flag");
id_922 = bldr_59->gen_sym(bldr_59, "@test_fnc.v1.blk0.cmpres");
id_923 = bldr_59->gen_sym(bldr_59, "@test_fnc.v1.blk0.res");
id_924 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_cmp(bldr_59, id_924, id_922, MU_CMP_EQ, id_912, id_921, id_916);
id_925 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_select(bldr_59, id_925, id_923, id_911, id_913, id_922, id_914, id_915);
id_926 = bldr_59->gen_sym(bldr_59, NULL);
bldr_59->new_ret(bldr_59, id_926, (MuVarNode [1]){id_923}, 1);
bldr_59->new_bb(bldr_59, id_920, (MuID [1]){id_921}, (MuTypeNode [1]){id_912}, 1, MU_NO_ID, (MuInstNode [3]){id_924, id_925, id_926}, 3);
bldr_59->new_func_ver(bldr_59, id_919, id_918, (MuBBNode [1]){id_920}, 1);
mu_59->compile_to_sharedlib(mu_59, LIB_FILE_NAME("test_select"), NULL, 0);
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment