Program: 157043
Project: 157043
Buggy source:
private void addBuildingBlocksTabTestCases(){
  add(Blocks.STONE,1);
  add(Blocks.GRASS,1);
  add(Blocks.DIRT,1);
  add(new ItemStack(Blocks.DIRT,1,1),1);
  add(new ItemStack(Blocks.DIRT,1,2),1);
  add(Blocks.COBBLESTONE,1);
  add(new ItemStack(Blocks.PLANKS,1,0),8);
  add(new ItemStack(Blocks.PLANKS,1,1),8);
  add(new ItemStack(Blocks.PLANKS,1,2),8);
  add(new ItemStack(Blocks.PLANKS,1,3),8);
  add(new ItemStack(Blocks.PLANKS,1,4),8);
  add(new ItemStack(Blocks.PLANKS,1,5),8);
  add(Blocks.BEDROCK,null);
  add(Blocks.SAND,1);
  add(new ItemStack(Blocks.SAND,1,1),1);
  add(Blocks.GRAVEL,4);
  add(Blocks.GOLD_ORE,2048);
  add(Blocks.IRON_ORE,256);
  add(Blocks.COAL_ORE,32);
  add(new ItemStack(Blocks.LOG,1,0),32);
  add(new ItemStack(Blocks.LOG,1,1),32);
  add(new ItemStack(Blocks.LOG,1,2),32);
  add(new ItemStack(Blocks.LOG,1,3),32);
  add(Blocks.SPONGE,null);
  add(new ItemStack(Blocks.SPONGE,1,1),null);
  add(Blocks.GLASS,1);
  add(Blocks.LAPIS_ORE,864);
  add(Blocks.LAPIS_BLOCK,9 * 864);
  add(new ItemStack(Blocks.SANDSTONE,1,0),4);
  add(new ItemStack(Blocks.SANDSTONE,1,1),4);
  add(new ItemStack(Blocks.SANDSTONE,1,2),4);
  add(new ItemStack(Blocks.WOOL,1,0),48);
  add(new ItemStack(Blocks.WOOL,1,1),64);
  add(new ItemStack(Blocks.WOOL,1,2),64);
  add(new ItemStack(Blocks.WOOL,1,3),64);
  add(new ItemStack(Blocks.WOOL,1,4),64);
  add(new ItemStack(Blocks.WOOL,1,5),64);
  add(new ItemStack(Blocks.WOOL,1,6),64);
  add(new ItemStack(Blocks.WOOL,1,7),64);
  add(new ItemStack(Blocks.WOOL,1,8),64);
  add(new ItemStack(Blocks.WOOL,1,9),64);
  add(new ItemStack(Blocks.WOOL,1,10),64);
  add(new ItemStack(Blocks.WOOL,1,11),64);
  add(new ItemStack(Blocks.WOOL,1,12),64);
  add(new ItemStack(Blocks.WOOL,1,13),64);
  add(new ItemStack(Blocks.WOOL,1,14),64);
  add(new ItemStack(Blocks.WOOL,1,15),64);
  add(Blocks.GOLD_BLOCK,9 * 2048);
  add(Blocks.IRON_BLOCK,9 * 256);
  add(new ItemStack(Blocks.STONE_SLAB,1,0),0.5);
  add(new ItemStack(Blocks.STONE_SLAB,1,1),2);
  add(new ItemStack(Blocks.STONE_SLAB,1,3),0.5);
  add(new ItemStack(Blocks.STONE_SLAB,1,4),128);
  add(new ItemStack(Blocks.STONE_SLAB,1,5),0.5);
  add(new ItemStack(Blocks.STONE_SLAB,1,6),2);
  add(new ItemStack(Blocks.STONE_SLAB,1,7),512);
  add(Blocks.BRICK_BLOCK,256);
  add(Blocks.BOOKSHELF,528);
  add(Blocks.MOSSY_COBBLESTONE,1);
  add(Blocks.OBSIDIAN,64);
  add(Blocks.OAK_STAIRS,12);
  add(Blocks.DIAMOND_ORE,8192);
  add(Blocks.DIAMOND_BLOCK,9 * 8192);
  add(Blocks.STONE_STAIRS,1.5);
  add(Blocks.REDSTONE_ORE,32);
  add(Blocks.ICE,1);
  add(Blocks.SNOW,1);
  add(Blocks.CLAY,256);
  add(Blocks.PUMPKIN,144);
  add(Blocks.NETHERRACK,1);
  add(Blocks.SOUL_SAND,49);
  add(Blocks.GLOWSTONE,1536);
  add(Blocks.LIT_PUMPKIN,153);
  add(new ItemStack(Blocks.STAINED_GLASS,1,0),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,1),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,2),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,3),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,4),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,5),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,6),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,7),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,8),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,9),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,10),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,11),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,12),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,13),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,14),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,15),3);
  add(new ItemStack(Blocks.STONEBRICK,1,0),1);
  add(new ItemStack(Blocks.STONEBRICK,1,1),1);
  add(new ItemStack(Blocks.STONEBRICK,1,2),1);
  add(new ItemStack(Blocks.STONEBRICK,1,3),1);
  add(Blocks.MELON_BLOCK,144);
  add(Blocks.BRICK_STAIRS,384);
  add(Blocks.STONE_BRICK_STAIRS,1.5);
  add(Blocks.MYCELIUM,1);
  add(Blocks.NETHER_BRICK,4);
  add(Blocks.NETHER_BRICK_STAIRS,6);
  add(Blocks.END_STONE,1);
  add(new ItemStack(Blocks.WOODEN_SLAB,1,0),4);
  add(new ItemStack(Blocks.WOODEN_SLAB,1,1),4);
  add(new ItemStack(Blocks.WOODEN_SLAB,1,2),4);
  add(new ItemStack(Blocks.WOODEN_SLAB,1,3),4);
  add(new ItemStack(Blocks.WOODEN_SLAB,1,4),4);
  add(new ItemStack(Blocks.WOODEN_SLAB,1,5),4);
  add(Blocks.SANDSTONE_STAIRS,6);
  add(Blocks.EMERALD_ORE,8192);
  add(Blocks.EMERALD_BLOCK,9 * 8192);
  add(Blocks.SPRUCE_STAIRS,12);
  add(Blocks.BIRCH_STAIRS,12);
  add(Blocks.JUNGLE_STAIRS,12);
  add(new ItemStack(Blocks.COBBLESTONE_WALL,1,0),1);
  add(new ItemStack(Blocks.COBBLESTONE_WALL,1,1),1);
  add(Blocks.QUARTZ_ORE,256);
  add(new ItemStack(Blocks.QUARTZ_BLOCK,1,0),1024);
  add(new ItemStack(Blocks.QUARTZ_BLOCK,1,1),1024);
  add(new ItemStack(Blocks.QUARTZ_BLOCK,1,2),1024);
  add(Blocks.QUARTZ_STAIRS,1536);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,0),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,1),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,2),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,3),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,4),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,5),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,6),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,7),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,8),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,9),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,10),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,11),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,12),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,13),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,14),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,15),258);
  add(new ItemStack(Blocks.LOG2,1,0),32);
  add(new ItemStack(Blocks.LOG2,1,1),32);
  add(Blocks.ACACIA_STAIRS,12);
  add(Blocks.DARK_OAK_STAIRS,12);
  add(Blocks.HAY_BLOCK,216);
  add(Blocks.HARDENED_CLAY,256);
  add(Blocks.COAL_BLOCK,288);
  add(Blocks.PACKED_ICE,null);
  add(Blocks.RED_SANDSTONE,4);
  add(new ItemStack(Blocks.RED_SANDSTONE,1,1),4);
  add(new ItemStack(Blocks.RED_SANDSTONE,1,2),4);
  add(Blocks.RED_SANDSTONE_STAIRS,6);
  add(Blocks.STONE_SLAB2,2);
  add(Blocks.END_BRICKS,1);
}

Fixed version (ground truth):
private void addBuildingBlocksTabTestCases(){
  add(Blocks.AIR,null);
  add(Blocks.STONE,1);
  add(Blocks.GRASS,1);
  add(Blocks.DIRT,1);
  add(new ItemStack(Blocks.DIRT,1,1),1);
  add(new ItemStack(Blocks.DIRT,1,2),1);
  add(Blocks.COBBLESTONE,1);
  add(new ItemStack(Blocks.PLANKS,1,0),8);
  add(new ItemStack(Blocks.PLANKS,1,1),8);
  add(new ItemStack(Blocks.PLANKS,1,2),8);
  add(new ItemStack(Blocks.PLANKS,1,3),8);
  add(new ItemStack(Blocks.PLANKS,1,4),8);
  add(new ItemStack(Blocks.PLANKS,1,5),8);
  add(Blocks.BEDROCK,null);
  add(Blocks.SAND,1);
  add(new ItemStack(Blocks.SAND,1,1),1);
  add(Blocks.GRAVEL,4);
  add(Blocks.GOLD_ORE,2048);
  add(Blocks.IRON_ORE,256);
  add(Blocks.COAL_ORE,32);
  add(new ItemStack(Blocks.LOG,1,0),32);
  add(new ItemStack(Blocks.LOG,1,1),32);
  add(new ItemStack(Blocks.LOG,1,2),32);
  add(new ItemStack(Blocks.LOG,1,3),32);
  add(Blocks.SPONGE,null);
  add(new ItemStack(Blocks.SPONGE,1,1),null);
  add(Blocks.GLASS,1);
  add(Blocks.LAPIS_ORE,864);
  add(Blocks.LAPIS_BLOCK,9 * 864);
  add(new ItemStack(Blocks.SANDSTONE,1,0),4);
  add(new ItemStack(Blocks.SANDSTONE,1,1),4);
  add(new ItemStack(Blocks.SANDSTONE,1,2),4);
  add(new ItemStack(Blocks.WOOL,1,0),48);
  add(new ItemStack(Blocks.WOOL,1,1),64);
  add(new ItemStack(Blocks.WOOL,1,2),64);
  add(new ItemStack(Blocks.WOOL,1,3),64);
  add(new ItemStack(Blocks.WOOL,1,4),64);
  add(new ItemStack(Blocks.WOOL,1,5),64);
  add(new ItemStack(Blocks.WOOL,1,6),64);
  add(new ItemStack(Blocks.WOOL,1,7),64);
  add(new ItemStack(Blocks.WOOL,1,8),64);
  add(new ItemStack(Blocks.WOOL,1,9),64);
  add(new ItemStack(Blocks.WOOL,1,10),64);
  add(new ItemStack(Blocks.WOOL,1,11),64);
  add(new ItemStack(Blocks.WOOL,1,12),64);
  add(new ItemStack(Blocks.WOOL,1,13),64);
  add(new ItemStack(Blocks.WOOL,1,14),64);
  add(new ItemStack(Blocks.WOOL,1,15),64);
  add(Blocks.GOLD_BLOCK,9 * 2048);
  add(Blocks.IRON_BLOCK,9 * 256);
  add(new ItemStack(Blocks.STONE_SLAB,1,0),0.5);
  add(new ItemStack(Blocks.STONE_SLAB,1,1),2);
  add(new ItemStack(Blocks.STONE_SLAB,1,3),0.5);
  add(new ItemStack(Blocks.STONE_SLAB,1,4),128);
  add(new ItemStack(Blocks.STONE_SLAB,1,5),0.5);
  add(new ItemStack(Blocks.STONE_SLAB,1,6),2);
  add(new ItemStack(Blocks.STONE_SLAB,1,7),512);
  add(Blocks.BRICK_BLOCK,256);
  add(Blocks.BOOKSHELF,528);
  add(Blocks.MOSSY_COBBLESTONE,1);
  add(Blocks.OBSIDIAN,64);
  add(Blocks.OAK_STAIRS,12);
  add(Blocks.DIAMOND_ORE,8192);
  add(Blocks.DIAMOND_BLOCK,9 * 8192);
  add(Blocks.STONE_STAIRS,1.5);
  add(Blocks.REDSTONE_ORE,32);
  add(Blocks.ICE,1);
  add(Blocks.SNOW,1);
  add(Blocks.CLAY,256);
  add(Blocks.PUMPKIN,144);
  add(Blocks.NETHERRACK,1);
  add(Blocks.SOUL_SAND,49);
  add(Blocks.GLOWSTONE,1536);
  add(Blocks.LIT_PUMPKIN,153);
  add(new ItemStack(Blocks.STAINED_GLASS,1,0),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,1),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,2),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,3),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,4),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,5),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,6),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,7),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,8),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,9),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,10),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,11),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,12),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,13),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,14),3);
  add(new ItemStack(Blocks.STAINED_GLASS,1,15),3);
  add(new ItemStack(Blocks.STONEBRICK,1,0),1);
  add(new ItemStack(Blocks.STONEBRICK,1,1),1);
  add(new ItemStack(Blocks.STONEBRICK,1,2),1);
  add(new ItemStack(Blocks.STONEBRICK,1,3),1);
  add(Blocks.MELON_BLOCK,144);
  add(Blocks.BRICK_STAIRS,384);
  add(Blocks.STONE_BRICK_STAIRS,1.5);
  add(Blocks.MYCELIUM,1);
  add(Blocks.NETHER_BRICK,4);
  add(Blocks.NETHER_BRICK_STAIRS,6);
  add(Blocks.END_STONE,1);
  add(new ItemStack(Blocks.WOODEN_SLAB,1,0),4);
  add(new ItemStack(Blocks.WOODEN_SLAB,1,1),4);
  add(new ItemStack(Blocks.WOODEN_SLAB,1,2),4);
  add(new ItemStack(Blocks.WOODEN_SLAB,1,3),4);
  add(new ItemStack(Blocks.WOODEN_SLAB,1,4),4);
  add(new ItemStack(Blocks.WOODEN_SLAB,1,5),4);
  add(Blocks.SANDSTONE_STAIRS,6);
  add(Blocks.EMERALD_ORE,8192);
  add(Blocks.EMERALD_BLOCK,9 * 8192);
  add(Blocks.SPRUCE_STAIRS,12);
  add(Blocks.BIRCH_STAIRS,12);
  add(Blocks.JUNGLE_STAIRS,12);
  add(new ItemStack(Blocks.COBBLESTONE_WALL,1,0),1);
  add(new ItemStack(Blocks.COBBLESTONE_WALL,1,1),1);
  add(Blocks.QUARTZ_ORE,256);
  add(new ItemStack(Blocks.QUARTZ_BLOCK,1,0),1024);
  add(new ItemStack(Blocks.QUARTZ_BLOCK,1,1),1024);
  add(new ItemStack(Blocks.QUARTZ_BLOCK,1,2),1024);
  add(Blocks.QUARTZ_STAIRS,1536);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,0),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,1),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,2),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,3),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,4),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,5),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,6),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,7),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,8),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,9),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,10),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,11),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,12),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,13),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,14),258);
  add(new ItemStack(Blocks.STAINED_HARDENED_CLAY,1,15),258);
  add(new ItemStack(Blocks.LOG2,1,0),32);
  add(new ItemStack(Blocks.LOG2,1,1),32);
  add(Blocks.ACACIA_STAIRS,12);
  add(Blocks.DARK_OAK_STAIRS,12);
  add(Blocks.HAY_BLOCK,216);
  add(Blocks.HARDENED_CLAY,256);
  add(Blocks.COAL_BLOCK,288);
  add(Blocks.PACKED_ICE,null);
  add(Blocks.RED_SANDSTONE,4);
  add(new ItemStack(Blocks.RED_SANDSTONE,1,1),4);
  add(new ItemStack(Blocks.RED_SANDSTONE,1,2),4);
  add(Blocks.RED_SANDSTONE_STAIRS,6);
  add(Blocks.STONE_SLAB2,2);
  add(Blocks.END_BRICKS,1);
}